{"$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":"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":"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"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"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":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"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":"D23","name":"Boundary Type-Coupling","shortDescription":{"text":"Boundary Type-Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D23"},{"id":"D24","name":"Comment Value","shortDescription":{"text":"Comment Value"},"helpUri":"https://codehealth.canine.dev/dimensions/D24"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"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"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"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"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"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"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"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"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"],"owasp":"A02:2025"}},{"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"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"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"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AC1","name":"Text alternatives","shortDescription":{"text":"Text alternatives"},"helpUri":"https://codehealth.canine.dev/dimensions/AC1"},{"id":"AC2","name":"Forms \u0026 labels","shortDescription":{"text":"Forms \u0026 labels"},"helpUri":"https://codehealth.canine.dev/dimensions/AC2"},{"id":"AC3","name":"Page structure","shortDescription":{"text":"Page structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AC3"},{"id":"AC4","name":"Keyboard semantics","shortDescription":{"text":"Keyboard semantics"},"helpUri":"https://codehealth.canine.dev/dimensions/AC4"},{"id":"AC5","name":"ARIA correctness","shortDescription":{"text":"ARIA correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/AC5"},{"id":"AC6","name":"Visual \u0026 motion safety","shortDescription":{"text":"Visual \u0026 motion safety"},"helpUri":"https://codehealth.canine.dev/dimensions/AC6"},{"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":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"AXS1","name":"Runtime exposed surface","shortDescription":{"text":"Runtime exposed surface"},"helpUri":"https://codehealth.canine.dev/dimensions/AXS1"},{"id":"DM9","name":"Scattered domain decisions","shortDescription":{"text":"Scattered domain decisions"},"helpUri":"https://codehealth.canine.dev/dimensions/DM9"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"GD1","name":"Unfinished \u0026 placeholder code","shortDescription":{"text":"Unfinished \u0026 placeholder code"},"helpUri":"https://codehealth.canine.dev/dimensions/GD1"},{"id":"IC1","name":"Incompleteness \u0026 stubs","shortDescription":{"text":"Incompleteness \u0026 stubs"},"helpUri":"https://codehealth.canine.dev/dimensions/IC1"},{"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":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"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":"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":"R5","name":"Dependency Freshness","shortDescription":{"text":"Dependency Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/R5"},{"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":"S1","name":"Web-Security Posture","shortDescription":{"text":"Web-Security Posture"},"helpUri":"https://codehealth.canine.dev/dimensions/S1"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X2","name":"Cancellation propagation","shortDescription":{"text":"Cancellation propagation"},"helpUri":"https://codehealth.canine.dev/dimensions/X2"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"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":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"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":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"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":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"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":"GatewayRequestPipeline.proxyRequest (cyclomatic 142): GatewayRequestPipeline.proxyRequest has cyclomatic complexity 142 (threshold 15). Of this number, 118 points are the body\u0027s own statements and 24 belong to 7 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":"packages/core/src/gateway/request/pipeline.ts"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"df96bd4855291655d00639b17592c5c5e7b7b3d15c5ad6fd9de644ee684ec2e0"}},{"ruleId":"D1","level":"warning","message":{"text":"index.handleOmeletteConnectRpc (cyclomatic 112): index.handleOmeletteConnectRpc has cyclomatic complexity 112 (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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":2235}}}],"partialFingerprints":{"codehealthFindingId/v1":"29787987113cc88ff8a5a444ddcf23f4da37af643be02c4a50b11ab7962f5bb3"}},{"ruleId":"D1","level":"warning","message":{"text":"config.parseProfiles (cyclomatic 84): config.parseProfiles has cyclomatic complexity 84 (threshold 15). Most of this is not in the body itself: 2 of the 84 points are its own statements and the rest belongs to one function literal inside it that branches (line 3622). 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":"packages/core/src/config/config.ts"},"region":{"startLine":3616}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7ce00f7027cfc03307feb1370783bdce1962fb28c3169fe4e8d496b3d4239f1"}},{"ruleId":"D1","level":"warning","message":{"text":"profiles.normalizeUnknownProfileItem (cyclomatic 80): profiles.normalizeUnknownProfileItem has cyclomatic complexity 80 (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":"packages/ui/src/pages/home/shared/profiles.ts"},"region":{"startLine":1540}}}],"partialFingerprints":{"codehealthFindingId/v1":"fad84ec5dd9c3bdb039bfa87e445f563ef4bcf1b8be988473eec1fbe385571f3"}},{"ruleId":"D1","level":"warning","message":{"text":"dashboard.OverviewView (cyclomatic 80): dashboard.OverviewView has cyclomatic complexity 80 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 64 belong to 33 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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"52042d43c0c3ecb330b63004cfaad9a098a383169e13879ec5d1695bfe40cfca"}},{"ruleId":"D1","level":"warning","message":{"text":"RequestLogStore.updateFromRawTrace (cyclomatic 76): RequestLogStore.updateFromRawTrace has cyclomatic complexity 76 (threshold 15). Of this number, 74 points are the body\u0027s own statements and 2 belong to 2 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"a637d63249e91aa2c31f995c93104253a9a6b9e5fb5cf84f06ee07cff2cce837"}},{"ruleId":"D1","level":"warning","message":{"text":"providers.AddProviderForm (cyclomatic 76): providers.AddProviderForm has cyclomatic complexity 76 (threshold 15). Of this number, 36 points are the body\u0027s own statements and 40 belong to 16 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":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":1961}}}],"partialFingerprints":{"codehealthFindingId/v1":"d737d66b3cc0a8951231e8be7fc675a37734b464c5b1c34331e6f1fdab96ff08"}},{"ruleId":"D1","level":"warning","message":{"text":"browser-automation-mcp.targetActionScript (cyclomatic 74): browser-automation-mcp.targetActionScript has cyclomatic complexity 74 (threshold 15). Of this number, 29 points are the body\u0027s own statements and 45 belong to 11 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":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":2904}}}],"partialFingerprints":{"codehealthFindingId/v1":"af5de7fa2982acd7a113fea007339e0f8c53242b8a12b709ccac6e5207fb51b7"}},{"ruleId":"D1","level":"warning","message":{"text":"profiles.AddProfileForm (cyclomatic 68): profiles.AddProfileForm has cyclomatic complexity 68 (threshold 15). Of this number, 55 points are the body\u0027s own statements and 13 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":"packages/ui/src/pages/home/components/profiles.tsx"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fc362d8f0ff7de1b58c7f7465732f90d432ef0d4c446ba26250cf7eef789fa7"}},{"ruleId":"D1","level":"warning","message":{"text":"createClaudeProductPlugin.setup (cyclomatic 68): createClaudeProductPlugin.setup has cyclomatic complexity 68 (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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca87d1abd61beac323215baf788743d1c8dc2d096a86a12bd84d7a9743736c1b"}},{"ruleId":"D1","level":"warning","message":{"text":"index.createClaudeProductPlugin.setup (cyclomatic 67): index.createClaudeProductPlugin.setup has cyclomatic complexity 67 (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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"56b9cb2daac2861db8b302f2c20b11f6dd212badd4419200d5d8b9f601579bde"}},{"ruleId":"D1","level":"warning","message":{"text":"index.handleDesignRestApi (cyclomatic 67): index.handleDesignRestApi 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":9815}}}],"partialFingerprints":{"codehealthFindingId/v1":"6defecc9e51351a9af8911041c60d72aaa8167efa5c24f7cfd5e9a55ab25f2d9"}},{"ruleId":"D1","level":"warning","message":{"text":"settings.BotConfigDialog (cyclomatic 66): settings.BotConfigDialog has cyclomatic complexity 66 (threshold 15). Most of this is not in the body itself: 9 of the 66 points are its own statements and the rest belongs to 16 function items inside it that branch (saveWithQrLogin, waitForQrLoginConfirmation, startQrLogin, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/settings.tsx"},"region":{"startLine":1453}}}],"partialFingerprints":{"codehealthFindingId/v1":"65976dfc0c14742787a1fca5b54cb928fbe6bd1e1d525e5a134e554084ac48a1"}},{"ruleId":"D1","level":"warning","message":{"text":"BrowserAutomationMcpService.runTool (cyclomatic 65): BrowserAutomationMcpService.runTool has cyclomatic complexity 65 (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":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"09aea4b16fe10f90b928564b3aadc8547fcca30343277821e145f2db1ddd26f5"}},{"ruleId":"D1","level":"warning","message":{"text":"onboarding.OnboardingView (cyclomatic 65): onboarding.OnboardingView has cyclomatic complexity 65 (threshold 15). Of this number, 34 points are the body\u0027s own statements and 31 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":"packages/ui/src/pages/home/components/onboarding.tsx"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"17400d9ce2cebd6660222585605c8eafa912c9e5c897e22411c910172adb2bb5"}},{"ruleId":"D1","level":"warning","message":{"text":"index.routeMockRequest (cyclomatic 64): index.routeMockRequest has cyclomatic complexity 64 (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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":895}}}],"partialFingerprints":{"codehealthFindingId/v1":"1665a32ba81d4d50b84a13b04a2f8f3256d82fda3dbef94a2316879bcad3d4ea"}},{"ruleId":"D1","level":"warning","message":{"text":"providers.AddProviderDialog (cyclomatic 59): providers.AddProviderDialog has cyclomatic complexity 59 (threshold 15). Of this number, 38 points are the body\u0027s own statements and 21 belong to 7 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":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":3466}}}],"partialFingerprints":{"codehealthFindingId/v1":"2749e333f6c3c48f2df3fc60a7d37e4555a2acbb37589c5ff4e7f154b0ed0f56"}},{"ruleId":"D1","level":"warning","message":{"text":"App.App (cyclomatic 59): App.App has cyclomatic complexity 59 (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. This shape REPEATS in the file: 3 other methods here (App.App::persistConfig, App.App::refreshProviderModels, App.App::submitProviderDraft) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 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":"packages/ui/src/pages/home/App.tsx"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"9542fb71d953a514d7b8687a515da444dcb43d7c21238c7f13fa44dbb2225188"}},{"ruleId":"D1","level":"warning","message":{"text":"config.parseProfile (cyclomatic 55): config.parseProfile has cyclomatic complexity 55 (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":"packages/core/src/config/config.ts"},"region":{"startLine":3480}}}],"partialFingerprints":{"codehealthFindingId/v1":"901127ef1cb6b9835a07c251d263c7a7299256462030dbe972e3b5e3bc1d348b"}},{"ruleId":"D1","level":"warning","message":{"text":"network-logs.LogJsonPanel (cyclomatic 55): network-logs.LogJsonPanel has cyclomatic complexity 55 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 35 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":"packages/ui/src/pages/home/components/network-logs.tsx"},"region":{"startLine":1782}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f14b042107f88d8d370f8c1d32d2cbc2737cbc5e43b4476964c0a877dbeef83"}},{"ruleId":"D1","level":"warning","message":{"text":"GatewayHttpRequestHandler.handleRequest (cyclomatic 53): GatewayHttpRequestHandler.handleRequest has cyclomatic complexity 53 (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":"packages/core/src/gateway/http/request-handler.ts"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"64340c6e594b2b0e8aa3a034af1700f12c79263c0412137ce6ca205903743b0c"}},{"ruleId":"D1","level":"warning","message":{"text":"providers.ProviderUsageSettings (cyclomatic 53): providers.ProviderUsageSettings has cyclomatic complexity 53 (threshold 15). Of this number, 33 points are the body\u0027s own statements and 20 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":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":2888}}}],"partialFingerprints":{"codehealthFindingId/v1":"84ac06980a57208251bae1b37b20962be2a62352505216a22aafa1c594d62038"}},{"ruleId":"D1","level":"warning","message":{"text":"config.parseBotGateway (cyclomatic 51): config.parseBotGateway has cyclomatic complexity 51 (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":"packages/core/src/config/config.ts"},"region":{"startLine":2221}}}],"partialFingerprints":{"codehealthFindingId/v1":"584f7a7a53e30aae9fc98e5dac5f4cabe4b2e1828ccf53e651819d1dd2a8638a"}},{"ruleId":"D1","level":"warning","message":{"text":"settings.TraySettingsPage (cyclomatic 50): settings.TraySettingsPage has cyclomatic complexity 50 (threshold 15). Most of this is not in the body itself: 14 of the 50 points are its own statements and the rest belongs to 16 function items inside it that branch (a function literal at line 2096, changeTrayWidgetAccountProviders, a function literal at line 2173, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/settings.tsx"},"region":{"startLine":1908}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba5cd024a84669e3d6f73f77415906cf21760e95d15e31b5e9fd72d57dc469ce"}},{"ruleId":"D1","level":"warning","message":{"text":"config.pickConfig (cyclomatic 49): config.pickConfig has cyclomatic complexity 49 (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":"packages/core/src/config/config.ts"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c5c22c93a0a4805fec607feb70cbf4efd7fa0a5fc63bc034c52f486a6ea1ee2"}},{"ruleId":"D1","level":"warning","message":{"text":"request-log-store.inferAgentFromText (cyclomatic 49): request-log-store.inferAgentFromText has cyclomatic complexity 49 (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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":2043}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed6eb455f50affccd92cd3e567d0a7b3a8a29eb08f5787a9e821774b3b0fdb3e"}},{"ruleId":"D1","level":"warning","message":{"text":"virtual-models.FusionToolSelectControl (cyclomatic 49): virtual-models.FusionToolSelectControl has cyclomatic complexity 49 (threshold 15). Most of this is not in the body itself: 13 of the 49 points are its own statements and the rest belongs to 10 function literals inside it that branch (lines 1208, 1232, 1069, \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":"packages/ui/src/pages/home/components/virtual-models.tsx"},"region":{"startLine":1021}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1be9bb4d86d318fc77b4af79037f1b0c24ab2b7fd1416bbd090b63ebea987fc"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.main (cyclomatic 48): cli.main 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":"packages/cli/src/cli.ts"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"d944654924b60c81f56012880edcce927d201500381297c050e78bac25ff7efc"}},{"ruleId":"D1","level":"warning","message":{"text":"browser-automation-mcp.waitForReadiness (cyclomatic 48): browser-automation-mcp.waitForReadiness 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":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":1653}}}],"partialFingerprints":{"codehealthFindingId/v1":"38a4367ab505f091ea566f09c4c3f21bdea5fe5c1124ed4ff8a452ed074cb0c1"}},{"ruleId":"D1","level":"warning","message":{"text":"profiles.normalizeProfileItem (cyclomatic 46): profiles.normalizeProfileItem 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":"packages/ui/src/pages/home/shared/profiles.ts"},"region":{"startLine":1395}}}],"partialFingerprints":{"codehealthFindingId/v1":"e541b060a9a323d370fa1493241aaaa43db1111f0e1b3905a22fb2b43338d725"}},{"ruleId":"D1","level":"warning","message":{"text":"browser-automation-mcp.waitForNextReadinessEvent (cyclomatic 45): browser-automation-mcp.waitForNextReadinessEvent has cyclomatic complexity 45 (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":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":1772}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f4e94eeb72d3dfc10d37b4a26b2dae5e8dfdc4c2fd98bfb1783a090af140788"}},{"ruleId":"D1","level":"warning","message":{"text":"providers.ModelMetadataEditor (cyclomatic 45): providers.ModelMetadataEditor has cyclomatic complexity 45 (threshold 15). Most of this is not in the body itself: 5 of the 45 points are its own statements and the rest belongs to 9 function items inside it that branch (a function literal at line 4889, a function literal at line 4751, a function literal at line 4775, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":4669}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0ec5d7e124663128e50dce38175aad07cc8b5d5a7e6ba1e41134ba64070e9da"}},{"ruleId":"D1","level":"warning","message":{"text":"executor.fetchUpstreamWithFallback (cyclomatic 44): executor.fetchUpstreamWithFallback has cyclomatic complexity 44 (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":"packages/core/src/gateway/upstream/executor.ts"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd8d63291c2297bd6bc098cc891398ac5c00acc3f4cd6d834a0051f41a96eb4f"}},{"ruleId":"D1","level":"warning","message":{"text":"virtual-models.VirtualModelDialog (cyclomatic 43): virtual-models.VirtualModelDialog 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 14 function items inside it that branch (applyFusionTools, discoverMcpServerTools, submitCustomMcpDialog, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/virtual-models.tsx"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"e25b1cc5acfad58a4971989cdb34a4578e8877cb9d7c2b0034156a783072210a"}},{"ruleId":"D1","level":"warning","message":{"text":"dashboard.ProviderAccountSummaryCard (cyclomatic 43): dashboard.ProviderAccountSummaryCard has cyclomatic complexity 43 (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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":2929}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b36a8660127124354e20572cb7bb0a255542e9a6f9a115c9757746c112fd3ab"}},{"ruleId":"D1","level":"warning","message":{"text":"profiles.ProfileView (cyclomatic 42): profiles.ProfileView has cyclomatic complexity 42 (threshold 15). Most of this is not in the body itself: 3 of the 42 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 118, 125, 231). 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":"packages/ui/src/pages/home/components/profiles.tsx"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"c02eaad82dc74e2a910c25c2b3671cdfddf8ca5a802a27f90ed11357275ab752"}},{"ruleId":"D1","level":"warning","message":{"text":"commentFromRequest (cyclomatic 42): commentFromRequest has cyclomatic complexity 42 (threshold 15). Of this number, 40 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":9472}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb1d7631d18cba34cf8cdddc79ed8e0d024464b0fa8f593852c9f3e46325ef75"}},{"ruleId":"D1","level":"warning","message":{"text":"request-log-store.assistantFullTextCandidates (cyclomatic 41): request-log-store.assistantFullTextCandidates 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":2746}}}],"partialFingerprints":{"codehealthFindingId/v1":"c18c58d017139bcdc8bf46aa54d58751101c3012f940020fd402a9574630411c"}},{"ruleId":"D1","level":"warning","message":{"text":"main.BrowserChrome (cyclomatic 41): main.BrowserChrome has cyclomatic complexity 41 (threshold 15). Most of this is not in the body itself: 13 of the 41 points are its own statements and the rest belongs to 10 function items inside it that branch (copyChromeImportUrl, a function literal at line 169, a function literal at line 69, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/browser/main.tsx"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dad7bd0bf3dbedf312bf329c1402c802fa0a8fb4d3cfd72c47214268bf7662a"}},{"ruleId":"D1","level":"warning","message":{"text":"profiles.profileSummaryItems (cyclomatic 41): profiles.profileSummaryItems 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":"packages/ui/src/pages/home/shared/profiles.ts"},"region":{"startLine":1285}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6bbc500609eb6ea372ac67b143e5d7bc61a7633665227b36646b61369e65d5f"}},{"ruleId":"D1","level":"warning","message":{"text":"routing.AddRoutingRuleDialog (cyclomatic 41): routing.AddRoutingRuleDialog has cyclomatic complexity 41 (threshold 15). Most of this is not in the body itself: 14 of the 41 points are its own statements and the rest belongs to 9 function items inside it that branch (validateScript, testScript, a function literal at line 517, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/routing.tsx"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab020e10f64302c36c116ad74e7efa3e99cbdfb7dc81cccacc602bacc9e0bd99"}},{"ruleId":"D1","level":"warning","message":{"text":"service.restoreInactiveGlobalProfileConfigs (cyclomatic 40): service.restoreInactiveGlobalProfileConfigs has cyclomatic complexity 40 (threshold 15). Of this number, 37 points are the body\u0027s own statements and 3 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":"packages/core/src/profiles/service.ts"},"region":{"startLine":3481}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3337a140168d7423610603c64628ac5c30c5d43b2f88fee8b61bea464808f7c"}},{"ruleId":"D1","level":"warning","message":{"text":"index.handleAdminRequest (cyclomatic 40): index.handleAdminRequest has cyclomatic complexity 40 (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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":4102}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd010818964a60950f4247ac2eafa1964f3109359b1330794dc545b1a7497ce4"}},{"ruleId":"D1","level":"warning","message":{"text":"index.handleClaudeShipSessionApi (cyclomatic 40): index.handleClaudeShipSessionApi 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":5197}}}],"partialFingerprints":{"codehealthFindingId/v1":"6756bba95018c1d6370e7747c3bf42ba467253e1359b82973fd8a9aa2ac0e251"}},{"ruleId":"D1","level":"warning","message":{"text":"logs.aggregateOpenAiResponsesStreamPayloads (cyclomatic 40): logs.aggregateOpenAiResponsesStreamPayloads 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":"packages/ui/src/pages/home/shared/logs.ts"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"5545cbc61dc45e5fea3a3c475feb1aaa205281eebd68b4eeaf774dafe81a7373"}},{"ruleId":"D1","level":"warning","message":{"text":"dashboard.CodexResetCreditDialog (cyclomatic 40): dashboard.CodexResetCreditDialog has cyclomatic complexity 40 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 18 belong to 9 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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":3640}}}],"partialFingerprints":{"codehealthFindingId/v1":"972178472e8d9790927e0ef9ec12c742fe99ee879dc6fc9cfbb62b1343a03ba0"}},{"ruleId":"D1","level":"warning","message":{"text":"App.App::submitProviderDraft (cyclomatic 40): App.App::submitProviderDraft has cyclomatic complexity 40 (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. This shape REPEATS in the file: 3 other methods here (App.App, App.App::persistConfig, App.App::refreshProviderModels) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 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":"packages/ui/src/pages/home/App.tsx"},"region":{"startLine":1705}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5c13b9bd4bf8a001e5d2aa79add10d63c80d6b208711c6b5696ff00ef6d9215"}},{"ruleId":"D1","level":"warning","message":{"text":"config.parseProfileAgent (cyclomatic 39): config.parseProfileAgent has cyclomatic complexity 39 (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":"packages/core/src/config/config.ts"},"region":{"startLine":3801}}}],"partialFingerprints":{"codehealthFindingId/v1":"738b4e5e6d45486d818d63a40779249354b43b38d345d8b85f72140ddc36de57"}},{"ruleId":"D1","level":"warning","message":{"text":"evidence.synthesizeWeatherWebSearchAnswer (cyclomatic 39): evidence.synthesizeWeatherWebSearchAnswer has cyclomatic complexity 39 (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":"packages/core/src/gateway/features/hosted-web-search/evidence.ts"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bec3192136cac17fb7f5b72c8ba8c8cf77110b05a0cf9f5c04e2c36a1e4228c"}},{"ruleId":"D1","level":"warning","message":{"text":"manifest-service.isPublicIpv4 (cyclomatic 39): manifest-service.isPublicIpv4 has cyclomatic complexity 39 (threshold 15). Of this number, 38 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":"packages/core/src/providers/manifest-service.ts"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc72c02f1fc92169cee0b12469ef4c231c63470576fcae591c930971571f9815"}},{"ruleId":"D1","level":"warning","message":{"text":"model-selector.ModelSelector (cyclomatic 39): model-selector.ModelSelector has cyclomatic complexity 39 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 19 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":"packages/ui/src/pages/home/components/model-selector.tsx"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fb1bcd31a104e8176683419bfbdaef277307c784f5dc6a57ab196135ae37ba7"}},{"ruleId":"D1","level":"warning","message":{"text":"profiles.normalizeBotGatewayRuntimeConfig (cyclomatic 38): profiles.normalizeBotGatewayRuntimeConfig has cyclomatic complexity 38 (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":"packages/ui/src/pages/home/shared/profiles.ts"},"region":{"startLine":1171}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfbd337f42493e6765ff15f3fecfd1b19d2d230a9b777cdb40374b492015b86d"}},{"ruleId":"D1","level":"warning","message":{"text":"provider-references.renameProviderReferences (cyclomatic 38): provider-references.renameProviderReferences has cyclomatic complexity 38 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 18 belong to 5 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":"packages/ui/src/pages/home/shared/provider-references.ts"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a54bf921e30689564eeb6380a34e25b55101ea85767a236d43135595090a335"}},{"ruleId":"D1","level":"warning","message":{"text":"network-logs.LogsView (cyclomatic 38): network-logs.LogsView has cyclomatic complexity 38 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 21 belong to 14 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":"packages/ui/src/pages/home/components/network-logs.tsx"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aff521294b5985aa941f0d1764684b5440cc0e9d3e1850e36f6864ff7bb03cb"}},{"ruleId":"D1","level":"warning","message":{"text":"index.chatWithGateway (cyclomatic 37): index.chatWithGateway has cyclomatic complexity 37 (threshold 15). Of this number, 35 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":10458}}}],"partialFingerprints":{"codehealthFindingId/v1":"c92cd5bb12cb741e73325834d86f4fef11b7805bff691962dc49ed3bdb615fb0"}},{"ruleId":"D1","level":"warning","message":{"text":"providers.ProvidersView (cyclomatic 37): providers.ProvidersView has cyclomatic complexity 37 (threshold 15). 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 items inside it that branch (a function literal at line 165, a function literal at line 179, a function literal at line 48, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"12635a8438f1abb8692899f87ef33640eb5fd4756f947d6282aa4edfc2b12bc7"}},{"ruleId":"D1","level":"warning","message":{"text":"providers.ProviderModelPicker (cyclomatic 36): providers.ProviderModelPicker has cyclomatic complexity 36 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 14 belong to 7 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":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":3900}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a0484cb00c9f54c2014f0658d0040dd5b1e79a31efa0be3dacd4bc913907325"}},{"ruleId":"D1","level":"warning","message":{"text":"providers.OpenRouterProviderBlacklistSelect (cyclomatic 36): providers.OpenRouterProviderBlacklistSelect has cyclomatic complexity 36 (threshold 15). Most of this is not in the body itself: 14 of the 36 points are its own statements and the rest belongs to 9 function items inside it that branch (loadProviders, a function literal at line 4323, a function literal at line 4514, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":4272}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a19c721580e62ac1f8dc95eb9537b49d0eac77e15a2ff48fb75fa872d6e4575"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAiToolHubSearchAgent.search (cyclomatic 35): OpenAiToolHubSearchAgent.search 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":"packages/core/src/mcp/toolhub-mcp.ts"},"region":{"startLine":1467}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a5a8bed9fea1779e92320647bf9e652f9c4b74a793ced0462fc148d1086d8d2"}},{"ruleId":"D1","level":"warning","message":{"text":"opencode.readOpenCodeCatalog (cyclomatic 34): opencode.readOpenCodeCatalog 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":"packages/core/src/agents/local-providers/opencode.ts"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa5e82c29657661c3b889484da9e7ce92ac624f75bd142e7b150cd888efcb521"}},{"ruleId":"D1","level":"warning","message":{"text":"dashboard.ProviderAccountsOverview (cyclomatic 34): dashboard.ProviderAccountsOverview has cyclomatic complexity 34 (threshold 15). Most of this is not in the body itself: 12 of the 34 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 2717, finishAccountCardSort, a function literal at line 2695, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":2608}}}],"partialFingerprints":{"codehealthFindingId/v1":"71734e60f18b7f45d1a0dacdb216cad7cf41714937946b3efb9d0424c0d2b2e7"}},{"ruleId":"D1","level":"warning","message":{"text":"extensions.wrapperPluginCapability (cyclomatic 33): extensions.wrapperPluginCapability has cyclomatic complexity 33 (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. This is NOT this file\u0027s highest cyclomatic complexity: extensions.pluginPermissionAlias (cyclomatic 40) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/extensions.ts"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a50b971c6d6bd28aab4113d95b975306c819ad3dd7c77528ac72c82a1790203"}},{"ruleId":"D1","level":"warning","message":{"text":"providers.ProviderDeepLinkDialog (cyclomatic 33): providers.ProviderDeepLinkDialog 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":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"09cb8ad3ace9596cd08d0e93c4bd1f499f1de4df62fc4d2fe785611c37279d71"}},{"ruleId":"D1","level":"warning","message":{"text":"providers.LocalAgentProviderImportPanel (cyclomatic 32): providers.LocalAgentProviderImportPanel 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 items inside it that branch (a function literal at line 1481, importCandidate, a function literal at line 1391, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":1372}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fc105929078152e9488af48e48b4fa68b31484541e4c731121de690fed1d743"}},{"ruleId":"D1","level":"warning","message":{"text":"GatewayService.startGateway (cyclomatic 31): GatewayService.startGateway 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":"packages/core/src/gateway/application/gateway-service.ts"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"26592a2dbccc8feb67926ad0bd54bb0f0942405a3244379854a678ccca9483ad"}},{"ruleId":"D1","level":"warning","message":{"text":"tools.mediaToolBindingsForConfig (cyclomatic 31): tools.mediaToolBindingsForConfig has cyclomatic complexity 31 (threshold 15). Of this number, 27 points are the body\u0027s own statements and 4 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":"packages/core/src/media/tools.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f3c1b40d7f420bacb1824a9ffd4c4eae6210801d30b5cc152ce2ab56d6fd3f7"}},{"ruleId":"D1","level":"warning","message":{"text":"index.connectGatewayChatStreamResponse (cyclomatic 31): index.connectGatewayChatStreamResponse has cyclomatic complexity 31 (threshold 15). Most of this is not in the body itself: 1 of the 31 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 10588, 10605). 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":10587}}}],"partialFingerprints":{"codehealthFindingId/v1":"0498abf4243d8d40a2a3d370f1547c6622cdaff34f984b389e2d67b1938e7542"}},{"ruleId":"D1","level":"warning","message":{"text":"index.isOnlineClaudeDesignProxyRoutePath (cyclomatic 31): index.isOnlineClaudeDesignProxyRoutePath has cyclomatic complexity 31 (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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":14269}}}],"partialFingerprints":{"codehealthFindingId/v1":"91dead5d46919e1b3bf216d38d9fe4dab858469751cfed8229a85e58362497dd"}},{"ruleId":"D1","level":"warning","message":{"text":"providers.createProviderAccountDraftFromConfig (cyclomatic 31): providers.createProviderAccountDraftFromConfig has cyclomatic complexity 31 (threshold 15). Of this number, 26 points are the body\u0027s own statements and 5 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":"packages/ui/src/pages/home/shared/providers.ts"},"region":{"startLine":1202}}}],"partialFingerprints":{"codehealthFindingId/v1":"070a1ee9c1e43c1f8f5d35c990b3bc16523f3b50e3403dc751296c386b1907ef"}},{"ruleId":"D1","level":"warning","message":{"text":"network-logs.useLogBodyWorkerView (cyclomatic 31): network-logs.useLogBodyWorkerView has cyclomatic complexity 31 (threshold 15). Most of this is not in the body itself: 1 of the 31 points is its own statement and the rest belongs to 7 function literals inside it that branch (lines 1571, 1599, 1657, \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":"packages/ui/src/pages/home/components/network-logs.tsx"},"region":{"startLine":1554}}}],"partialFingerprints":{"codehealthFindingId/v1":"2310d8e22ca4a747756b4be4a34c886d17aaa2a8c03eab870848b2026ae7c811"}},{"ruleId":"D1","level":"warning","message":{"text":"shared.stripJsonCommentsAndTrailingCommas (cyclomatic 30): shared.stripJsonCommentsAndTrailingCommas 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":"packages/core/src/agents/local-providers/shared.ts"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae82d48d5b515b188c80f78717c98825e1915708975d7b3398c03ad26e6b9ad4"}},{"ruleId":"D1","level":"warning","message":{"text":"providers.ProviderPresetCombobox (cyclomatic 30): providers.ProviderPresetCombobox has cyclomatic complexity 30 (threshold 15). Most of this is not in the body itself: 11 of the 30 points are its own statements and the rest belongs to 10 function items inside it that branch (a function literal at line 981, a function literal at line 1080, a function literal at line 1026, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":944}}}],"partialFingerprints":{"codehealthFindingId/v1":"7610d9a29dce6ec8d24111c485b9f2b3972701e60eed0b5a0195c584565854c9"}},{"ruleId":"D1","level":"warning","message":{"text":"update.UpdateDialog (cyclomatic 30): update.UpdateDialog has cyclomatic complexity 30 (threshold 15). Of this number, 28 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":"packages/ui/src/pages/home/components/update.tsx"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce91a27e0a81901e06936ea23a8ae160e480e8096ec5b78d241b0111ecbf9081"}},{"ruleId":"D1","level":"warning","message":{"text":"network-logs.LogExpandedDetails (cyclomatic 30): network-logs.LogExpandedDetails has cyclomatic complexity 30 (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":"packages/ui/src/pages/home/components/network-logs.tsx"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fa693b4710cd121bab25cdfa7194e56174a03bfc46adf45ccde5d3738101391"}},{"ruleId":"D1","level":"warning","message":{"text":"normalizeProjectStoreData (cyclomatic 30): normalizeProjectStoreData 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":7966}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d3da18da24af3a751c610fac557f88d8e0e60499c9dffeff4a33a5dc8218ac6"}},{"ruleId":"D1","level":"warning","message":{"text":"normalizeCloudflarePagesConfig (cyclomatic 30): normalizeCloudflarePagesConfig 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":16381}}}],"partialFingerprints":{"codehealthFindingId/v1":"50424299f9edfde3ca76502399313f4d49d99cad4ccc404fa8c9886ba1ae6da0"}},{"ruleId":"D1","level":"warning","message":{"text":"toolhub-mcp.normalizeServerConfig (cyclomatic 29): toolhub-mcp.normalizeServerConfig 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":"packages/core/src/mcp/toolhub-mcp.ts"},"region":{"startLine":1852}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d62edf380018c5f6f1c1f5c329124e725f66600a044203d49775a947235cd50"}},{"ruleId":"D1","level":"warning","message":{"text":"executors.isRestrictedIpAddress (cyclomatic 29): executors.isRestrictedIpAddress has cyclomatic complexity 29 (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":"packages/core/src/media/executors.ts"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ccbf844ae6f854db5f7b702406be9a658d840422dd3cacb1fb9f110e4eceec9"}},{"ruleId":"D1","level":"warning","message":{"text":"request-log-runtime.prepareRecordForQueue (cyclomatic 29): request-log-runtime.prepareRecordForQueue has cyclomatic complexity 29 (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":"packages/core/src/observability/request-log-runtime.ts"},"region":{"startLine":945}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed6016b0fd6f13b729f50f49fecbfacb71bb91af7ca02a79e503fbb22d95b2d5"}},{"ruleId":"D1","level":"warning","message":{"text":"request-log-store.assistantStreamText (cyclomatic 29): request-log-store.assistantStreamText 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":2697}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6358386fca758dc9fffb0d635210cfb450ce9d89466d22a84939b378a715eac"}},{"ruleId":"D1","level":"warning","message":{"text":"config-compiler.normalizeCoreGatewayVirtualModelProfile (cyclomatic 28): config-compiler.normalizeCoreGatewayVirtualModelProfile has cyclomatic complexity 28 (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":"packages/core/src/gateway/core-runtime/config-compiler.ts"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a24d9fe136d9a7b66c506ed376b39ffac4c2586cbea1f36a40c9b0b92fc8829"}},{"ruleId":"D1","level":"warning","message":{"text":"service.applyCodexProfile (cyclomatic 28): service.applyCodexProfile has cyclomatic complexity 28 (threshold 15). Of this number, 26 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":"packages/core/src/profiles/service.ts"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef091e213e972c47d747f22a4e11facf6bab4d12de888d7729b97b94ba58022e"}},{"ruleId":"D1","level":"warning","message":{"text":"route-script-result.normalizeRouteScriptResult (cyclomatic 28): route-script-result.normalizeRouteScriptResult 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, 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":"packages/core/src/routing/route-script-result.ts"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"47fe5cb14726654dd4953854cf4abce7faf27030ca0f872c803b922503b78cd9"}},{"ruleId":"D1","level":"warning","message":{"text":"ProvidersViewDemo.ProvidersViewDemo (cyclomatic 27): ProvidersViewDemo.ProvidersViewDemo has cyclomatic complexity 27 (threshold 15). Most of this is not in the body itself: 7 of the 27 points are its own statements and the rest belongs to 7 function items inside it that branch (play, a function literal at line 104, play::waitFor, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/src/components/interactive/ProvidersViewDemo.tsx"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca7000747ff4120d0e34e4cb83ff7e14b280cec73b9eefd8f013732f7dbfc66f"}},{"ruleId":"D1","level":"warning","message":{"text":"grok.grokModelCatalogFromPayload (cyclomatic 27): grok.grokModelCatalogFromPayload 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":"packages/core/src/agents/local-providers/grok.ts"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"96a1d212e5b1e4cd9a2fa3d176103472e60189b7279fca74bd8c892c0f1ebae8"}},{"ruleId":"D1","level":"warning","message":{"text":"config.parseProviderModelMetadata (cyclomatic 27): config.parseProviderModelMetadata has cyclomatic complexity 27 (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. This is NOT this file\u0027s highest cyclomatic complexity: config.gatewayPluginPermissionAlias (cyclomatic 36) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":1532}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d9e3afd329aaae7bd5da76cc8cab12875799166f22e112114bf1347cb963231"}},{"ruleId":"D1","level":"warning","message":{"text":"index.handleOrganizationApi (cyclomatic 27): index.handleOrganizationApi 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":4002}}}],"partialFingerprints":{"codehealthFindingId/v1":"7338636f0b536455e1ab8b691ebe4e8059936671999b8dd7c9fb7f19769a6859"}},{"ruleId":"D1","level":"warning","message":{"text":"index.normalizeQuestionsV2Question (cyclomatic 27): index.normalizeQuestionsV2Question 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":12811}}}],"partialFingerprints":{"codehealthFindingId/v1":"e672b950d8ca90a4da77ef996b4edbc1500e76f2ba584b8274d509d01839c841"}},{"ruleId":"D1","level":"warning","message":{"text":"fusion-config.fusionBuiltinToolArtifacts (cyclomatic 26): fusion-config.fusionBuiltinToolArtifacts 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":"packages/core/src/mcp/fusion-config.ts"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dfd49666a08142919754a9006657172a4f313269cace64cb8b7601f3ca48947"}},{"ruleId":"D1","level":"warning","message":{"text":"index.handleClaudeShipCodeApi (cyclomatic 26): index.handleClaudeShipCodeApi has cyclomatic complexity 26 (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. This is NOT this file\u0027s highest cyclomatic complexity: index.callDesignMcpTool (cyclomatic 27) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":5035}}}],"partialFingerprints":{"codehealthFindingId/v1":"63afef1f7c14c90d88a7ad9416ec0329b6670f19989ebea5d17e2aa09b9e29fe"}},{"ruleId":"D1","level":"warning","message":{"text":"dialog.Dialog (cyclomatic 26): dialog.Dialog has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 3 of the 26 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 91, 71, 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":"packages/ui/src/components/ui/dialog.tsx"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d2e58e55b96534bed194948804ad43d1a99d50c439f941d8a20b207053067cc"}},{"ruleId":"D1","level":"warning","message":{"text":"routing.RoutingView (cyclomatic 26): routing.RoutingView has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 5 of the 26 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 104, 146, 155, \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":"packages/ui/src/pages/home/components/routing.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"a56715eee8cd928500bf7432ffd2018fc8335d977e2559fd1a33ff33178de124"}},{"ruleId":"D1","level":"warning","message":{"text":"serveAsset (cyclomatic 26): serveAsset 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, 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. This is NOT this file\u0027s highest cyclomatic complexity: callDesignMcpTool (cyclomatic 27) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":2475}}}],"partialFingerprints":{"codehealthFindingId/v1":"1516899198b9bffb1e135613499da7bdffdebff5f6a5eddb40868e0d57931703"}},{"ruleId":"D1","level":"warning","message":{"text":"claude-code-router-plugin.routerRuleConditionMatches (cyclomatic 25): claude-code-router-plugin.routerRuleConditionMatches 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":"packages/core/src/gateway/claude-code-router-plugin.ts"},"region":{"startLine":1390}}}],"partialFingerprints":{"codehealthFindingId/v1":"4415ddb9aa59a1269700ad8e26d071feeae45816449116f27d70cd4cd1c3766c"}},{"ruleId":"D1","level":"warning","message":{"text":"service.resolveProviderMediaTarget (cyclomatic 25): service.resolveProviderMediaTarget 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":"packages/core/src/media/service.ts"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ed7d963b317ebca1eb9f6a024119f7d0be319d4927e1bc9f0b4b24329706c84"}},{"ruleId":"D1","level":"warning","message":{"text":"request-log-store.collectToolCalls (cyclomatic 25): request-log-store.collectToolCalls 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":2951}}}],"partialFingerprints":{"codehealthFindingId/v1":"793a0a94e442c1605cf67670e5587d8c24f6fd29a35ff09797e731f9a07d2052"}},{"ruleId":"D1","level":"warning","message":{"text":"index.handleClaudeShipBakuSessionApi (cyclomatic 25): index.handleClaudeShipBakuSessionApi 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. This is NOT this file\u0027s highest cyclomatic complexity: index.callDesignMcpTool (cyclomatic 27) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":5314}}}],"partialFingerprints":{"codehealthFindingId/v1":"06b0cfa56877f3e7f442e59fa683af3139380f3bf6a13168267ec5fa75e6a2f4"}},{"ruleId":"D1","level":"warning","message":{"text":"browser-automation-mcp.detectPageHandoff (cyclomatic 25): browser-automation-mcp.detectPageHandoff 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":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":2516}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbbe47845100d02398737d806aab30415791253d967a99a5266811a22f57834d"}},{"ruleId":"D1","level":"warning","message":{"text":"providers.providerJsonConnectorDraftPartsFromDraft (cyclomatic 25): providers.providerJsonConnectorDraftPartsFromDraft has cyclomatic complexity 25 (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":"packages/ui/src/pages/home/shared/providers.ts"},"region":{"startLine":1300}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d8beb9f73cc2538ec2dd53c161f545e5b277a41d142e0d6dde7baae335a7a3d"}},{"ruleId":"D1","level":"warning","message":{"text":"providers.ProviderConnectionStatusPanel (cyclomatic 25): providers.ProviderConnectionStatusPanel 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":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":1739}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2de3d5f561feda5235e0a86d4e863e724370994e8959ea578fea91196e8c006"}},{"ruleId":"D1","level":"warning","message":{"text":"profiles.ClaudeConfigEditorContent (cyclomatic 25): profiles.ClaudeConfigEditorContent 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 8 function items inside it that branch (a function literal at line 1473, a function literal at line 1368, a function literal at line 1376, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/profiles.tsx"},"region":{"startLine":1337}}}],"partialFingerprints":{"codehealthFindingId/v1":"663717f71e082705870a728daee6f09d667a2030ada0c00edb6580a89ac5012b"}},{"ruleId":"D1","level":"warning","message":{"text":"media-preview-bridge.loadCodexMediaArtifact (cyclomatic 24): media-preview-bridge.loadCodexMediaArtifact 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":"packages/core/src/agents/codex/media-preview-bridge.ts"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b75d30a6f9e092c25ce9adbf34e4b741cc7c142d59771ac97ede4fb8223fea4"}},{"ruleId":"D1","level":"warning","message":{"text":"media-preview-bridge.codexMediaPreviewPageBootstrap::receive (cyclomatic 24): media-preview-bridge.codexMediaPreviewPageBootstrap::receive 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":"packages/core/src/agents/codex/media-preview-bridge.ts"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"feda8e592431cf671a3d9c71693aa249de4ac21e480d1a238d0b1e14e84e6218"}},{"ruleId":"D1","level":"warning","message":{"text":"existing-gateway-probe.reloadExistingCcrGatewayConfig (cyclomatic 24): existing-gateway-probe.reloadExistingCcrGatewayConfig 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":"packages/core/src/gateway/existing-gateway-probe.ts"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"f40eec2916eecb036fe172b0ae05cddb69c99ff49ae38a95df0a554e847be925"}},{"ruleId":"D1","level":"warning","message":{"text":"error-detail.appendAggregateErrorAttemptSummary (cyclomatic 24): error-detail.appendAggregateErrorAttemptSummary has cyclomatic complexity 24 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 6 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":"packages/core/src/gateway/http/error-detail.ts"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"9afd15ac4242bc4b5b4a9f23063f712d7ab200f1bccdf892e1cb48ac8339bc9d"}},{"ruleId":"D1","level":"warning","message":{"text":"fusion-vision-mcp.analyzeVision (cyclomatic 24): fusion-vision-mcp.analyzeVision 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":"packages/core/src/mcp/fusion-vision-mcp.ts"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"afb3359107f43bde4ee90f358d3c64ace059cf71fa211d256791eec4dc25d325"}},{"ruleId":"D1","level":"warning","message":{"text":"route-trace.boundedPreview (cyclomatic 24): route-trace.boundedPreview 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":"packages/core/src/observability/route-trace.ts"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5840a90dcdf42d4a0934a668a2cdb098f4dc943ed87dee5bec8d0140e039fb7"}},{"ruleId":"D1","level":"warning","message":{"text":"claude-design-window.routeClaudeDesignFetchRequest (cyclomatic 24): claude-design-window.routeClaudeDesignFetchRequest has cyclomatic complexity 24 (threshold 15). 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, 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":"packages/electron/src/main/claude-design-window.ts"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2a46b69d9f4ca2c451a349cdc28cee4f25fdf5c9bafae0a346c710e08a2b444"}},{"ruleId":"D1","level":"warning","message":{"text":"logs.collectOpenAiStreamToolCalls (cyclomatic 24): logs.collectOpenAiStreamToolCalls has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 2 of the 24 points are its own statements and the rest belongs to one function literal inside it that branches (line 462). 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":"packages/ui/src/pages/home/shared/logs.ts"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"10bf6e1c23c22b151c557341a3083b3e397c8b4dc57648b2206734593493edf1"}},{"ruleId":"D1","level":"warning","message":{"text":"zcode.zcodeProviderModelCatalog (cyclomatic 23): zcode.zcodeProviderModelCatalog 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":"packages/core/src/agents/local-providers/zcode.ts"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb1277662ef64f97c39a8e49e7f147b55ba8548a5817d1d794a97fa64eeda9b8"}},{"ruleId":"D1","level":"warning","message":{"text":"fusion-config.fusionFallbackToolDefinitions (cyclomatic 23): fusion-config.fusionFallbackToolDefinitions 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":"packages/core/src/mcp/fusion-config.ts"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"60b0acfc3ee013029c061f137acffece9b0373e354a14b8be56d618f483c9c3c"}},{"ruleId":"D1","level":"warning","message":{"text":"request-log-store.extractUsageSnapshot (cyclomatic 23): request-log-store.extractUsageSnapshot 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":6348}}}],"partialFingerprints":{"codehealthFindingId/v1":"556ca4c4c37cfab6293682e3ed80ff6fdd57f8ec834b9f93cee4706d2705c63c"}},{"ruleId":"D1","level":"warning","message":{"text":"index.handleClaudeShipSecrets (cyclomatic 23): index.handleClaudeShipSecrets has cyclomatic complexity 23 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 4 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. This is NOT this file\u0027s highest cyclomatic complexity: index.callDesignMcpTool (cyclomatic 27) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":7486}}}],"partialFingerprints":{"codehealthFindingId/v1":"77cb4406dcecc0b4dd7103517bb4d91bef802990929f58b1cba4f2795d72893b"}},{"ruleId":"D1","level":"warning","message":{"text":"index.createDesignRestProject (cyclomatic 23): index.createDesignRestProject has cyclomatic complexity 23 (threshold 15). Of this number, 21 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. This is NOT this file\u0027s highest cyclomatic complexity: index.callDesignMcpTool (cyclomatic 27) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":7662}}}],"partialFingerprints":{"codehealthFindingId/v1":"79ef78f447483ddd7b327482da6bb623e41edfdb55061f0db1ddecf2f11fd2f4"}},{"ruleId":"D1","level":"warning","message":{"text":"index.gatewaySseEventTextDelta (cyclomatic 23): index.gatewaySseEventTextDelta has cyclomatic complexity 23 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 8 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. This is NOT this file\u0027s highest cyclomatic complexity: index.callDesignMcpTool (cyclomatic 27) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":10833}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc1756b33bcc1daa0101ec0bf6b790a035591f06fbc1cc20cbca652c8eaa949a"}},{"ruleId":"D1","level":"warning","message":{"text":"model-catalog.documentedReasoningProfile (cyclomatic 22): model-catalog.documentedReasoningProfile 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":"packages/core/src/agents/codex/model-catalog.ts"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b3975e724cac2341aabaf58adf272593cef85762fd03d9844d7dde9560476cf"}},{"ruleId":"D1","level":"warning","message":{"text":"config.parseProviderCapabilityProtocol (cyclomatic 22): config.parseProviderCapabilityProtocol 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. This is NOT this file\u0027s highest cyclomatic complexity: config.gatewayPluginPermissionAlias (cyclomatic 36) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":1811}}}],"partialFingerprints":{"codehealthFindingId/v1":"20a9ce73b2b2c7f010daf1590c5d9b589d3d892105d83c0c415e2282637e338b"}},{"ruleId":"D1","level":"warning","message":{"text":"deep-link.normalizeDeepLinkModelMetadata (cyclomatic 22): deep-link.normalizeDeepLinkModelMetadata 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":"packages/core/src/contracts/deep-link.ts"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"26d75d0269e6c4292ba134f1840ed5bff6b97329a196e5096c62ba63143d2d33"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeCodeRouterPlugin.routeRequest (cyclomatic 22): ClaudeCodeRouterPlugin.routeRequest 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":"packages/core/src/gateway/claude-code-router-plugin.ts"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd31f99086565b93d7f20dc0b03f06fcf7e282ba3e1c89bae7fee6c18bda6ac3"}},{"ruleId":"D1","level":"warning","message":{"text":"claude-code-router-plugin.resolveRouterRule (cyclomatic 22): claude-code-router-plugin.resolveRouterRule 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":"packages/core/src/gateway/claude-code-router-plugin.ts"},"region":{"startLine":1231}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3059328408d91911b2e7705d690731ebfd50788330cf4995f18dd91ae99cb65"}},{"ruleId":"D1","level":"warning","message":{"text":"discovery.claudeCodeWebSearchToolResultTexts (cyclomatic 22): discovery.claudeCodeWebSearchToolResultTexts 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":"packages/core/src/gateway/features/hosted-web-search/discovery.ts"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2c70a455f282295104d8c340ae399b21ccff6aeb9d314f58abb1a91c0f717c0"}},{"ruleId":"D1","level":"warning","message":{"text":"response-transform.transformAnthropicWebSearchProtocolSseText (cyclomatic 22): response-transform.transformAnthropicWebSearchProtocolSseText has cyclomatic complexity 22 (threshold 15). Of this number, 17 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":"packages/core/src/gateway/features/hosted-web-search/response-transform.ts"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ab8eda9d2f232dc88fdd72e02037c514bc800ebd5191518b0982829d2fc150c"}},{"ruleId":"D1","level":"warning","message":{"text":"pricing-service.providerModelPrefixes (cyclomatic 22): pricing-service.providerModelPrefixes 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":"packages/core/src/models/pricing-service.ts"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"a569242988002e9d9ab71f107c2dc09b63c9bee7067556d7aaffbb56428e0cfb"}},{"ruleId":"D1","level":"warning","message":{"text":"RawTraceSynchronizer.processStoredBundle (cyclomatic 22): RawTraceSynchronizer.processStoredBundle 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":"packages/core/src/observability/raw-trace-sync.ts"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"b704c6ea131bbf515a288b842fe2a079af3e1b079994ec32de9957b20b993841"}},{"ruleId":"D1","level":"warning","message":{"text":"RequestLogRuntime.enqueueRawTrace (cyclomatic 22): RequestLogRuntime.enqueueRawTrace 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":"packages/core/src/observability/request-log-runtime.ts"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b40c9c70ac01780f2529a5c699d66c719ecd55e24e41621f4b2a0b654267560"}},{"ruleId":"D1","level":"warning","message":{"text":"request-log-store.collectToolCallPayloads (cyclomatic 22): request-log-store.collectToolCallPayloads 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":3285}}}],"partialFingerprints":{"codehealthFindingId/v1":"e95f4800f1c66da5fbd31bed6f880e9e0e71a422d196135213fc05fd893c7cb7"}},{"ruleId":"D1","level":"warning","message":{"text":"GatewayPluginService.applyGatewayRequestTransforms (cyclomatic 22): GatewayPluginService.applyGatewayRequestTransforms 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":"packages/core/src/plugins/service.ts"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f7b24c753c1dbb6982d9ace36d153c9733c6126c70f9bcc4c27df9014d23d14"}},{"ruleId":"D1","level":"warning","message":{"text":"WindowsManager.openPluginAppWindow (cyclomatic 22): WindowsManager.openPluginAppWindow has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 8 of the 22 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 229, 219, 177, \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":"packages/electron/src/main/windows.ts"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"897a5a4f874e3d0a8509e651b8d6565da5e23d01e9c77421e7a857eb11945de0"}},{"ruleId":"D1","level":"warning","message":{"text":"virtual-models.virtualModelProfileFromDraft (cyclomatic 22): virtual-models.virtualModelProfileFromDraft has cyclomatic complexity 22 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 8 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":"packages/ui/src/pages/home/shared/virtual-models.ts"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7caafd2798036f6f8748ac35f81871cb31725966fc4702f18effdb2e68b8ccd"}},{"ruleId":"D1","level":"warning","message":{"text":"profiles.AgentSelectControl (cyclomatic 22): profiles.AgentSelectControl 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 7 function literals inside it that branch (lines 574, 641, 610, \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":"packages/ui/src/pages/home/components/profiles.tsx"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc58654d3d585c1e2028be226442623c45f58127c61836dd72ccafb9b17d00ee"}},{"ruleId":"D1","level":"warning","message":{"text":"profiles.BotGatewaySelectForm (cyclomatic 22): profiles.BotGatewaySelectForm 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 4 function items inside it that branch (a function literal at line 1971, a function literal at line 2001, updateEnabled, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/profiles.tsx"},"region":{"startLine":1944}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9386b422b95f4f2e0fb90f1ec051e3b4d1b8554a625fe64de7cd3cce9226099"}},{"ruleId":"D1","level":"warning","message":{"text":"update.updatePrimaryAction (cyclomatic 22): update.updatePrimaryAction 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":"packages/ui/src/pages/home/components/update.tsx"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"d60c7c6ef971cbc5caf0315618821e8fa532cde72a7148fad9a9ed94a16917d9"}},{"ruleId":"D1","level":"warning","message":{"text":"network-logs.JsonTreeNode (cyclomatic 22): network-logs.JsonTreeNode 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":"packages/ui/src/pages/home/components/network-logs.tsx"},"region":{"startLine":2506}}}],"partialFingerprints":{"codehealthFindingId/v1":"501a8ed189a4b6a11a63bbb39b6ffd48033e8663255f20d4ff13ac4a905b451e"}},{"ruleId":"D1","level":"warning","message":{"text":"dashboard.ProviderAccountMeterLine (cyclomatic 22): dashboard.ProviderAccountMeterLine 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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":3440}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e550df0ef10a226c098eb9d333417c5aaf3c82ff83b84ade1d824bacd99557f"}},{"ruleId":"D1","level":"warning","message":{"text":"omeletteProjectFromRow (cyclomatic 22): omeletteProjectFromRow 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. This is NOT this file\u0027s highest cyclomatic complexity: callDesignMcpTool (cyclomatic 27) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":13502}}}],"partialFingerprints":{"codehealthFindingId/v1":"88a8749a0f511d3836baa0c07547ddc38091f4daf2cca1099909cdee5b192586"}},{"ruleId":"D1","level":"warning","message":{"text":"claude-code-router-plugin.resolveRouterConditionValue (cyclomatic 21): claude-code-router-plugin.resolveRouterConditionValue 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":"packages/core/src/gateway/claude-code-router-plugin.ts"},"region":{"startLine":1440}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceda0932c3d06da154a8499dc6426d6cce830b8d1f0645c8fb5a23c298f88dbf"}},{"ruleId":"D1","level":"warning","message":{"text":"context-archive-continuation.openAiResponsesResponseFromSseEvents (cyclomatic 21): context-archive-continuation.openAiResponsesResponseFromSseEvents 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 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":"packages/core/src/gateway/features/context-archive-continuation.ts"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"85ee220a6eeb4b841ed51861a946a425f18f4e86168aed229d1ff79e62f8206c"}},{"ruleId":"D1","level":"warning","message":{"text":"executor.resolveProviderCredentialRoutingTarget (cyclomatic 21): executor.resolveProviderCredentialRoutingTarget 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":"packages/core/src/gateway/upstream/executor.ts"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a36c67c103eca87dfde878488b1d129d68d7e79b223c07294b7204fb830dcb5"}},{"ruleId":"D1","level":"warning","message":{"text":"fusion-vision-mcp.sniffImageType (cyclomatic 21): fusion-vision-mcp.sniffImageType 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":"packages/core/src/mcp/fusion-vision-mcp.ts"},"region":{"startLine":997}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c22f7e65731983f7295d2730faa7a6de5570762c9987cfe8b6717f5b021d084"}},{"ruleId":"D1","level":"warning","message":{"text":"RequestLogStore.writeBatch (cyclomatic 21): RequestLogStore.writeBatch 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2aeb45a39506fd40a0993dd0c9b0bfa442879f994a14da47c4b20afbbfeed89"}},{"ruleId":"D1","level":"warning","message":{"text":"launch-service.profileBotRuntimeStatus (cyclomatic 21): launch-service.profileBotRuntimeStatus 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":"packages/core/src/profiles/launch-service.ts"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"7408b9e5650f18fc5e275a67bc782a569ee2e5ab37a29f6f490289ce99022d6d"}},{"ruleId":"D1","level":"warning","message":{"text":"model-catalog.catalogProviderModelRank (cyclomatic 21): model-catalog.catalogProviderModelRank 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":"packages/core/src/providers/model-catalog.ts"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"78dbd8f96359b2333bbf8eaa2ee15e8c5839ef88bf6745254f30a9ee5dec8ea6"}},{"ruleId":"D1","level":"warning","message":{"text":"rewrite.compileRouteRewrite (cyclomatic 21): rewrite.compileRouteRewrite 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":"packages/core/src/routing/rewrite.ts"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f9876243b24ea0536da90bd1c74db6b972b60332e4dbab3f47ae5323b6970c1"}},{"ruleId":"D1","level":"warning","message":{"text":"store.extractUsageSnapshot (cyclomatic 21): store.extractUsageSnapshot 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":"packages/core/src/usage/store.ts"},"region":{"startLine":1140}}}],"partialFingerprints":{"codehealthFindingId/v1":"18cf7d7d5dc3cc9d8d7802ef4fa1de0f35ff77dbb53dc87c1643cd90792cb034"}},{"ruleId":"D1","level":"warning","message":{"text":"index.resolveDesignIndexAssets (cyclomatic 21): index.resolveDesignIndexAssets 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. This is NOT this file\u0027s highest cyclomatic complexity: index.callDesignMcpTool (cyclomatic 27) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":2995}}}],"partialFingerprints":{"codehealthFindingId/v1":"a30b3a285bf1a3bb64a289b9b3b709632c79cc34b658db5915c9e7a5040d1e9d"}},{"ruleId":"D1","level":"warning","message":{"text":"routing.normalizeRouterRules (cyclomatic 21): routing.normalizeRouterRules has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 2 of the 21 points are its own statements and the rest belongs to one function literal inside it that branches (line 109). 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":"packages/ui/src/pages/home/shared/routing.ts"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"7035e8432b9ebb4f940892e53ee193521ae1b6636d347c6dc200826c8c69290c"}},{"ruleId":"D1","level":"warning","message":{"text":"providers.providerCredentialsFromDraft (cyclomatic 21): providers.providerCredentialsFromDraft 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":"packages/ui/src/pages/home/shared/providers.ts"},"region":{"startLine":945}}}],"partialFingerprints":{"codehealthFindingId/v1":"d051021572138f743d07d4a9fb9f976315f23fc2636f3831ecac8da5b5444f25"}},{"ruleId":"D1","level":"warning","message":{"text":"dialog-stack.AppDialogStack (cyclomatic 21): dialog-stack.AppDialogStack 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":"packages/ui/src/pages/home/components/dialog-stack.tsx"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"5138ade8265fc75e22182e29a2b4ac60b5411dea1159b8e52ac6cb5aa78c07ab"}},{"ruleId":"D1","level":"warning","message":{"text":"network-logs.NetworkingView (cyclomatic 21): network-logs.NetworkingView has cyclomatic complexity 21 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 6 belong to 4 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":"packages/ui/src/pages/home/components/network-logs.tsx"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6c8d40fa3dfea9f5f043b1d8f83f28d33e4b01088c9af4ae2994dc50d777d3b"}},{"ruleId":"D1","level":"warning","message":{"text":"dashboard.AgentTrajectoryNodePreview (cyclomatic 21): dashboard.AgentTrajectoryNodePreview 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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":5642}}}],"partialFingerprints":{"codehealthFindingId/v1":"f96301dc6cba6d1a6936cc70346b06c7f194e77969c0761d070a06bcc61db570"}},{"ruleId":"D1","level":"warning","message":{"text":"kimi.readKimiConfiguredProviders (cyclomatic 20): kimi.readKimiConfiguredProviders has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 3 of the 20 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 267, 263, 264). 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":"packages/core/src/agents/local-providers/kimi.ts"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"40eb455a852be0d17e169cdc0ef472f14efe031213d93a31b899fd83994b7d78"}},{"ruleId":"D1","level":"warning","message":{"text":"kimi.splitTomlArray (cyclomatic 20): kimi.splitTomlArray 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":"packages/core/src/agents/local-providers/kimi.ts"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"90b00da7e49937e015c3a4c8b8731a5e7472c946b0b0d959d3bf56eb4c138dbd"}},{"ruleId":"D1","level":"warning","message":{"text":"config.parseOpenRouterDiscountRouting (cyclomatic 20): config.parseOpenRouterDiscountRouting 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. This is NOT this file\u0027s highest cyclomatic complexity: config.gatewayPluginPermissionAlias (cyclomatic 36) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":1572}}}],"partialFingerprints":{"codehealthFindingId/v1":"695bb38042e86bd2fe36280f061a834e4abd8d44654b99a010344a30ef53416d"}},{"ruleId":"D1","level":"warning","message":{"text":"config.parseRouterRules (cyclomatic 20): config.parseRouterRules has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 2 of the 20 points are its own statements and the rest belongs to one function literal inside it that branches (line 1981). 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. This is NOT this file\u0027s highest cyclomatic complexity: config.gatewayPluginPermissionAlias (cyclomatic 36) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":1975}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc35adf7209d78704643d33b2a080e64efd2c018e747f33dd582087bf1d2b579"}},{"ruleId":"D1","level":"warning","message":{"text":"context-archive-continuation.anthropicMessagesResponseFromSseEvents (cyclomatic 20): context-archive-continuation.anthropicMessagesResponseFromSseEvents 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":"packages/core/src/gateway/features/context-archive-continuation.ts"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"16876e572c9762467ae5ca374f42c787274d2f8614e73c2d0ed935a496a54b7b"}},{"ruleId":"D1","level":"warning","message":{"text":"marketplace.normalizeMarketplaceEntry (cyclomatic 20): marketplace.normalizeMarketplaceEntry 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. This is NOT this file\u0027s highest cyclomatic complexity: marketplace.pluginPermissionAlias (cyclomatic 40) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/plugins/marketplace.ts"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a2addcbf796ca74d12ed250f1e668ff3fa103ac3b0ee8529007d024c634acda"}},{"ruleId":"D1","level":"warning","message":{"text":"GatewayPluginService.applyPluginRegistration (cyclomatic 20): GatewayPluginService.applyPluginRegistration 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":"packages/core/src/plugins/service.ts"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"98ba781a4b14c1b495e8688e6f2cc63af4bea983569252c366dd034211ae14f5"}},{"ruleId":"D1","level":"warning","message":{"text":"service.applyClaudeCodeProfile (cyclomatic 20): service.applyClaudeCodeProfile 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":"packages/core/src/profiles/service.ts"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"c12703dc9578c1edcf08ad8f61893e89609b215e7c11b0baa913f38d439fba7e"}},{"ruleId":"D1","level":"warning","message":{"text":"model-catalog.buildCatalogIndex (cyclomatic 20): model-catalog.buildCatalogIndex 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, 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":"packages/core/src/providers/model-catalog.ts"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"06805ad6ffca7aa0ee839580ec53a14381a9e21b41707b64a7ad57447b2b5a88"}},{"ruleId":"D1","level":"warning","message":{"text":"index.mergeGatewaySsePayload (cyclomatic 20): index.mergeGatewaySsePayload 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. This is NOT this file\u0027s highest cyclomatic complexity: index.callDesignMcpTool (cyclomatic 27) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":10912}}}],"partialFingerprints":{"codehealthFindingId/v1":"d24920436837eef2305f7cb30f6a59e677e363550d4fc9b7c507079b63fb9002"}},{"ruleId":"D1","level":"warning","message":{"text":"index.isOnlineClaudeShipProxyRoutePath (cyclomatic 20): index.isOnlineClaudeShipProxyRoutePath 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. This is NOT this file\u0027s highest cyclomatic complexity: index.callDesignMcpTool (cyclomatic 27) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":14318}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d307a0877dbc94bfc2d5bbfbc7e6169da465cbf79a92f92edd53a7eace245d0"}},{"ruleId":"D1","level":"warning","message":{"text":"providers.parseProviderAccountDraft (cyclomatic 20): providers.parseProviderAccountDraft 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":"packages/ui/src/pages/home/shared/providers.ts"},"region":{"startLine":1090}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e7bdbea5f5ab56d5b29f3c300a7014a54778ed9f6c15134f3c2fc7ce9dd77df"}},{"ruleId":"D1","level":"warning","message":{"text":"logs.aggregateAnthropicStreamPayloads (cyclomatic 20): logs.aggregateAnthropicStreamPayloads 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":"packages/ui/src/pages/home/shared/logs.ts"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"2951e0e564afe41437aecd4b0c56dba023dc6fffa2f03bf0546f87067f5ad375"}},{"ruleId":"D1","level":"warning","message":{"text":"profiles.profileDraftValidation (cyclomatic 20): profiles.profileDraftValidation 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":"packages/ui/src/pages/home/components/profiles.tsx"},"region":{"startLine":1832}}}],"partialFingerprints":{"codehealthFindingId/v1":"e642bbc4e1dfd83f0c9cfb9a670f7c97ccd19a24af13307f4a0d11d84ea422d4"}},{"ruleId":"D1","level":"warning","message":{"text":"dashboard.TracePayloadPane (cyclomatic 20): dashboard.TracePayloadPane has cyclomatic complexity 20 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 5 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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":5762}}}],"partialFingerprints":{"codehealthFindingId/v1":"fddeb098823dd35696802a4b9538a030e673c23209e0c6a82c2fc5061ac00216"}},{"ruleId":"D1","level":"warning","message":{"text":"layout.MainLayout (cyclomatic 20): layout.MainLayout 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":"packages/ui/src/pages/home/components/layout.tsx"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a513939c870192e4d871c3ff53b272e7dad310d4984d4032dbb0102c3d91306"}},{"ruleId":"D1","level":"warning","message":{"text":"claudeShipSessionPayload (cyclomatic 20): claudeShipSessionPayload 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. This is NOT this file\u0027s highest cyclomatic complexity: callDesignMcpTool (cyclomatic 27) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":6264}}}],"partialFingerprints":{"codehealthFindingId/v1":"88edf86d5780139c25b84c6ca2a7973d828923ee06ef8dc91ac0b125a3edd00d"}},{"ruleId":"D1","level":"warning","message":{"text":"config.parseProxy (cyclomatic 19): config.parseProxy 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. This is NOT this file\u0027s highest cyclomatic complexity: config.gatewayPluginPermissionAlias (cyclomatic 36) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":2518}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1b5374ca118f1059de2abc9e847239a1feeb498e39cfa17aa27b0d1a2b60e67"}},{"ruleId":"D1","level":"warning","message":{"text":"config.parseGatewayPluginSurfaces (cyclomatic 19): config.parseGatewayPluginSurfaces has cyclomatic complexity 19 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 1 belongs to one function item 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. This is NOT this file\u0027s highest cyclomatic complexity: config.gatewayPluginPermissionAlias (cyclomatic 36) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":3168}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6e0e98b716bef2520ffb3cecfe5f31138eec574f1cdc79b41fdb3256e5fc850"}},{"ruleId":"D1","level":"warning","message":{"text":"protocol.appendFooterToJson (cyclomatic 19): protocol.appendFooterToJson 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":"packages/core/src/gateway/context-archive/protocol.ts"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f3d4f363662e37a87432ba3743d6acd059624cddc2e562cac1dcc35414f9eb6"}},{"ruleId":"D1","level":"warning","message":{"text":"router-plugin.createGatewayPlugin (cyclomatic 19): router-plugin.createGatewayPlugin 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 6 function literals inside it that branch (lines 385, 346, 221, \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":"packages/core/src/gateway/core-runtime/router-plugin.ts"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"860388fc04f9db68c034ed8875ced3b500a80a59d2bf5de42ebe2c1c92d0f58a"}},{"ruleId":"D1","level":"warning","message":{"text":"RequestLogStore.record (cyclomatic 19): RequestLogStore.record 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 one function item inside it that branches (insert). 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdd6295ba81fed2171557d5997c6d24ca9b7c41e1ec582cef340d279d28cd924"}},{"ruleId":"D1","level":"warning","message":{"text":"request-log-store.collectOpenAiStreamToolInput (cyclomatic 19): request-log-store.collectOpenAiStreamToolInput 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":3083}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9770c97f0c204e20cd9240e89cdfd3ba02fc9417ed2dcc25dc811f0ee58a941"}},{"ruleId":"D1","level":"warning","message":{"text":"request-log-store.detectSseEventError (cyclomatic 19): request-log-store.detectSseEventError 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":6247}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d04e2717b3a005c1ed67c031104f55de301a3b44ced764a4def1057b8beba8c"}},{"ruleId":"D1","level":"warning","message":{"text":"marketplace.parsePluginSurfaces (cyclomatic 19): marketplace.parsePluginSurfaces has cyclomatic complexity 19 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 1 belongs to one function item 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. This is NOT this file\u0027s highest cyclomatic complexity: marketplace.pluginPermissionAlias (cyclomatic 40) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/plugins/marketplace.ts"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2e131119b817c816efb37fe12d1005552fd22a92fdff2592c7dcafca2b6c206"}},{"ruleId":"D1","level":"warning","message":{"text":"account-service.kimiCodeUsageMeter (cyclomatic 19): account-service.kimiCodeUsageMeter 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":"packages/core/src/providers/account-service.ts"},"region":{"startLine":1186}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc0f2ced7d428a429e4973c9a0f7ee8e370e9d3055c8dee311fe28d904a8453c"}},{"ruleId":"D1","level":"warning","message":{"text":"account-service.localCodexAccountCredential (cyclomatic 19): account-service.localCodexAccountCredential has cyclomatic complexity 19 (threshold 15). 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, 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":"packages/core/src/providers/account-service.ts"},"region":{"startLine":1590}}}],"partialFingerprints":{"codehealthFindingId/v1":"72ad1640fb4803c5c40ea2db676475eeace2cf9e16bdbdd616cc8a848c612daf"}},{"ruleId":"D1","level":"warning","message":{"text":"index.mergeStoredMessagesIntoProjectChats (cyclomatic 19): index.mergeStoredMessagesIntoProjectChats has cyclomatic complexity 19 (threshold 15). 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. This is NOT this file\u0027s highest cyclomatic complexity: index.callDesignMcpTool (cyclomatic 27) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":8047}}}],"partialFingerprints":{"codehealthFindingId/v1":"a83c7bff9b28ef3690d6eca331e1531d46dc2d4c0a582d0477b5f25c539df606"}},{"ruleId":"D1","level":"warning","message":{"text":"index.gatewayHttpErrorMessage (cyclomatic 19): index.gatewayHttpErrorMessage 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. This is NOT this file\u0027s highest cyclomatic complexity: index.callDesignMcpTool (cyclomatic 27) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":10889}}}],"partialFingerprints":{"codehealthFindingId/v1":"bef6cba5195ed0ed2b4216822f86c4bcc2229ef2b7a76079d6781261420b9448"}},{"ruleId":"D1","level":"warning","message":{"text":"profiles.isProfileDraftSubmittable (cyclomatic 19): profiles.isProfileDraftSubmittable 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":"packages/ui/src/pages/home/shared/profiles.ts"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"934cd248051334ad0a99d622369767b2ec3d99fb6152975665d74b4cfff59ebe"}},{"ruleId":"D1","level":"warning","message":{"text":"profiles.normalizeBotGatewayConversationRef (cyclomatic 19): profiles.normalizeBotGatewayConversationRef 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":"packages/ui/src/pages/home/shared/profiles.ts"},"region":{"startLine":1248}}}],"partialFingerprints":{"codehealthFindingId/v1":"86092d67cf0f8564c3a8039a3c1b04b3b9fea7805c508b0b779422cfb6b7e52f"}},{"ruleId":"D1","level":"warning","message":{"text":"feedback.PersistenceFeedback (cyclomatic 19): feedback.PersistenceFeedback 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, 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":"packages/ui/src/pages/home/components/feedback.tsx"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"869c8ab62ec457022498cad43d64274645b81839096f4109c88db8fe93616241"}},{"ruleId":"D1","level":"warning","message":{"text":"dashboard.providerAccountCardResizeHandleIcon (cyclomatic 19): dashboard.providerAccountCardResizeHandleIcon 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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":3287}}}],"partialFingerprints":{"codehealthFindingId/v1":"20268817d8a2e2b37481cb9bd062384d47e96bcd1ebafccd0b7c7d9c2a1b1c8d"}},{"ruleId":"D1","level":"warning","message":{"text":"kimi.refreshKimiAuth (cyclomatic 18): kimi.refreshKimiAuth 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":"packages/core/src/agents/local-providers/kimi.ts"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a06033869af598182d5aabda9e846946061869778bb4c54964cdb58db73af21"}},{"ruleId":"D1","level":"warning","message":{"text":"config.parseProviderCredentials (cyclomatic 18): config.parseProviderCredentials has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 3 of the 18 points are its own statements and the rest belongs to one function literal inside it that branches (line 1713). 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. This is NOT this file\u0027s highest cyclomatic complexity: config.gatewayPluginPermissionAlias (cyclomatic 36) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":1707}}}],"partialFingerprints":{"codehealthFindingId/v1":"feefb0104533ef043cc94b44213d6e5c54f04a1ff17c73d8902b4f82575a13bf"}},{"ruleId":"D1","level":"warning","message":{"text":"config.parseBotGatewaySavedConfigs (cyclomatic 18): config.parseBotGatewaySavedConfigs 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 one function literal inside it that branches (line 2358). 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. This is NOT this file\u0027s highest cyclomatic complexity: config.gatewayPluginPermissionAlias (cyclomatic 36) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":2352}}}],"partialFingerprints":{"codehealthFindingId/v1":"8104ee1a7fd83e641f5bb275a489bec029da81d870188a13a9786e53002920e7"}},{"ruleId":"D1","level":"warning","message":{"text":"config.parseGatewayPlugins (cyclomatic 18): config.parseGatewayPlugins has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 3 of the 18 points are its own statements and the rest belongs to one function literal inside it that branches (line 2659). 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. This is NOT this file\u0027s highest cyclomatic complexity: config.gatewayPluginPermissionAlias (cyclomatic 36) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":2653}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9c9363ae2a3f44f3ece86a51f566ea24a04ac6bc05d11f7239547c291edf995"}},{"ruleId":"D1","level":"warning","message":{"text":"claude-code-router-plugin.resolveConfiguredRouteDecision (cyclomatic 18): claude-code-router-plugin.resolveConfiguredRouteDecision has cyclomatic complexity 18 (threshold 15). Of this number, 10 points are the body\u0027s own statements and 8 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":"packages/core/src/gateway/claude-code-router-plugin.ts"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"60fa266b283a2332e1a7d82b854b4c407dedda0db940fc36c85d9da4a83fc5d7"}},{"ruleId":"D1","level":"warning","message":{"text":"claude-code-router-plugin.configuredSubagentModelDescriptionRows (cyclomatic 18): claude-code-router-plugin.configuredSubagentModelDescriptionRows 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":"packages/core/src/gateway/claude-code-router-plugin.ts"},"region":{"startLine":999}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ff89339268fec0d561c892e92f4fa285c0833d261088aa2fbffaea94d72a564"}},{"ruleId":"D1","level":"warning","message":{"text":"ContextArchiveService.ask (cyclomatic 18): ContextArchiveService.ask 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":"packages/core/src/gateway/context-archive.ts"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dab0c78e3fb8fbcad17d2c8303fb92adf758adf2469e12923f59cf86a761c96"}},{"ruleId":"D1","level":"warning","message":{"text":"upstream-header-sanitizer.mergeUpstreamProviderHeaders (cyclomatic 18): upstream-header-sanitizer.mergeUpstreamProviderHeaders 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":"packages/core/src/gateway/core-runtime/upstream-header-sanitizer.ts"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b1c436ca8048f65ad701b815202d91d2b0313e3a122729fef1e3468a793a507"}},{"ruleId":"D1","level":"warning","message":{"text":"tool-discovery.listLegacySseMcpServerTools (cyclomatic 18): tool-discovery.listLegacySseMcpServerTools has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 8 of the 18 points are its own statements and the rest belongs to 3 function items inside it that branch (routeSseEvent, a function literal at line 214, rejectPending). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/mcp/tool-discovery.ts"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"840bf012055013406fcf8104cd8f6ae0118ae7a73bbfa43cf5ee2fb75f6863ff"}},{"ruleId":"D1","level":"warning","message":{"text":"GatewayMediaExecutor.download (cyclomatic 18): GatewayMediaExecutor.download 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":"packages/core/src/media/executors.ts"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"bee3e19d4f81b65376531ecb06178b80d061b9bbc7ecf3e6177837b58f70a297"}},{"ruleId":"D1","level":"warning","message":{"text":"request-log-worker.isCompleteJsonContainer (cyclomatic 18): request-log-worker.isCompleteJsonContainer 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":"packages/core/src/observability/request-log-worker.ts"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"e65f604d9023c31146ad1eb77fafbd0c8ea367e7cec4bec60bab379bda5ca5f6"}},{"ruleId":"D1","level":"warning","message":{"text":"openrouter-discount-provider-router.endpointSatisfiesProviderConstraints (cyclomatic 18): openrouter-discount-provider-router.endpointSatisfiesProviderConstraints 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":"packages/core/src/plugins/built-ins/openrouter-discount-provider-router.ts"},"region":{"startLine":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ee3491247c5641b16def8bac248cf7669d83c4b9ff6b1beee5930e73c019bc1"}},{"ruleId":"D1","level":"warning","message":{"text":"account-service.refreshCodexAccountToken (cyclomatic 18): account-service.refreshCodexAccountToken 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":"packages/core/src/providers/account-service.ts"},"region":{"startLine":1652}}}],"partialFingerprints":{"codehealthFindingId/v1":"36ad1825b027203e5352c83f7686032b2b2806c81af82164d2c79fe7160b1bb6"}},{"ruleId":"D1","level":"warning","message":{"text":"probe.resolveGatewayProviderProbe (cyclomatic 18): probe.resolveGatewayProviderProbe 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":"packages/core/src/providers/probe.ts"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a4043b691c5ec9e20b08a90847ffc4266875cd205026d1d1f13c641e9663744"}},{"ruleId":"D1","level":"warning","message":{"text":"probe.providerProbeCodexOauthRequest (cyclomatic 18): probe.providerProbeCodexOauthRequest 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":"packages/core/src/providers/probe.ts"},"region":{"startLine":1223}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c18002d1e5d9691512b2ad1d8faff8cd3e5e209fd54c82ef3062ed3296ad95b"}},{"ruleId":"D1","level":"warning","message":{"text":"system-proxy-fetch.shouldBypassProxy (cyclomatic 18): system-proxy-fetch.shouldBypassProxy 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":"packages/core/src/proxy/system-proxy-fetch.ts"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"76b84024458db2d24ca041a7dab0fcb0a393baf43fa32d33b0f37a63e6908cda"}},{"ruleId":"D1","level":"warning","message":{"text":"index.listProjectDirectoryEntries (cyclomatic 18): index.listProjectDirectoryEntries 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. This is NOT this file\u0027s highest cyclomatic complexity: index.callDesignMcpTool (cyclomatic 27) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":8516}}}],"partialFingerprints":{"codehealthFindingId/v1":"5203f41baf6b1cc2e7f05f56b5b306e57849b91a93816f0de64ed4a92343b70b"}},{"ruleId":"D1","level":"warning","message":{"text":"ipc.decodePngPixels (cyclomatic 18): ipc.decodePngPixels 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. This is NOT this file\u0027s highest cyclomatic complexity: ipc.pluginPermissionAlias (cyclomatic 36) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/src/main/ipc.ts"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"5da7d1a5d152faf99b66285589bc611bf7475c42849415b1e077bd62f93de747"}},{"ruleId":"D1","level":"warning","message":{"text":"tooltip.Tooltip (cyclomatic 18): tooltip.Tooltip 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 7 function literals inside it that branch (lines 81, 119, 125, \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":"packages/ui/src/components/ui/tooltip.tsx"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8deceaa7d11ca298e0009822696679c4867ad1ff092f56dcb15a5630deab28f"}},{"ruleId":"D1","level":"warning","message":{"text":"profiles.createProfileDraftFromProfile (cyclomatic 18): profiles.createProfileDraftFromProfile 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":"packages/ui/src/pages/home/shared/profiles.ts"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc003477f4ffdae88a1d63136cf6b29992e6f82314a66867c8d2cf858e0517f8"}},{"ruleId":"D1","level":"warning","message":{"text":"providers.ProviderMobileCard (cyclomatic 18): providers.ProviderMobileCard 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":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"383251a3eb0ceefadbd1e4cee47cb91aa29f7985ad29ef1ef9877d1e71a4b912"}},{"ruleId":"D1","level":"warning","message":{"text":"providers.ProviderSetupProgress (cyclomatic 18): providers.ProviderSetupProgress has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 6 of the 18 points are its own statements and the rest belongs to one function literal inside it that branches (line 1666). 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":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":1603}}}],"partialFingerprints":{"codehealthFindingId/v1":"17653b648d34f52afab3c654739606a7d209bad462de9058cd83c625310eb488"}},{"ruleId":"D1","level":"warning","message":{"text":"profiles.ProfileRoutingSettings (cyclomatic 18): profiles.ProfileRoutingSettings has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 8 of the 18 points are its own statements and the rest belongs to 5 function items inside it that branch (submitRuleDialog, a function literal at line 1188, openEditRuleDialog, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/profiles.tsx"},"region":{"startLine":1098}}}],"partialFingerprints":{"codehealthFindingId/v1":"d734480b8e7921bc512866220c836e0c3e5b924d8a742635b73bb68a800350f3"}},{"ruleId":"D1","level":"warning","message":{"text":"network-logs.LogBodyChunkContent (cyclomatic 18): network-logs.LogBodyChunkContent 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, 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":"packages/ui/src/pages/home/components/network-logs.tsx"},"region":{"startLine":2165}}}],"partialFingerprints":{"codehealthFindingId/v1":"872f8c3f69f3d35909c37151f53b008a1ce7d843e5185a265fc5ca6610728f00"}},{"ruleId":"D1","level":"warning","message":{"text":"dashboard.OverviewActivityGrid (cyclomatic 18): dashboard.OverviewActivityGrid 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, 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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":1565}}}],"partialFingerprints":{"codehealthFindingId/v1":"6987982182434addb57c232434f68d7d1d9aff44547a3abad76dd61c6ccc87a9"}},{"ruleId":"D1","level":"warning","message":{"text":"dashboard.overviewMetricDatum (cyclomatic 18): dashboard.overviewMetricDatum 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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":2385}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ef9648c8c73f00c41f89c9aaea0709f2f5f9a59c87723a334d77477ea5ae5e3"}},{"ruleId":"D1","level":"warning","message":{"text":"App.App::refreshProviderModels (cyclomatic 18): App.App::refreshProviderModels 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. This shape REPEATS in the file: 3 other methods here (App.App, App.App::persistConfig, App.App::submitProviderDraft) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 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":"packages/ui/src/pages/home/App.tsx"},"region":{"startLine":1535}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cdd3e5892f782c09e7f96b9ef8c60b5b490d8da74c1d4ed7bc4e44570c10350"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.parseArgs (cyclomatic 17): cli.parseArgs 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":"packages/cli/src/cli.ts"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd8dcc837ba3b9d3ac5ece7a3d047a32b701e6ebb10942f7e5b1c4b9cac5823a"}},{"ruleId":"D1","level":"warning","message":{"text":"model-catalog.codexModelCapabilityProfile (cyclomatic 17): model-catalog.codexModelCapabilityProfile 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":"packages/core/src/agents/codex/model-catalog.ts"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f81b161712790c20c3ea471deb287967c87f2de5716248e1b050c9b3ba68f50"}},{"ruleId":"D1","level":"warning","message":{"text":"opencode.opencodeCandidates (cyclomatic 17): opencode.opencodeCandidates 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 95, 84). 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":"packages/core/src/agents/local-providers/opencode.ts"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f363b2fe27a0c389bc797f99c85e5ad5677a8f6bef358dcf994d4ce4254306c"}},{"ruleId":"D1","level":"warning","message":{"text":"zcode.readZcodeConfiguredProviders (cyclomatic 17): zcode.readZcodeConfiguredProviders 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 one function literal inside it that branches (line 164). 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":"packages/core/src/agents/local-providers/zcode.ts"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"3493bcf70ac26d2677ac346ac76fd0a285fbdab20ff300f8b17437723344a1d7"}},{"ruleId":"D1","level":"warning","message":{"text":"config.parseGatewayPluginProxyRoutes (cyclomatic 17): config.parseGatewayPluginProxyRoutes 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 one function literal inside it that branches (line 3422). 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. This is NOT this file\u0027s highest cyclomatic complexity: config.gatewayPluginPermissionAlias (cyclomatic 36) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":3416}}}],"partialFingerprints":{"codehealthFindingId/v1":"9008396cbf017fa150d0cdf13c06fd0dbbe1ca4c1c1f14ea4b881c103194f51b"}},{"ruleId":"D1","level":"warning","message":{"text":"MediaService.videoStart (cyclomatic 17): MediaService.videoStart 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":"packages/core/src/media/service.ts"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"f22a360607ddaefe60eecffb92411b960d0773e312f67fe8e03aa8a5f51fdfb6"}},{"ruleId":"D1","level":"warning","message":{"text":"request-log-store.toRequestLogEntry (cyclomatic 17): request-log-store.toRequestLogEntry 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. This is NOT this file\u0027s highest cyclomatic complexity: request-log-store.extractSessionIdFromPayload (cyclomatic 19) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":5104}}}],"partialFingerprints":{"codehealthFindingId/v1":"4053f9981190d784dc23ed17310bb7a863cc7ae09b9f0ccb01bdb8ec19794c04"}},{"ruleId":"D1","level":"warning","message":{"text":"account-service.kimiCodeUsageLimitLabel (cyclomatic 17): account-service.kimiCodeUsageLimitLabel 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":"packages/core/src/providers/account-service.ts"},"region":{"startLine":1241}}}],"partialFingerprints":{"codehealthFindingId/v1":"733423ba9534078e3e6889afb155b36bf49874d5c8438c980d6b8005b44283b3"}},{"ruleId":"D1","level":"warning","message":{"text":"model-catalog.providerModelMetadataFromCatalog (cyclomatic 17): model-catalog.providerModelMetadataFromCatalog 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":"packages/core/src/providers/model-catalog.ts"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"58c034b34dc571e25f3e5c3eec8397dee89c85d10da75ec9da6a6ff66e72a11b"}},{"ruleId":"D1","level":"warning","message":{"text":"management-server.inspectPluginDirectory (cyclomatic 17): management-server.inspectPluginDirectory 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. This is NOT this file\u0027s highest cyclomatic complexity: management-server.pluginPermissionAlias (cyclomatic 36) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/web/management-server.ts"},"region":{"startLine":889}}}],"partialFingerprints":{"codehealthFindingId/v1":"caf493fe62fe16085a5d5d5fac44ac3281366924a4d7292f845a1636a826695b"}},{"ruleId":"D1","level":"warning","message":{"text":"index.normalizeProjectViewOpenFiles (cyclomatic 17): index.normalizeProjectViewOpenFiles 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. This is NOT this file\u0027s highest cyclomatic complexity: index.callDesignMcpTool (cyclomatic 27) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":8013}}}],"partialFingerprints":{"codehealthFindingId/v1":"64eb7c40ffcfb44a9bad6ba2fab23dca72df2b8e3308845d662e67b250e656ee"}},{"ruleId":"D1","level":"warning","message":{"text":"index.generatedFilePathFromFenceInfo (cyclomatic 17): index.generatedFilePathFromFenceInfo 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, 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. This is NOT this file\u0027s highest cyclomatic complexity: index.callDesignMcpTool (cyclomatic 27) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":11441}}}],"partialFingerprints":{"codehealthFindingId/v1":"e654d90f1a0bf4e2dffcbc90689752100f445f02c76c91770700f2fc5d6e9c25"}},{"ruleId":"D1","level":"warning","message":{"text":"index.isVisibleStoredMessage (cyclomatic 17): index.isVisibleStoredMessage 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, 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. This is NOT this file\u0027s highest cyclomatic complexity: index.callDesignMcpTool (cyclomatic 27) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":13166}}}],"partialFingerprints":{"codehealthFindingId/v1":"f82886339434191f31315c758be3ebb2cd4aa3c6810af3cf8de811370a5e35a3"}},{"ruleId":"D1","level":"warning","message":{"text":"ipc.inspectPluginDirectory (cyclomatic 17): ipc.inspectPluginDirectory 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. This is NOT this file\u0027s highest cyclomatic complexity: ipc.pluginPermissionAlias (cyclomatic 36) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/src/main/ipc.ts"},"region":{"startLine":1030}}}],"partialFingerprints":{"codehealthFindingId/v1":"9576bec043704d87231cc5ca3ceb2e73280e397410636f24f0f030182f6fc2fa"}},{"ruleId":"D1","level":"warning","message":{"text":"virtual-models.normalizeVirtualModelDraftPatch (cyclomatic 17): virtual-models.normalizeVirtualModelDraftPatch 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":"packages/ui/src/pages/home/shared/virtual-models.ts"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"09b871c5dd2e51b7c24b057a81eb04070efba19040a44416eb0481c59d3b4ff7"}},{"ruleId":"D1","level":"warning","message":{"text":"virtual-models.fusionVisionConfigFromProfile (cyclomatic 17): virtual-models.fusionVisionConfigFromProfile 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":"packages/ui/src/pages/home/shared/virtual-models.ts"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"a99d737ba4180753f08df452d38e6c2661a2d1b0667a5d4ce372926ef90f27d9"}},{"ruleId":"D1","level":"warning","message":{"text":"virtual-models.selectedFusionToolNamesFromProfile (cyclomatic 17): virtual-models.selectedFusionToolNamesFromProfile has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 6 of the 17 points are its own statements and the rest belongs to one function literal inside it that branches (line 867). 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":"packages/ui/src/pages/home/shared/virtual-models.ts"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c47a5d0576f150d8a8049ff3c091c7e1c552c01490b5cd04f7a610673329cd8"}},{"ruleId":"D1","level":"warning","message":{"text":"profiles.profileConfigFromDraft (cyclomatic 17): profiles.profileConfigFromDraft 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":"packages/ui/src/pages/home/shared/profiles.ts"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"497872fca424f6c46bbe19bcc965797d8dcc3061dbc77c61ad346e2ea4d3cdb6"}},{"ruleId":"D1","level":"warning","message":{"text":"profiles.ProfileOpenDialog (cyclomatic 17): profiles.ProfileOpenDialog has cyclomatic complexity 17 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 4 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":"packages/ui/src/pages/home/components/profiles.tsx"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a5d23a3cd01e42fb4931f55422262df7e294f5df02efb9a9db73c227ac6d19b"}},{"ruleId":"D1","level":"warning","message":{"text":"dashboard.SystemStatusBar (cyclomatic 17): dashboard.SystemStatusBar 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, 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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":2465}}}],"partialFingerprints":{"codehealthFindingId/v1":"234a783fe149bc6b3f7138437d0fab7864aa4bd253f6c4296accc188e2cea6de"}},{"ruleId":"D1","level":"warning","message":{"text":"dashboard.providerAccountBentoLayout (cyclomatic 17): dashboard.providerAccountBentoLayout 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, 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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":4314}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a0b096e0ab7923bb2c530ea7bb939e3f367e7b374077b48d908f478f863f8c3"}},{"ruleId":"D1","level":"warning","message":{"text":"dashboard.UsageAnalysisCard (cyclomatic 17): dashboard.UsageAnalysisCard has cyclomatic complexity 17 (threshold 15). Of this number, 10 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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":6274}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a4e452432b97387526df3c2330df3ed7d4923d984dcd7892d944eced53df1d6"}},{"ruleId":"D1","level":"warning","message":{"text":"App.App::persistConfig (cyclomatic 17): App.App::persistConfig 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. This shape REPEATS in the file: 3 other methods here (App.App, App.App::refreshProviderModels, App.App::submitProviderDraft) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 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":"packages/ui/src/pages/home/App.tsx"},"region":{"startLine":1062}}}],"partialFingerprints":{"codehealthFindingId/v1":"7981c290806576bec6a3e6d9041e158146fb19ba80d447965fcdab6ceb7a5e39"}},{"ruleId":"D1","level":"warning","message":{"text":"TrayApp.TrayApp (cyclomatic 17): TrayApp.TrayApp 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 6 function literals inside it that branch (lines 32, 67, 117, \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":"packages/ui/src/pages/tray/TrayApp.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"915862e563d15330f644278cde83640a7af49c53f5fe160850f749b24c5cab2d"}},{"ruleId":"D1","level":"warning","message":{"text":"ProfileViewDemo.ProfileViewDemo (cyclomatic 16): ProfileViewDemo.ProfileViewDemo has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 3 of the 16 points are its own statements and the rest belongs to 4 function items inside it that branch (play, a function literal at line 99, submitProfile, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/src/components/interactive/ProfileViewDemo.tsx"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"48f6121cfe32c37d72bdc1dabed76c066cbb094ec67642bbfb2e7695e49f9f75"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.parseWebArgs (cyclomatic 16): cli.parseWebArgs 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":"packages/cli/src/cli.ts"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2a5d0cd928199f2e247682fd278731d963a04c9e591dddf7280a65a1203b940"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.runWebServer (cyclomatic 16): cli.runWebServer has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 7 of the 16 points are its own statements and the rest belongs to 3 function items inside it that branch (a function literal at line 537, shutdown, a function literal at line 527). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/cli/src/cli.ts"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"52e6099ec51aa3bb5c38e5e48f19d694facdb7d815c99956aa10cedf7fa088b0"}},{"ruleId":"D1","level":"warning","message":{"text":"handoff-scan-service.bluetoothScanTargetFromObject (cyclomatic 16): handoff-scan-service.bluetoothScanTargetFromObject 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":"packages/core/src/agents/bot-gateway/handoff-scan-service.ts"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc15e5ac13a0ea72d522369d6b8507ed5d037f192dc31cfece99315f834c055f"}},{"ruleId":"D1","level":"warning","message":{"text":"model-catalog.buildCodexModelCatalogIds (cyclomatic 16): model-catalog.buildCodexModelCatalogIds 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":"packages/core/src/agents/codex/model-catalog.ts"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"b450a862ddbc42cedc92db8e9dfb66fa6c5d1751f8536b44929960726574f9d8"}},{"ruleId":"D1","level":"warning","message":{"text":"model-catalog.normalizeProviderProtocol (cyclomatic 16): model-catalog.normalizeProviderProtocol 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":"packages/core/src/agents/codex/model-catalog.ts"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa396d64c1df4e631c40997bfa0f5a00136360a4345720d25c18347107b16f6a"}},{"ruleId":"D1","level":"warning","message":{"text":"model-catalog.virtualModelMatchesCatalogModel (cyclomatic 16): model-catalog.virtualModelMatchesCatalogModel 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":"packages/core/src/agents/codex/model-catalog.ts"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"4083897543a4c37b2b67b8c5a7ffde7359ed4c72cc0beec29df8602baf97bb4e"}},{"ruleId":"D1","level":"warning","message":{"text":"config.normalizeBotGatewayAuthType (cyclomatic 16): config.normalizeBotGatewayAuthType 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. This is NOT this file\u0027s highest cyclomatic complexity: config.gatewayPluginPermissionAlias (cyclomatic 36) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e6dd8ab2a285796f099fb5456dd4e81a8e2f4fee16c825a627ab2312f17b32b"}},{"ruleId":"D1","level":"warning","message":{"text":"config.loadAppConfig (cyclomatic 16): config.loadAppConfig 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. This is NOT this file\u0027s highest cyclomatic complexity: config.gatewayPluginPermissionAlias (cyclomatic 36) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"38b24f39c0319cd72b0c6b778705143684bc44dba1aca9a440185fcc5513be78"}},{"ruleId":"D1","level":"warning","message":{"text":"config-compiler.compileCoreGatewayConfig (cyclomatic 16): config-compiler.compileCoreGatewayConfig 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":"packages/core/src/gateway/core-runtime/config-compiler.ts"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8cf17cb51234cdddf5781c1561120f284653d78a57f67cb3c093e619ec0e91b"}},{"ruleId":"D1","level":"warning","message":{"text":"evidence.synthesizeComponentChangelogWebSearchAnswer (cyclomatic 16): evidence.synthesizeComponentChangelogWebSearchAnswer 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":"packages/core/src/gateway/features/hosted-web-search/evidence.ts"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"72499623fcf6740975a851900796ac6367ac3cf1e408415e4291c4416dc00023"}},{"ruleId":"D1","level":"warning","message":{"text":"model-discovery.buildGatewayDiscoverableModelIds (cyclomatic 16): model-discovery.buildGatewayDiscoverableModelIds 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":"packages/core/src/gateway/features/model-discovery.ts"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f0858d17c379b748ce6c8effe368beff9353398bf789837465df127b9c7a72f"}},{"ruleId":"D1","level":"warning","message":{"text":"CcrRemoteControlService.appendEvent (cyclomatic 16): CcrRemoteControlService.appendEvent 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":"packages/core/src/gateway/remote-control-service.ts"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"4698ad183486d5caba502a072b8d178e1dcad58f507dcf572fbab265360d4d54"}},{"ruleId":"D1","level":"warning","message":{"text":"request-log-store.userTextCandidates (cyclomatic 16): request-log-store.userTextCandidates 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. This is NOT this file\u0027s highest cyclomatic complexity: request-log-store.extractSessionIdFromPayload (cyclomatic 19) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":2469}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7f128538e5034305e470e5b7b30df42cb15d06b56e17d08370de1d74645f1b3"}},{"ruleId":"D1","level":"warning","message":{"text":"route-trace.sanitizeReportedChange (cyclomatic 16): route-trace.sanitizeReportedChange 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":"packages/core/src/observability/route-trace.ts"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"773dc94e3864a00c0aee577ca687e99dc65956b679d982e492df73cdecbbbced"}},{"ruleId":"D1","level":"warning","message":{"text":"marketplace.parsePluginDependency (cyclomatic 16): marketplace.parsePluginDependency 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. This is NOT this file\u0027s highest cyclomatic complexity: marketplace.pluginPermissionAlias (cyclomatic 40) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/plugins/marketplace.ts"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a9ca2fa557a16910ce17560f66ed1b280f719f84d863abe0d8d0650a2540ff8"}},{"ruleId":"D1","level":"warning","message":{"text":"launch-service.openProfileFromCcr (cyclomatic 16): launch-service.openProfileFromCcr 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":"packages/core/src/profiles/launch-service.ts"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa873c6bb6e748e4647262360f76945273f976f7caf6d76efc54e23c3623924c"}},{"ruleId":"D1","level":"warning","message":{"text":"launch-service.openOpenCodeAppProfile (cyclomatic 16): launch-service.openOpenCodeAppProfile 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":"packages/core/src/profiles/launch-service.ts"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"783424b4023561fb0e745914813fb831d76e106e122f5f23f04328cca91aa2ec"}},{"ruleId":"D1","level":"warning","message":{"text":"service.applyProfileConfig (cyclomatic 16): service.applyProfileConfig has cyclomatic complexity 16 (threshold 15). 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, 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":"packages/core/src/profiles/service.ts"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"56e95b3ac14a4db1e02bdeda4090cb3882a925cdd729652a46298ef890740f98"}},{"ruleId":"D1","level":"warning","message":{"text":"credential-pool.recordProviderCredentialOutcome (cyclomatic 16): credential-pool.recordProviderCredentialOutcome 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":"packages/core/src/providers/credential-pool.ts"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcea6b1c18c15014c8118a3d3e1285556488879088fb67dc63c6955377504d4a"}},{"ruleId":"D1","level":"warning","message":{"text":"icons.providerIconMagicExtension (cyclomatic 16): icons.providerIconMagicExtension 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":"packages/core/src/providers/icons.ts"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f28fdb59b6e94d599f66d9af0feaeed53990b08d93150e41e28ee153b596779"}},{"ruleId":"D1","level":"warning","message":{"text":"probe.protocolHints (cyclomatic 16): probe.protocolHints 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":"packages/core/src/providers/probe.ts"},"region":{"startLine":1823}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ad3181e1e516c22e4068a552152bb6d9f00eca589dd89cd94a7f9c6a37079a0"}},{"ruleId":"D1","level":"warning","message":{"text":"runtime-topology.normalizeProviderProtocol (cyclomatic 16): runtime-topology.normalizeProviderProtocol 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":"packages/core/src/providers/runtime-topology.ts"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"e78d0fe6d48eec887d330cb4b9ee3a7fc5a75d80deb6b2ac3cc981adfcd79933"}},{"ruleId":"D1","level":"warning","message":{"text":"config-compiler.scriptRuleDiagnostics (cyclomatic 16): config-compiler.scriptRuleDiagnostics 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":"packages/core/src/routing/config-compiler.ts"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"51cd9ba799c37de04a48cb2630ec3b2a71a557e61cd7e273f9aa615553357ded"}},{"ruleId":"D1","level":"warning","message":{"text":"management-server.parsePluginSurfaces (cyclomatic 16): management-server.parsePluginSurfaces has cyclomatic complexity 16 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function item 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. This is NOT this file\u0027s highest cyclomatic complexity: management-server.pluginPermissionAlias (cyclomatic 36) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/web/management-server.ts"},"region":{"startLine":999}}}],"partialFingerprints":{"codehealthFindingId/v1":"230748d0e41f862604f7aa8d1d2da7aae451557c9335766c48ab40688210bf1e"}},{"ruleId":"D1","level":"warning","message":{"text":"index.appendDesignAgentMessage (cyclomatic 16): index.appendDesignAgentMessage has cyclomatic complexity 16 (threshold 15). 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, 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. This is NOT this file\u0027s highest cyclomatic complexity: index.callDesignMcpTool (cyclomatic 27) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":7751}}}],"partialFingerprints":{"codehealthFindingId/v1":"5495638e6f95a2ae2f5e941ca21e1decd7bfdabff10a4a594f55146cd0ee3a64"}},{"ruleId":"D1","level":"warning","message":{"text":"index.proxyArtifactMessages (cyclomatic 16): index.proxyArtifactMessages 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. This is NOT this file\u0027s highest cyclomatic complexity: index.callDesignMcpTool (cyclomatic 27) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":10019}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee907bbfc30552c1f283e414d4b3be322016f5755834a6004b2c771aa574f76a"}},{"ruleId":"D1","level":"warning","message":{"text":"index.normalizeClaudeDesignRoutingRule (cyclomatic 16): index.normalizeClaudeDesignRoutingRule 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. This is NOT this file\u0027s highest cyclomatic complexity: index.callDesignMcpTool (cyclomatic 27) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":11782}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e1b7773b44578858b06401713b79caf94df6127e06bfacbca72131d97ef2045"}},{"ruleId":"D1","level":"warning","message":{"text":"chrome-login-import.normalizeChromeCookie (cyclomatic 16): chrome-login-import.normalizeChromeCookie 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":"packages/electron/src/main/chrome-login-import.ts"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ac48cd52c32ed90184012538e08cc62f381c9bf2dde411c6248409d16ac671f"}},{"ruleId":"D1","level":"warning","message":{"text":"browser-automation-mcp.compactJsonValue (cyclomatic 16): browser-automation-mcp.compactJsonValue 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":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":3377}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f8d4511e0855f5b46673792e3df707113b21922f4462f106cd7637743eecc2b"}},{"ruleId":"D1","level":"warning","message":{"text":"electron-web-search-mcp.searchUrlForEngine (cyclomatic 16): electron-web-search-mcp.searchUrlForEngine 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":"packages/electron/src/main/electron-web-search-mcp.ts"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c2066d98bb703645996c84c4239e2c1973e3f78eac40caec146216cf3e3ac0e"}},{"ruleId":"D1","level":"warning","message":{"text":"ipc.parsePluginSurfaces (cyclomatic 16): ipc.parsePluginSurfaces has cyclomatic complexity 16 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function item 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. This is NOT this file\u0027s highest cyclomatic complexity: ipc.pluginPermissionAlias (cyclomatic 36) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/src/main/ipc.ts"},"region":{"startLine":1210}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5fee38a0161c8760f7d524f47076a0bef3baa497f19ef289d0979a33e655378"}},{"ruleId":"D1","level":"warning","message":{"text":"routing.normalizeClaudeDesignRoutingRuleDraft (cyclomatic 16): routing.normalizeClaudeDesignRoutingRuleDraft 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":"packages/ui/src/pages/home/shared/routing.ts"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"d04147714fc2ba130f2b06a9909df11c277cea2974f91505a9eb6763a244a154"}},{"ruleId":"D1","level":"warning","message":{"text":"virtual-models.fusionWebSearchConfigFromProfile (cyclomatic 16): virtual-models.fusionWebSearchConfigFromProfile 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":"packages/ui/src/pages/home/shared/virtual-models.ts"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"539abb729622dad5ce27c33bc2ad3a78c3d9f3823cdfab55bd11e1a992ceb72a"}},{"ruleId":"D1","level":"warning","message":{"text":"providers.createProviderInstallLinkFromDraft (cyclomatic 16): providers.createProviderInstallLinkFromDraft 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":"packages/ui/src/pages/home/shared/providers.ts"},"region":{"startLine":1543}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e34a2afe2feba597b80a2cd5536949f195649a15f2e3b206aac8c6b335d9b72"}},{"ruleId":"D1","level":"warning","message":{"text":"profiles.normalizeBotGatewayAuthType (cyclomatic 16): profiles.normalizeBotGatewayAuthType 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":"packages/ui/src/pages/home/shared/profiles.ts"},"region":{"startLine":1104}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eab9aac301b01836218b1b12d47b59bdb15e4c0cb69d89e85990673e7a9345f"}},{"ruleId":"D1","level":"warning","message":{"text":"logs.aggregateOpenAiStreamPayloads (cyclomatic 16): logs.aggregateOpenAiStreamPayloads 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":"packages/ui/src/pages/home/shared/logs.ts"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"12124481a4095147fbf51db7a21622914646c7374ca4e4df9a16752bcef27039"}},{"ruleId":"D1","level":"warning","message":{"text":"logs.collectOpenAiResponseOutputItem (cyclomatic 16): logs.collectOpenAiResponseOutputItem 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":"packages/ui/src/pages/home/shared/logs.ts"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a4f5fd66e0f4f01669cba8f293eb16cc33215a31ff1c5ea37e3f5a91b6db1b7"}},{"ruleId":"D1","level":"warning","message":{"text":"logs.aggregateGeminiStreamPayloads (cyclomatic 16): logs.aggregateGeminiStreamPayloads 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":"packages/ui/src/pages/home/shared/logs.ts"},"region":{"startLine":1169}}}],"partialFingerprints":{"codehealthFindingId/v1":"67e04aaa1dcad17139bc33b6904c5bf170a7eb190e93d97d3e2203ed6425905c"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayRequestPipeline.proxyRequest (cognitive 153): GatewayRequestPipeline.proxyRequest has cognitive complexity 153 (threshold 15). Drivers by points: if/else 57 (75 pts), boolean chains 34, ternaries 25 (34 pts), loops 4 (7 pts), error handling 2 (3 pts) (nesting depth added 31). Of this number, 134 points are the body\u0027s own statements and 19 belong to 7 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":"packages/core/src/gateway/request/pipeline.ts"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"1921fb093ec34375b10736ae470a2dedfaaf186df689820798c579df470083b5"}},{"ruleId":"D2","level":"warning","message":{"text":"profiles.AddProfileForm (cognitive 144): profiles.AddProfileForm has cognitive complexity 144 (threshold 15). Drivers by points: ternaries 45 (128 pts), boolean chains 13, if/else 3 (nesting depth added 83). Of this number, 124 points are the body\u0027s own statements and 20 belong to 5 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":"packages/ui/src/pages/home/components/profiles.tsx"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ee8c82d408b765409a51b57c0d24c1828fc27a787fc0b909754e74998f7a2c4"}},{"ruleId":"D2","level":"warning","message":{"text":"profiles.normalizeUnknownProfileItem (cognitive 135): profiles.normalizeUnknownProfileItem has cognitive complexity 135 (threshold 15). Drivers by points: ternaries 50 (124 pts), boolean chains 10, if/else 1 (nesting depth added 74). 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":"packages/ui/src/pages/home/shared/profiles.ts"},"region":{"startLine":1540}}}],"partialFingerprints":{"codehealthFindingId/v1":"27a0da0992665e451f00bd1980976e970d9e0a5f681360618f8b9ffc87f65f44"}},{"ruleId":"D2","level":"warning","message":{"text":"providers.AddProviderForm (cognitive 118): providers.AddProviderForm has cognitive complexity 118 (threshold 15). Drivers by points: ternaries 38 (84 pts), boolean chains 20, if/else 10 (14 pts) (nesting depth added 50). Of this number, 58 points are the body\u0027s own statements and 60 belong to 16 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":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":1961}}}],"partialFingerprints":{"codehealthFindingId/v1":"6267a031ce5fca750914789f8515cf04baf4a85ca9993db17dd6319366f75e97"}},{"ruleId":"D2","level":"warning","message":{"text":"providers.ProviderUsageSettings (cognitive 110): providers.ProviderUsageSettings has cognitive complexity 110 (threshold 15). Drivers by points: ternaries 31 (92 pts), if/else 10, boolean chains 5, error handling 3 (nesting depth added 61). Of this number, 90 points are the body\u0027s own statements and 20 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":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":2888}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a7265280a52c7cd43012d13d25a2e6e1ecf1b307358faa2305313c3419bb0a4"}},{"ruleId":"D2","level":"warning","message":{"text":"executor.fetchUpstreamWithFallback (cognitive 87): executor.fetchUpstreamWithFallback has cognitive complexity 87 (threshold 15). Drivers by points: ternaries 23 (53 pts), if/else 11 (26 pts), boolean chains 5, error handling 1 (2 pts), loops 1 (nesting depth added 46). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/upstream/executor.ts"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c4f46d9d3d528ab9221af628b9ad0620ed4b25fae2bede84499d1e1a70a78a6"}},{"ruleId":"D2","level":"warning","message":{"text":"browser-automation-mcp.targetActionScript (cognitive 87): browser-automation-mcp.targetActionScript has cognitive complexity 87 (threshold 15). Drivers by points: if/else 35 (50 pts), boolean chains 18, ternaries 10 (18 pts), error handling 1 (nesting depth added 23). Of this number, 45 points are the body\u0027s own statements and 42 belong to 11 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":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":2904}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7589d50b41f2fe3dca9b05fd570039ebba1f8844c2a0c04b50b2881eedf1ca1"}},{"ruleId":"D2","level":"warning","message":{"text":"dashboard.OverviewView (cognitive 83): dashboard.OverviewView has cognitive complexity 83 (threshold 15). Drivers by points: ternaries 31 (41 pts), if/else 24, boolean chains 17, error handling 1 (nesting depth added 10). Most of this is not in the body itself: 15 of the 83 points are its own statements and the rest belongs to 33 function items inside it that branch (a function literal at line 208, changeWidgetAccountCardSize, a function literal at line 127, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d52708bedec951b036a921c2296caa503619a30a33378369430ba5a6c973959"}},{"ruleId":"D2","level":"warning","message":{"text":"dashboard.ProviderAccountsOverview (cognitive 83): dashboard.ProviderAccountsOverview has cognitive complexity 83 (threshold 15). Drivers by points: ternaries 20 (71 pts), boolean chains 9, if/else 3 (nesting depth added 51). Of this number, 26 points are the body\u0027s own statements and 57 belong to 5 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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":2608}}}],"partialFingerprints":{"codehealthFindingId/v1":"df363558fb76bfe513660456ee4ca817382013e2f5d591c704241158a84bc4d1"}},{"ruleId":"D2","level":"warning","message":{"text":"index.handleDesignRestApi (cognitive 81): index.handleDesignRestApi has cognitive complexity 81 (threshold 15). Drivers by points: if/else 35 (53 pts), boolean chains 28 (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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":9815}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c4beec7f56863b7b167ff19e96f8d1894a68d19b4731bd0ce467b62d601ba1a"}},{"ruleId":"D2","level":"warning","message":{"text":"config.parseProfile (cognitive 78): config.parseProfile has cognitive complexity 78 (threshold 15). Drivers by points: if/else 31 (56 pts), boolean chains 13, ternaries 5 (9 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":"packages/core/src/config/config.ts"},"region":{"startLine":3480}}}],"partialFingerprints":{"codehealthFindingId/v1":"bba3088abe139c48a1cdc554f45527f685e06c4aae0c856b092cc06d3d95aed2"}},{"ruleId":"D2","level":"warning","message":{"text":"config.parseProfiles (cognitive 75): config.parseProfiles has cognitive complexity 75 (threshold 15). Drivers by points: ternaries 26 (40 pts), boolean chains 29, if/else 6 (nesting depth added 14). Most of this is not in the body itself: 1 of the 75 points is its own statement and the rest belongs to one function literal inside it that branches (line 3622). 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":"packages/core/src/config/config.ts"},"region":{"startLine":3616}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e9e19b17503b8c5bd2f77d7f70e0b6029ecd9572b46d097ee9a233acaebed6d"}},{"ruleId":"D2","level":"warning","message":{"text":"browser-automation-mcp.waitForReadiness (cognitive 75): browser-automation-mcp.waitForReadiness has cognitive complexity 75 (threshold 15). Drivers by points: if/else 25 (57 pts), boolean chains 12, ternaries 2 (3 pts), error handling 1 (2 pts), loops 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":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":1653}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0f7a740a3ccff9362557a84ac63306995094b3920879eed2c0b0a5a93c0f681"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayHttpRequestHandler.handleRequest (cognitive 74): GatewayHttpRequestHandler.handleRequest has cognitive complexity 74 (threshold 15). Drivers by points: if/else 39 (60 pts), boolean chains 12, ternaries 1 (2 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":"packages/core/src/gateway/http/request-handler.ts"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"44cb75a9e419d03b245559fe380ece00b4057d84a02c7bb3ca7dc38232fc6dc6"}},{"ruleId":"D2","level":"warning","message":{"text":"RequestLogStore.updateFromRawTrace (cognitive 74): RequestLogStore.updateFromRawTrace has cognitive complexity 74 (threshold 15). Drivers by points: boolean chains 29, if/else 22 (27 pts), ternaries 12 (18 pts) (nesting depth added 11). Of this number, 72 points are the body\u0027s own statements and 2 belong to 2 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"2259a6dc0c877cc0a3cf54832871b6d38e5a48b4acec886c28c6a29e64469510"}},{"ruleId":"D2","level":"warning","message":{"text":"fusion-config.fusionBuiltinToolArtifacts (cognitive 72): fusion-config.fusionBuiltinToolArtifacts has cognitive complexity 72 (threshold 15). Drivers by points: ternaries 11 (44 pts), if/else 8 (22 pts), boolean chains 5, loops 1 (nesting depth added 47). 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":"packages/core/src/mcp/fusion-config.ts"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"530aeb87b7df324b05b811f763c267fc55007c2f211979c3b1ded55b4d452ac7"}},{"ruleId":"D2","level":"warning","message":{"text":"request-log-store.assistantFullTextCandidates (cognitive 71): request-log-store.assistantFullTextCandidates has cognitive complexity 71 (threshold 15). Drivers by points: if/else 29 (53 pts), ternaries 3 (7 pts), loops 3 (6 pts), boolean chains 5 (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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":2746}}}],"partialFingerprints":{"codehealthFindingId/v1":"13dbf00403474820f810a7c9b1115344a9caa30e976dfaf42d2f5c7a3d0c4561"}},{"ruleId":"D2","level":"warning","message":{"text":"logs.aggregateOpenAiResponsesStreamPayloads (cognitive 71): logs.aggregateOpenAiResponsesStreamPayloads has cognitive complexity 71 (threshold 15). Drivers by points: if/else 25 (56 pts), boolean chains 11, ternaries 2 (3 pts), loops 1 (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":"packages/ui/src/pages/home/shared/logs.ts"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7d13666481308c646542a57274dfeb519d523c2fac27e7025acf9c144e7fd58"}},{"ruleId":"D2","level":"warning","message":{"text":"fusion-config.fusionFallbackToolDefinitions (cognitive 67): fusion-config.fusionFallbackToolDefinitions has cognitive complexity 67 (threshold 15). Drivers by points: if/else 10 (37 pts), ternaries 5 (21 pts), boolean chains 5, loops 2 (4 pts) (nesting depth added 45). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/mcp/fusion-config.ts"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3e932fa4c6a43b9fbbf8e85140ea7caa77423336f2bab4bba5c8c4aaf052695"}},{"ruleId":"D2","level":"warning","message":{"text":"dashboard.ProviderAccountSummaryCard (cognitive 67): dashboard.ProviderAccountSummaryCard has cognitive complexity 67 (threshold 15). Drivers by points: ternaries 24 (51 pts), boolean chains 13, if/else 2 (3 pts) (nesting depth added 28). 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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":2929}}}],"partialFingerprints":{"codehealthFindingId/v1":"c06b7c2a9ce48ed25b81c23e3689bd9f638a9ef82f0f008bd719e243fe2dc1dd"}},{"ruleId":"D2","level":"warning","message":{"text":"settings.BotConfigDialog (cognitive 66): settings.BotConfigDialog has cognitive complexity 66 (threshold 15). Drivers by points: if/else 25 (30 pts), boolean chains 23, ternaries 10 (11 pts), error handling 1, loops 1 (nesting depth added 6). Most of this is not in the body itself: 8 of the 66 points are its own statements and the rest belongs to 16 function items inside it that branch (saveWithQrLogin, waitForQrLoginConfirmation, startQrLogin, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/settings.tsx"},"region":{"startLine":1453}}}],"partialFingerprints":{"codehealthFindingId/v1":"12fd96c8373f60d396f4ab280ebb9927fefba969472e140fcd55a3aa5325a3b1"}},{"ruleId":"D2","level":"warning","message":{"text":"index.routeMockRequest (cognitive 63): index.routeMockRequest has cognitive complexity 63 (threshold 15). Drivers by points: if/else 37 (41 pts), boolean chains 22 (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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":895}}}],"partialFingerprints":{"codehealthFindingId/v1":"860ccbfd5298765fcf12dd535913d6e98dd36eaa1b8a0ef34210040982a49e58"}},{"ruleId":"D2","level":"warning","message":{"text":"routing.AddRoutingRuleDialog (cognitive 63): routing.AddRoutingRuleDialog has cognitive complexity 63 (threshold 15). Drivers by points: ternaries 28 (51 pts), boolean chains 5, if/else 5, error handling 2 (nesting depth added 23). Of this number, 20 points are the body\u0027s own statements and 43 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":"packages/ui/src/pages/home/components/routing.tsx"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcb00af517ee5f7e66beedc9235513fc73fe022597ff90ff6252884289b71be3"}},{"ruleId":"D2","level":"warning","message":{"text":"browser-automation-mcp.waitForNextReadinessEvent (cognitive 62): browser-automation-mcp.waitForNextReadinessEvent has cognitive complexity 62 (threshold 15). Drivers by points: if/else 18 (40 pts), boolean chains 18, ternaries 2 (3 pts), loops 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":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":1772}}}],"partialFingerprints":{"codehealthFindingId/v1":"6db7446efcb84f0776d672c0f1707eac2280042718556e6822d5c609e364cf15"}},{"ruleId":"D2","level":"warning","message":{"text":"evidence.synthesizeWeatherWebSearchAnswer (cognitive 61): evidence.synthesizeWeatherWebSearchAnswer has cognitive complexity 61 (threshold 15). Drivers by points: ternaries 29 (52 pts), boolean chains 5, if/else 4 (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":"packages/core/src/gateway/features/hosted-web-search/evidence.ts"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3515d3b861b7cd0a579c95898ae19b2ec0b307bbf780cfeb01e38895a44f457"}},{"ruleId":"D2","level":"warning","message":{"text":"providers.ProvidersView (cognitive 61): providers.ProvidersView has cognitive complexity 61 (threshold 15). Drivers by points: ternaries 18 (40 pts), boolean chains 12, if/else 6 (8 pts), loops 1 (nesting depth added 24). Most of this is not in the body itself: 4 of the 61 points are its own statements and the rest belongs to 8 function items inside it that branch (a function literal at line 165, a function literal at line 179, a function literal at line 63, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c105caf3c0249161e9285bd687ff32be40e1ebed0cf25de20b1fa89aa2d3c87"}},{"ruleId":"D2","level":"warning","message":{"text":"providers.ModelMetadataEditor (cognitive 60): providers.ModelMetadataEditor has cognitive complexity 60 (threshold 15). Drivers by points: ternaries 17 (30 pts), if/else 21, boolean chains 9 (nesting depth added 13). Most of this is not in the body itself: 5 of the 60 points are its own statements and the rest belongs to 9 function items inside it that branch (a function literal at line 4889, a function literal at line 4751, a function literal at line 4775, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":4669}}}],"partialFingerprints":{"codehealthFindingId/v1":"c47d8f8477084f03fc3b5fe96b333b9bed61ca148db0a8e031fb083ab40b0ef9"}},{"ruleId":"D2","level":"warning","message":{"text":"profiles.ProfileView (cognitive 60): profiles.ProfileView has cognitive complexity 60 (threshold 15). Drivers by points: ternaries 27 (48 pts), boolean chains 12 (nesting depth added 21). Most of this is not in the body itself: 2 of the 60 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 118, 125, 231). 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":"packages/ui/src/pages/home/components/profiles.tsx"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b057ee0a6077fe3cf35cdb63ba09be0dc59527874ec684c6dcdc0d707c2b28a"}},{"ruleId":"D2","level":"warning","message":{"text":"service.restoreInactiveGlobalProfileConfigs (cognitive 59): service.restoreInactiveGlobalProfileConfigs has cognitive complexity 59 (threshold 15). Drivers by points: if/else 12 (25 pts), boolean chains 19, loops 7 (15 pts) (nesting depth added 21). Of this number, 57 points are the body\u0027s own statements and 2 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":"packages/core/src/profiles/service.ts"},"region":{"startLine":3481}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a083ccead5bcadf931af7fa9bbad3533007d06d4cb7c7c7d81c4da8d1a12086"}},{"ruleId":"D2","level":"warning","message":{"text":"App.App (cognitive 59): App.App has cognitive complexity 59 (threshold 15). Drivers by points: if/else 249 (276 pts), ternaries 120 (147 pts), boolean chains 99, error handling 23 (24 pts), loops 4 (6 pts) (nesting depth added 57). 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. This shape REPEATS in the file: 3 other methods here (App.App::persistConfig, App.App::refreshProviderModels, App.App::submitProviderDraft) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 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":"packages/ui/src/pages/home/App.tsx"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"83bde1ef6b454923db88c7a90c6f96f3218aa8e20b8f8dfc1cdd819087a73fd5"}},{"ruleId":"D2","level":"warning","message":{"text":"virtual-models.FusionToolSelectControl (cognitive 58): virtual-models.FusionToolSelectControl has cognitive complexity 58 (threshold 15). Drivers by points: ternaries 21 (37 pts), boolean chains 14, if/else 7 (nesting depth added 16). Most of this is not in the body itself: 15 of the 58 points are its own statements and the rest belongs to 10 function literals inside it that branch (lines 1208, 1232, 1069, \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":"packages/ui/src/pages/home/components/virtual-models.tsx"},"region":{"startLine":1021}}}],"partialFingerprints":{"codehealthFindingId/v1":"c63b6db11c8239f96455e4b304344a7c61e708a6287ffdeabb7305aead25badd"}},{"ruleId":"D2","level":"warning","message":{"text":"createClaudeProductPlugin.setup (cognitive 57): createClaudeProductPlugin.setup has cognitive complexity 57 (threshold 15). Drivers by points: boolean chains 31, ternaries 19 (21 pts), if/else 3, loops 1, other 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"484bb2268e2450ad6ce35cfa4d1d18fcdcbcca0127c6566c86f02303824f8ccd"}},{"ruleId":"D2","level":"warning","message":{"text":"settings.TraySettingsPage (cognitive 55): settings.TraySettingsPage has cognitive complexity 55 (threshold 15). Drivers by points: ternaries 23 (28 pts), if/else 17 (19 pts), boolean chains 8 (nesting depth added 7). Of this number, 16 points are the body\u0027s own statements and 39 belong to 16 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":"packages/ui/src/pages/home/components/settings.tsx"},"region":{"startLine":1908}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0f24922b73b6a82cb22083e670800dd269d11a7880b6b26abcc58e0f424bd49"}},{"ruleId":"D2","level":"warning","message":{"text":"providers.ProviderModelPicker (cognitive 52): providers.ProviderModelPicker has cognitive complexity 52 (threshold 15). Drivers by points: ternaries 21 (36 pts), if/else 7 (9 pts), boolean chains 7 (nesting depth added 17). Of this number, 30 points are the body\u0027s own statements and 22 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":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":3900}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c25d3602d351645ee7e2d64b816d74aab8d6256bd709389332a55040cdaebcb"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.main (cognitive 51): cli.main has cognitive complexity 51 (threshold 15). Drivers by points: if/else 24 (33 pts), boolean chains 14, ternaries 2 (3 pts), error handling 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":"packages/cli/src/cli.ts"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"27578ca9bb4183b8772f97617861f58b2ddfc82093f1cdf0cc1322dda78063d3"}},{"ruleId":"D2","level":"warning","message":{"text":"config.pickConfig (cognitive 51): config.pickConfig has cognitive complexity 51 (threshold 15). Drivers by points: if/else 40 (44 pts), boolean chains 7 (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":"packages/core/src/config/config.ts"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fb2430bc445019761f6c8fd8e8ee34545b89fe146baf7acf9dd60ffb71fc14d"}},{"ruleId":"D2","level":"warning","message":{"text":"tools.mediaToolBindingsForConfig (cognitive 51): tools.mediaToolBindingsForConfig has cognitive complexity 51 (threshold 15). Drivers by points: if/else 16 (30 pts), ternaries 5 (13 pts), boolean chains 7, loops 1 (nesting depth added 22). Of this number, 48 points are the body\u0027s own statements and 3 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":"packages/core/src/media/tools.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8601f3490d89f330ae5a47bfa4bd7f4a79dd4b91e525f8d84f22634766e400b"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAiToolHubSearchAgent.search (cognitive 50): OpenAiToolHubSearchAgent.search has cognitive complexity 50 (threshold 15). Drivers by points: if/else 12 (19 pts), ternaries 8 (19 pts), boolean chains 8, loops 2 (4 pts) (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":"packages/core/src/mcp/toolhub-mcp.ts"},"region":{"startLine":1467}}}],"partialFingerprints":{"codehealthFindingId/v1":"a06ff044faceace754cebd96edfd402b48e9698ca8043760d7753a3c2e161bed"}},{"ruleId":"D2","level":"warning","message":{"text":"shared.stripJsonCommentsAndTrailingCommas (cognitive 49): shared.stripJsonCommentsAndTrailingCommas has cognitive complexity 49 (threshold 15). Drivers by points: if/else 15 (31 pts), loops 5 (11 pts), boolean chains 7 (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":"packages/core/src/agents/local-providers/shared.ts"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fc57dde8043473fdf3ba3af47496266094a762852604799c924bb4655482d3b"}},{"ruleId":"D2","level":"warning","message":{"text":"index.createClaudeProductPlugin.setup (cognitive 49): index.createClaudeProductPlugin.setup has cognitive complexity 49 (threshold 15). Drivers by points: boolean chains 28, ternaries 13 (17 pts), if/else 3, loops 1 (nesting depth added 4). 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3c8a6442e99623cca0d9b87abc966dfb42958c572b94903405204395217f8ff"}},{"ruleId":"D2","level":"warning","message":{"text":"profiles.normalizeProfileItem (cognitive 49): profiles.normalizeProfileItem has cognitive complexity 49 (threshold 15). Drivers by points: ternaries 19 (28 pts), boolean chains 18, if/else 3 (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":"packages/ui/src/pages/home/shared/profiles.ts"},"region":{"startLine":1395}}}],"partialFingerprints":{"codehealthFindingId/v1":"edeb5c2846ead0ebfb778543f9faf6851dc3f6a8aca9bfc6336929912f48ad82"}},{"ruleId":"D2","level":"warning","message":{"text":"providers.ProviderDeepLinkDialog (cognitive 49): providers.ProviderDeepLinkDialog has cognitive complexity 49 (threshold 15). Drivers by points: ternaries 23 (41 pts), boolean chains 8 (nesting depth added 18). Of this number, 48 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":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"962a7093b6d9accfa7c003bc437124ba0212c8c2de35b3f6935f7f6b121ea10f"}},{"ruleId":"D2","level":"warning","message":{"text":"providers.AddProviderDialog (cognitive 49): providers.AddProviderDialog has cognitive complexity 49 (threshold 15). Drivers by points: ternaries 15 (22 pts), boolean chains 19, if/else 5, match/switch 2, error handling 1 (nesting depth added 7). Of this number, 36 points are the body\u0027s own statements and 13 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":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":3466}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4cedf591cc02a86f9939536b06885b7dda52de2496bd3cb8db55dd4f1cee63e"}},{"ruleId":"D2","level":"warning","message":{"text":"service.applyProfileConfig (cognitive 48): service.applyProfileConfig has cognitive complexity 48 (threshold 15). Drivers by points: ternaries 8 (44 pts), if/else 2, boolean chains 1, loops 1 (nesting depth added 36). 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":"packages/core/src/profiles/service.ts"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"96d78dcce937ccb8b034e958a87df4b85efb6d854169b3a8d542234c35eed56b"}},{"ruleId":"D2","level":"warning","message":{"text":"main.BrowserChrome (cognitive 47): main.BrowserChrome has cognitive complexity 47 (threshold 15). Drivers by points: ternaries 17 (26 pts), if/else 13, boolean chains 6, error handling 2 (nesting depth added 9). Of this number, 19 points are the body\u0027s own statements and 28 belong to 10 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":"packages/ui/src/pages/browser/main.tsx"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"daebd18b400839b5fdff384d2ea2b531a30e71e18fac626fbb91e95c28f6444b"}},{"ruleId":"D2","level":"warning","message":{"text":"config.parseBotGateway (cognitive 45): config.parseBotGateway has cognitive complexity 45 (threshold 15). Drivers by points: if/else 35, boolean chains 10. 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":"packages/core/src/config/config.ts"},"region":{"startLine":2221}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f5540db557a2095163e09eb9a54d0d47f53c95acd1312c805f44cf14af0f8a8"}},{"ruleId":"D2","level":"warning","message":{"text":"profiles.normalizeProfileAgent (cognitive 45): profiles.normalizeProfileAgent has cognitive complexity 45 (threshold 15). Drivers by points: ternaries 9 (45 pts) (nesting depth added 36). 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":"packages/ui/src/pages/home/shared/profiles.ts"},"region":{"startLine":1800}}}],"partialFingerprints":{"codehealthFindingId/v1":"b66ca408d81e3dc333aeb578f83ce9a44c58c14294d87af5e2052b55de56e082"}},{"ruleId":"D2","level":"warning","message":{"text":"serveAsset (cognitive 45): serveAsset has cognitive complexity 45 (threshold 15). Drivers by points: if/else 11 (21 pts), ternaries 2 (8 pts), boolean chains 7, loops 2 (5 pts), error handling 1 (4 pts) (nesting depth added 22). Of this number, 40 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":2475}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2a70c054358f11223679c46a388102ed87ea4ca014c828945abe4f70b0a9c9c"}},{"ruleId":"D2","level":"warning","message":{"text":"RequestLogStore.writeBatch (cognitive 44): RequestLogStore.writeBatch has cognitive complexity 44 (threshold 15). Drivers by points: if/else 12 (32 pts), boolean chains 5, ternaries 1 (5 pts), error handling 1, loops 1 (nesting depth added 24). 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"088aef788f2f9efbb864eb829cbe0bcc018e3c5c50dd8e2502068391f9ecc859"}},{"ruleId":"D2","level":"warning","message":{"text":"index.handleAdminRequest (cognitive 44): index.handleAdminRequest has cognitive complexity 44 (threshold 15). Drivers by points: boolean chains 25, if/else 11 (13 pts), ternaries 3 (6 pts) (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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":4102}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c1ee22e625158fe8c36fe174da7c5674af7a2d7168ee7eb164de802e9339174"}},{"ruleId":"D2","level":"warning","message":{"text":"index.handleClaudeShipSessionApi (cognitive 44): index.handleClaudeShipSessionApi has cognitive complexity 44 (threshold 15). Drivers by points: if/else 21 (28 pts), boolean chains 16 (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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":5197}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbe6d05ae5e0de450c2231ccb64df0e3a064eae7ead75da9f81e2cb1a625ac01"}},{"ruleId":"D2","level":"warning","message":{"text":"extensions.wrapperPluginCapability (cognitive 43): extensions.wrapperPluginCapability has cognitive complexity 43 (threshold 15). Drivers by points: ternaries 17 (28 pts), if/else 10, boolean chains 5 (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":"packages/ui/src/pages/home/shared/extensions.ts"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"08890a09171cc96d226fc7e25087eeb5669113291bd8d173ada5045f64cf46bb"}},{"ruleId":"D2","level":"warning","message":{"text":"providers.ProviderConnectionStatusPanel (cognitive 43): providers.ProviderConnectionStatusPanel has cognitive complexity 43 (threshold 15). Drivers by points: ternaries 19 (38 pts), boolean chains 5 (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":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":1739}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d871863c39a113e8b3b7e8444a7f366880f40060687ea5c2f068f4ebd024a90"}},{"ruleId":"D2","level":"warning","message":{"text":"providers.OpenRouterProviderBlacklistSelect (cognitive 43): providers.OpenRouterProviderBlacklistSelect has cognitive complexity 43 (threshold 15). Drivers by points: ternaries 16 (24 pts), if/else 10, boolean chains 8, error handling 1 (nesting depth added 8). Most of this is not in the body itself: 15 of the 43 points are its own statements and the rest belongs to 9 function items inside it that branch (loadProviders, a function literal at line 4323, a function literal at line 4514, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":4272}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3b34ec35033166f859dd260ababb14cf91c015609477b00534a569df20ab775"}},{"ruleId":"D2","level":"warning","message":{"text":"model-selector.ModelSelector (cognitive 43): model-selector.ModelSelector has cognitive complexity 43 (threshold 15). Drivers by points: ternaries 13 (21 pts), boolean chains 15, if/else 7 (nesting depth added 8). Of this number, 27 points are the body\u0027s own statements and 16 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":"packages/ui/src/pages/home/components/model-selector.tsx"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d46995980f5f88c1aa5aad8b7e3eb059c8b378dcd24bb80469d23706aaf0b40"}},{"ruleId":"D2","level":"warning","message":{"text":"virtual-models.VirtualModelDialog (cognitive 43): virtual-models.VirtualModelDialog has cognitive complexity 43 (threshold 15). Drivers by points: ternaries 15 (17 pts), if/else 13 (14 pts), boolean chains 9, loops 2, error handling 1 (nesting depth added 3). Most of this is not in the body itself: 4 of the 43 points are its own statements and the rest belongs to 14 function items inside it that branch (applyFusionTools, discoverMcpServerTools, submitCustomMcpDialog, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/virtual-models.tsx"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"52d12d605c70bcea8d630413c8ae81c711688090d5063db67c4c9f390bf9ffb6"}},{"ruleId":"D2","level":"warning","message":{"text":"network-logs.LogsView (cognitive 43): network-logs.LogsView has cognitive complexity 43 (threshold 15). Drivers by points: ternaries 17 (26 pts), boolean chains 10, if/else 7 (nesting depth added 9). Of this number, 22 points are the body\u0027s own statements and 21 belong to 14 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":"packages/ui/src/pages/home/components/network-logs.tsx"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"117b133404f13ccfed47a78ae08e4aad2cd302e4848f2765ec0a3936c791d27d"}},{"ruleId":"D2","level":"warning","message":{"text":"App.App::submitProviderDraft (cognitive 43): App.App::submitProviderDraft has cognitive complexity 43 (threshold 15). Drivers by points: if/else 15 (18 pts), ternaries 15 (17 pts), boolean chains 7, loops 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. This shape REPEATS in the file: 3 other methods here (App.App, App.App::persistConfig, App.App::refreshProviderModels) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 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":"packages/ui/src/pages/home/App.tsx"},"region":{"startLine":1705}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8ad019c51983debf1885e3b6b0bbe948c93aa0bf3787b36e521a83b0065055d"}},{"ruleId":"D2","level":"warning","message":{"text":"BrowserAutomationMcpService.runTool (cognitive 42): BrowserAutomationMcpService.runTool has cognitive complexity 42 (threshold 15). Drivers by points: ternaries 13 (26 pts), if/else 4 (8 pts), boolean chains 7, match/switch 1 (nesting depth added 17). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. 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. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3724ef2ca65f2ad50aec62eaf59f7be487c0776d0673a835601431dc6c2f1d1"}},{"ruleId":"D2","level":"warning","message":{"text":"profiles.ClaudeConfigEditorContent (cognitive 42): profiles.ClaudeConfigEditorContent has cognitive complexity 42 (threshold 15). Drivers by points: ternaries 18 (35 pts), if/else 5, boolean chains 2 (nesting depth added 17). Most of this is not in the body itself: 6 of the 42 points are its own statements and the rest belongs to 8 function items inside it that branch (a function literal at line 1473, updateSetting, a function literal at line 1368, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/profiles.tsx"},"region":{"startLine":1337}}}],"partialFingerprints":{"codehealthFindingId/v1":"28df21da9c29086e2b9114e622eb7753f0d6f56bcf103fb99a2384c4a0f3d432"}},{"ruleId":"D2","level":"warning","message":{"text":"profiles.profileSummaryItems (cognitive 41): profiles.profileSummaryItems has cognitive complexity 41 (threshold 15). Drivers by points: ternaries 21 (29 pts), boolean chains 9, if/else 3 (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":"packages/ui/src/pages/home/shared/profiles.ts"},"region":{"startLine":1285}}}],"partialFingerprints":{"codehealthFindingId/v1":"231b7e95c742d69cb0a271a7636b5a64e7a025729f0397acba009a7263dbcf95"}},{"ruleId":"D2","level":"warning","message":{"text":"providers.LocalAgentProviderImportPanel (cognitive 41): providers.LocalAgentProviderImportPanel has cognitive complexity 41 (threshold 15). Drivers by points: ternaries 12 (23 pts), boolean chains 11, if/else 6, error handling 1 (nesting depth added 11). Most of this is not in the body itself: 9 of the 41 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 1481, importCandidate, a function literal at line 1391, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":1372}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8fd495a923bdd50e896146a9c12a74fe700aef81a91a1ac63a75ae53310902d"}},{"ruleId":"D2","level":"warning","message":{"text":"claude-code-router-plugin.resolveRouterRule (cognitive 39): claude-code-router-plugin.resolveRouterRule has cognitive complexity 39 (threshold 15). Drivers by points: ternaries 11 (26 pts), if/else 7 (10 pts), boolean chains 3 (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":"packages/core/src/gateway/claude-code-router-plugin.ts"},"region":{"startLine":1231}}}],"partialFingerprints":{"codehealthFindingId/v1":"e448c8d405596b23580124f18dc2fb527a6d804b78d0330bce7ba748723a2d6d"}},{"ruleId":"D2","level":"warning","message":{"text":"index.handleOrganizationApi (cognitive 39): index.handleOrganizationApi has cognitive complexity 39 (threshold 15). Drivers by points: if/else 18 (31 pts), boolean chains 8 (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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":4002}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad92a5d8adf2c56bdbe15d18525019af83f77b23b55360794607c9246073a7f7"}},{"ruleId":"D2","level":"warning","message":{"text":"zcode.zcodeProviderModelCatalog (cognitive 38): zcode.zcodeProviderModelCatalog has cognitive complexity 38 (threshold 15). Drivers by points: if/else 8 (22 pts), boolean chains 6, ternaries 2 (6 pts), loops 2 (4 pts) (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":"packages/core/src/agents/local-providers/zcode.ts"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"0649cb54b56ec5ee2e71f2e6f7be6927da810540cad7c403017543af59da62ed"}},{"ruleId":"D2","level":"warning","message":{"text":"model-catalog.buildCatalogIndex (cognitive 38): model-catalog.buildCatalogIndex has cognitive complexity 38 (threshold 15). Drivers by points: if/else 8 (25 pts), boolean chains 7, loops 2 (3 pts), ternaries 2 (3 pts) (nesting depth added 19). Of this number, 36 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":"packages/core/src/providers/model-catalog.ts"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"5713919f39f9bb68d279854f6b890de5b9f4f74d227917f1ca6240b51ef2bf38"}},{"ruleId":"D2","level":"warning","message":{"text":"provider-references.renameProviderReferences (cognitive 38): provider-references.renameProviderReferences has cognitive complexity 38 (threshold 15). Drivers by points: if/else 22 (46 pts), loops 10 (15 pts), ternaries 2 (4 pts), boolean chains 2 (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. This shape REPEATS in the file: one other method here (provider-references.renameProviderReferences::rules) 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":"packages/ui/src/pages/home/shared/provider-references.ts"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"c67b2e71d4475292777aac7d2ec7119cef0246fed359a5ffbafa3efd92329d8a"}},{"ruleId":"D2","level":"warning","message":{"text":"dashboard.CodexResetCreditDialog (cognitive 38): dashboard.CodexResetCreditDialog has cognitive complexity 38 (threshold 15). Drivers by points: ternaries 18 (19 pts), if/else 10, boolean chains 8, error handling 1 (nesting depth added 1). Of this number, 20 points are the body\u0027s own statements and 18 belong to 9 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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":3640}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3326175106a759d07d3c1913bcf5a8fad18b4984e7837b16ed16761c56b0d99"}},{"ruleId":"D2","level":"warning","message":{"text":"config.parseGatewayPluginSurfaces (cognitive 37): config.parseGatewayPluginSurfaces has cognitive complexity 37 (threshold 15). Drivers by points: if/else 12 (19 pts), loops 5 (15 pts), boolean chains 2, ternaries 1 (nesting depth added 17). Of this number, 36 points are the body\u0027s own statements and 1 belongs 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":"packages/core/src/config/config.ts"},"region":{"startLine":3168}}}],"partialFingerprints":{"codehealthFindingId/v1":"23916ac763d3a17817943fb42e1b64f298da19ac6a348d4db30c7420deaedbe7"}},{"ruleId":"D2","level":"warning","message":{"text":"request-log-store.assistantStreamText (cognitive 37): request-log-store.assistantStreamText has cognitive complexity 37 (threshold 15). Drivers by points: if/else 14 (22 pts), boolean chains 9, ternaries 2 (4 pts), loops 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":2697}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f50ecc45c98c0b4ea2a0cb13d7676468261646f3c6ed1fadbf0a8553f7585a1"}},{"ruleId":"D2","level":"warning","message":{"text":"marketplace.parsePluginSurfaces (cognitive 37): marketplace.parsePluginSurfaces has cognitive complexity 37 (threshold 15). Drivers by points: if/else 12 (19 pts), loops 5 (15 pts), boolean chains 2, ternaries 1 (nesting depth added 17). Of this number, 36 points are the body\u0027s own statements and 1 belongs 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":"packages/core/src/plugins/marketplace.ts"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f319429ef6c080f5cd58819938928ee73fb6de9de05db3fbfc0259915c59d06"}},{"ruleId":"D2","level":"warning","message":{"text":"profiles.normalizeBotGatewayRuntimeConfig (cognitive 37): profiles.normalizeBotGatewayRuntimeConfig has cognitive complexity 37 (threshold 15). Drivers by points: ternaries 33, if/else 3, 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":"packages/ui/src/pages/home/shared/profiles.ts"},"region":{"startLine":1171}}}],"partialFingerprints":{"codehealthFindingId/v1":"d82ddd9c51e96f382b87efd8b35edfa06c2b7f4f4d27736cfe4a636c1d3aff02"}},{"ruleId":"D2","level":"warning","message":{"text":"service.applyProfileRuntimeConfig (cognitive 36): service.applyProfileRuntimeConfig has cognitive complexity 36 (threshold 15). Drivers by points: ternaries 8 (36 pts) (nesting depth added 28). 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":"packages/core/src/profiles/service.ts"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d89a599a3c4adfa99d432a8f415e41452eb1ace12c31573721eac3703b3eab4"}},{"ruleId":"D2","level":"warning","message":{"text":"dashboard.ModelDistributionOverviewWidget (cognitive 36): dashboard.ModelDistributionOverviewWidget has cognitive complexity 36 (threshold 15). Drivers by points: ternaries 11 (33 pts), boolean chains 3 (nesting depth added 22). Of this number, 21 points are the body\u0027s own statements and 15 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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":1809}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbc327c8eabb9803fa3700b3a5c39217af7dff64bbbefc20f0d7cc1ece967a3a"}},{"ruleId":"D2","level":"warning","message":{"text":"context-archive-continuation.openAiResponsesResponseFromSseEvents (cognitive 35): context-archive-continuation.openAiResponsesResponseFromSseEvents has cognitive complexity 35 (threshold 15). Drivers by points: if/else 11 (23 pts), ternaries 5 (8 pts), boolean chains 3, loops 1 (nesting depth added 15). Of this number, 34 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":"packages/core/src/gateway/features/context-archive-continuation.ts"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"94b84c9d7ce946ccc116a834e56ca96a0023b7c595b31b173871a3c6f89be769"}},{"ruleId":"D2","level":"warning","message":{"text":"toolhub-mcp.normalizeServerConfig (cognitive 34): toolhub-mcp.normalizeServerConfig has cognitive complexity 34 (threshold 15). Drivers by points: ternaries 16 (22 pts), boolean chains 6, if/else 5 (6 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":"packages/core/src/mcp/toolhub-mcp.ts"},"region":{"startLine":1852}}}],"partialFingerprints":{"codehealthFindingId/v1":"949ae08deda918a0b870b3e52a2f44a4988791c4322d5ce45c859142fe10a147"}},{"ruleId":"D2","level":"warning","message":{"text":"model-discovery.buildGatewayDiscoverableModelIds (cognitive 33): model-discovery.buildGatewayDiscoverableModelIds has cognitive complexity 33 (threshold 15). Drivers by points: if/else 6 (18 pts), loops 7 (14 pts), boolean chains 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":"packages/core/src/gateway/features/model-discovery.ts"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"edf3e9f77347e12b93e3a289cb8add448262b69e8738c0d37233be5c2d93c706"}},{"ruleId":"D2","level":"warning","message":{"text":"logs.aggregateAnthropicStreamPayloads (cognitive 33): logs.aggregateAnthropicStreamPayloads has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (27 pts), boolean chains 5, 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":"packages/ui/src/pages/home/shared/logs.ts"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"895d1c9d6c98061f5ea5564abc82c7c0eb3bce0aa5319428677e1cc6a55a4fe1"}},{"ruleId":"D2","level":"warning","message":{"text":"onboarding.OnboardingView (cognitive 33): onboarding.OnboardingView has cognitive complexity 33 (threshold 15). Drivers by points: if/else 16 (26 pts), boolean chains 21, ternaries 15 (18 pts), match/switch 2 (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. This shape REPEATS in the file: one other method here (onboarding.OnboardingView::goToNextStep) 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":"packages/ui/src/pages/home/components/onboarding.tsx"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ed481039c046055981feb64acdd9567386ab43abe655d126a64e8e5cfe607cc"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayService.startGateway (cognitive 32): GatewayService.startGateway has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 12, ternaries 2, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/application/gateway-service.ts"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcf477ad23764e390d6332e413f9ec98e9ed703030d70d4c5a805c33dfbe049c"}},{"ruleId":"D2","level":"warning","message":{"text":"existing-gateway-probe.reloadExistingCcrGatewayConfig (cognitive 32): existing-gateway-probe.reloadExistingCcrGatewayConfig has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (21 pts), boolean chains 7, loops 2 (3 pts), ternaries 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":"packages/core/src/gateway/existing-gateway-probe.ts"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0cb233e6cdc4ecf0d9ae05d6bfa6d1054d7977ee07a5c51dc4df3624facc77b"}},{"ruleId":"D2","level":"warning","message":{"text":"request-log-worker.reviveCommand (cognitive 32): request-log-worker.reviveCommand has cognitive complexity 32 (threshold 15). Drivers by points: if/else 9 (27 pts), ternaries 3 (5 pts) (nesting depth added 20). 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":"packages/core/src/observability/request-log-worker.ts"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"f24ea328d6b377ef88fef67d7c8770c39c95038195dbc468dc74e4a63b74da47"}},{"ruleId":"D2","level":"warning","message":{"text":"account-service.readJsonPath (cognitive 32): account-service.readJsonPath has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (30 pts), boolean chains 1, loops 1 (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":"packages/core/src/providers/account-service.ts"},"region":{"startLine":2373}}}],"partialFingerprints":{"codehealthFindingId/v1":"07f93ddbea35a5dc8e64deca679b643d09042e5b45323a0e61b0092f73d5266f"}},{"ruleId":"D2","level":"warning","message":{"text":"providers.ProviderPresetCombobox (cognitive 32): providers.ProviderPresetCombobox has cognitive complexity 32 (threshold 15). Drivers by points: ternaries 13 (16 pts), if/else 10 (11 pts), boolean chains 5 (nesting depth added 4). Most of this is not in the body itself: 11 of the 32 points are its own statements and the rest belongs to 10 function items inside it that branch (a function literal at line 981, a function literal at line 1142, a function literal at line 1026, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":944}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1f9cf0ff04fcf79afd4f573a452d21ed2e351e2ca4c09bfa4714ab3e3265acb"}},{"ruleId":"D2","level":"warning","message":{"text":"model-catalog.buildCodexModelCatalogIds (cognitive 31): model-catalog.buildCodexModelCatalogIds has cognitive complexity 31 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 7 (14 pts), boolean chains 1, ternaries 1 (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":"packages/core/src/agents/codex/model-catalog.ts"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"72a856afffe153fde5f1eacce9119ba5e7762e0e274818433667cdf0ebcfa37c"}},{"ruleId":"D2","level":"warning","message":{"text":"opencode.readOpenCodeCatalog (cognitive 31): opencode.readOpenCodeCatalog has cognitive complexity 31 (threshold 15). Drivers by points: boolean chains 11, if/else 4 (8 pts), ternaries 6 (8 pts), loops 4 (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":"packages/core/src/agents/local-providers/opencode.ts"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"34769e9ea99521cda78a74eaa0531e44c163c3ca2d75c80e5eb70d0f217f5c79"}},{"ruleId":"D2","level":"warning","message":{"text":"index.mergeStoredMessagesIntoProjectChats (cognitive 31): index.mergeStoredMessagesIntoProjectChats has cognitive complexity 31 (threshold 15). Drivers by points: loops 7 (15 pts), if/else 4 (9 pts), boolean chains 5, ternaries 1 (2 pts) (nesting depth added 14). 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":8047}}}],"partialFingerprints":{"codehealthFindingId/v1":"410d064d2c7726140b00220c3d53b998de8718cf274f7498702ac3436621ec7b"}},{"ruleId":"D2","level":"warning","message":{"text":"network-logs.LogExpandedDetails (cognitive 31): network-logs.LogExpandedDetails has cognitive complexity 31 (threshold 15). Drivers by points: ternaries 21 (23 pts), boolean chains 8 (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":"packages/ui/src/pages/home/components/network-logs.tsx"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"138669a57ac582d8587828b0672d5880a0ba16dbb0d5b7e95e2464c9e4402193"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeCodeRouterPlugin.routeRequest (cognitive 30): ClaudeCodeRouterPlugin.routeRequest has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 13 (19 pts), if/else 4 (6 pts), boolean chains 3, loops 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":"packages/core/src/gateway/claude-code-router-plugin.ts"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bee41a8ba416cab8a8e225ca1ab64f744fd2c81edf28642f9f48bc7a056bb23"}},{"ruleId":"D2","level":"warning","message":{"text":"providers.createProviderAccountDraftFromConfig (cognitive 30): providers.createProviderAccountDraftFromConfig has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 14, ternaries 10 (13 pts), if/else 3 (nesting depth added 3). Of this number, 28 points are the body\u0027s own statements and 2 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/providers.ts"},"region":{"startLine":1202}}}],"partialFingerprints":{"codehealthFindingId/v1":"a335b16449cb5ffb9f2fe6045c1b44f6d31240de56098f4084217f0a9787b4d6"}},{"ruleId":"D2","level":"warning","message":{"text":"dashboard.SystemStatusBar (cognitive 30): dashboard.SystemStatusBar has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 14 (28 pts), if/else 2 (nesting depth added 14). 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, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":2465}}}],"partialFingerprints":{"codehealthFindingId/v1":"80364183787fb8f8a776b1729066ed5a0a22775945a28cecf01722d69ea57337"}},{"ruleId":"D2","level":"warning","message":{"text":"chatWithGateway (cognitive 30): chatWithGateway has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 16, if/else 7, ternaries 5 (6 pts), error handling 1 (nesting depth added 1). Of this number, 28 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":10458}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbd720d43e08e832cc37d9a90cee2103cea591d3404f161d69c1d0e6bdc8b238"}},{"ruleId":"D2","level":"warning","message":{"text":"ProvidersViewDemo.ProvidersViewDemo (cognitive 29): ProvidersViewDemo.ProvidersViewDemo has cognitive complexity 29 (threshold 15). Drivers by points: if/else 14 (15 pts), ternaries 6 (8 pts), boolean chains 5, loops 1 (nesting depth added 3). Most of this is not in the body itself: 6 of the 29 points are its own statements and the rest belongs to 7 function items inside it that branch (play, a function literal at line 104, play::waitFor, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/src/components/interactive/ProvidersViewDemo.tsx"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eeeb24f31e85bdc4fb27b7b8e7ed2fe2cb189d9a244a0776c8fc12e905e59c6"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.parseWebArgs (cognitive 29): cli.parseWebArgs has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13 (26 pts), boolean chains 2, 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":"packages/cli/src/cli.ts"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"251e9dc4f6e7b2301b91de7983e9424adff8c7729dfc1366d789a4b83693e7c7"}},{"ruleId":"D2","level":"warning","message":{"text":"media-preview-bridge.codexMediaPreviewPageBootstrap::receive (cognitive 29): media-preview-bridge.codexMediaPreviewPageBootstrap::receive has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (14 pts), ternaries 5 (8 pts), boolean chains 4, 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":"packages/core/src/agents/codex/media-preview-bridge.ts"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"9966d9821b3215d3bcb2d3c91613d29fa261e61716f95bd176e276b3166f02d2"}},{"ruleId":"D2","level":"warning","message":{"text":"app.availableGatewayModelIds (cognitive 29): app.availableGatewayModelIds has cognitive complexity 29 (threshold 15). Drivers by points: if/else 4 (13 pts), loops 5 (11 pts), ternaries 1 (4 pts), boolean chains 1 (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":"packages/core/src/contracts/app.ts"},"region":{"startLine":1143}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b5309b57ebc57c4fcce62b25261a7c8090d78d6493355392f46a637f7283fc4"}},{"ruleId":"D2","level":"warning","message":{"text":"claude-code-router-plugin.routerRuleConditionMatches (cognitive 29): claude-code-router-plugin.routerRuleConditionMatches has cognitive complexity 29 (threshold 15). Drivers by points: if/else 14 (18 pts), ternaries 3 (6 pts), boolean chains 5 (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":"packages/core/src/gateway/claude-code-router-plugin.ts"},"region":{"startLine":1390}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d5c814a55c3593f6d636da0f47453ad11659461f1c1be570c466d1547b321d4"}},{"ruleId":"D2","level":"warning","message":{"text":"index.handleClaudeShipCodeApi (cognitive 29): index.handleClaudeShipCodeApi has cognitive complexity 29 (threshold 15). Drivers by points: if/else 16 (20 pts), boolean chains 9 (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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":5035}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a8071829a92df570b6083db0031fd24dbbc78b799348f156073a3485362dcdc"}},{"ruleId":"D2","level":"warning","message":{"text":"index.normalizeQuestionsV2Question (cognitive 29): index.normalizeQuestionsV2Question has cognitive complexity 29 (threshold 15). Drivers by points: if/else 17 (23 pts), boolean chains 5, 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":12811}}}],"partialFingerprints":{"codehealthFindingId/v1":"c53f05abaf0073999022e26ebbd230c340cc4786a45e409c6a85185ea182c592"}},{"ruleId":"D2","level":"warning","message":{"text":"profiles.normalizeBotGatewayConversationRef (cognitive 29): profiles.normalizeBotGatewayConversationRef has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 13 (25 pts), boolean chains 2, if/else 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":"packages/ui/src/pages/home/shared/profiles.ts"},"region":{"startLine":1248}}}],"partialFingerprints":{"codehealthFindingId/v1":"34e4212924ab6bc11f099dde56fba38b166ce8b002f5790fee2265541d590818"}},{"ruleId":"D2","level":"warning","message":{"text":"routing.RoutingView (cognitive 29): routing.RoutingView has cognitive complexity 29 (threshold 15). Drivers by points: boolean chains 14, ternaries 7 (11 pts), if/else 2 (4 pts) (nesting depth added 6). Most of this is not in the body itself: 4 of the 29 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 104, 146, 155, \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":"packages/ui/src/pages/home/components/routing.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"efc6c4f46e97760d20e332a8714df47a89c70c1e1733d6d305a528e4ca68d187"}},{"ruleId":"D2","level":"warning","message":{"text":"network-logs.JsonTreeNode (cognitive 29): network-logs.JsonTreeNode has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 17 (25 pts), boolean chains 2, if/else 2 (nesting depth added 8). Of this number, 26 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":"packages/ui/src/pages/home/components/network-logs.tsx"},"region":{"startLine":2506}}}],"partialFingerprints":{"codehealthFindingId/v1":"387d35369e78f20933cae989638a546c978d72e996da52bc3e3fb388aa38808f"}},{"ruleId":"D2","level":"warning","message":{"text":"grok.grokModelCatalogFromPayload (cognitive 28): grok.grokModelCatalogFromPayload has cognitive complexity 28 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 9, ternaries 3 (6 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":"packages/core/src/agents/local-providers/grok.ts"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb11580d65c56ef82692f6237aa95fd4d97e481ba473019545fac213fd9b5dd3"}},{"ruleId":"D2","level":"warning","message":{"text":"request-log-store.inferAgentFromText (cognitive 28): request-log-store.inferAgentFromText has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 18, if/else 10. 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":2043}}}],"partialFingerprints":{"codehealthFindingId/v1":"267d792e64831a1a8061ced36683459341e0cb5480c93ffe610870906f1a6a9f"}},{"ruleId":"D2","level":"warning","message":{"text":"route-trace.boundedPreview (cognitive 28): route-trace.boundedPreview has cognitive complexity 28 (threshold 15). Drivers by points: if/else 17 (22 pts), boolean chains 3, 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":"packages/core/src/observability/route-trace.ts"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a55a071a138e0eeb40a95f13b26ff4eb77f5bec6cf0ca1aa9b597119b4bd5ed"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayPluginService.applyGatewayRequestTransforms (cognitive 28): GatewayPluginService.applyGatewayRequestTransforms has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 6 (13 pts), if/else 4 (8 pts), boolean chains 4, 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":"packages/core/src/plugins/service.ts"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a2f62894dca8edb4e59a7abdc319d6303080230206de654f835f97dec9641c5"}},{"ruleId":"D2","level":"warning","message":{"text":"service.profilePath (cognitive 28): service.profilePath has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 7 (28 pts) (nesting depth added 21). 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":"packages/core/src/profiles/service.ts"},"region":{"startLine":902}}}],"partialFingerprints":{"codehealthFindingId/v1":"b702b8ae7a4b89ebea15e5c79acc6e206da9458494c872bed2d1e9fa45002937"}},{"ruleId":"D2","level":"warning","message":{"text":"account-service.readJsonPathBracket (cognitive 28): account-service.readJsonPathBracket has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (14 pts), ternaries 2 (5 pts), error handling 1 (4 pts), boolean chains 3, loops 1 (2 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":"packages/core/src/providers/account-service.ts"},"region":{"startLine":2464}}}],"partialFingerprints":{"codehealthFindingId/v1":"f46d74df90bd78410072fb7b58b863299871fb7f91a7226fde8b8abeb5f9aba0"}},{"ruleId":"D2","level":"warning","message":{"text":"management-server.parsePluginSurfaces (cognitive 28): management-server.parsePluginSurfaces has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (21 pts), loops 2 (4 pts), boolean chains 2, ternaries 1 (nesting depth added 10). Of this number, 27 points are the body\u0027s own statements and 1 belongs 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":"packages/core/src/web/management-server.ts"},"region":{"startLine":999}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8809879b1014959ade846bc8ad77aca90c91071011503a70a6995075a14bc60"}},{"ruleId":"D2","level":"warning","message":{"text":"ipc.parsePluginSurfaces (cognitive 28): ipc.parsePluginSurfaces has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (21 pts), loops 2 (4 pts), boolean chains 2, ternaries 1 (nesting depth added 10). Of this number, 27 points are the body\u0027s own statements and 1 belongs 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":"packages/electron/src/main/ipc.ts"},"region":{"startLine":1210}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b0b08683fe6375967faa91ea85962aa3d7aa0fbcd77e02e6d788711f7364046"}},{"ruleId":"D2","level":"warning","message":{"text":"dashboard.providerAccountBentoPackedRowCount::place (cognitive 28): dashboard.providerAccountBentoPackedRowCount::place has cognitive complexity 28 (threshold 15). Drivers by points: loops 6 (19 pts), if/else 2 (8 pts), boolean chains 1 (nesting depth added 19). 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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":4388}}}],"partialFingerprints":{"codehealthFindingId/v1":"3494ab9542b83128caeac73687d6868d50002839758968a80c122a5473008dbc"}},{"ruleId":"D2","level":"warning","message":{"text":"claude-code-router-plugin.configuredSubagentModelDescriptionRows (cognitive 27): claude-code-router-plugin.configuredSubagentModelDescriptionRows has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 5, loops 4 (5 pts), ternaries 1 (3 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":"packages/core/src/gateway/claude-code-router-plugin.ts"},"region":{"startLine":999}}}],"partialFingerprints":{"codehealthFindingId/v1":"e997e9e7a7d0a5f4fd4293a02262938b9d18139c5c917be16e34d7d495a2161f"}},{"ruleId":"D2","level":"warning","message":{"text":"context-archive-continuation.anthropicMessagesResponseFromSseEvents (cognitive 27): context-archive-continuation.anthropicMessagesResponseFromSseEvents has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 5, ternaries 1 (2 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":"packages/core/src/gateway/features/context-archive-continuation.ts"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"9629289b2d5be2bbc46c3a231434b34f9e29fc9d3334ebce6ac1f3f5f92a18b8"}},{"ruleId":"D2","level":"warning","message":{"text":"discovery.claudeCodeWebSearchToolResultTexts (cognitive 27): discovery.claudeCodeWebSearchToolResultTexts has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 5, loops 3 (4 pts) (nesting depth added 9). Of this number, 26 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":"packages/core/src/gateway/features/hosted-web-search/discovery.ts"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b6924eb10e5dd20008b9deaf060d234197727a0bb0fced33fe4798da33465a5"}},{"ruleId":"D2","level":"warning","message":{"text":"fusion-vision-mcp.analyzeVision (cognitive 27): fusion-vision-mcp.analyzeVision has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (11 pts), ternaries 5 (7 pts), boolean chains 6, error handling 1 (2 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":"packages/core/src/mcp/fusion-vision-mcp.ts"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfcae1a77dde194b392ac4f5bfe7044ea51f1302c8440a1484d104d65ccf634c"}},{"ruleId":"D2","level":"warning","message":{"text":"index.listProjectDirectoryEntries (cognitive 27): index.listProjectDirectoryEntries has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (12 pts), ternaries 4 (8 pts), boolean chains 6, loops 1 (nesting depth added 10). Of this number, 24 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":8516}}}],"partialFingerprints":{"codehealthFindingId/v1":"94c90621383967a544eff55056d59d492da295ad11f9510b97427cd1930c07b9"}},{"ruleId":"D2","level":"warning","message":{"text":"index.forEachProtoField (cognitive 27): index.forEachProtoField has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (26 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":13867}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc58ebb6cbeca0d21b1605e903266196e0bc7b6e0811f1dfa26cf013955991d7"}},{"ruleId":"D2","level":"warning","message":{"text":"dialog.Dialog (cognitive 27): dialog.Dialog has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 7, ternaries 3 (5 pts) (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 5 function literals inside it that branch (lines 91, 71, 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":"packages/ui/src/components/ui/dialog.tsx"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"58e2154d9c3535956665bbe6ebe3bd8ec209055fd2ce23a955955c52365fec80"}},{"ruleId":"D2","level":"warning","message":{"text":"providers.providerCredentialsFromDraft (cognitive 27): providers.providerCredentialsFromDraft has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 6 (12 pts), if/else 5 (10 pts), boolean chains 4, 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":"packages/ui/src/pages/home/shared/providers.ts"},"region":{"startLine":945}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ba82ce32029205ddf1a5f6f4ee9e1f97af14002b33404203344682153a3778e"}},{"ruleId":"D2","level":"warning","message":{"text":"dashboard.ProviderAccountMeterLine (cognitive 27): dashboard.ProviderAccountMeterLine has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 14 (21 pts), boolean chains 6 (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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":3440}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b46bd396383dd59839e067e3fe10c7cf3d8387ad033f1ca093ba53c5940e4b2"}},{"ruleId":"D2","level":"warning","message":{"text":"connectGatewayChatStreamResponse (cognitive 27): connectGatewayChatStreamResponse has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 9, ternaries 4 (5 pts), loops 2, error handling 1 (nesting depth added 2). None of this is in the body itself: all 27 points belong to 2 function literals inside it that branch (lines 10588, 10605). 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":10587}}}],"partialFingerprints":{"codehealthFindingId/v1":"10d87066c3574cc045d915df019a5b5a2a7aa33c92c8bf11ab3e2767a923be55"}},{"ruleId":"D2","level":"warning","message":{"text":"config.parseProviderModelMetadata (cognitive 26): config.parseProviderModelMetadata has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 24, boolean chains 1, if/else 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":"packages/core/src/config/config.ts"},"region":{"startLine":1532}}}],"partialFingerprints":{"codehealthFindingId/v1":"45472a5d9a13d30245d396269cd2badedec2c8dc01d60086a8f2fae8a1e30429"}},{"ruleId":"D2","level":"warning","message":{"text":"service.resolveProviderMediaTarget (cognitive 26): service.resolveProviderMediaTarget has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 8 (12 pts), boolean chains 7, if/else 6 (7 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":"packages/core/src/media/service.ts"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee7238a02fcf32848c247be4aef55610889b35691f61a75705eac88d71d84284"}},{"ruleId":"D2","level":"warning","message":{"text":"request-log-store.userTextCandidates (cognitive 26): request-log-store.userTextCandidates has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (20 pts), loops 2 (4 pts), boolean chains 2 (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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":2469}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe0a99e57703b2b901e5d83f13f4af9bf06854ad91be5610154f2a392c2dcd77"}},{"ruleId":"D2","level":"warning","message":{"text":"request-log-store.extractUsageSnapshot (cognitive 26): request-log-store.extractUsageSnapshot has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 14 (21 pts), if/else 3, boolean chains 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":6348}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7880734b4b5ff2aa5fe23c8569b2a7b92fc1aeb2e3c839af06aed685f0bad2a"}},{"ruleId":"D2","level":"warning","message":{"text":"route-script-result.normalizeRouteScriptResult (cognitive 26): route-script-result.normalizeRouteScriptResult has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10, boolean chains 8, ternaries 7 (8 pts) (nesting depth added 1). 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: 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":"packages/core/src/routing/route-script-result.ts"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8ea3e0574c553cf90a13964b9dad3683fbe0ec7f59d7f1ed17035be002d9e4c"}},{"ruleId":"D2","level":"warning","message":{"text":"index.extractGatewayToolCalls (cognitive 26): index.extractGatewayToolCalls has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (18 pts), ternaries 2 (6 pts), loops 1 (2 pts) (nesting depth added 13). Of this number, 25 points are the body\u0027s own statements and 1 belongs 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":12589}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c6adafc377f0c318fe28d0819f6f91e51da683a457cabf255b0d924cc071373"}},{"ruleId":"D2","level":"warning","message":{"text":"claude-design-window.routeClaudeDesignFetchRequest (cognitive 26): claude-design-window.routeClaudeDesignFetchRequest has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 8 (14 pts), if/else 5, boolean chains 4, error handling 2 (3 pts) (nesting depth added 7). Of this number, 23 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":"packages/electron/src/main/claude-design-window.ts"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"6715590295d4aff9da6ccca6670f0bc8c502e15f41f19026cbd3798497849b7b"}},{"ruleId":"D2","level":"warning","message":{"text":"electron-web-search-mcp.searchUrlForEngine (cognitive 26): electron-web-search-mcp.searchUrlForEngine has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (20 pts), ternaries 2 (6 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":"packages/electron/src/main/electron-web-search-mcp.ts"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e1271c041d761841b36dd41bad98afa1c8c8d74616681bc7eae40216aa5abf8"}},{"ruleId":"D2","level":"warning","message":{"text":"providers.providerJsonConnectorDraftPartsFromDraft (cognitive 26): providers.providerJsonConnectorDraftPartsFromDraft has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 11, if/else 7, ternaries 4 (6 pts), error handling 1 (2 pts) (nesting depth added 3). 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":"packages/ui/src/pages/home/shared/providers.ts"},"region":{"startLine":1300}}}],"partialFingerprints":{"codehealthFindingId/v1":"abb3c5fe6f8465db3908ecf8a8ca5875640c47f7341ae1873965dacfd8ea0103"}},{"ruleId":"D2","level":"warning","message":{"text":"network-logs.NetworkingView (cognitive 26): network-logs.NetworkingView has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 14 (20 pts), boolean chains 3, if/else 3 (nesting depth added 6). Of this number, 20 points are the body\u0027s own statements and 6 belong 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":"packages/ui/src/pages/home/components/network-logs.tsx"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"c57d299517aa6e0a3e545bba37e4dec25b1b2dc36a50c914c21699c385b1630a"}},{"ruleId":"D2","level":"warning","message":{"text":"dashboard.UsageAnalysisCard (cognitive 26): dashboard.UsageAnalysisCard has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 12 (22 pts), boolean chains 4 (nesting depth added 10). Of this number, 14 points are the body\u0027s own statements and 12 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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":6274}}}],"partialFingerprints":{"codehealthFindingId/v1":"757915b69fb2dd5cb28a8aa81df2629c0245ca771a35a73f60a3b354d5e6271e"}},{"ruleId":"D2","level":"warning","message":{"text":"commentFromRequest (cognitive 26): commentFromRequest has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 13, boolean chains 11, other 2. Of this number, 25 points are the body\u0027s own statements and 1 belongs to 2 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":9472}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfc76c5dac2bb46465ba66b0674cd8f185dbe8a7f7acb55c9907e11e021bc9af"}},{"ruleId":"D2","level":"warning","message":{"text":"media-preview-bridge.loadCodexMediaArtifact (cognitive 25): media-preview-bridge.loadCodexMediaArtifact has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 7, error handling 1, loops 1, ternaries 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":"packages/core/src/agents/codex/media-preview-bridge.ts"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"6addcebbafe41f16fb01174d887592791997207001c3b940cb1e3b953c7b0259"}},{"ruleId":"D2","level":"warning","message":{"text":"request-log-worker.isCompleteJsonContainer (cognitive 25): request-log-worker.isCompleteJsonContainer has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 6, 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":"packages/core/src/observability/request-log-worker.ts"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"52ef74d9d7329f32705c85fdc65158bf658045d3e6ed31256e6cdf2f40db2c0c"}},{"ruleId":"D2","level":"warning","message":{"text":"account-service.kimiCodeUsageResetAt (cognitive 25): account-service.kimiCodeUsageResetAt has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 5 (14 pts), if/else 3 (6 pts), boolean chains 3, loops 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":"packages/core/src/providers/account-service.ts"},"region":{"startLine":1291}}}],"partialFingerprints":{"codehealthFindingId/v1":"1929b3fce049d23c117f0dd02c0240e84ab2a7b7cce09e2a908f1c7cbec229ad"}},{"ruleId":"D2","level":"warning","message":{"text":"model-catalog.catalogProviderTokenScore (cognitive 25): model-catalog.catalogProviderTokenScore has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 3 (12 pts), if/else 3 (8 pts), loops 2 (3 pts), boolean chains 2 (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":"packages/core/src/providers/model-catalog.ts"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3156c545667294d4933adcfbb90524a33587a938400f72dd167520c678c7d87"}},{"ruleId":"D2","level":"warning","message":{"text":"providers.parseProviderAccountDraft (cognitive 25): providers.parseProviderAccountDraft has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (10 pts), ternaries 5 (9 pts), boolean chains 5, 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":"packages/ui/src/pages/home/shared/providers.ts"},"region":{"startLine":1090}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffc351caa3fd212449767bed852a155af559228e48d4cc870ebca070d0db97be"}},{"ruleId":"D2","level":"warning","message":{"text":"profiles.ProfileRoutingSettings (cognitive 25): profiles.ProfileRoutingSettings has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 13 (21 pts), boolean chains 2, if/else 2 (nesting depth added 8). 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 items inside it that branch (submitRuleDialog, a function literal at line 1188, openEditRuleDialog, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/profiles.tsx"},"region":{"startLine":1098}}}],"partialFingerprints":{"codehealthFindingId/v1":"118578dbd97151d8ae7fa2427d8fd938a5df78c45d6e47a0ef15e92138a40286"}},{"ruleId":"D2","level":"warning","message":{"text":"update.updatePrimaryAction (cognitive 25): update.updatePrimaryAction has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 6 (13 pts), boolean chains 9, if/else 3 (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":"packages/ui/src/pages/home/components/update.tsx"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0eeca798d66fd8cb64a37ef1b2552a10b073f375bb3a98f62f00e28b3ecd372"}},{"ruleId":"D2","level":"warning","message":{"text":"dashboard.OverviewActivityGrid (cognitive 25): dashboard.OverviewActivityGrid has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 14 (24 pts), boolean chains 1 (nesting depth added 10). Of this number, 18 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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":1565}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3c414e741181792084a51a7c03c207a06019cbb3ac4db510b53c30784d2f872"}},{"ruleId":"D2","level":"warning","message":{"text":"dashboard.providerAccountBentoLayout (cognitive 25): dashboard.providerAccountBentoLayout has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 4 (6 pts), boolean chains 4 (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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":4314}}}],"partialFingerprints":{"codehealthFindingId/v1":"4598ec9c8fb5737f6883065004f6ed1822cf6bd2bc4da75c4106d0027f1184f4"}},{"ruleId":"D2","level":"warning","message":{"text":"kimi.splitTomlArray (cognitive 24): kimi.splitTomlArray has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 8, 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":"packages/core/src/agents/local-providers/kimi.ts"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"110b2b5df48676b2f8e86ba68d99de7f9b75d5fb29edd290e14667614aa6a0b9"}},{"ruleId":"D2","level":"warning","message":{"text":"service.applyCodexProfile (cognitive 24): service.applyCodexProfile has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 13 (14 pts), boolean chains 8, error handling 1, if/else 1 (nesting depth added 1). Of this number, 22 points are the body\u0027s own statements and 2 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":"packages/core/src/profiles/service.ts"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a4d594543eb4d5f8419ceb9a82534835d05c4ad3644ef24e8508a1db80447ec"}},{"ruleId":"D2","level":"warning","message":{"text":"index.handleClaudeShipBakuSessionApi (cognitive 24): index.handleClaudeShipBakuSessionApi has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 14, if/else 10. 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":5314}}}],"partialFingerprints":{"codehealthFindingId/v1":"e00f87944bc2bc4f187f45078cf7472fa31ad62c44a15a79f19333ede7a3ec77"}},{"ruleId":"D2","level":"warning","message":{"text":"index.mergeOpenAiSsePayload (cognitive 24): index.mergeOpenAiSsePayload has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 4 (10 pts), if/else 3 (6 pts), loops 3 (5 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":10956}}}],"partialFingerprints":{"codehealthFindingId/v1":"3821b665680d984522d707680f9771231bb6379c4d332755d3111880ba243a19"}},{"ruleId":"D2","level":"warning","message":{"text":"WindowsManager.openPluginAppWindow (cognitive 24): WindowsManager.openPluginAppWindow has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 7, ternaries 2 (3 pts) (nesting depth added 4). Most of this is not in the body itself: 10 of the 24 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 229, 177, 219, \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":"packages/electron/src/main/windows.ts"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"165ef37aae3f2c6461a1630c87b7ba1eb35b99d85ebbe78bc63025069ffc87c0"}},{"ruleId":"D2","level":"warning","message":{"text":"providers.ProviderSetupProgress (cognitive 24): providers.ProviderSetupProgress has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 13 (20 pts), boolean chains 3, if/else 1 (nesting depth added 7). Most of this is not in the body itself: 6 of the 24 points are its own statements and the rest belongs to one function literal inside it that branches (line 1666). 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":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":1603}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ad8f55570613ead9b9a7673ce2db7808a1008254b244d3f170534afcaca64ea"}},{"ruleId":"D2","level":"warning","message":{"text":"profiles.ProfileOpenDialog (cognitive 24): profiles.ProfileOpenDialog has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 10 (18 pts), boolean chains 3, if/else 3 (nesting depth added 8). Of this number, 20 points are the body\u0027s own statements and 4 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":"packages/ui/src/pages/home/components/profiles.tsx"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5533b26d7dda2a4b353d1a0b00d7d0948e254e5aef426ca8d66a548bd32527a"}},{"ruleId":"D2","level":"warning","message":{"text":"dashboard.overviewMetricDatum (cognitive 24): dashboard.overviewMetricDatum has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 8 (15 pts), if/else 9 (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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":2385}}}],"partialFingerprints":{"codehealthFindingId/v1":"0804443715de3ec1ffd6cb939a651076831392420fffd09e028bc4abdf8eb0d3"}},{"ruleId":"D2","level":"warning","message":{"text":"executor.resolveProviderCredentialRoutingTarget (cognitive 23): executor.resolveProviderCredentialRoutingTarget has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 7 (11 pts), if/else 7 (8 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":"packages/core/src/gateway/upstream/executor.ts"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"961c69a30dcb33e97c7a0f710654dd7988470edf0f86e893160657b57ed3a125"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayMediaExecutor.download (cognitive 23): GatewayMediaExecutor.download has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (16 pts), error handling 2 (3 pts), boolean chains 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":"packages/core/src/media/executors.ts"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"5949f16b4b1da6a503dea21b4f2781a04c4ffbaddc6c7f7cc3419adb85a7c43a"}},{"ruleId":"D2","level":"warning","message":{"text":"RawTraceSynchronizer.processStoredBundle (cognitive 23): RawTraceSynchronizer.processStoredBundle has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (12 pts), ternaries 5 (7 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, 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":"packages/core/src/observability/raw-trace-sync.ts"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ccf815ea158fc7813a8bc45209a7325611edc3d7a5782bd00dd7b3b47d4937c"}},{"ruleId":"D2","level":"warning","message":{"text":"launch-service.probeExistingProfileGateway (cognitive 23): launch-service.probeExistingProfileGateway has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 4, 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":"packages/core/src/profiles/launch-service.ts"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dfc254712c6c0638ef9850f0394c8f453c5c6c02a7411fca534d3b4a99048fe"}},{"ruleId":"D2","level":"warning","message":{"text":"store.extractUsageSnapshot (cognitive 23): store.extractUsageSnapshot has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 12 (18 pts), if/else 3, 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":"packages/core/src/usage/store.ts"},"region":{"startLine":1140}}}],"partialFingerprints":{"codehealthFindingId/v1":"b284f69a760a28a792cf79c86fa7e2020b7a6c76b17eb0ea124e9b030fe4dd09"}},{"ruleId":"D2","level":"warning","message":{"text":"profiles.AgentSelectControl (cognitive 23): profiles.AgentSelectControl has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 7 (10 pts), boolean chains 7, if/else 6 (nesting depth added 3). Most of this is not in the body itself: 7 of the 23 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 574, 610, 641, \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":"packages/ui/src/pages/home/components/profiles.tsx"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba6b366c2f4dd3226dc460e1d584e5191f233f1938860eadbbc6f4211c89887c"}},{"ruleId":"D2","level":"warning","message":{"text":"model-catalog.documentedReasoningProfile (cognitive 22): model-catalog.documentedReasoningProfile has cognitive complexity 22 (threshold 15). Drivers by points: if/else 20, ternaries 1 (2 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":"packages/core/src/agents/codex/model-catalog.ts"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdd4d60ec9cf3462f8966ec218001d29534683e7e2ef8e09a3ec22f8e8787ad5"}},{"ruleId":"D2","level":"warning","message":{"text":"config.parseProxy (cognitive 22): config.parseProxy has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11, ternaries 5 (9 pts), boolean chains 2 (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":"packages/core/src/config/config.ts"},"region":{"startLine":2518}}}],"partialFingerprints":{"codehealthFindingId/v1":"c51b1345123efb60c1e8a2f693c146a436d922c3e2c832b016b241ca80c0ec62"}},{"ruleId":"D2","level":"warning","message":{"text":"config-compiler.normalizeCoreGatewayVirtualModelProfile (cognitive 22): config-compiler.normalizeCoreGatewayVirtualModelProfile has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 11 (12 pts), boolean chains 7, if/else 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":"packages/core/src/gateway/core-runtime/config-compiler.ts"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ef18dcd77f917923a5d0d3efbcb7fc1e442ebd09a8c87f47e1bc39e4c6ce2f7"}},{"ruleId":"D2","level":"warning","message":{"text":"response-transform.transformAnthropicWebSearchProtocolSseText (cognitive 22): response-transform.transformAnthropicWebSearchProtocolSseText has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 9 (10 pts), boolean chains 7, if/else 3 (4 pts), loops 1 (nesting depth added 2). Of this number, 17 points are the body\u0027s own statements and 5 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/features/hosted-web-search/response-transform.ts"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"154303be57ea87717f9e85fed4e03a97bb04355eb4f7e395e5dde617b491b2f0"}},{"ruleId":"D2","level":"warning","message":{"text":"stream-experience.geminiFragments (cognitive 22): stream-experience.geminiFragments has cognitive complexity 22 (threshold 15). Drivers by points: if/else 3 (10 pts), ternaries 4 (8 pts), loops 2 (3 pts), boolean chains 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":"packages/core/src/observability/stream-experience.ts"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4a8a1e5ced0e316b7df2ca4c4c2835f5211e917c49a5fc5c0f8a8d98847de85"}},{"ruleId":"D2","level":"warning","message":{"text":"account-service.localAgentProviderAccountCredential (cognitive 22): account-service.localAgentProviderAccountCredential has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 1, 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":"packages/core/src/providers/account-service.ts"},"region":{"startLine":1470}}}],"partialFingerprints":{"codehealthFindingId/v1":"e49d9dda29be22d791785edc051a4d5e1b84ad608a50f4b34a9c4b9aef4f5cf8"}},{"ruleId":"D2","level":"warning","message":{"text":"index.mergeGatewaySsePayload (cognitive 22): index.mergeGatewaySsePayload has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 8, ternaries 2 (3 pts), loops 1 (2 pts) (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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":10912}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a541485cb329aea6c3ab05566fa4f6f2f392364de7df41943153badf301e962"}},{"ruleId":"D2","level":"warning","message":{"text":"index.claudeDesignProviderSelectorNames (cognitive 22): index.claudeDesignProviderSelectorNames has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 3 (5 pts), boolean chains 3, ternaries 1 (2 pts) (nesting depth added 10). Of this number, 18 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":11842}}}],"partialFingerprints":{"codehealthFindingId/v1":"096ca55c8bbf378342020f32bfccf9ad56721b1eb2d94456c18b0607d2dbb3c6"}},{"ruleId":"D2","level":"warning","message":{"text":"profiles.BotGatewaySelectForm (cognitive 22): profiles.BotGatewaySelectForm has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 9 (12 pts), if/else 6, boolean chains 3, error handling 1 (nesting depth added 3). Most of this is not in the body itself: 9 of the 22 points are its own statements and the rest belongs to 4 function items inside it that branch (a function literal at line 1971, a function literal at line 2001, updateEnabled, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/profiles.tsx"},"region":{"startLine":1944}}}],"partialFingerprints":{"codehealthFindingId/v1":"09a8f42d5cf27101ae970d77792554b350302f82bd82e1c4f878585cbee50e90"}},{"ruleId":"D2","level":"warning","message":{"text":"onboarding.OnboardingView::goToNextStep (cognitive 22): onboarding.OnboardingView::goToNextStep has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 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. This shape REPEATS in the file: one other method here (onboarding.OnboardingView) 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":"packages/ui/src/pages/home/components/onboarding.tsx"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"afde43f2f16f4e421db89b0e6c867d23d8f32a098062852704dc03d80a1aa87c"}},{"ruleId":"D2","level":"warning","message":{"text":"network-logs.LogJsonPanel (cognitive 22): network-logs.LogJsonPanel has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 17 (30 pts), if/else 17 (22 pts), boolean chains 12, error handling 2, loops 1 (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. This shape REPEATS in the file: one other method here (network-logs.LogJsonPanel::loadInlineFullBody) 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":"packages/ui/src/pages/home/components/network-logs.tsx"},"region":{"startLine":1782}}}],"partialFingerprints":{"codehealthFindingId/v1":"52a9f8b653b66aca0b2b18f09c4bcabde20d0df3d562527086adf30610acf381"}},{"ruleId":"D2","level":"warning","message":{"text":"dashboard.AgentTrajectoryNodePreview (cognitive 22): dashboard.AgentTrajectoryNodePreview has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 13 (15 pts), boolean chains 4, if/else 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":5642}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf94e8dad1ad4a95eddd507977c7e19e44dd1e421591ffb5bfcc15ada807a929"}},{"ruleId":"D2","level":"warning","message":{"text":"layout.MainLayout (cognitive 22): layout.MainLayout has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 15 (19 pts), boolean chains 3 (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":"packages/ui/src/pages/home/components/layout.tsx"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"821b36219ad4789bece59e7cf2a3e84b02469d5afa5ff0a7b553561b8ad3ae42"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.parseArgs (cognitive 21): cli.parseArgs has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 4, 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":"packages/cli/src/cli.ts"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"a95136333c646d6f06bed39726b793bf5f6338fbad0b7cbb28b1fe5df7eff546"}},{"ruleId":"D2","level":"warning","message":{"text":"claude-code.scanClaudeCodeKeychain (cognitive 21): claude-code.scanClaudeCodeKeychain has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 2 (3 pts), ternaries 1 (3 pts), boolean chains 2 (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":"packages/core/src/agents/local-providers/claude-code.ts"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8c11e410429edaaccc9d40b77b8dfa1ac24d7db8ec1db4263ec3e6aa2515f25"}},{"ruleId":"D2","level":"warning","message":{"text":"config.defaultCodexConfigFile (cognitive 21): config.defaultCodexConfigFile has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 6 (21 pts) (nesting depth added 15). 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":"packages/core/src/config/config.ts"},"region":{"startLine":3880}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceda8bd658f0c0c9232d29f719ae32e42f9296c9f82ebfde082db31c424c1cb1"}},{"ruleId":"D2","level":"warning","message":{"text":"deep-link.normalizeDeepLinkModelMetadata (cognitive 21): deep-link.normalizeDeepLinkModelMetadata has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 19, boolean chains 1, if/else 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":"packages/core/src/contracts/deep-link.ts"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"60c1accc8dbaa0b7cde4eb446debd551d334f7e064f9797694deb115392e6bdf"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayService.ensureStarted (cognitive 21): GatewayService.ensureStarted has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (14 pts), error handling 2 (5 pts), boolean chains 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":"packages/core/src/gateway/application/gateway-service.ts"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"53d19bb045177db09ad6f975cf4e4b901082e97b1eb25fb916b08c6d668d9cae"}},{"ruleId":"D2","level":"warning","message":{"text":"protocol.removeCompactSignals (cognitive 21): protocol.removeCompactSignals has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (14 pts), ternaries 3 (5 pts), boolean chains 1, loops 1 (nesting depth added 7). 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 into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/context-archive/protocol.ts"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ed0017d8a1e802d67aacf53d910657dfa31f7ccc4f7fcf49cfdd7c46a425000"}},{"ruleId":"D2","level":"warning","message":{"text":"protocol.appendFooterToJson (cognitive 21): protocol.appendFooterToJson has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 6 (10 pts), if/else 6 (7 pts), boolean chains 4 (nesting depth added 5). 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 into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/context-archive/protocol.ts"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2cea0489845dd481632799d424e976fd75def5c94ac3778679e82bc2e36fde9"}},{"ruleId":"D2","level":"warning","message":{"text":"model-catalog.reasoningConfigFromMetadata (cognitive 21): model-catalog.reasoningConfigFromMetadata has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 3 (5 pts), ternaries 2, 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":"packages/core/src/gateway/model-catalog.ts"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cc5f7bea4033ec4ab858c28ad11e5fc8092c6d83dda77ad9f59845d30c3e963"}},{"ruleId":"D2","level":"warning","message":{"text":"system-proxy-fetch.shouldBypassProxy (cognitive 21): system-proxy-fetch.shouldBypassProxy has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 4, 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":"packages/core/src/proxy/system-proxy-fetch.ts"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"7672f15efe0bb04fa87413b6f08df628eb5464e9cd20a1dc62037550616b8afe"}},{"ruleId":"D2","level":"warning","message":{"text":"index.splitShellLike (cognitive 21): index.splitShellLike has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 1, 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":7216}}}],"partialFingerprints":{"codehealthFindingId/v1":"22da45fdd03f68cf80817fccb4722572fd549ccab7f5d52726b9846a31923916"}},{"ruleId":"D2","level":"warning","message":{"text":"index.handleClaudeShipSecrets (cognitive 21): index.handleClaudeShipSecrets has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 9, ternaries 4 (7 pts), if/else 4 (5 pts) (nesting depth added 4). Of this number, 17 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":7486}}}],"partialFingerprints":{"codehealthFindingId/v1":"e264c369d67d333097096ae40ba2541e1aabd6f01050568f9b075a851586f4f6"}},{"ruleId":"D2","level":"warning","message":{"text":"index.normalizeProjectStoreData (cognitive 21): index.normalizeProjectStoreData has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 10, ternaries 6, if/else 3 (4 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":7966}}}],"partialFingerprints":{"codehealthFindingId/v1":"d69fbb4e25a04e5ffa95ddda0c2d56c40267e74e08659263ab8bf850286db4d4"}},{"ruleId":"D2","level":"warning","message":{"text":"index.gatewaySseEventTextDelta (cognitive 21): index.gatewaySseEventTextDelta has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 5 (9 pts), if/else 6 (7 pts), boolean chains 5 (nesting depth added 5). Of this number, 14 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":10833}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4a0a17dc0f035f385f966b98abcd88f91fae91e1fc4a573fd23b14110e7baf4"}},{"ruleId":"D2","level":"warning","message":{"text":"index.claudeDesignVirtualModelSelectors (cognitive 21): index.claudeDesignVirtualModelSelectors has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 4 (9 pts), if/else 3 (7 pts), loops 2 (3 pts), boolean chains 2 (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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":12243}}}],"partialFingerprints":{"codehealthFindingId/v1":"5adc08e54ebdd4c2f7e8a40f2e53bd7bae5dcb97e50dfcfc65b4dd4ebc02b07f"}},{"ruleId":"D2","level":"warning","message":{"text":"index.isVisibleStoredMessage (cognitive 21): index.isVisibleStoredMessage has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 4 (10 pts), if/else 7, boolean chains 4 (nesting depth added 6). Of this number, 19 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":13166}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3264295e69f6880ec5031d57f0cc857ea8e11879c0805a090c49bb25cd405b3"}},{"ruleId":"D2","level":"warning","message":{"text":"ChromeLoginImportService.importLoginState (cognitive 21): ChromeLoginImportService.importLoginState has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (13 pts), error handling 2 (4 pts), boolean chains 2, loops 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":"packages/electron/src/main/chrome-login-import.ts"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"861dd20488919551d1331e20221fb7f37929073333bcb2f60a30a7345167966f"}},{"ruleId":"D2","level":"warning","message":{"text":"routing.normalizeRouterRules (cognitive 21): routing.normalizeRouterRules has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 13 (14 pts), if/else 4, boolean chains 3 (nesting depth added 1). Most of this is not in the body itself: 1 of the 21 points is its own statement and the rest belongs to one function literal inside it that branches (line 109). 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":"packages/ui/src/pages/home/shared/routing.ts"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e5a0c40360a6916d8b43b19da40ace56cec553b42eb0d27a0da7f2dbaa71576"}},{"ruleId":"D2","level":"warning","message":{"text":"profiles.defaultCodexConfigFile (cognitive 21): profiles.defaultCodexConfigFile has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 6 (21 pts) (nesting depth added 15). 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":"packages/ui/src/pages/home/shared/profiles.ts"},"region":{"startLine":1808}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c351a611d60351735e91b4f29d687bbe298a605ffed2b09ee5dce40235eaed5"}},{"ruleId":"D2","level":"warning","message":{"text":"providers.ProviderMobileCard (cognitive 21): providers.ProviderMobileCard has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 11 (15 pts), boolean chains 6 (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":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9dec4c659ffc8cd26f0f50e181fc82eaec2de201c87cd3da0c189d093705202"}},{"ruleId":"D2","level":"warning","message":{"text":"update.UpdateDialog (cognitive 21): update.UpdateDialog has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 11, ternaries 9 (10 pts) (nesting depth added 1). 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, 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":"packages/ui/src/pages/home/components/update.tsx"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"99b0fbdbbc949275d144ee349b07a23a3c93489f095030450452afb842a1b37d"}},{"ruleId":"D2","level":"warning","message":{"text":"dashboard.TokenMixOverviewWidget (cognitive 21): dashboard.TokenMixOverviewWidget has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 11 (18 pts), boolean chains 3 (nesting depth added 7). Of this number, 13 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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":1723}}}],"partialFingerprints":{"codehealthFindingId/v1":"589f0f0b20b032f2a96799e84146d7592cc94caee9cf21f353c4dd007c1428f1"}},{"ruleId":"D2","level":"warning","message":{"text":"App.App::refreshProviderModels (cognitive 21): App.App::refreshProviderModels has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (14 pts), ternaries 3 (4 pts), boolean chains 2, 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. This shape REPEATS in the file: 3 other methods here (App.App, App.App::persistConfig, App.App::submitProviderDraft) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 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":"packages/ui/src/pages/home/App.tsx"},"region":{"startLine":1535}}}],"partialFingerprints":{"codehealthFindingId/v1":"5425b26350a4221bbdcaca49c1409afeec38c556b8bdb142aa54d9c8798dd304"}},{"ruleId":"D2","level":"warning","message":{"text":"model-catalog.virtualModelMatchesCatalogModel (cognitive 20): model-catalog.virtualModelMatchesCatalogModel has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 4, loops 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":"packages/core/src/agents/codex/model-catalog.ts"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c0d65b4665434329a673e0c5d169438779410c7bcd857b3142b7c2b28910267"}},{"ruleId":"D2","level":"warning","message":{"text":"config.parseRouterRules (cognitive 20): config.parseRouterRules has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 12 (13 pts), if/else 4, boolean chains 3 (nesting depth added 1). Most of this is not in the body itself: 1 of the 20 points is its own statement and the rest belongs to one function literal inside it that branches (line 1981). 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":"packages/core/src/config/config.ts"},"region":{"startLine":1975}}}],"partialFingerprints":{"codehealthFindingId/v1":"43e9e70b6806a8ba5b13ce38d8d76a3f4090668dfecd622e401a46e02f5fef1f"}},{"ruleId":"D2","level":"warning","message":{"text":"config.parseProfileAgent (cognitive 20): config.parseProfileAgent has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11, boolean chains 9. 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":"packages/core/src/config/config.ts"},"region":{"startLine":3801}}}],"partialFingerprints":{"codehealthFindingId/v1":"c94fb18383b0bd801370a159de90c48f0abca89938c096ca58272483ec62e06f"}},{"ruleId":"D2","level":"warning","message":{"text":"server.parseCoreServerArgs (cognitive 20): server.parseCoreServerArgs has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 1, 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":"packages/core/src/entrypoints/server.ts"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"44d390e968e1c2f91ef4cf00a071b436912f6287f2e931ea319f63b89531014a"}},{"ruleId":"D2","level":"warning","message":{"text":"raw-trace-sync.pruneRawTraceDeadLetters (cognitive 20): raw-trace-sync.pruneRawTraceDeadLetters has cognitive complexity 20 (threshold 15). Drivers by points: error handling 4 (8 pts), if/else 4 (8 pts), boolean chains 2, loops 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":"packages/core/src/observability/raw-trace-sync.ts"},"region":{"startLine":1306}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e6533f6ce2669ca5b1dcf1687d35e5879eda4973e98714bcb65217a8d3112a5"}},{"ruleId":"D2","level":"warning","message":{"text":"request-log-store.detectSseEventError (cognitive 20): request-log-store.detectSseEventError has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 8, ternaries 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":6247}}}],"partialFingerprints":{"codehealthFindingId/v1":"b615d2a3489d318b62c03888130c9cb3eb6efe2f06ffdc4697ccbef3dba425be"}},{"ruleId":"D2","level":"warning","message":{"text":"launch-service.ensureGatewayConfigRunning (cognitive 20): launch-service.ensureGatewayConfigRunning has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (14 pts), ternaries 1 (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":"packages/core/src/profiles/launch-service.ts"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"95a0a67d093ff1f1dd244fbb6098588f8af92d066b046f09b2b0f28714d5999b"}},{"ruleId":"D2","level":"warning","message":{"text":"model-auto-refresh.mergeProviderModelAutoRefreshResult (cognitive 20): model-auto-refresh.mergeProviderModelAutoRefreshResult has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (13 pts), ternaries 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":"packages/core/src/providers/model-auto-refresh.ts"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8c9584bf113a451ceba6eb9ca6eb0d4611f8d7fa6cbe3577c4f337eefc0c56e"}},{"ruleId":"D2","level":"warning","message":{"text":"rewrite.setPathValue (cognitive 20): rewrite.setPathValue has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (17 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":"packages/core/src/routing/rewrite.ts"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bda6f2bf173b2aa745ad81802f0f0fb450a96e6bce379e410bed834d38e32ae"}},{"ruleId":"D2","level":"warning","message":{"text":"index.handleOmeletteConnectRpc (cognitive 20): index.handleOmeletteConnectRpc has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (11 pts), ternaries 3 (5 pts), boolean chains 3, match/switch 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":2235}}}],"partialFingerprints":{"codehealthFindingId/v1":"476022eaffb61ef61e7405d47a2ecb9b9d9b565e1a11506a223c68c8312a6d48"}},{"ruleId":"D2","level":"warning","message":{"text":"ipc.decodePngPixels (cognitive 20): ipc.decodePngPixels has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 3 (7 pts), if/else 5 (6 pts), loops 3 (4 pts), boolean chains 3 (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":"packages/electron/src/main/ipc.ts"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"620daac289ff7004dbc3321b1fe134aacfe13311ec5269110e01441f3baeb190"}},{"ruleId":"D2","level":"warning","message":{"text":"logs.collectOpenAiStreamToolCalls (cognitive 20): logs.collectOpenAiStreamToolCalls has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10, boolean chains 6, ternaries 4. Most of this is not in the body itself: 1 of the 20 points is its own statement and the rest belongs to one function literal inside it that branches (line 462). 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":"packages/ui/src/pages/home/shared/logs.ts"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eeedcf185873b01c9fe60e69f9834c447b87f325bf903be87b22074c43992e3"}},{"ruleId":"D2","level":"warning","message":{"text":"logs.aggregateGeminiStreamPayloads (cognitive 20): logs.aggregateGeminiStreamPayloads has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (15 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":"packages/ui/src/pages/home/shared/logs.ts"},"region":{"startLine":1169}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf73af2fc7375ecc5edc62db1937e0c0e27fb8fe1ab6ae124a4fdaf6725714a8"}},{"ruleId":"D2","level":"warning","message":{"text":"feedback.PersistenceFeedback (cognitive 20): feedback.PersistenceFeedback has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 10 (14 pts), boolean chains 4, if/else 2 (nesting depth added 4). 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, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/feedback.tsx"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"83101bed56b15361ebbc5f67a03eda2b0dbe20d02005bda64c996097f9ae773a"}},{"ruleId":"D2","level":"warning","message":{"text":"dialog-stack.AppDialogStack (cognitive 20): dialog-stack.AppDialogStack has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 20. 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":"packages/ui/src/pages/home/components/dialog-stack.tsx"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"96d0df6c0cf922d25f4e82b02ab797b41e7c38c479f7308342db320a41e9e426"}},{"ruleId":"D2","level":"warning","message":{"text":"discoverRemoteDesignIndexAssets (cognitive 20): discoverRemoteDesignIndexAssets has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 2 (7 pts), if/else 2 (6 pts), error handling 1 (3 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 12). Of this number, 16 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":3173}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4c482dc04371056c5d5c53668529678c387188b87f89ee7f5e88cac6627da2e"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexAppMediaPreviewBridge.run (cognitive 19): CodexAppMediaPreviewBridge.run has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (15 pts), error handling 1 (2 pts), boolean chains 1, 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":"packages/core/src/agents/codex/media-preview-bridge.ts"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"931cb3bc9c6c4117e140d1af81a88e0d8e9c9598c8eef2a049323e9613bfd767"}},{"ruleId":"D2","level":"warning","message":{"text":"config.parseOpenRouterDiscountRouting (cognitive 19): config.parseOpenRouterDiscountRouting has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 16, if/else 2, 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":"packages/core/src/config/config.ts"},"region":{"startLine":1572}}}],"partialFingerprints":{"codehealthFindingId/v1":"42abfe6f50505a225762d0b0162d555ad15271e55bd116187d41e293365f8cf7"}},{"ruleId":"D2","level":"warning","message":{"text":"claude-code-router-plugin.resolveConfiguredRouteDecision (cognitive 19): claude-code-router-plugin.resolveConfiguredRouteDecision has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 9 (11 pts), boolean chains 4, if/else 3 (4 pts) (nesting depth added 3). Most of this is not in the body itself: 9 of the 19 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 349, 391, 315, \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":"packages/core/src/gateway/claude-code-router-plugin.ts"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"23fb827b43ee70e496b1012b46848946328f3d6ed28d8acffe98227696ca01e1"}},{"ruleId":"D2","level":"warning","message":{"text":"claude-code-router-plugin.resolveRouterConditionValue (cognitive 19): claude-code-router-plugin.resolveRouterConditionValue has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (14 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":"packages/core/src/gateway/claude-code-router-plugin.ts"},"region":{"startLine":1440}}}],"partialFingerprints":{"codehealthFindingId/v1":"f61702f26dfdcd6c73b0b47b69eb57bb16cc2c1ee76dc0ccd5d42deeeb0dc0fe"}},{"ruleId":"D2","level":"warning","message":{"text":"ContextArchiveService.ask (cognitive 19): ContextArchiveService.ask has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 5, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/context-archive.ts"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ffb20beda3b370e2108e66cdc04f9df11175a750c52843b2a406309d2ca2214"}},{"ruleId":"D2","level":"warning","message":{"text":"router-plugin.createGatewayPlugin (cognitive 19): router-plugin.createGatewayPlugin has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (11 pts), ternaries 5, boolean chains 3 (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 6 function literals inside it that branch (lines 385, 346, 359, \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":"packages/core/src/gateway/core-runtime/router-plugin.ts"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c01d1c8f544f6ea6a28435863bd0f39c54684d2f5a44def8748a284befed018"}},{"ruleId":"D2","level":"warning","message":{"text":"model-catalog.buildModelCatalogIndex (cognitive 19): model-catalog.buildModelCatalogIndex has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 3 (5 pts), ternaries 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":"packages/core/src/gateway/model-catalog.ts"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0bb1db629c0ad4fbd438df883c0d1884931254fdb0ae3cecc8b480b0c1361f0"}},{"ruleId":"D2","level":"warning","message":{"text":"tool-discovery.listLegacySseMcpServerTools (cognitive 19): tool-discovery.listLegacySseMcpServerTools has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 5, loops 2, ternaries 2, error handling 1 (nesting depth added 2). Most of this is not in the body itself: 8 of the 19 points are its own statements and the rest belongs to 3 function items inside it that branch (routeSseEvent, a function literal at line 214, rejectPending). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/mcp/tool-discovery.ts"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c0757980b897ea9c694c786813238d0c7924e46ff2053956e3cf8f273d54099"}},{"ruleId":"D2","level":"warning","message":{"text":"RawTraceSynchronizer.reconcileSourceBundles (cognitive 19): RawTraceSynchronizer.reconcileSourceBundles has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (12 pts), error handling 2 (4 pts), loops 3 (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":"packages/core/src/observability/raw-trace-sync.ts"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"d81c94b537942ad1fdc11f45822d7c94e70b483112327b4cb206938842196ff9"}},{"ruleId":"D2","level":"warning","message":{"text":"request-log-runtime.prepareRecordForQueue (cognitive 19): request-log-runtime.prepareRecordForQueue has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 12, ternaries 6 (7 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":"packages/core/src/observability/request-log-runtime.ts"},"region":{"startLine":945}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb5bc479b59eb7954eccc230fbcb35b629c798e52a9372da531825eaaa01c2b0"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayPluginService.applyPluginRegistration (cognitive 19): GatewayPluginService.applyPluginRegistration has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11, loops 8. 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":"packages/core/src/plugins/service.ts"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"74f9a8bba664153d94a2b0df84fc7154c24edaf69fb75e501b6e64fcbbb6c604"}},{"ruleId":"D2","level":"warning","message":{"text":"launch-service.openOpenCodeAppProfile (cognitive 19): launch-service.openOpenCodeAppProfile has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 7, 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":"packages/core/src/profiles/launch-service.ts"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e00f7131b513585d42f43e607b7c730cc2b07895919251edaa4673eba4f854f"}},{"ruleId":"D2","level":"warning","message":{"text":"launch-service.profileBotRuntimeStatus (cognitive 19): launch-service.profileBotRuntimeStatus has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 13 (14 pts), boolean chains 3, error handling 1, if/else 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":"packages/core/src/profiles/launch-service.ts"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcc53f0fdb9a9d1614ad62895b43740723cd887a7ac7ff48b4c448533523a9c5"}},{"ruleId":"D2","level":"warning","message":{"text":"model-auto-refresh.refreshAutoFetchProviderModels (cognitive 19): model-auto-refresh.refreshAutoFetchProviderModels has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (9 pts), ternaries 2 (4 pts), boolean chains 3, error handling 1 (2 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":"packages/core/src/providers/model-auto-refresh.ts"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"82f35019600a1453ec4ebef8c4ecd1ec28d120acb29a7c32f6c05988b72bed6c"}},{"ruleId":"D2","level":"warning","message":{"text":"RouteScriptRuntime.execute (cognitive 19): RouteScriptRuntime.execute has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (11 pts), ternaries 3 (5 pts), error handling 2, boolean chains 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":"packages/core/src/routing/route-script-runtime.ts"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf300eb72d383cc3cf4cc07a5e8086248da63f6c7e77eaf44f1cebc4c76827b3"}},{"ruleId":"D2","level":"warning","message":{"text":"index.mergeDesignIndexAssets (cognitive 19): index.mergeDesignIndexAssets has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 5, ternaries 3, 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":3073}}}],"partialFingerprints":{"codehealthFindingId/v1":"577a900ab43e7538a833e9b5a9a1a3d2f2639fb8f56ea155e58d3f4e0076443c"}},{"ruleId":"D2","level":"warning","message":{"text":"index.gatewayHttpErrorMessage (cognitive 19): index.gatewayHttpErrorMessage has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 8 (11 pts), boolean chains 8 (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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":10889}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fcfbdda8e32a6100cc9e2fd9856f7b4778b8573edc620f18f5e353114ac797d"}},{"ruleId":"D2","level":"warning","message":{"text":"index.isOnlineClaudeDesignProxyRoutePath (cognitive 19): index.isOnlineClaudeDesignProxyRoutePath has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 10, if/else 9. 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":14269}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd0402476105e9b147b913b4d2945808c2467bef9b1a38d6e384955eb4063a16"}},{"ruleId":"D2","level":"warning","message":{"text":"browser-automation-mcp.detectPageHandoff (cognitive 19): browser-automation-mcp.detectPageHandoff has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 13, if/else 5, 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":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":2516}}}],"partialFingerprints":{"codehealthFindingId/v1":"f633d8f916779e4069ea3ee56a74b4b5c7b326c78591b5591e7b9d9b4571727f"}},{"ruleId":"D2","level":"warning","message":{"text":"profiles.normalizeProfileRoutingConfig (cognitive 19): profiles.normalizeProfileRoutingConfig has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 6 (16 pts), if/else 3 (nesting depth added 10). 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":"packages/ui/src/pages/home/shared/profiles.ts"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"079f573e11ada0e738dbb9f27acb174df6ebf6987e5d2bbf475febbe5f48c846"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.acquireServiceStartLock (cognitive 18): cli.acquireServiceStartLock has cognitive complexity 18 (threshold 15). Drivers by points: error handling 3 (8 pts), if/else 3 (8 pts), boolean chains 1, loops 1 (nesting depth added 10). 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, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/cli/src/cli.ts"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e8354ce2e9a373a540d919c7d97a5a6da36e51c014bc52ddac6a1a8bdf76755"}},{"ruleId":"D2","level":"warning","message":{"text":"kimi.parseTomlPath (cognitive 18): kimi.parseTomlPath has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 3, 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":"packages/core/src/agents/local-providers/kimi.ts"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"164e84a6ca12bdce69d6495d624fd85a6bddf3cbdcc6fc343da0e93e412c392f"}},{"ruleId":"D2","level":"warning","message":{"text":"upstream-header-sanitizer.createGatewayPlugin (cognitive 18): upstream-header-sanitizer.createGatewayPlugin has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (10 pts), error handling 2 (4 pts), boolean chains 3, 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":"packages/core/src/gateway/core-runtime/upstream-header-sanitizer.ts"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"79f85b19fa7f10e0ce9dbf3a46093d117ea7bba59ffa07aba28332bf06cac2e2"}},{"ruleId":"D2","level":"warning","message":{"text":"CcrRemoteControlService.appendEvent (cognitive 18): CcrRemoteControlService.appendEvent has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (8 pts), boolean chains 4, ternaries 4, loops 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":"packages/core/src/gateway/remote-control-service.ts"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"08835e11b68408aa4b45a1436dcb7263d18c0d74b90a14eaa42824bff7c4b3f9"}},{"ruleId":"D2","level":"warning","message":{"text":"pricing-service.providerModelPrefixes (cognitive 18): pricing-service.providerModelPrefixes has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12, boolean chains 6. 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":"packages/core/src/models/pricing-service.ts"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c8fc6f1626efe62f1db21622139f3b3c0d21c9295f95aac0311461a6e5e82a2"}},{"ruleId":"D2","level":"warning","message":{"text":"RequestLogStore.record (cognitive 18): RequestLogStore.record has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 11, if/else 5, boolean chains 2. Most of this is not in the body itself: 7 of the 18 points are its own statements and the rest belongs to one function item inside it that branches (insert). 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1071463880d6d8837d4d47970bbdfa8c1008409b41e6db77d1dec2ee4ff836e"}},{"ruleId":"D2","level":"warning","message":{"text":"request-log-store.readAgentSessionHeader (cognitive 18): request-log-store.readAgentSessionHeader has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 5 (15 pts), if/else 1 (2 pts), loops 1 (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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":2156}}}],"partialFingerprints":{"codehealthFindingId/v1":"e27906bf46f4d6732ecc0aad27ef11a2c54165f4b3aac5c2e5579ec9163e391e"}},{"ruleId":"D2","level":"warning","message":{"text":"request-log-store.findSessionIdInPayload (cognitive 18): request-log-store.findSessionIdInPayload has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 3 (4 pts), boolean chains 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":2288}}}],"partialFingerprints":{"codehealthFindingId/v1":"16c06390d59538dc7957a5e00279a0aec1d61aaf6ada8366ade65a0f293e59cc"}},{"ruleId":"D2","level":"warning","message":{"text":"route-trace.sanitizeReportedChange (cognitive 18): route-trace.sanitizeReportedChange has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 10 (14 pts), boolean chains 4 (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":"packages/core/src/observability/route-trace.ts"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"da8252fb7b3f5b2832098c907f4499baf1d8c3efc828b97c83ee6d69e64e040e"}},{"ruleId":"D2","level":"warning","message":{"text":"launch-service.openCodexAppProfile (cognitive 18): launch-service.openCodexAppProfile has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 5 (8 pts), if/else 5 (6 pts), boolean chains 4 (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":"packages/core/src/profiles/launch-service.ts"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"31a3b82a14478ef40ba3dc9778a4fabd6824362b74f85cb14c37691510a2a071"}},{"ruleId":"D2","level":"warning","message":{"text":"account-service.kimiCodeUsageMeter (cognitive 18): account-service.kimiCodeUsageMeter has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 4 (9 pts), boolean chains 5, if/else 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":"packages/core/src/providers/account-service.ts"},"region":{"startLine":1186}}}],"partialFingerprints":{"codehealthFindingId/v1":"157cff73853c17eed94784bf36113cf0bd942a326f91dd3d3b09ad48794844ba"}},{"ruleId":"D2","level":"warning","message":{"text":"account-service.readMappedDateString (cognitive 18): account-service.readMappedDateString has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 5 (8 pts), if/else 4 (6 pts), boolean chains 2, 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":"packages/core/src/providers/account-service.ts"},"region":{"startLine":2346}}}],"partialFingerprints":{"codehealthFindingId/v1":"51c33583217d09196474b65e9f8cf8266775f2ea76201d531c2e4f779c79d145"}},{"ruleId":"D2","level":"warning","message":{"text":"probe.providerProbeCodexOauthRequest (cognitive 18): probe.providerProbeCodexOauthRequest has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 11, if/else 5 (6 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":"packages/core/src/providers/probe.ts"},"region":{"startLine":1223}}}],"partialFingerprints":{"codehealthFindingId/v1":"d49ee553735e96a84ec49fbe490777dbee7feea3769b32dcc89f18eef4de8486"}},{"ruleId":"D2","level":"warning","message":{"text":"ProxyService.getCertificateStatus (cognitive 18): ProxyService.getCertificateStatus has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (12 pts), error handling 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":"packages/core/src/proxy/service.ts"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1563f3fe0a330269b24e1f1c555dd67ff2d5f7063371c6f1f760594275bc685"}},{"ruleId":"D2","level":"warning","message":{"text":"index.discoverLocalDesignIndexAssets (cognitive 18): index.discoverLocalDesignIndexAssets has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (7 pts), boolean chains 4, error handling 1 (3 pts), loops 2 (3 pts), ternaries 1 (nesting depth added 7). Of this number, 16 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":3416}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab1960521eb51746754e2a31c4533c5c0c84df4ef1b97baa874485691e7d7f50"}},{"ruleId":"D2","level":"warning","message":{"text":"index.storedProjectMessageText (cognitive 18): index.storedProjectMessageText has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (9 pts), ternaries 3 (6 pts), loops 1 (2 pts), boolean chains 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":11252}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fbeefefb4cb19f779addd648d7e2fcd83547bc433e3fa5a01cb5a87ef8fcbf2"}},{"ruleId":"D2","level":"warning","message":{"text":"virtual-models.virtualModelToolSummary (cognitive 18): virtual-models.virtualModelToolSummary has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 5 (9 pts), if/else 5, boolean chains 4 (nesting depth added 4). Most of this is not in the body itself: 1 of the 18 points is its own statement and the rest belongs to one function literal inside it that branches (line 767). 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":"packages/ui/src/pages/home/shared/virtual-models.ts"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"99cebf033bfcd427f3d87acc4f4d0cfbf956e67d1944f145466fea397b635dd4"}},{"ruleId":"D2","level":"warning","message":{"text":"logs.aggregateOpenAiStreamPayloads (cognitive 18): logs.aggregateOpenAiStreamPayloads has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 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":"packages/ui/src/pages/home/shared/logs.ts"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbcd75baa332b8a276cc5d96377a1834ce16a5765121932f57fa523de3f99696"}},{"ruleId":"D2","level":"warning","message":{"text":"App.App::persistConfig (cognitive 18): App.App::persistConfig has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 5, ternaries 1 (3 pts), 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. This shape REPEATS in the file: 3 other methods here (App.App, App.App::refreshProviderModels, App.App::submitProviderDraft) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 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":"packages/ui/src/pages/home/App.tsx"},"region":{"startLine":1062}}}],"partialFingerprints":{"codehealthFindingId/v1":"cccd8702731c38b81fd7652cc175d43634fe593ea3ff222ebe7b229f7905c5a3"}},{"ruleId":"D2","level":"warning","message":{"text":"claudeShipSessionPayload (cognitive 18): claudeShipSessionPayload has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 9, ternaries 6, other 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":6264}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5fb1e19323ad9970cd21046cccc4c8be1472ef02b1e976ce120751489b4f2f3"}},{"ruleId":"D2","level":"warning","message":{"text":"omeletteProjectFromRow (cognitive 18): omeletteProjectFromRow has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 15, ternaries 2, other 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":13502}}}],"partialFingerprints":{"codehealthFindingId/v1":"071f0b3ebe0f5a0ea5953ef6abb67acbd095e03c6bee86b7c5c49579bbb3f288"}},{"ruleId":"D2","level":"warning","message":{"text":"kimi.readKimiConfiguredProviders (cognitive 17): kimi.readKimiConfiguredProviders has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 9, ternaries 4 (5 pts), if/else 2, error handling 1 (nesting depth added 1). Most of this is not in the body itself: 2 of the 17 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 267, 263, 264). 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":"packages/core/src/agents/local-providers/kimi.ts"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc53fafb42a2b6fad4fa55dd2e5ccaded20ebb915729af0b460b7bed918a7897"}},{"ruleId":"D2","level":"warning","message":{"text":"config.parseProviderCapabilityProtocol (cognitive 17): config.parseProviderCapabilityProtocol has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, boolean chains 8. 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":"packages/core/src/config/config.ts"},"region":{"startLine":1811}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7fe62eaadf53f37ad34541b69481a1b1ef3efb3708a5fcdeee45f2bafeb3de1"}},{"ruleId":"D2","level":"warning","message":{"text":"protocol.extractOpenAiResponsesUsage (cognitive 17): protocol.extractOpenAiResponsesUsage has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 4 (8 pts), if/else 4 (6 pts), loops 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":"packages/core/src/gateway/context-archive/protocol.ts"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d05e6bf53688b2ff27dadd372f7755e274ef4c2059f64ce4af432ffbe8a79f4"}},{"ruleId":"D2","level":"warning","message":{"text":"model-discovery.virtualModelProfileMatchesSelector (cognitive 17): model-discovery.virtualModelProfileMatchesSelector has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 3, 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":"packages/core/src/gateway/features/model-discovery.ts"},"region":{"startLine":910}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a54a17b6a4f5ddf10bad732df797ae085dd3c086c18c79b7709b784792edf58"}},{"ruleId":"D2","level":"warning","message":{"text":"toolhub-mcp.drainInputBuffer (cognitive 17): toolhub-mcp.drainInputBuffer has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (16 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":"packages/core/src/mcp/toolhub-mcp.ts"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a39f2b31d5c94dda6058eb57aaed1e79c4128d96f8606ccdcbe006d21b94bf7"}},{"ruleId":"D2","level":"warning","message":{"text":"request-log-store.requestConversationItems (cognitive 17): request-log-store.requestConversationItems has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (17 pts) (nesting depth added 5). Of this number, 11 points are the body\u0027s own statements and 6 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":2536}}}],"partialFingerprints":{"codehealthFindingId/v1":"b55800110e6910236e51a8509eb6e83edba510deb9aaeddebf0e7c9b0a06ace2"}},{"ruleId":"D2","level":"warning","message":{"text":"request-log-store.collectAnthropicStreamToolInput (cognitive 17): request-log-store.collectAnthropicStreamToolInput has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 4 (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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":3048}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f07d5d2043bd619652e22cebbf3c4f30472b3b3fc27c9659cd2fb6d1e580276"}},{"ruleId":"D2","level":"warning","message":{"text":"openrouter-discount-provider-router.endpointSatisfiesProviderConstraints (cognitive 17): openrouter-discount-provider-router.endpointSatisfiesProviderConstraints has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 9, if/else 8. 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":"packages/core/src/plugins/built-ins/openrouter-discount-provider-router.ts"},"region":{"startLine":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"59d78484e6279885fa03167976935507a28f1177fbf90c7f379106f4b17400de"}},{"ruleId":"D2","level":"warning","message":{"text":"manifest-service.fetchManifestText (cognitive 17): manifest-service.fetchManifestText has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 3, ternaries 1 (nesting depth added 2). None of this is in the body itself: all 17 points belong to 4 function literals inside it that branch (lines 74, 46, 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":"packages/core/src/providers/manifest-service.ts"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ab9495635c4bed3e52e7fe8e9c6dd04af7bac2df01d943dadd3516ba9116d93"}},{"ruleId":"D2","level":"warning","message":{"text":"model-catalog.providerModelMetadataFromCatalog (cognitive 17): model-catalog.providerModelMetadataFromCatalog has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 13 (15 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/providers/model-catalog.ts"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"618184dd44c125e41bffb5186598fd90116e8b1e648ab67d562f1adfb87b49b5"}},{"ruleId":"D2","level":"warning","message":{"text":"model-catalog.catalogReasoningLevels (cognitive 17): model-catalog.catalogReasoningLevels has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 10 (16 pts), boolean chains 1 (nesting depth added 6). 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 into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/providers/model-catalog.ts"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"43943d7157660c92f188567c304f792a759ef0a9d2390411c7b761127a6e60ee"}},{"ruleId":"D2","level":"warning","message":{"text":"probe.resolveGatewayProviderProbe (cognitive 17): probe.resolveGatewayProviderProbe has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 11, boolean chains 5, if/else 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":"packages/core/src/providers/probe.ts"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"62c38b1deaf13431dd8648bc290419e312e448e1418feb5bfee7b6b20c030d00"}},{"ruleId":"D2","level":"warning","message":{"text":"service.forwardHttpsRequestViaHttpProxy (cognitive 17): service.forwardHttpsRequestViaHttpProxy has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 6, ternaries 1 (nesting depth added 1). None of this is in the body itself: all 17 points belong to 5 function literals inside it that branch (lines 1107, 1150, 1165, \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":"packages/core/src/proxy/service.ts"},"region":{"startLine":1067}}}],"partialFingerprints":{"codehealthFindingId/v1":"64e1b465bcc5a84393cd05021a629cb3fb638e76f7b3809b9b49ebeb4ceeaebf"}},{"ruleId":"D2","level":"warning","message":{"text":"management-server.parsePluginPermissions (cognitive 17): management-server.parsePluginPermissions has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (14 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 6). Of this number, 15 points are the body\u0027s own statements and 2 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":"packages/core/src/web/management-server.ts"},"region":{"startLine":939}}}],"partialFingerprints":{"codehealthFindingId/v1":"c52348755e3a63392d0846bf8ceb7d76484ac50673f9860570975eddf6b50922"}},{"ruleId":"D2","level":"warning","message":{"text":"index.resolveDesignIndexAssets (cognitive 17): index.resolveDesignIndexAssets has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 14, if/else 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":2995}}}],"partialFingerprints":{"codehealthFindingId/v1":"45af25063636d1b42040672bf06b4072bcaf70e1f4259075b7e76ab8b137a298"}},{"ruleId":"D2","level":"warning","message":{"text":"index.normalizeProjectViewOpenFiles (cognitive 17): index.normalizeProjectViewOpenFiles has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 6 (7 pts), if/else 3 (5 pts), boolean chains 4, 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":8013}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d11baefb951291ee6883f6639f8a9ffae54bd2718ae28b74dd1c5cda767ed12"}},{"ruleId":"D2","level":"warning","message":{"text":"index.generatedFilePathFromFenceInfo (cognitive 17): index.generatedFilePathFromFenceInfo has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6, ternaries 3 (6 pts), boolean chains 5 (nesting depth added 3). 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":11441}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c6e3bd36ad2218c7b3ad8a5bf1448a94b7fb8358d9c325d9b52d6fc8d4dc927"}},{"ruleId":"D2","level":"warning","message":{"text":"index.sanitizeGatewayMessageContentBlocksForRequest (cognitive 17): index.sanitizeGatewayMessageContentBlocksForRequest has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (14 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":11560}}}],"partialFingerprints":{"codehealthFindingId/v1":"24dab128f72c8299334159c0a89ea039847e4f12da13e7fb9da8d3a43d4bdc22"}},{"ruleId":"D2","level":"warning","message":{"text":"index.claudeDesignProviderModelProviderSelectors (cognitive 17): index.claudeDesignProviderModelProviderSelectors has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 3, ternaries 2 (3 pts), loops 2 (nesting depth added 5). Of this number, 11 points are the body\u0027s own statements and 6 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":12199}}}],"partialFingerprints":{"codehealthFindingId/v1":"12c9c4be1189a8256f490797f9bc670ede3bb7d87e5ff3d10afe7a8f78e56a75"}},{"ruleId":"D2","level":"warning","message":{"text":"index.sanitizeStoredMessageDisplayContent (cognitive 17): index.sanitizeStoredMessageDisplayContent has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 3 (8 pts), if/else 5 (7 pts), boolean chains 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":13098}}}],"partialFingerprints":{"codehealthFindingId/v1":"620ba728d282ea8af60ce64263f2d5d6c4fd4ed56e3a43be3488c79969e10549"}},{"ruleId":"D2","level":"warning","message":{"text":"ipc.parsePluginPermissions (cognitive 17): ipc.parsePluginPermissions has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (14 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 6). Of this number, 15 points are the body\u0027s own statements and 2 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":"packages/electron/src/main/ipc.ts"},"region":{"startLine":1150}}}],"partialFingerprints":{"codehealthFindingId/v1":"26192730c8b869798c76dfbe81a32a22c1aa1d9c0bbb6ff4be6f0d2b490518b2"}},{"ruleId":"D2","level":"warning","message":{"text":"tooltip.Tooltip (cognitive 17): tooltip.Tooltip has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, boolean chains 5, ternaries 2. Most of this is not in the body itself: 3 of the 17 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 81, 119, 125, \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":"packages/ui/src/components/ui/tooltip.tsx"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"491fea733750308489f44e89b3f65e9600274e0c03e62da6e8560892c3a7626e"}},{"ruleId":"D2","level":"warning","message":{"text":"extensions.parsePluginAppsSettingsText (cognitive 17): extensions.parsePluginAppsSettingsText has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (8 pts), ternaries 3 (6 pts), boolean chains 1, error handling 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":"packages/ui/src/pages/home/shared/extensions.ts"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b05a93058cb3b53321e53c69b3ea24a75d4dac7be9f9acf98f0e695d6a4573c"}},{"ruleId":"D2","level":"warning","message":{"text":"virtual-models.virtualModelProfileFromDraft (cognitive 17): virtual-models.virtualModelProfileFromDraft has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 7, ternaries 6, if/else 4. Of this number, 9 points are the body\u0027s own statements and 8 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":"packages/ui/src/pages/home/shared/virtual-models.ts"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec21daf4af13dda2b56c26c57d75211d43649b484844d89bdc5905ff617ac4e8"}},{"ruleId":"D2","level":"warning","message":{"text":"logs.collectOpenAiResponseOutputItem (cognitive 17): logs.collectOpenAiResponseOutputItem has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 8, if/else 6 (8 pts), loops 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":"packages/ui/src/pages/home/shared/logs.ts"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"8519912b47ed43c49426f6101311bc8121699f474a504beff854e707c5bad521"}},{"ruleId":"D2","level":"warning","message":{"text":"profiles.parseClaudeConfigInputValue (cognitive 17): profiles.parseClaudeConfigInputValue has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 4 (8 pts), error handling 2 (4 pts), if/else 2 (3 pts), boolean chains 1, match/switch 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":"packages/ui/src/pages/home/components/profiles.tsx"},"region":{"startLine":1694}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e7fe73809521e8ba0aa9ef43c35df41ddc367c6a54ff24212b9c1b61159899c"}},{"ruleId":"D2","level":"warning","message":{"text":"profiles.profileDraftValidation (cognitive 17): profiles.profileDraftValidation has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 6 (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":"packages/ui/src/pages/home/components/profiles.tsx"},"region":{"startLine":1832}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4d50ace5d556ce4c23be30773bf0a32729243da28f7f8c30b83cedadbe7b499"}},{"ruleId":"D2","level":"warning","message":{"text":"network-logs.LogJsonPanel::loadInlineFullBody (cognitive 17): network-logs.LogJsonPanel::loadInlineFullBody has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), ternaries 2 (4 pts), boolean chains 1, error handling 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. This shape REPEATS in the file: one other method here (network-logs.LogJsonPanel) 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":"packages/ui/src/pages/home/components/network-logs.tsx"},"region":{"startLine":1929}}}],"partialFingerprints":{"codehealthFindingId/v1":"08eccc6ec22ac44bb3f0de8a44e1d71a1509db066510dd3b88f5841ac8230488"}},{"ruleId":"D2","level":"warning","message":{"text":"dashboard.providerAccountCardResizeHandleIcon (cognitive 17): dashboard.providerAccountCardResizeHandleIcon has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 10, ternaries 5 (6 pts), if/else 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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":3287}}}],"partialFingerprints":{"codehealthFindingId/v1":"255e0de14b3e1de5bc1221b22e0856902f5994647598f4ebfefda9561aa60239"}},{"ruleId":"D2","level":"warning","message":{"text":"handleClaudeShipCliOutputLine (cognitive 17): handleClaudeShipCliOutputLine has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 3, 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":6893}}}],"partialFingerprints":{"codehealthFindingId/v1":"418a2d1b3ea87d1fe64443134828925cdbbcfa9ea77edd7ee7515f84724c964b"}},{"ruleId":"D2","level":"warning","message":{"text":"ProfileViewDemo.ProfileViewDemo (cognitive 16): ProfileViewDemo.ProfileViewDemo has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 6, loops 1, ternaries 1 (nesting depth added 1). Most of this is not in the body itself: 2 of the 16 points are its own statements and the rest belongs to 4 function items inside it that branch (play, a function literal at line 99, play::waitFor, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/src/components/interactive/ProfileViewDemo.tsx"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"57cde5ff35cfbfb843338074662088ffb0f007f10a1b2ce29c2112ddf16e980a"}},{"ruleId":"D2","level":"warning","message":{"text":"handoff-scan-service.collectBluetoothScanTargetsFromText (cognitive 16): handoff-scan-service.collectBluetoothScanTargetsFromText has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (14 pts), 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":"packages/core/src/agents/bot-gateway/handoff-scan-service.ts"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa03972acd9f49a27ff02d84b28450a141358e5ab3d24df364aa857ef9073d93"}},{"ruleId":"D2","level":"warning","message":{"text":"model-catalog.codexModelCapabilityProfile (cognitive 16): model-catalog.codexModelCapabilityProfile has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 9 (10 pts), boolean chains 6 (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":"packages/core/src/agents/codex/model-catalog.ts"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"a37acfbc15d51ddfccef12c6dbc6eb3bb21d1d741441caf13282cdbfdb838b14"}},{"ruleId":"D2","level":"warning","message":{"text":"codex.codexModelCatalogFromPayload (cognitive 16): codex.codexModelCatalogFromPayload has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), boolean chains 3, ternaries 1 (2 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":"packages/core/src/agents/local-providers/codex.ts"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc84ee7de6b77de7ca7674c94ac280959f156a0e3894c139e0aca19684642fe6"}},{"ruleId":"D2","level":"warning","message":{"text":"kimi.refreshKimiAuth (cognitive 16): kimi.refreshKimiAuth has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 5 (7 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":"packages/core/src/agents/local-providers/kimi.ts"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"06a0635268098c54765eddab9e4eb334aab3c6b047a85d3ad888e988b5be8596"}},{"ruleId":"D2","level":"warning","message":{"text":"kimi.parseTomlValue (cognitive 16): kimi.parseTomlValue has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 6, if/else 5, ternaries 3 (5 pts) (nesting depth added 2). 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: 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":"packages/core/src/agents/local-providers/kimi.ts"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"c63a49da3fb00a945c88239a828f6335180bb96413218acb1fe5dab6cacc299b"}},{"ruleId":"D2","level":"warning","message":{"text":"opencode.readOpenCodeCredential (cognitive 16): opencode.readOpenCodeCredential has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 2, loops 2, ternaries 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":"packages/core/src/agents/local-providers/opencode.ts"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"15984876153ecf7952ffda5ccda0f4df9eafc862974f29df3312ed881a8ddf75"}},{"ruleId":"D2","level":"warning","message":{"text":"config.parseGatewayPlugins (cognitive 16): config.parseGatewayPlugins has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 12, boolean chains 2, if/else 2. 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 2659). 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":"packages/core/src/config/config.ts"},"region":{"startLine":2653}}}],"partialFingerprints":{"codehealthFindingId/v1":"d679f61c4ba26b1adb93e79c8dd09d4bba138c4625d566d2cb817083f11e415b"}},{"ruleId":"D2","level":"warning","message":{"text":"deep-link.normalizeDeepLinkOpenRouterDiscountRouting (cognitive 16): deep-link.normalizeDeepLinkOpenRouterDiscountRouting has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 3, boolean chains 2, 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":"packages/core/src/contracts/deep-link.ts"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"19f4930a7bceb764517f510541148a5d6cd8ce92d173ed8d7ed7251b6e6cbb3d"}},{"ruleId":"D2","level":"warning","message":{"text":"evidence.synthesizeComponentChangelogWebSearchAnswer (cognitive 16): evidence.synthesizeComponentChangelogWebSearchAnswer has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 6 (9 pts), if/else 4, boolean chains 3 (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":"packages/core/src/gateway/features/hosted-web-search/evidence.ts"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ad2c7e762c5a3b0e523e18e4135c3c11e2b5088018902c2d69d7781a9a99ea1"}},{"ruleId":"D2","level":"warning","message":{"text":"model-discovery.createClaudeCliAutoCompactWindows (cognitive 16): model-discovery.createClaudeCliAutoCompactWindows has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 2 (3 pts), ternaries 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":"packages/core/src/gateway/features/model-discovery.ts"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4ee2d120a05ad7656b8fcb01bf622eee86e91830c3314dc53b95f6eb15d4ee6"}},{"ruleId":"D2","level":"warning","message":{"text":"fusion-config.fusionToolNamesBackedByMcpServers (cognitive 16): fusion-config.fusionToolNamesBackedByMcpServers has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 2 (5 pts), ternaries 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":"packages/core/src/mcp/fusion-config.ts"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"113cadcb44860043ed4d4fbef425ebfa04db1aa3f8e0412cf8275a8eb0f520db"}},{"ruleId":"D2","level":"warning","message":{"text":"fusion-vision-mcp.imageInputToUrl (cognitive 16): fusion-vision-mcp.imageInputToUrl has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 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":"packages/core/src/mcp/fusion-vision-mcp.ts"},"region":{"startLine":895}}}],"partialFingerprints":{"codehealthFindingId/v1":"485b07d92482fe7b2c392704491ba5b70d21b9e6cdad20b23e880b383e8d2298"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayMediaExecutor.resumeVideo (cognitive 16): GatewayMediaExecutor.resumeVideo has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), boolean chains 3, error handling 1 (2 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":"packages/core/src/media/executors.ts"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"def27ce07605fc551a4dcd69fc8f2cfd21ba60d7c9a664438ea746e20b64f160"}},{"ruleId":"D2","level":"warning","message":{"text":"RawTraceSynchronizer.expireIncompleteSources (cognitive 16): RawTraceSynchronizer.expireIncompleteSources has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (7 pts), error handling 2 (5 pts), ternaries 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 8). None of this is in the body itself: all 16 points belong to one function literal inside it that branches (line 696). 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":"packages/core/src/observability/raw-trace-sync.ts"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a39c085c973764c7158339b33446792448f43485dcedf684babae2eec52e60f"}},{"ruleId":"D2","level":"warning","message":{"text":"RequestLogRuntime.enqueueRawTrace (cognitive 16): RequestLogRuntime.enqueueRawTrace has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, ternaries 5, if/else 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":"packages/core/src/observability/request-log-runtime.ts"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff9e1ad3835764dec817d4236d1f96f0d43c555d5f15e6eef0e2f7c0e0722077"}},{"ruleId":"D2","level":"warning","message":{"text":"request-log-store.collectToolCalls (cognitive 16): request-log-store.collectToolCalls has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 6, if/else 4 (5 pts), loops 2 (3 pts), ternaries 2 (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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":2951}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f604f93c5681c520e5f96e26cba09facd768bed73de434c681cd04b6d2444c9"}},{"ruleId":"D2","level":"warning","message":{"text":"account-service.localCodexAccountCredential (cognitive 16): account-service.localCodexAccountCredential has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 3 (5 pts), ternaries 3 (nesting depth added 2). 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, 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":"packages/core/src/providers/account-service.ts"},"region":{"startLine":1590}}}],"partialFingerprints":{"codehealthFindingId/v1":"82e02a3d13cb5361285acc7e1fc7bd03ee4eff4843bc100118baf5294da41cdb"}},{"ruleId":"D2","level":"warning","message":{"text":"manifest-service.isPublicIpv4 (cognitive 16): manifest-service.isPublicIpv4 has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 15, if/else 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":"packages/core/src/providers/manifest-service.ts"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e7e3bd74a5817ec0c92955ec511a9f0cefcfa2cd20084e4e9cd095136fb6aa9"}},{"ruleId":"D2","level":"warning","message":{"text":"model-catalog.catalogProviderModelRank (cognitive 16): model-catalog.catalogProviderModelRank has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, 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":"packages/core/src/providers/model-catalog.ts"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbada590be40077a0de16b8ec5c4281c33f2fb877da1b55f9527d8e221c265d8"}},{"ruleId":"D2","level":"warning","message":{"text":"system-proxy.readMacUpstreamProxy (cognitive 16): system-proxy.readMacUpstreamProxy has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (8 pts), boolean chains 6, loops 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":"packages/core/src/proxy/system-proxy.ts"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"74a8e45d99dc0616bf4182d3d9477d86072a0e04fbf5decf3c79e8456a0ee42c"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelRegistry.resolve (cognitive 16): ModelRegistry.resolve has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), ternaries 3 (5 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":"packages/core/src/routing/model-registry.ts"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"de1704d29288d6098f2104530ac284cb4d41c37def5dd5d995fa16d857f5c211"}},{"ruleId":"D2","level":"warning","message":{"text":"index.copyDesignMcpFiles (cognitive 16): index.copyDesignMcpFiles has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 4 (8 pts), if/else 2 (3 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 6). 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 into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":1877}}}],"partialFingerprints":{"codehealthFindingId/v1":"79b55909a8eed66f516a455085234820ddfcbb97ba4bb0ae24ff7d3d3d44b486"}},{"ruleId":"D2","level":"warning","message":{"text":"index.claudeShipSyncedFileBody (cognitive 16): index.claudeShipSyncedFileBody has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 4 (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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":7316}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1382ddcf3ddc05155d37b5f8dd66ec4e88d062bcd15ce0c408ced75f56bbcdd"}},{"ruleId":"D2","level":"warning","message":{"text":"index.lastGatewayUserMessage (cognitive 16): index.lastGatewayUserMessage has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 2, 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":13313}}}],"partialFingerprints":{"codehealthFindingId/v1":"15236304c2f11b2b451da7e302f16fb1ca4f0f155e2271ec695e1d50400cf3a2"}},{"ruleId":"D2","level":"warning","message":{"text":"browser-automation-mcp.snapshotScript.roleOf (cognitive 16): browser-automation-mcp.snapshotScript.roleOf has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (16 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":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":2817}}}],"partialFingerprints":{"codehealthFindingId/v1":"30d070467e105dc9043e035e04cec5a6cf365dbb1625ae097fe9d4dd489c4fe6"}},{"ruleId":"D2","level":"warning","message":{"text":"virtual-models.normalizeVirtualModelDraftPatch (cognitive 16): virtual-models.normalizeVirtualModelDraftPatch has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 7 (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":"packages/ui/src/pages/home/shared/virtual-models.ts"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"be2e1e54165b70eca6725c40f2867b4d1b27a2dcd0de85ed5599d77dcdb9fa69"}},{"ruleId":"D2","level":"warning","message":{"text":"virtual-models.selectedFusionToolNamesFromProfile (cognitive 16): virtual-models.selectedFusionToolNamesFromProfile has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, boolean chains 7. Most of this is not in the body itself: 5 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 867). 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":"packages/ui/src/pages/home/shared/virtual-models.ts"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1184bf27fd60e161058af53d4ce5a372a4bcf9402e4adc758b01129d332b414"}},{"ruleId":"D2","level":"warning","message":{"text":"providers.createProviderInstallLinkFromDraft (cognitive 16): providers.createProviderInstallLinkFromDraft has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 8 (9 pts), if/else 6, boolean chains 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":"packages/ui/src/pages/home/shared/providers.ts"},"region":{"startLine":1543}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc98588f5e7e3ac96db50c111f3c02020b74906c886b6d2991bd93309d8c5e5f"}},{"ruleId":"D2","level":"warning","message":{"text":"providers.recommendedModelRank (cognitive 16): providers.recommendedModelRank has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (14 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/providers.ts"},"region":{"startLine":2360}}}],"partialFingerprints":{"codehealthFindingId/v1":"5478c39489a7be8a2346a803098b72a04d08e646019aa793a55af23b42f8e033"}},{"ruleId":"D2","level":"warning","message":{"text":"provider-references.renameProviderReferences::rules (cognitive 16): provider-references.renameProviderReferences::rules has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 2 (3 pts), ternaries 1 (3 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. This shape REPEATS in the file: one other method here (provider-references.renameProviderReferences) 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":"packages/ui/src/pages/home/shared/provider-references.ts"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"326db4562b341eded6de847764e68d085ee860be68a66f0f3c67195e573850e3"}},{"ruleId":"D2","level":"warning","message":{"text":"virtual-models.MediaModelConfigurationPanel (cognitive 16): virtual-models.MediaModelConfigurationPanel has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 10 (11 pts), if/else 2 (3 pts), boolean chains 1, loops 1 (nesting depth added 2). Of this number, 8 points are the body\u0027s own statements and 8 belong to 5 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":"packages/ui/src/pages/home/components/virtual-models.tsx"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"344cba3dbb5eaf7525398f8f3c312ed043155daf72d34973a970a5ce5725a005"}},{"ruleId":"D2","level":"warning","message":{"text":"network-logs.LogRouteTraceDialog (cognitive 16): network-logs.LogRouteTraceDialog has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 8 (13 pts), boolean chains 2, if/else 1 (nesting depth added 5). Most of this is not in the body itself: 4 of the 16 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 1115, 1079, 1087). 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":"packages/ui/src/pages/home/components/network-logs.tsx"},"region":{"startLine":1065}}}],"partialFingerprints":{"codehealthFindingId/v1":"589d73ae898d62ff5e5e4be7968233ede8af88639f33b65c0782bc626a4f3e72"}},{"ruleId":"D2","level":"warning","message":{"text":"network-logs.useLogBodyWorkerView (cognitive 16): network-logs.useLogBodyWorkerView has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 12, if/else 4. None of this is in the body itself: all 16 points belong to 7 function literals inside it that branch (lines 1571, 1657, 1649, \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":"packages/ui/src/pages/home/components/network-logs.tsx"},"region":{"startLine":1554}}}],"partialFingerprints":{"codehealthFindingId/v1":"19d423f53d884738b85f28d6670a11c6577aa58b9bdd5e5b78301ad5ec80f4af"}},{"ruleId":"D2","level":"warning","message":{"text":"network-logs.LogBodyChunkContent (cognitive 16): network-logs.LogBodyChunkContent has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 9, ternaries 6 (7 pts) (nesting depth added 1). 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":"packages/ui/src/pages/home/components/network-logs.tsx"},"region":{"startLine":2165}}}],"partialFingerprints":{"codehealthFindingId/v1":"41df2dad69f239296752f864f365b63a67a68438f12372938f21d1f8f6d9f122"}},{"ruleId":"D2","level":"warning","message":{"text":"dashboard.AgentSessionDetailCard (cognitive 16): dashboard.AgentSessionDetailCard has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 9 (15 pts), boolean chains 1 (nesting depth added 6). 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 into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":4626}}}],"partialFingerprints":{"codehealthFindingId/v1":"72ad061fd340e69e46c6cff5889777f3c4b0b7587715c6beb56d26078ce4fba1"}},{"ruleId":"D2","level":"warning","message":{"text":"dashboard.TracePayloadPane (cognitive 16): dashboard.TracePayloadPane has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 7, boolean chains 6, if/else 3. 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, 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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":5762}}}],"partialFingerprints":{"codehealthFindingId/v1":"d010b649f5dc3eff15e5a61e235ab5f0cdba4f6467834ff478e89e87cdc0b833"}},{"ruleId":"D2","level":"warning","message":{"text":"TrayApp.TrayApp (cognitive 16): TrayApp.TrayApp has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6, ternaries 5, boolean chains 3, 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 6 function literals inside it that branch (lines 32, 67, 117, \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":"packages/ui/src/pages/tray/TrayApp.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"9155b808563add52ede83ed6d65a552647eed24df2d309dcbc5c9ef03f6acc7c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: App.App: FunctionTooLong \u2014 App runs 2617 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2517 over it, 26.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":"packages/ui/src/pages/home/App.tsx"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"a03e1e389eee62492e906a2823e3df5a83e906fcc768159015c31d2528c609b2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: claude-design/index.cjs: FileTooLong \u2014 12322 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 11822 over it, 24.64\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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"18d77baa60580ab05097690fe904cc0bdb290456aa71af11c5dfaba515604e4f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/dashboard.tsx: FileTooLong \u2014 5164 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 4664 over it, 10.33\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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b87b6c6aac16bda3601d43cac3df5d81856c0013366b5a5d7a968f290d40750f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: observability/request-log-store.ts: FileTooLong \u2014 5061 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 4561 over it, 10.12\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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"448125084178475d1faef1172c6028a79e536697de581286b7d21fca3f0b121f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/providers.tsx: FileTooLong \u2014 4366 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 3866 over it, 8.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":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"df7a278b8c89b9559829ae23f3f01fc5a28b794ccf0857e96239d86930d3382a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GatewayRequestPipeline.proxyRequest: MethodTooLong \u2014 proxyRequest runs 853 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 753 over it, 8.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":"packages/core/src/gateway/request/pipeline.ts"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce7b4f473807d6a9bce86ff2777b010fa362fd7a0fcefdf10bba95ee5aa5e324"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: profiles/service.ts: FileTooLong \u2014 3276 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2776 over it, 6.55\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":"packages/core/src/profiles/service.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"112466e41bf58fd6115d67842049451bb6dca3426a58cbec912bf9f5c281c675"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: App: ClassTooLong \u2014 2617 significant lines (blank, comment-only and punctuation-only lines excluded), 15 methods. The bar is 400 significant lines; this is 2217 over it, 6.54\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":"packages/ui/src/pages/home/App.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"55a9695c6b88d3371ed18d0f138e8d2179c46c47c1d8be187637e9a3e1608c18"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: config/config.ts: FileTooLong \u2014 3071 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2571 over it, 6.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":"packages/core/src/config/config.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad3ed8f7af1b32ff7ab16b25954f0c25e6f6959d25fbee191c23cac58b8a573f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/settings.tsx: FileTooLong \u2014 2853 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2353 over it, 5.71\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":"packages/ui/src/pages/home/components/settings.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"194cef06eaa8d568b0bf9bdafc5b80d606f7def263243a1f81cfe0eb9e92c5e6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: providers.AddProviderForm: FunctionTooLong \u2014 AddProviderForm runs 568 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 468 over it, 5.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":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":1961}}}],"partialFingerprints":{"codehealthFindingId/v1":"97cfe9e481684996e18869f94fb61b1a9d8241c3a8c027a42b279b0469e6b640"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: home/App.tsx: FileTooLong \u2014 2754 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: App (182-3630). The bar is 500 significant lines; this is 2254 over it, 5.51\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":"packages/ui/src/pages/home/App.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1449dac92b733af1bbdda788c08baa254b8f45b004574caf4195d64e6549fc6c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: main/browser-automation-mcp.ts: FileTooLong \u2014 2648 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2148 over it, 5.30\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":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"14410981ba9b5d65f16ea4642caab2e57dc245e895c8027352062493df52344b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/network-logs.tsx: FileTooLong \u2014 2368 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1868 over it, 4.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":"packages/ui/src/pages/home/components/network-logs.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c35e97577658a027edc88a7566350c4e0df8cf89c15c149a935af4c08fb964d1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mcp/toolhub-mcp.ts: FileTooLong \u2014 2182 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1682 over it, 4.36\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":"packages/core/src/mcp/toolhub-mcp.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0f28c4b0d58a14085b3cd1d1bf2ec391c5d35c3b2307633aff6058429379665"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: contracts/app.ts: FileTooLong \u2014 2086 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1586 over it, 4.17\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":"packages/core/src/contracts/app.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4b07d199ca2b62dc6b32009fd97ec9c77c128c48187091d29dd859e30ce9d3f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/profiles.tsx: FileTooLong \u2014 1959 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1459 over it, 3.92\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":"packages/ui/src/pages/home/components/profiles.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5043dc7ee5e931fd9d7452acffa486f7882618b5f39abdccac0ae912f0a99bf9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/account-service.ts: FileTooLong \u2014 1923 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1423 over it, 3.85\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":"packages/core/src/providers/account-service.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a83e151e193bef24390811261a92ca5bf4832989dd26142f1fc7e091492a61c5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: providers.ProviderUsageSettings: FunctionTooLong \u2014 ProviderUsageSettings runs 381 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 281 over it, 3.81\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":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":2888}}}],"partialFingerprints":{"codehealthFindingId/v1":"433e38bbbc2eb94fd01907e418a62c9f63ea6b0e7f22340d91e5009f6b05320e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: dashboard.OverviewView: FunctionTooLong \u2014 OverviewView runs 377 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 277 over it, 3.77\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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c86c76bc40a5459072e075422547ea8c69e5a90577ad58725d090d241d4a7b5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: profiles.AddProfileForm: FunctionTooLong \u2014 AddProfileForm runs 366 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 266 over it, 3.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":"packages/ui/src/pages/home/components/profiles.tsx"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf193254c7536e8048d5db5cba1f1427b5f97b1ff61ce2d8bdc6c12e43d68690"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: providers.ModelMetadataEditor: FunctionTooLong \u2014 ModelMetadataEditor runs 365 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 265 over it, 3.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":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":4669}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3bbb2986cc632e23773948330b986e5eeeee11a49ed1cad4e011e54bb0e6a9f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: shared/providers.ts: FileTooLong \u2014 1814 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1314 over it, 3.63\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":"packages/ui/src/pages/home/shared/providers.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5a2d92a10fc399af1cb74ac19965db35f340b48a3d787f0231b8e6a60c36580"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: providers.ProviderModelPicker: FunctionTooLong \u2014 ProviderModelPicker runs 333 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 233 over it, 3.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":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":3900}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c4fa6a9ae782cfb44e82bf5e62b768251cb19ef46c9389d52a5ae2bfd418c1d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: settings.TraySettingsPage: FunctionTooLong \u2014 TraySettingsPage runs 333 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 233 over it, 3.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":"packages/ui/src/pages/home/components/settings.tsx"},"region":{"startLine":1908}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e1133110adbc19d43d328027880dd6018f99ef40b6a95c9319518beaa2465fa"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: routing.AddRoutingRuleDialog: FunctionTooLong \u2014 AddRoutingRuleDialog runs 323 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 223 over it, 3.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":"packages/ui/src/pages/home/components/routing.tsx"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b3c14e44a7689012eea7e937d4e1db223a1ba0f8daf847991c64e4fb2de71da"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: settings.BotConfigDialog: FunctionTooLong \u2014 BotConfigDialog runs 318 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 218 over it, 3.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":"packages/ui/src/pages/home/components/settings.tsx"},"region":{"startLine":1453}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c157c13e3ca2f89a78505dd3b4b7cf9d5ea87e3d770d069b9e210c866bc6a0e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: profiles/launch-service.ts: FileTooLong \u2014 1577 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1077 over it, 3.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":"packages/core/src/profiles/launch-service.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"57a5a5c88871f3055354ab03ad4e3174f6c6bb759ba28bfaa68755fb12db2ebc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/probe.ts: FileTooLong \u2014 1503 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1003 over it, 3.01\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":"packages/core/src/providers/probe.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb6c088b51fbe8d293834b1c2b2d527581dd7ef46c657fc8fc7efa4be4b9dd6c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: network-logs.LogsView: FunctionTooLong \u2014 LogsView runs 292 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 192 over it, 2.92\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":"packages/ui/src/pages/home/components/network-logs.tsx"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfdfca5cee4545d080742aac03e7c0de44bb528dcf6b7cc06fe559da7aaf600d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: shared/profiles.ts: FileTooLong \u2014 1392 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 892 over it, 2.78\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":"packages/ui/src/pages/home/shared/profiles.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ced27418d1bb1a4e421f28fcd8b2d14d3e3802c80a65c53cbcacf38e68e9e92f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: observability/raw-trace-sync.ts: FileTooLong \u2014 1391 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 891 over it, 2.78\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":"packages/core/src/observability/raw-trace-sync.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d84f46f0321e89fcfa50b96abb970c6338819646d5de27d4c644251fb79142b4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: proxy/service.ts: FileTooLong \u2014 1386 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 886 over it, 2.77\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":"packages/core/src/proxy/service.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"14a7b48fd3029ff82b1e0a1df59efebcf2f4e5d640ff96a687cd12d27d4e43d8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: media-preview-bridge.codexMediaPreviewPageBootstrap: FunctionTooLong \u2014 codexMediaPreviewPageBootstrap runs 265 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 165 over it, 2.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":"packages/core/src/agents/codex/media-preview-bridge.ts"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"93755c0bdee9768ae5df0bfa361e216a5308686f6e94b8ec0da8ca462a0351e9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BrowserAutomationMcpService.runTool: MethodTooLong \u2014 runTool runs 263 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 163 over it, 2.63\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":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"16c4e8f177db8e0098f2c77d673533640b1df6aaa433de31bd2c7cc63a066465"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: dashboard.CodexResetCreditDialog: FunctionTooLong \u2014 CodexResetCreditDialog runs 263 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 163 over it, 2.63\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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":3640}}}],"partialFingerprints":{"codehealthFindingId/v1":"70ba3733c0d2a519efd74e78fce5d9148d625d188bbdf4f81739e9bff78de648"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: network-logs.LogJsonPanel: FunctionTooLong \u2014 LogJsonPanel runs 263 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 163 over it, 2.63\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":"packages/ui/src/pages/home/components/network-logs.tsx"},"region":{"startLine":1782}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ec3177ece20a9dbea63d03515569246c6989cca72dda298e8437cb6bbe51423"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: onboarding.OnboardingView: FunctionTooLong \u2014 OnboardingView runs 263 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 163 over it, 2.63\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":"packages/ui/src/pages/home/components/onboarding.tsx"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"11621c37efa12abe0ba610f6142e01f7e16a037668abcf2df48fc83d1423962f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: executor.fetchUpstreamWithFallback: FunctionTooLong \u2014 fetchUpstreamWithFallback runs 262 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 162 over it, 2.62\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":"packages/core/src/gateway/upstream/executor.ts"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"81ed10a4a20093a0462e45a958998a3849023b5d077dbaa978ac286c88906290"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: main.BrowserChrome: FunctionTooLong \u2014 BrowserChrome runs 262 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 162 over it, 2.62\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":"packages/ui/src/pages/browser/main.tsx"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ee439c0da2ff2dda0f1980967569ccf99eecdc4b2dc9df0a98df3c69eb0b9f9"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: providers.ProvidersView: FunctionTooLong \u2014 ProvidersView runs 261 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 161 over it, 2.61\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":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea4d3097cac098e8f014ba1ded5849a312c3f878ee22b7181f9e161d4293f4c7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gateway/claude-code-router-plugin.ts: FileTooLong \u2014 1246 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 746 over it, 2.49\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":"packages/core/src/gateway/claude-code-router-plugin.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"de2022ea288fc264bec0147dcaf8ce84085ea8a534c46d526ec4a605e191ce52"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: browser-automation-mcp.browserPublicAutomationTools: FunctionTooLong \u2014 browserPublicAutomationTools runs 245 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 145 over it, 2.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":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"d37e066b30bab6d32cb54234c994f92b59d8db462c9b2e8600912c8a07798b59"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/virtual-models.tsx: FileTooLong \u2014 1201 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 701 over it, 2.40\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":"packages/ui/src/pages/home/components/virtual-models.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"879a7c84bb19a2ff5d1de10e08bd075510ce27ec842b5e7ff131c9ae8a5ef2c5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: virtual-models.FusionToolSelectControl: FunctionTooLong \u2014 FusionToolSelectControl runs 239 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 139 over it, 2.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":"packages/ui/src/pages/home/components/virtual-models.tsx"},"region":{"startLine":1021}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d3498aaadeefe5dd9866b7a7571ed9fcb7c68a42a8db2a97053fe5234d0bce7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: model-selector.ModelSelector: FunctionTooLong \u2014 ModelSelector runs 237 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 137 over it, 2.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":"packages/ui/src/pages/home/components/model-selector.tsx"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"646be77b885fe311e9105dae06a42ee36e2e709797d797c4a99f1bf89e66c012"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: providers.OpenRouterProviderBlacklistSelect: FunctionTooLong \u2014 OpenRouterProviderBlacklistSelect runs 237 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 137 over it, 2.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":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":4272}}}],"partialFingerprints":{"codehealthFindingId/v1":"505bb824fce433310420dd7dbecadcf8a1e050dce2f4eb5866d8ac5307cf4307"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: web/management-server.ts: FileTooLong \u2014 1168 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 668 over it, 2.34\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":"packages/core/src/web/management-server.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a8e1dbb6af7379d2bbfbfa543a22091642ecc5708c93d61d2dda3d59982c09a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: main/ipc.ts: FileTooLong \u2014 1166 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 666 over it, 2.33\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":"packages/electron/src/main/ipc.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ced51cf1562aaa9af906cbc5ef79a5ed4a15dec59b8dbb7a0f6d062fbad7992"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: profiles.ProfileView: FunctionTooLong \u2014 ProfileView runs 231 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 131 over it, 2.31\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":"packages/ui/src/pages/home/components/profiles.tsx"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"2796e7006cb628652a0ec4f3cda9bf198af5f2dfe900567b5398cca807a66e1d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: router-plugin.createGatewayPlugin: FunctionTooLong \u2014 createGatewayPlugin runs 230 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 130 over it, 2.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":"packages/core/src/gateway/core-runtime/router-plugin.ts"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"992e4ca0e5e64e9a8e2c332e34dbadbb107e48f71e214ab73ffbc86b5aeb882b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: virtual-models.VirtualModelDialog: FunctionTooLong \u2014 VirtualModelDialog runs 227 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 127 over it, 2.27\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":"packages/ui/src/pages/home/components/virtual-models.tsx"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"5393f953eb43ad2c9636d77bf78b5854f52d0415bcfa69151e26b2a1a46d7838"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: network-logs.NetworkingView: FunctionTooLong \u2014 NetworkingView runs 224 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 124 over it, 2.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":"packages/ui/src/pages/home/components/network-logs.tsx"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7f75208e00331a93694aa3565f07c17d5ed1550643e5df906f48799a739986d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GatewayRequestPipeline: ClassTooLong \u2014 893 significant lines (blank, comment-only and punctuation-only lines excluded), 3 methods. The bar is 400 significant lines; this is 493 over it, 2.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":"packages/core/src/gateway/request/pipeline.ts"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bd65b958a246efec709893b269d8c1e13d9d3e78f66d1e483660cd7a1d999a0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: request/pipeline.ts: FileTooLong \u2014 1089 significant lines (blank, comment-only and punctuation-only lines excluded), about 82% of them inside a single declaration: GatewayRequestPipeline (114-1205). The bar is 500 significant lines; this is 589 over it, 2.18\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":"packages/core/src/gateway/request/pipeline.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc2ecba7374864dacdaf13aedeb4769e6f543b771dc3a695ed3b8ea8e7c682cd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: usage/store.ts: FileTooLong \u2014 1086 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 586 over it, 2.17\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":"packages/core/src/usage/store.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e630457381f3d73043dc04c2b8f247c86b28432a20ae896b8129943964d6fa9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: core-runtime/router-plugin.ts: FileTooLong \u2014 1061 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 561 over it, 2.12\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":"packages/core/src/gateway/core-runtime/router-plugin.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"04283f7f769d8a035ff0fe5a125b2494a48cc415238d531707fd2d4bbdce04e0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: providers.ProviderPresetCombobox: FunctionTooLong \u2014 ProviderPresetCombobox runs 204 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 104 over it, 2.04\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":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":944}}}],"partialFingerprints":{"codehealthFindingId/v1":"27b1fe4f77ac0bcf456bb64e5603bed46cbb1dacdf15415ddf18729467cab353"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: settings.ToolHubSettingsPage: FunctionTooLong \u2014 ToolHubSettingsPage 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":"packages/ui/src/pages/home/components/settings.tsx"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"d694138d1e9f73cf48d0cda7435db9a07d814626896b52a8692dc94beb4608d0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: main/electron-web-search-mcp.ts: FileTooLong \u2014 980 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 480 over it, 1.96\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":"packages/electron/src/main/electron-web-search-mcp.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2bb7da44ae766992ef59c1c8759856ba45e127104e4dd80345374dbbb33c58a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: layout.MainLayout: FunctionTooLong \u2014 MainLayout runs 196 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 96 over it, 1.96\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":"packages/ui/src/pages/home/components/layout.tsx"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"986b5666ef6aabe08f1ab321a26e257215b8abfc3bf6d7a577d518ee164afe07"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: plugins/service.ts: FileTooLong \u2014 970 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 470 over it, 1.94\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":"packages/core/src/plugins/service.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd28a59abd5371d43b5ed612b5207683c621abc431d3eb1f5a8e0e23d4ef7d8f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: observability/request-log-runtime.ts: FileTooLong \u2014 954 significant lines (blank, comment-only and punctuation-only lines excluded), about 66% of them inside a single declaration: RequestLogRuntime (134-939). The bar is 500 significant lines; this is 454 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":"packages/core/src/observability/request-log-runtime.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"94026b6e81502cb8c84fac4d54d79e2de7d20b045e5d0c52f466bd1391f1130e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: shared/logs.ts: FileTooLong \u2014 946 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 446 over it, 1.89\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":"packages/ui/src/pages/home/shared/logs.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e11e415903d72790175419e33092523bfcf800594510abf6fcdba110e874ed1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: upstream/executor.ts: FileTooLong \u2014 944 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 444 over it, 1.89\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":"packages/core/src/gateway/upstream/executor.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"41a5458b0bf43a419f64607456acd5cb37a49fa5bed058a942b80e85649381ad"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: built-ins/openrouter-discount-provider-router.ts: FileTooLong \u2014 942 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 442 over it, 1.88\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":"packages/core/src/plugins/built-ins/openrouter-discount-provider-router.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b635899eb9f2612259dcb3cfcec58ab0287e4ff7cf4bd3da7240d5a732c22649"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: providers.AddProviderDialog: FunctionTooLong \u2014 AddProviderDialog runs 188 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 88 over it, 1.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":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":3466}}}],"partialFingerprints":{"codehealthFindingId/v1":"163af481ef45e8bc3888cf5736f63481cfa1803973c2ab6bea88e9622f5c507f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: shared/virtual-models.ts: FileTooLong \u2014 922 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 422 over it, 1.84\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":"packages/ui/src/pages/home/shared/virtual-models.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"13a4d0d36ee0b59e5263a3d10d2233cccff9caed96261f167a0b7418824c653e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: codex/app-launch.ts: FileTooLong \u2014 921 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 421 over it, 1.84\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":"packages/core/src/agents/codex/app-launch.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"86efee01e52383da7343d9c59d0242f72475cef474b954029c11891f1b946552"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: profiles.ClaudeConfigEditorContent: FunctionTooLong \u2014 ClaudeConfigEditorContent runs 180 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 80 over it, 1.80\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":"packages/ui/src/pages/home/components/profiles.tsx"},"region":{"startLine":1337}}}],"partialFingerprints":{"codehealthFindingId/v1":"f575a29b86073a29d8522669b28f3c216175ace3f64d4106d25bd7723f09852d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mcp/fusion-vision-mcp.ts: FileTooLong \u2014 887 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 387 over it, 1.77\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":"packages/core/src/mcp/fusion-vision-mcp.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"651ff801b863d93e7bf0ace97c2360e09f681cb3e6974a2256d42daff32422e2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: browser-automation-mcp.snapshotScript: FunctionTooLong \u2014 snapshotScript runs 177 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 77 over it, 1.77\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":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":2685}}}],"partialFingerprints":{"codehealthFindingId/v1":"e96fef79795eb7a1481e718ca5f1f9f48cf253b0866a3018f8028917ca6eb444"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: hosted-web-search/response-transform.ts: FileTooLong \u2014 836 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 336 over it, 1.67\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":"packages/core/src/gateway/features/hosted-web-search/response-transform.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"82627f27fc29efd65444a409b142e50a05d22ff588f7480867b135ebc465d002"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GatewayHttpRequestHandler.handleRequest: MethodTooLong \u2014 handleRequest runs 164 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 64 over it, 1.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":"packages/core/src/gateway/http/request-handler.ts"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f928764daa98fe7d43d26d437544f90138f872ca6aa46a76ed8f38a961825a0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: routing.RoutingView: FunctionTooLong \u2014 RoutingView runs 162 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 62 over it, 1.62\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":"packages/ui/src/pages/home/components/routing.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f956ba72a746678498cedb01cbcc1be5a5ad5ee88e5619d7275ac14e0af16a9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/cli.ts: FileTooLong \u2014 800 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 300 over it, 1.60\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":"packages/cli/src/cli.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2022a17e6cdb0934f250d4fe0cf32bcc645876fb26020b32e1be104cc95734f9"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: profiles.BotGatewaySelectForm: FunctionTooLong \u2014 BotGatewaySelectForm 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":"packages/ui/src/pages/home/components/profiles.tsx"},"region":{"startLine":1944}}}],"partialFingerprints":{"codehealthFindingId/v1":"baf8d25587c321d8cf10ddb825dd542439fdb2acaba5569e0a65462c1db20b7d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: dashboard.ProviderAccountsOverview: FunctionTooLong \u2014 ProviderAccountsOverview runs 159 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 59 over it, 1.59\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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":2608}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c9fed8d3d2595179be723bded737faf80f35133809b47613f7d92321ba3b12f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: dashboard.ProviderAccountSummaryCard: FunctionTooLong \u2014 ProviderAccountSummaryCard 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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":2929}}}],"partialFingerprints":{"codehealthFindingId/v1":"999a0ac23729543b3b029b03c6f59489fb3de32b09e907eb7863754f13b8cdf2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: browser-automation-mcp.targetActionScript: FunctionTooLong \u2014 targetActionScript runs 157 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 57 over it, 1.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":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":2904}}}],"partialFingerprints":{"codehealthFindingId/v1":"c32cc41af904af3c6f222cee79464ac9078a30c216fb05a7cacb5516302b33a3"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RequestLogRuntime: ClassTooLong \u2014 625 significant lines (blank, comment-only and punctuation-only lines excluded), 43 methods. The bar is 400 significant lines; this is 225 over it, 1.56\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":"packages/core/src/observability/request-log-runtime.ts"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ddc2f415aad83e47a16ecc0547cead21ca8e7c2267bdba000ae2b3860e72bae"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BuiltInBrowserService: ClassTooLong \u2014 619 significant lines (blank, comment-only and punctuation-only lines excluded), 42 methods. The bar is 400 significant lines; this is 219 over it, 1.55\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":"packages/electron/src/main/built-in-browser.ts"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0cfa27c7672dd64280c6fa0de181ea70df8119696f35d8a92b8a5a5ec740af5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: main/built-in-browser.ts: FileTooLong \u2014 764 significant lines (blank, comment-only and punctuation-only lines excluded), about 81% of them inside a single declaration: BuiltInBrowserService (64-929). The bar is 500 significant lines; this is 264 over it, 1.53\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":"packages/electron/src/main/built-in-browser.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3c923d2d83ade600816a3ff4db47b7d14c7402ea86db055b6df72bda5ee29f4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BrowserAutomationMcpService: ClassTooLong \u2014 589 significant lines (blank, comment-only and punctuation-only lines excluded), 21 methods. The bar is 400 significant lines; this is 189 over it, 1.47\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":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9c65d5604c86cf91d5c6a203ea71239e58ec169b1794396cd5d8c2ecfbd452f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: settings.AppSettingsDialog: FunctionTooLong \u2014 AppSettingsDialog runs 147 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 47 over it, 1.47\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":"packages/ui/src/pages/home/components/settings.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"2404b2cc44c453f2a4fcdc05d05bbca5a89df88971c53fa03af53eaf6736092f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: providers.ProviderDeepLinkDialog: FunctionTooLong \u2014 ProviderDeepLinkDialog 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":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"83069236a163fa2fd47aa6c8ae52c4ca12345349561cf4079fc4caf6c26dd66c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: providers.LocalAgentProviderImportPanel: FunctionTooLong \u2014 LocalAgentProviderImportPanel 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":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":1372}}}],"partialFingerprints":{"codehealthFindingId/v1":"d68a164eea4db88dece8fb67a40d9eca0d681d1bfcdac3c2351d3201af190ab7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RequestLogRuntime: TooManyMethods \u2014 43 methods. The bar is 30 methods; this is 13 over it, 1.43\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":"packages/core/src/observability/request-log-runtime.ts"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aaba4e48f6f51bc329ebe110c47c0b262581c0a586531a43249d6474d16a440"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ProvidersViewDemo.ProvidersViewDemo: FunctionTooLong \u2014 ProvidersViewDemo 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":"docs/src/components/interactive/ProvidersViewDemo.tsx"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb5ccf19720cf93cdc8efef93d45a6fad4d542f888c442b624e4095d2f834a9f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BuiltInBrowserService: TooManyMethods \u2014 42 methods. The bar is 30 methods; this is 12 over it, 1.40\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":"packages/electron/src/main/built-in-browser.ts"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"63d16ca77456e1552120358b358a312cde3a44a277e44a1710e192b5600e295b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: proxy/system-proxy.ts: FileTooLong \u2014 698 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 198 over it, 1.40\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":"packages/core/src/proxy/system-proxy.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4fafda13a9b9e11236deab72121ddbc5f4d4874e64aab395875019db1d775cd"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: providers.ModelsView: FunctionTooLong \u2014 ModelsView 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":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"587ea5e80327e87a6e241e421b546144f79af3004e0a7af170420146c4259176"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: features/model-discovery.ts: FileTooLong \u2014 683 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 183 over it, 1.37\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":"packages/core/src/gateway/features/model-discovery.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"06eb5c3b1d542b8a5513d07116a0164c58f72bd9ce73fa54ef0201cbe9cb7cf5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/routing.tsx: FileTooLong \u2014 663 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 163 over it, 1.33\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":"packages/ui/src/pages/home/components/routing.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"edf0ad73d3caa7b4806c05a55f190515a7c4e41eeb819dd89e6a501658b1bc4c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/share-cards.tsx: FileTooLong \u2014 663 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 163 over it, 1.33\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":"packages/ui/src/pages/home/components/share-cards.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2198b6363a8592523d7a7a8915a9a398e2edc7c64cd12c55bd7e90e81c7c2dc5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: local-providers/grok.ts: FileTooLong \u2014 661 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 161 over it, 1.32\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":"packages/core/src/agents/local-providers/grok.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fad9fd8e125dba30f28253e797a8d07e5a03c3a8aefc55c5d051b7eb44b3f7e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: local-providers/codex.ts: FileTooLong \u2014 655 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 155 over it, 1.31\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":"packages/core/src/agents/local-providers/codex.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"019c214b1571ca0f3e06cb81e2f9d3a6ed5e44059f412a7452e78c828bfa6f83"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: profiles.AgentSelectControl: FunctionTooLong \u2014 AgentSelectControl runs 131 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 31 over it, 1.31\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":"packages/ui/src/pages/home/components/profiles.tsx"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"572b725d3da58ac5adc3e6ec69e8f96c62d4df58dd3622aa21ab31d8a3710dd1"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RawTraceSynchronizer: ClassTooLong \u2014 522 significant lines (blank, comment-only and punctuation-only lines excluded), 24 methods. The bar is 400 significant lines; this is 122 over it, 1.31\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":"packages/core/src/observability/raw-trace-sync.ts"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"942653349bc51a26302205ad6b3e773fa4f1035c364d88fe34cd2de24a90f898"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: config/config-repository.ts: FileTooLong \u2014 647 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 147 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":"packages/core/src/config/config-repository.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5e91854caae9244f7ab767222335d4f1a101183e39e8651ab6bc4142c54e7ce"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: core-runtime/supervisor.ts: FileTooLong \u2014 645 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 145 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":"packages/core/src/gateway/core-runtime/supervisor.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d6c2cdb0d50ed93a996cfa1486218e879f2125269a293c9494102ecb65b0075"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: cli.main: FunctionTooLong \u2014 main runs 128 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 28 over it, 1.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":"packages/cli/src/cli.ts"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4053f8af2042b38ac4742333ef87c1d736e74c3382fe54b23c7995edce8a905"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: contracts/deep-link.ts: FileTooLong \u2014 637 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 137 over it, 1.27\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":"packages/core/src/contracts/deep-link.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec4f97af68910e66bbc3ba03a982a1e30d71e487483168d6b6359c4df9b71635"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gateway/context-archive.ts: FileTooLong \u2014 636 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 136 over it, 1.27\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":"packages/core/src/gateway/context-archive.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"df845583bee04ac9561415acba3857de19b80202742ab2850db865bd20cb535c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GatewayPluginService: ClassTooLong \u2014 508 significant lines (blank, comment-only and punctuation-only lines excluded), 35 methods. The bar is 400 significant lines; this is 108 over it, 1.27\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":"packages/core/src/plugins/service.ts"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec3713221418b8a6825bb53c5df655580fd777f1ff737d28b8716389d24ea922"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: core-runtime/config-compiler.ts: FileTooLong \u2014 632 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 132 over it, 1.26\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":"packages/core/src/gateway/core-runtime/config-compiler.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab450a5a90b2abc6c3f9e0eaae1767b0f6ce5619cc6cabddadc7a0f1de1a6108"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: context-archive/protocol.ts: FileTooLong \u2014 630 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 130 over it, 1.26\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":"packages/core/src/gateway/context-archive/protocol.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e64d33a7f3f69b7558af2567c36016748d06fde2f8d3481fe1be075a05eb0d4c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: dashboard.SystemStatusBar: FunctionTooLong \u2014 SystemStatusBar 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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":2465}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd7fbdd1c653deffce38b5871c957eb93ea1116629d79822b3da7828911e4712"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: extensions.ExtensionsView: FunctionTooLong \u2014 ExtensionsView 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":"packages/ui/src/pages/home/components/extensions.tsx"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"801cd8b0597534e50c335ee652739b43dc42401af35406510e8a9e7acd21f8cf"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: codex/model-catalog.ts: FileTooLong \u2014 626 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 126 over it, 1.25\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":"packages/core/src/agents/codex/model-catalog.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"65f4d86c2d03ee4b0be8af528e7ae229d08aa84aac688736b06acc303f0d4419"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: application/gateway-service.ts: FileTooLong \u2014 623 significant lines (blank, comment-only and punctuation-only lines excluded), about 76% of them inside a single declaration: GatewayService (79-714). The bar is 500 significant lines; this is 123 over it, 1.25\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":"packages/core/src/gateway/application/gateway-service.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffbb6518e6938e9bb8263ea0a7e4ae1a7b9cb687336c067d911fd30ff9c4aa14"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: TrayApp.TrayApp: FunctionTooLong \u2014 TrayApp runs 124 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 24 over it, 1.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":"packages/ui/src/pages/tray/TrayApp.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"982e561c4c9182129464d54c580dfd9d76fccfc1648c05638042729a1e88e679"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tray/shared.tsx: FileTooLong \u2014 615 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 115 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":"packages/ui/src/pages/tray/shared.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f46deb5d8cc39e091ed51093e8fa3ae51e0c6d6c54c4b0aa8df6df39a079e0c1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: main/tray-controller.ts: FileTooLong \u2014 612 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 112 over it, 1.22\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":"packages/electron/src/main/tray-controller.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ed2f1e3eafd808aa35454e6f90fde227d1dec4005a08b191f40c129d9fff2df"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: browser-automation-mcp.browserLegacyAliasTools: FunctionTooLong \u2014 browserLegacyAliasTools 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":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"e22f86fd4eadf6e5cd73a3176e26a33e1c31edb06001bc6687bf4227a35ca3c0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: extensions.ConfigureClaudeDesignDialog: FunctionTooLong \u2014 ConfigureClaudeDesignDialog 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":"packages/ui/src/pages/home/components/extensions.tsx"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"5917d1e3a40421a4ec232f651acce0e25b7bf675a255f79bd85af19b5470b1b4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: browser/main.tsx: FileTooLong \u2014 596 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 96 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":"packages/ui/src/pages/browser/main.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0020efd7df07a658c03f403c56374062bb3af69ae750751422b03d6604e7442"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GatewayService.startGateway: MethodTooLong \u2014 startGateway 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":"packages/core/src/gateway/application/gateway-service.ts"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"98e9de1ce3e2ba9452360559b691343fa62823574eaa35aab13098a5e6e6a671"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GatewayService: ClassTooLong \u2014 475 significant lines (blank, comment-only and punctuation-only lines excluded), 24 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":"packages/core/src/gateway/application/gateway-service.ts"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e85cb84b135c308e15bbe5f46bcf07aaed1f97c14626502442667df38f2c278"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: api-keys.ApiKeysView: FunctionTooLong \u2014 ApiKeysView runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.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":"packages/ui/src/pages/home/components/api-keys.tsx"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"5093b4964eb527532efa107fc61f2dfc8a382cff4034682958350666cfe0f163"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: local-providers/kimi.ts: FileTooLong \u2014 585 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 85 over it, 1.17\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":"packages/core/src/agents/local-providers/kimi.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fd96545af310b71d641cb1205d55485d2c9a994d039c4713933c21d6bdf2bd5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tooltip.Tooltip: FunctionTooLong \u2014 Tooltip 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":"packages/ui/src/components/ui/tooltip.tsx"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"811cb00bd899fcb6fe36405e7900fe861758fa893dd7ea2a9ed296ad12b176d0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: settings.ToolHubMcpServerDialog: FunctionTooLong \u2014 ToolHubMcpServerDialog 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":"packages/ui/src/pages/home/components/settings.tsx"},"region":{"startLine":825}}}],"partialFingerprints":{"codehealthFindingId/v1":"65724c1f85ed05534b614ebedef7e12090d5b37d395bb737cea80fd6ec0b0fa3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MediaService: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\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":"packages/core/src/media/service.ts"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"73ee8ae67705aa57f18306a2f9cadba7600b299167c51ce3cec6960cdca68635"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GatewayPluginService: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\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":"packages/core/src/plugins/service.ts"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"057554369191f91ea9934653e389b7a39dafca067edfa7bd803e1ad6ff57ad01"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: profiles.ProfileRoutingSettings: FunctionTooLong \u2014 ProfileRoutingSettings 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":"packages/ui/src/pages/home/components/profiles.tsx"},"region":{"startLine":1098}}}],"partialFingerprints":{"codehealthFindingId/v1":"834891c3e903530207ac017e0fca5c1b523edd81aeee89a5b55f325daea351f3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: virtual-models.FusionToolsListControl: FunctionTooLong \u2014 FusionToolsListControl 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":"packages/ui/src/pages/home/components/virtual-models.tsx"},"region":{"startLine":897}}}],"partialFingerprints":{"codehealthFindingId/v1":"12c5f49c72688773bc5a8bf1533dfc15b9ca62f76d6982c51827d193a736b1a5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: media/service.ts: FileTooLong \u2014 577 significant lines (blank, comment-only and punctuation-only lines excluded), about 69% of them inside a single declaration: MediaService (50-582). The bar is 500 significant lines; this is 77 over it, 1.15\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":"packages/core/src/media/service.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4761b8cee7f9afd130cbb02e7eda6704e85d5409ea214aadca4fdb496077f9cb"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: providers.ProviderMobileCard: FunctionTooLong \u2014 ProviderMobileCard 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":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c7faec7577290ad1c7bb619aef219676d22af221e2b8a320058e5aa36a92465"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: codex/media-preview-bridge.ts: FileTooLong \u2014 568 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 68 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":"packages/core/src/agents/codex/media-preview-bridge.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ccca14dde63603fbbf5f13a17ea53740c5725c310941739e2e46e8266012521"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mcp/fusion-config.ts: FileTooLong \u2014 567 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 67 over it, 1.13\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":"packages/core/src/mcp/fusion-config.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"94834e624eac9dfe17bae61a6daf8408a1790307c21930d4f20011692d09d07e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/widgets.tsx: FileTooLong \u2014 563 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 63 over it, 1.13\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":"packages/ui/src/pages/tray/components/widgets.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2998feea8519a176d91f2697cf3d4954d00ff30682794038d687a04799ddfd9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ClaudeCodeRouterPlugin.routeRequest: MethodTooLong \u2014 routeRequest 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":"packages/core/src/gateway/claude-code-router-plugin.ts"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6f26a0df83f03ee660d0d380243db656877e2c604c36229a51908075506b276"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: claude-code-router-plugin.resolveConfiguredRouteDecision: FunctionTooLong \u2014 resolveConfiguredRouteDecision 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":"packages/core/src/gateway/claude-code-router-plugin.ts"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddcd496deecc192c5629a3d06e258e5c2e64aedef1c4f477ed219d1fd2dddf23"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/model-catalog.ts: FileTooLong \u2014 554 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 54 over it, 1.11\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":"packages/core/src/providers/model-catalog.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4d0411500ebf248386e936beabc428404ba0f2049462a2e81267e66657929b7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: hosted-web-search/discovery.ts: FileTooLong \u2014 551 significant lines (blank, comment-only and punctuation-only lines excluded). 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":"packages/core/src/gateway/features/hosted-web-search/discovery.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"da8da01df01436c3e8d6c1041d91f3c3c7dbfcf529c8d25126f8eb6fe6419f6f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: shared/external.tsx: FileTooLong \u2014 551 significant lines (blank, comment-only and punctuation-only lines excluded). 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":"packages/ui/src/pages/home/shared/external.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d1afb869bb08dfb28f146b7c390b53db450d31b8a96be6d027171f3273d8df3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openrouter-discount-provider-router.normalizeEndpoint: FunctionTooLong \u2014 normalizeEndpoint 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":"packages/core/src/plugins/built-ins/openrouter-discount-provider-router.ts"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"a43155cec0aaa76b45682baf7d358248c638fccde3102f41870b8d0e4964b411"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: virtual-models.VirtualModelsView: FunctionTooLong \u2014 VirtualModelsView 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":"packages/ui/src/pages/home/components/virtual-models.tsx"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ef3327f9cde330768eb11dc4c2795772762b7a6131e61dab7bf35d199a30cb3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: virtual-models.CustomMcpToolDialog: FunctionTooLong \u2014 CustomMcpToolDialog 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":"packages/ui/src/pages/home/components/virtual-models.tsx"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"e30780aaba427dbbc8970e9d5f30494d58e09dcaac892c468818bcc021d272a1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: features/context-archive-continuation.ts: FileTooLong \u2014 541 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 41 over it, 1.08\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":"packages/core/src/gateway/features/context-archive-continuation.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1765c2dd5c25cad4ab4dc9e01712236b26996a8c513acdb99f62f35b552a229f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: main/claude-design-window.ts: FileTooLong \u2014 536 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 36 over it, 1.07\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":"packages/electron/src/main/claude-design-window.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b04bbce214313e504dabb341f1656ef915d9b925e4d0c5b685c9b4d0048eca68"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BuiltInBrowserService.configureTab: MethodTooLong \u2014 configureTab runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\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":"packages/electron/src/main/built-in-browser.ts"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b60a413282f2e2abe462ae96b4e68be5847c8f148a69a868c84a6a3e3a3db30"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: controls.EndpointTitleBar: FunctionTooLong \u2014 EndpointTitleBar runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.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":"packages/ui/src/pages/home/shared/controls.tsx"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a5cdd580c9942a94810d490a9f26bffe85f086109b8b9d57a9e41e8cdbb2a74"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/docs-structure.ts: FileTooLong \u2014 522 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 22 over it, 1.04\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":"docs/src/docs-structure.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"29d01826869dfcbe8a102ddab35e81a9e3beb2a0bd3ed3bb20d1eba3ed396649"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: shared/extensions.ts: FileTooLong \u2014 521 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 21 over it, 1.04\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":"packages/ui/src/pages/home/shared/extensions.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"99c8b9ff791571b98fbdc52a62e99489d94177b046edc2c7206fc6d2eebeb8af"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: main/windows.ts: FileTooLong \u2014 520 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 20 over it, 1.04\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":"packages/electron/src/main/windows.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eab5518e2486d2c376a1e6a0f2fa289952b70effcefa1f3ce9f98a9f4acd661"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WindowsManager.openPluginAppWindow: MethodTooLong \u2014 openPluginAppWindow runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.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":"packages/electron/src/main/windows.ts"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"02d642f28a2c4c6b3f2874f6c0bc44f7c0bf14ce9bc00e08419524c44c3b47c2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: extensions.PluginSettingsDialog: FunctionTooLong \u2014 PluginSettingsDialog runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\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":"packages/ui/src/pages/home/components/extensions.tsx"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ec551c7f5030426025c2bc3b9f1efc89cddfdf059f70fb8025874420a3488ea"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: providers.ProviderSetupProgress: FunctionTooLong \u2014 ProviderSetupProgress runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\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":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":1603}}}],"partialFingerprints":{"codehealthFindingId/v1":"27290e07ee5036fabfb9c8d8d2cd47709ae6a6c129dabed00e9f6cde5610f64b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: providers.ProviderConnectivityCheckDialog: FunctionTooLong \u2014 ProviderConnectivityCheckDialog runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\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":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":3689}}}],"partialFingerprints":{"codehealthFindingId/v1":"81e696f6ab125e18afe2b2357370e6b78c654888da7082ca209763eb306cc265"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/model-auto-refresh.ts: FileTooLong \u2014 509 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 9 over it, 1.02\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":"packages/core/src/providers/model-auto-refresh.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c873ec3c117cfc2fc114036e6e97085c7cadbe2ba887f342623f4f78a39eee10"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: (unnamed test): Skipped \u2014 switched off by test.skip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/e2e/electron-cdp.spec.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"378bef902a612e9082fb4e3d403a5cb044a994b2728559d95d73943fe50267b8"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: generated Codex CLI middleware runtime is valid JavaScript: 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*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, 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":"packages/core/test/integration/agents/codex-cli-middleware-runtime.test.mjs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"3077bf7dbd9db77fad0444f82b9895ff90a5248f60b2166cf9fddfc2c0b6b083"}},{"ruleId":"D12","level":"note","message":{"text":"Deprecated: glob: glob 7.2.3 is resolved in package-lock.json and is marked deprecated by its publisher: \u0022Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [e-mail redacted]\u0022. This repository does not declare it \u2014 a direct dependency pulls it in, so the move is to upgrade or replace that dependency."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package-lock.json"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a6a21a0f511e79bf1641d8781e0ca2d1a227ed4ef5f1fd822135ca3108ada0d"}},{"ruleId":"D12","level":"note","message":{"text":"Deprecated: boolean: boolean 3.2.0 is resolved in package-lock.json and is marked deprecated by its publisher: \u0022Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.\u0022. This repository does not declare it \u2014 a direct dependency pulls it in, so the move is to upgrade or replace that dependency."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package-lock.json"},"region":{"startLine":3027}}}],"partialFingerprints":{"codehealthFindingId/v1":"60506cf61a5955b000bad3921f6013f6bf94d17cc6a4999fdc8f0767e5cfeeba"}},{"ruleId":"D12","level":"note","message":{"text":"Deprecated: core-js: core-js 2.6.12 is resolved in package-lock.json and is marked deprecated by its publisher: \u0022core-js@\u003C3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.\u0022. This repository does not declare it \u2014 a direct dependency pulls it in, so the move is to upgrade or replace that dependency."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package-lock.json"},"region":{"startLine":3401}}}],"partialFingerprints":{"codehealthFindingId/v1":"226dd36e368f23ad52664fb862fee40e9610e03f8d68a66744717d20cfd9a1cc"}},{"ruleId":"D12","level":"note","message":{"text":"Deprecated: inflight: inflight 1.0.6 is resolved in package-lock.json and is marked deprecated by its publisher: \u0022This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.\u0022. This repository does not declare it \u2014 a direct dependency pulls it in, so the move is to upgrade or replace that dependency."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package-lock.json"},"region":{"startLine":5429}}}],"partialFingerprints":{"codehealthFindingId/v1":"45f44f2d08ee8839d5172f941ab3bc1c660bb2257c3c3bd3354971f7072e14eb"}},{"ruleId":"D12","level":"note","message":{"text":"Deprecated: lodash.isequal: lodash.isequal 4.5.0 is resolved in package-lock.json and is marked deprecated by its publisher: \u0022This package is deprecated. Use require(\u0027node:util\u0027).isDeepStrictEqual instead.\u0022. This repository does not declare it \u2014 a direct dependency pulls it in, so the move is to upgrade or replace that dependency."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package-lock.json"},"region":{"startLine":6056}}}],"partialFingerprints":{"codehealthFindingId/v1":"d267f11ad0d5ac531c90bc1afbe83e99b9ea44a98c2599a200ce02dbe6d2e45c"}},{"ruleId":"D12","level":"note","message":{"text":"Deprecated: popper.js: popper.js 1.16.1 is resolved in package-lock.json and is marked deprecated by its publisher: \u0022You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1\u0022. This repository does not declare it \u2014 a direct dependency pulls it in, so the move is to upgrade or replace that dependency."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package-lock.json"},"region":{"startLine":7015}}}],"partialFingerprints":{"codehealthFindingId/v1":"39cc5954425f133b3474695263caba2d63192d90397b685cab66c8e7a65c7d5c"}},{"ruleId":"D12","level":"note","message":{"text":"Deprecated: prebuild-install: prebuild-install 7.1.3 is resolved in package-lock.json and is marked deprecated by its publisher: \u0022No longer maintained. Please contact the author of the relevant native addon; alternatives are available.\u0022. This repository does not declare it \u2014 a direct dependency pulls it in, so the move is to upgrade or replace that dependency."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package-lock.json"},"region":{"startLine":7062}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf37fa194cf8bba083d3ee45aa6f104c0e62e5a3135c5862549d48e21468d242"}},{"ruleId":"D12","level":"note","message":{"text":"Deprecated: rimraf: rimraf 2.6.3 is resolved in package-lock.json and is marked deprecated by its publisher: \u0022Rimraf versions prior to v4 are no longer supported\u0022. This repository does not declare it \u2014 a direct dependency pulls it in, so the move is to upgrade or replace that dependency."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package-lock.json"},"region":{"startLine":7764}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f19ad8cb4391b735e04142442af28e60cbd91c2bb1f98ea175f4eb33e27294f"}},{"ruleId":"D12","level":"note","message":{"text":"Deprecated: glob: glob 7.2.3 is resolved in package-lock.json and is marked deprecated by its publisher: \u0022Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [e-mail redacted]\u0022. This repository does not declare it \u2014 a direct dependency pulls it in, so the move is to upgrade or replace that dependency."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package-lock.json"},"region":{"startLine":7799}}}],"partialFingerprints":{"codehealthFindingId/v1":"9af59a68b703d1d09f733b4123d502871e54cb862646e84770d19bbb5c4c04c9"}},{"ruleId":"D12","level":"note","message":{"text":"Deprecated: viewport-mercator-project: viewport-mercator-project 7.0.4 is resolved in package-lock.json and is marked deprecated by its publisher: \u0022Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.\u0022. This repository does not declare it \u2014 a direct dependency pulls it in, so the move is to upgrade or replace that dependency."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package-lock.json"},"region":{"startLine":8825}}}],"partialFingerprints":{"codehealthFindingId/v1":"7969a62bfed89a2a0d219852170b19ee8878e7bdc9461522551b3027403e534e"}},{"ruleId":"D14","level":"error","message":{"text":"Banned license: pm2: \u0060pm2\u0060 7.0.4 is published on registry.npmjs.org under \u0060AGPL-3.0\u0060, which this policy bans, and it is a production, optional or peer dependency this repository\u0027s committed lockfile resolves \u2014 so it is installed by everything that depends on this repository, not just by its build toolchain. A package offering SEVERAL licences is a choice and is only charged when every one of them is banned. Replace the package (or the dependency that pulls it in), or record an accepted exception."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package.json"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6320362fb0cf3266393a843c0eeccfbad2bddab425076574ea2f7e705641364"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/ui/src/pages/home/App.tsx: packages/ui/src/pages/home/App.tsx changed 35 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 524 in App.App at line 182. 6 of those changes were fix/bug commits, and the other 29 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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/ui/src/pages/home/App.tsx\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":"packages/ui/src/pages/home/App.tsx"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c62edcfebe57f5917f0dd22d6c5834c390dd118f51f0b913d6968be176df305"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/core/src/config/config.ts: packages/core/src/config/config.ts changed 44 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 84 in config.parseProfiles at line 3616. 6 of those changes were fix/bug commits, and the other 38 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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/core/src/config/config.ts\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":"packages/core/src/config/config.ts"},"region":{"startLine":3616}}}],"partialFingerprints":{"codehealthFindingId/v1":"06ec8a98653f0345c772a0d39da27d67c104082b106c23b84a761b2f83b7a2a4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/core/src/gateway/request/pipeline.ts: packages/core/src/gateway/request/pipeline.ts changed 24 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 142 in GatewayRequestPipeline.proxyRequest at line 123. 7 of those changes were fix/bug commits, and the other 17 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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/core/src/gateway/request/pipeline.ts\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":"packages/core/src/gateway/request/pipeline.ts"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"7081dfab2f6b0921b20039ac40d1dbbb2ca31b6a6b97a008981d5f009991b0ba"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/ui/src/pages/home/components/dashboard.tsx: packages/ui/src/pages/home/components/dashboard.tsx changed 25 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 80 in dashboard.OverviewView at line 48. 6 of those changes were fix/bug commits, and the other 19 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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/ui/src/pages/home/components/dashboard.tsx\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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ca3ea8753bbe0635379bd1c48b143ab9484e7d033c90f32f353aff561dd23d3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/core/src/observability/request-log-store.ts: packages/core/src/observability/request-log-store.ts changed 26 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 76 in RequestLogStore.updateFromRawTrace at line 822. 4 of those changes were fix/bug commits, and the other 22 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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/core/src/observability/request-log-store.ts\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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"37991464def2dddd30f13a9d50f5c0ea2e808aa6e632572cdf412faf5c0cd799"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/ui/src/pages/home/components/providers.tsx: packages/ui/src/pages/home/components/providers.tsx changed 26 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 76 in providers.AddProviderForm at line 1961. 5 of those changes were fix/bug commits, and the other 21 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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/ui/src/pages/home/components/providers.tsx\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":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":1961}}}],"partialFingerprints":{"codehealthFindingId/v1":"8892dd7362425877390cc693c086eb35ee2da90c84b81eb006ee78ab150329af"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/ui/src/pages/home/components/profiles.tsx: packages/ui/src/pages/home/components/profiles.tsx changed 29 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 68 in profiles.AddProfileForm at line 710. 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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/ui/src/pages/home/components/profiles.tsx\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":"packages/ui/src/pages/home/components/profiles.tsx"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"df20b62a049552f0ca312d530239aa15e70eed294c5c622dc37968e4bcec8002"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/ui/src/pages/home/shared/profiles.ts: packages/ui/src/pages/home/shared/profiles.ts changed 21 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 80 in profiles.normalizeUnknownProfileItem at line 1540. 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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/ui/src/pages/home/shared/profiles.ts\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":"packages/ui/src/pages/home/shared/profiles.ts"},"region":{"startLine":1540}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7327328fb7b4b95c31c71d1f14105633fad26d4318a04c098ee1f17cb463c0e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/core/src/profiles/service.ts: packages/core/src/profiles/service.ts changed 29 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 40 in service.restoreInactiveGlobalProfileConfigs at line 3481. 4 of those changes were fix/bug commits, and the other 25 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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/core/src/profiles/service.ts\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":"packages/core/src/profiles/service.ts"},"region":{"startLine":3481}}}],"partialFingerprints":{"codehealthFindingId/v1":"561a174acd558c741e12a35f1264272a62e0a3388a2b018c0bc9134e7fd05e44"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/ui/src/pages/home/components/network-logs.tsx: packages/ui/src/pages/home/components/network-logs.tsx changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 55 in network-logs.LogJsonPanel at line 1782. 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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/ui/src/pages/home/components/network-logs.tsx\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":"packages/ui/src/pages/home/components/network-logs.tsx"},"region":{"startLine":1782}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a0f70cfe09490c8a871134086ba6af7e9bf5b579b2cc0d031a3c5589306ea04"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/ui/src/pages/home/shared/providers.ts: packages/ui/src/pages/home/shared/providers.ts changed 24 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in providers.createProviderAccountDraftFromConfig at line 1202. 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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/ui/src/pages/home/shared/providers.ts\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":"packages/ui/src/pages/home/shared/providers.ts"},"region":{"startLine":1202}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ff094d663ff40ec88064034f467f332cea3158e2512920f290c9656a72a2976"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/core/src/gateway/upstream/executor.ts: packages/core/src/gateway/upstream/executor.ts changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 44 in executor.fetchUpstreamWithFallback at line 291. 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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/core/src/gateway/upstream/executor.ts\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":"packages/core/src/gateway/upstream/executor.ts"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"09947b55a6d50f07a3d8b28dbcaf06a96996f58bb8e66a2e0c52ebc421f861e3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/core/src/gateway/core-runtime/config-compiler.ts: packages/core/src/gateway/core-runtime/config-compiler.ts changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in config-compiler.normalizeCoreGatewayVirtualModelProfile at line 424. 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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/core/src/gateway/core-runtime/config-compiler.ts\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":"packages/core/src/gateway/core-runtime/config-compiler.ts"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f8f725dae2acf68a62d8a5b156f0b38a1d835afc6f94e999ef66ce8c08525f9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/core/src/gateway/application/gateway-service.ts: packages/core/src/gateway/application/gateway-service.ts changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in GatewayService.startGateway at line 158. 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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/core/src/gateway/application/gateway-service.ts\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":"packages/core/src/gateway/application/gateway-service.ts"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0c1ca9061747a369447473a6d9a673bcad259c46db163215ef7f61a295ac4a9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/ui/src/pages/home/components/settings.tsx: packages/ui/src/pages/home/components/settings.tsx changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 66 in settings.BotConfigDialog at line 1453. 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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/ui/src/pages/home/components/settings.tsx\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":"packages/ui/src/pages/home/components/settings.tsx"},"region":{"startLine":1453}}}],"partialFingerprints":{"codehealthFindingId/v1":"08a0bd39c81e9235b7773e001455c122147f6c344e6fcce989207b62d6632046"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/ui/src/pages/home/components/onboarding.tsx: packages/ui/src/pages/home/components/onboarding.tsx changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 65 in onboarding.OnboardingView 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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/ui/src/pages/home/components/onboarding.tsx\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":"packages/ui/src/pages/home/components/onboarding.tsx"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"50b4039e98f22315069c58afbc8962683072b8879f97264f7ebc89fd1f4468af"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/cli/src/cli.ts: packages/cli/src/cli.ts changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 48 in cli.main at line 74. 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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/cli/src/cli.ts\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":"packages/cli/src/cli.ts"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fddafe07be41bf2f52d131398bc5a827ccfb59366d11e978d994e6bc0cec5d3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/core/src/agents/codex/model-catalog.ts: packages/core/src/agents/codex/model-catalog.ts changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in model-catalog.documentedReasoningProfile at line 466. 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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/core/src/agents/codex/model-catalog.ts\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":"packages/core/src/agents/codex/model-catalog.ts"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"4649f6780e781c0f40adfe1b23e0202bf8598b9345ce78052c4765cddb8d3889"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/core/src/gateway/http/request-handler.ts: packages/core/src/gateway/http/request-handler.ts changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 53 in GatewayHttpRequestHandler.handleRequest 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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/core/src/gateway/http/request-handler.ts\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":"packages/core/src/gateway/http/request-handler.ts"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebbcaddba17f6239f899d9a33c969bd60f7fa5920e2a56da6ca0d5ed46e955c9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/core/src/gateway/claude-code-router-plugin.ts: packages/core/src/gateway/claude-code-router-plugin.ts changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in ClaudeCodeRouterPlugin.routeRequest 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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/core/src/gateway/claude-code-router-plugin.ts\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":"packages/core/src/gateway/claude-code-router-plugin.ts"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"34db6b1b67d00ff1f47d0f1234b6b0eddc62bf7f2c4d6d442ba3aaf4f38c961b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/core/src/profiles/launch-service.ts: packages/core/src/profiles/launch-service.ts changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in launch-service.openProfileFromCcr at line 121. 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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/core/src/profiles/launch-service.ts\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":"packages/core/src/profiles/launch-service.ts"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"d19ad3f29e64533083dace3db733279a4dd240ca32f2e66d812492719f8ceb38"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/core/src/providers/probe.ts: packages/core/src/providers/probe.ts changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in probe.resolveGatewayProviderProbe at line 340. 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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/core/src/providers/probe.ts\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":"packages/core/src/providers/probe.ts"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"79205799fe10286b355f960df3e27c6afad90afb583d23fa7a384122b7724d98"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/electron/bundled-plugins/claude-design/index.cjs: packages/electron/bundled-plugins/claude-design/index.cjs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 67 in index.handleDesignRestApi at line 9815. 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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/electron/bundled-plugins/claude-design/index.cjs\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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":9815}}}],"partialFingerprints":{"codehealthFindingId/v1":"51f969033d14349e46aad42eedc1b7b41676da8ed2c4f4258eded5eadf389019"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/core/src/gateway/features/model-discovery.ts: packages/core/src/gateway/features/model-discovery.ts changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in model-discovery.buildGatewayDiscoverableModelIds at line 503. 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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/core/src/gateway/features/model-discovery.ts\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":"packages/core/src/gateway/features/model-discovery.ts"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4ea519dbbba1778faf36b0da34ea0ea41b483fd3cdb63fc8e6e2c0628f06038"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/core/src/usage/store.ts: packages/core/src/usage/store.ts changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in store.extractUsageSnapshot at line 1140. 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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/core/src/usage/store.ts\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":"packages/core/src/usage/store.ts"},"region":{"startLine":1140}}}],"partialFingerprints":{"codehealthFindingId/v1":"7597e7955e872a606aeb7bd523ba31967b060db60d6dfc68e610d52dac0b157a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/core/src/gateway/core-runtime/upstream-header-sanitizer.ts: packages/core/src/gateway/core-runtime/upstream-header-sanitizer.ts changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in upstream-header-sanitizer.mergeUpstreamProviderHeaders at line 187. 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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/core/src/gateway/core-runtime/upstream-header-sanitizer.ts\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":"packages/core/src/gateway/core-runtime/upstream-header-sanitizer.ts"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0d20fbcaeef6899a04234301494252185e03b8908cff41ccd76b2f91b7b11c7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/ui/src/pages/home/components/routing.tsx: packages/ui/src/pages/home/components/routing.tsx changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 41 in routing.AddRoutingRuleDialog at line 375. 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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/ui/src/pages/home/components/routing.tsx\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":"packages/ui/src/pages/home/components/routing.tsx"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6f52393b3bfea70cc1d8373591ecc32fb41fec71453d2da461e423a54f71a5b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/ui/src/pages/home/components/virtual-models.tsx: packages/ui/src/pages/home/components/virtual-models.tsx changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 49 in virtual-models.FusionToolSelectControl at line 1021. 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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/ui/src/pages/home/components/virtual-models.tsx\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":"packages/ui/src/pages/home/components/virtual-models.tsx"},"region":{"startLine":1021}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2e7e571192d14401b78af396752accedff5cd5ecf00d89a0e4070a45acb4fd1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/ui/src/pages/home/components/model-selector.tsx: packages/ui/src/pages/home/components/model-selector.tsx changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in model-selector.ModelSelector at line 36. 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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/ui/src/pages/home/components/model-selector.tsx\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":"packages/ui/src/pages/home/components/model-selector.tsx"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"4853d1b331f859b3e2244acf37acb3b6c80fc4e9e6cb398d1085fa24860c08c5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/ui/src/pages/home/components/layout.tsx: packages/ui/src/pages/home/components/layout.tsx changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in layout.MainLayout 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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/ui/src/pages/home/components/layout.tsx\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":"packages/ui/src/pages/home/components/layout.tsx"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c5520be1bd9737a7514fb332bd908d547919dd3496a4f46fe1c873983751dd9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/core/src/mcp/fusion-vision-mcp.ts: packages/core/src/mcp/fusion-vision-mcp.ts changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in fusion-vision-mcp.analyzeVision at line 247. 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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/core/src/mcp/fusion-vision-mcp.ts\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":"packages/core/src/mcp/fusion-vision-mcp.ts"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"89e7a8d25b1f543239e164ee430cb9f8419bbde6d192284422f55dcdd93f4341"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/core/src/mcp/fusion-config.ts: packages/core/src/mcp/fusion-config.ts changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in fusion-config.fusionBuiltinToolArtifacts 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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/core/src/mcp/fusion-config.ts\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":"packages/core/src/mcp/fusion-config.ts"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bec0fdf716fcd82a40b4406df7070bdda68d1a78ffc7cdafeb51731ed48b16c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/core/src/observability/raw-trace-sync.ts: packages/core/src/observability/raw-trace-sync.ts changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in RawTraceSynchronizer.processStoredBundle at line 355. 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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/core/src/observability/raw-trace-sync.ts\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":"packages/core/src/observability/raw-trace-sync.ts"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"13fff258d784a46ef1f5b5646d28242b1699b2b643579c3f16c1c9a9affc7c93"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/core/src/providers/model-catalog.ts: packages/core/src/providers/model-catalog.ts changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in model-catalog.buildCatalogIndex at line 200. 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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/core/src/providers/model-catalog.ts\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":"packages/core/src/providers/model-catalog.ts"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"78d0194fa0b2fe0811f51986c3fd5bbe174b2b703bce33c7bb7e44bd80307180"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/core/src/plugins/service.ts: packages/core/src/plugins/service.ts changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in GatewayPluginService.applyPluginRegistration at line 554. 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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/core/src/plugins/service.ts\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":"packages/core/src/plugins/service.ts"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"743e94dbb83766afc5b8018cdfff29a5a630b2a6b30cad276867fac2119075b1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/core/src/gateway/core-runtime/router-plugin.ts: packages/core/src/gateway/core-runtime/router-plugin.ts changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in router-plugin.createGatewayPlugin at line 193. 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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/core/src/gateway/core-runtime/router-plugin.ts\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":"packages/core/src/gateway/core-runtime/router-plugin.ts"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"030168e859ed4beb7017dc830c87af83c8207c8424f3756c7e8dc2ff5f31b51e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/core/src/observability/request-log-runtime.ts: packages/core/src/observability/request-log-runtime.ts changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in RequestLogRuntime.enqueueRawTrace at line 251. 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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/core/src/observability/request-log-runtime.ts\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":"packages/core/src/observability/request-log-runtime.ts"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"f457611aae8ea706e5e7641ed9ef1354d7545ae7c70d44a1db1d065aa5ae2f39"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/electron/src/main/claude-design-window.ts: packages/electron/src/main/claude-design-window.ts changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in claude-design-window.routeClaudeDesignFetchRequest at line 288. 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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/electron/src/main/claude-design-window.ts\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":"packages/electron/src/main/claude-design-window.ts"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"61aabbd732f6d88178ebfad7c38da28a61dea9f9a4781ac16c7eb4e538a400cd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/core/src/contracts/deep-link.ts: packages/core/src/contracts/deep-link.ts changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in deep-link.normalizeDeepLinkModelMetadata at line 640. 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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/core/src/contracts/deep-link.ts\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":"packages/core/src/contracts/deep-link.ts"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"7de0e5e8b81f2736e6be4ae34fe195034c2e35d3c9f8cb02a70e7423fd1fa942"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/ui/src/pages/home/shared/routing.ts: packages/ui/src/pages/home/shared/routing.ts changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in routing.normalizeRouterRules at line 103. 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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/ui/src/pages/home/shared/routing.ts\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":"packages/ui/src/pages/home/shared/routing.ts"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3392454206944fafe94db258c5797b6a20813901d2e155b5206888bc03e1415"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/core/src/media/tools.ts: packages/core/src/media/tools.ts changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in tools.mediaToolBindingsForConfig at line 30. 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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/core/src/media/tools.ts\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":"packages/core/src/media/tools.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"1487ab62c3f1d285bd5aae8e7d641535c0637751032291745abc025f45ef0da6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/ui/src/pages/home/components/update.tsx: packages/ui/src/pages/home/components/update.tsx changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in update.UpdateDialog at line 12. 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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/ui/src/pages/home/components/update.tsx\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":"packages/ui/src/pages/home/components/update.tsx"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"163088939f00eeb01834eb520cc1e284c78bf4ce4ee14c1f7c973488bbb583c3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/core/src/gateway/http/error-detail.ts: packages/core/src/gateway/http/error-detail.ts changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in error-detail.appendAggregateErrorAttemptSummary 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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/core/src/gateway/http/error-detail.ts\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":"packages/core/src/gateway/http/error-detail.ts"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"b156118505f13673fee354fa3403e90456393a9bd4502fbcb1a5ac814f6cd9bb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/electron/src/main/windows.ts: packages/electron/src/main/windows.ts changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in WindowsManager.openPluginAppWindow 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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/electron/src/main/windows.ts\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":"packages/electron/src/main/windows.ts"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc05fda1f8a9659fcf3bd4d34f48184fbaaa02507d7cc2cfd4169fb58594d071"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/core/src/gateway/context-archive.ts: packages/core/src/gateway/context-archive.ts changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in ContextArchiveService.ask at line 207. 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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/core/src/gateway/context-archive.ts\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":"packages/core/src/gateway/context-archive.ts"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"493013d62dadbc3adfc9fd1ce54d3d55fcea230afe1191c6d01089e40a328b17"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/ui/src/components/ui/dialog.tsx: packages/ui/src/components/ui/dialog.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in dialog.Dialog at line 56. 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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/ui/src/components/ui/dialog.tsx\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":"packages/ui/src/components/ui/dialog.tsx"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9c75ab6e400bb75df60d07ff10f080f9ff8c2eefdce2f767f45ade3b97d1742"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/ui/src/pages/tray/TrayApp.tsx: packages/ui/src/pages/tray/TrayApp.tsx changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in TrayApp.TrayApp 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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/ui/src/pages/tray/TrayApp.tsx\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":"packages/ui/src/pages/tray/TrayApp.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"1392013959efd91fd8cb66cb02bdd9c978534434908120f42c6a97aa4ed731e1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/core/src/media/service.ts: packages/core/src/media/service.ts changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in MediaService.videoStart at line 149. 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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/core/src/media/service.ts\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":"packages/core/src/media/service.ts"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"b26f4c53e8a05a97d4dc2ce4d56e9821f40e2cab52b1708be1208937529387fb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/core/src/routing/config-compiler.ts: packages/core/src/routing/config-compiler.ts changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in config-compiler.scriptRuleDiagnostics at line 182. 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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/core/src/routing/config-compiler.ts\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":"packages/core/src/routing/config-compiler.ts"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d5cbbd08eb9a7f9d76f5feee3f958a7fedd893bd1219d7f38414d0438cd5d2d"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/core/src/agents/claude-app/gateway-service.ts: packages/core/src/agents/claude-app/gateway-service.ts changed 7 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 10 (its worst body is gateway-service.gatewayEndpoint at line 430), AT OR 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-app): remove deprecated configuration keys (#1772)\u201D; \u201Cfix(claude-app): preserve preferences on restore (#1768)\u201D; \u201Cfix: preserve coworkEgressAllowedHosts when rewriting Claude App config\u201D; \u201Cfix: invalidate gateway model discovery cache when profile allowlist changes\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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/core/src/agents/claude-app/gateway-service.ts\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":"packages/core/src/agents/claude-app/gateway-service.ts"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"44449fa198d6194cda74b884b2d76a7162157a2f991601bab771378878c286de"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/core/src/gateway/http/io.ts: packages/core/src/gateway/http/io.ts changed 4 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 14 (its worst body is io.inferClientFromUserAgent at line 28), AT OR 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: hide JSON credential values in diagnostics\u201D; \u201Cfix: hide credentials without obscuring diagnostics\u201D; \u201Cfix: add privacy-safe upstream failure diagnostics\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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/core/src/gateway/http/io.ts\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":"packages/core/src/gateway/http/io.ts"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"7347fd42a6de7422f44f376f67427301ef71471db5cdd37ca7048119665e8552"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/core/src/agents/local-providers/claude-code.ts: packages/core/src/agents/local-providers/claude-code.ts changed 4 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 11 (its worst body is claude-code.scanClaudeCodeKeychain at line 273), AT OR 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: preserve provider account meters during import\u201D; \u201Cfix(claude-code): never resolve a token from inside mcpOAuth\u201D; \u201Cfix(claude-code): look up the keychain item by account\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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/core/src/agents/local-providers/claude-code.ts\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":"packages/core/src/agents/local-providers/claude-code.ts"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"eec796a62b934ba326d8a10b44e03375d0d990dfd03f3f4d95c0e45cbd2bbecf"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/core/src/gateway/core-runtime/responses-session-affinity.ts: packages/core/src/gateway/core-runtime/responses-session-affinity.ts 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 10 (its worst body is responses-session-affinity.applyResponsesSessionAffinity at line 42), AT OR 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(core): send session_id header for Codex Responses prompt cache affinity\u201D; \u201Cfix(opencode-go): support Go provider identity and required session header\u201D; \u201Cfix: skip session affinity body fields for codex responses upstreams\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-12..2026-10-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-12 11:35:09 \u002B08:00\u0027 --until=\u00272026-10-10 11:35:09 \u002B08:00\u0027 --full-history --no-merges -- packages/core/src/gateway/core-runtime/responses-session-affinity.ts\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":"packages/core/src/gateway/core-runtime/responses-session-affinity.ts"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6bae9be4ef993b8c5bb617ce76b94904e58c6cf18eb7b35a3cd93a89f6af617"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 104 significant file(s) lose their only recent owner: packages/electron/bundled-plugins/claude-design/index.cjs, packages/core/src/agents/codex/cli-middleware-runtime.ts, packages/core/src/config/config.ts, packages/ui/src/pages/home/components/settings.tsx, packages/electron/src/main/browser-automation-mcp.ts, packages/core/src/mcp/toolhub-mcp.ts, packages/ui/src/pages/home/components/profiles.tsx, packages/core/src/providers/account-service.ts (\u002B96 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5a98578207dfa82e441b56ec13c0318b113510607653bc129d9cd2993d30ddb0"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 3 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 (107 single-owned of 223 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 223 of the 318 production source files in this repository met that bar). They are anonymized user #2 (1 file(s)), anonymized user #3 (1 file(s)), anonymized user #4 (1 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: packages/core/src/agents/local-providers/kimi.ts, packages/core/src/agents/local-providers/opencode-freetier.ts, packages/core/src/gateway/core-runtime/responses-tool-strictness.ts."},"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. ADRs are expected here because \u0060packages/core/package.json\u0060 makes this repository a deployable product (line 7)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/package.json"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"c92239607e82bbfe15bf11f03e3426a92dfc1c9b67823ab3486f7bcb412b00b8"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060baseURL\u0060 spells \u0060URL\u0060 where 292 names in the project spell it \u0060Url\u0060: 292 of 294 names in project claude-code-router-monorepo spell the token \u0060Url\u0060 (292 of 294; unit: names in project claude-code-router-monorepo containing \u0060Url\u0060). Peers: cli.openManagementUrl (packages/cli/src/cli.ts:470); qr-login-service.qrCodeUrlFromAuth (packages/core/src/agents/bot-gateway/qr-login-service.ts:450); cdp.claudeAppDesktopDesignUrl (packages/core/src/agents/claude-app/cdp.ts:193); cdp.claudeAppDesktopDesignUrl(designUrl) (packages/core/src/agents/claude-app/cdp.ts:193); cdp.claudeAppDesignFrameScript(designUrl) (packages/core/src/agents/claude-app/cdp.ts:244). Rename to \u0060baseUrl\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/mcp/toolhub-mcp.ts"},"region":{"startLine":1712}}}],"partialFingerprints":{"codehealthFindingId/v1":"71419943a96c46ce67f7e524d09c3b80ba2ad6ba771041b7aabfd7f32ec3ae97"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060baseURL\u0060 spells \u0060URL\u0060 where 292 names in the project spell it \u0060Url\u0060: 292 of 294 names in project claude-code-router-monorepo spell the token \u0060Url\u0060 (292 of 294; unit: names in project claude-code-router-monorepo containing \u0060Url\u0060). Peers: cli.openManagementUrl (packages/cli/src/cli.ts:470); qr-login-service.qrCodeUrlFromAuth (packages/core/src/agents/bot-gateway/qr-login-service.ts:450); cdp.claudeAppDesktopDesignUrl (packages/core/src/agents/claude-app/cdp.ts:193); cdp.claudeAppDesktopDesignUrl(designUrl) (packages/core/src/agents/claude-app/cdp.ts:193); cdp.claudeAppDesignFrameScript(designUrl) (packages/core/src/agents/claude-app/cdp.ts:244). Rename to \u0060baseUrl\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/mcp/toolhub-mcp.ts"},"region":{"startLine":1742}}}],"partialFingerprints":{"codehealthFindingId/v1":"711c34379ea370bca5476920eb4393144ddb44c326454e6c630eaad99aa6a780"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 2 of 7 project(s) overshoot their size bounds, lowering Project Cohesion to 4.3/10. The most over is \u0060packages/core\u0060 (95519 LoC, 303 module-visible types across 44 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":"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":"664c16b173223a1e6787e6b9b1fae97911e2ab0bd1f7389065a9ab6f7c55d402"},"properties":{"commitSha":"5b8f64160ec6a9f0f756b7ca3eddc02b1a78325e"}},{"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":"931fb1738fabf85e2874017c944328d21c1b1e15af500907fb280578c8ec9699"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"5be4fe44481debfa4fead63c4c6a642de1ed2e73c8d72eaacb74115e101a0552"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"c0033a6aaca346b96bb4827fbdddcffdaa5fd0a3449f9235af4fb3070b50155a"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"33a603dcd60010fd48c02799097fb4e616f468fac17944c69a2f88bb56fd8754"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"43ff6aac6c87712a50b60044ef32154ee3f50c410eb7a6a89e04f9246596641f"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"10932e1e1b7cd28fe0a02e8c8d6436bfac83f5aba058dbe1e412d0226e465ddf"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"28f6d42ae0a46b7cce0aa30d9560ce5276f7bb3af3474a16035c62e250a58ca9"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"d64977a47057e6b6a30ddb312c6b3580995576196e2ea2cb2104474260a61e06"},"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"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"2781c6e7a7ed6a2d57f3335b9d967a5279ca5a7dde10af8227895efdef5a4d10"},"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"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"40aa3e5eeb2c389b10aea55ff7afaf8c79130c6ed772f8247bf21efc97fc0005"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"e760f567cb9401cf113353f4e1d769874e18c61762051c736811983383456135"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"23a3c153922061d8b6a12cb06526c89608d55d517be1e8a1ebe36191f905cd33"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"e3a6205ba21265a3805fa52fc2dc2d64df0d36e0621ef5f4745098ced7b87f37"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"7c3f2c48b7b0d813f8db4cc07d692a917683669dfcb8d32ef8458accb637bf75"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"50adbcd711dca68f872cf2be71adcafe71227cad845e99d760eb77a975a1047e"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"5be03ab325ce0dd57044d4e411f1428508ecf7870bea56774afff406be2e7ce3"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"a70a3ada3bae9a9b4937c8dadf6051d91e207198f3aa5e67fbe9037a6335a0ee"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"6819b36024d45f5f0e1d43e74427f1e72c7d8dae5d09101e0f966a51bf6829ab"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"75369c09bb288495c1ec96550eb2aa9585bb73f2d0abcdd876376a94900b52cc"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"ae59d5e9dd2c30e110a21be3f2f3e4339df91ffb4154cfcf5f17bedb858ec684"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"3643ff687baaf09e4fa86f24721b381bb8ec583e4fb1bc9174a893ca376bdfb1"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"d5d14d01959f8bc74cfb47cedb20165c1651927e69ca7f14db02f6d54f0db1ae"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"1de4e8df69f8ea88743a72dc79ebdff0df14ccb12667fe14ae5c33266501ddc5"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"5a0307a0e95589e470722eaa1f6edefde899ff9d045423b92eaede73ef396b02"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"64478662fa5e1544368a8d37a73d78bfc90ea789fe52460bc2794d70b8e273b3"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"24bcc8189b69961073a2a81a26475bc0ac4b4627119c2067a001ba82a978dc0a"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"2cda12ade2ec2710b7dca5e054f0e71d75819267a9850f73b253c183b256cf29"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"59bdb5a1e8e9e2536fc49c741fcb4259a61a8678fc811d3adeb596662203897f"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"620f44f7d0814af2bb598a515423618ad407110d7f6058f12541a5a3763e870d"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"fa971f3908b5ae3caae6932c3089046cd257419067b36b2cc99e2f6c4ec1a08c"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"9e05a9afdb159c3b4e03fba36ee6c997dfff609cf8e7411f86b673ca79d09a53"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"1d11b483dfcf915b1cf80342d758e26c1a3f32b269afb2615b61f8aa4d116443"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"cbc48b480e6a5c0169ca6ec167828968536daa072fccaa3ca80ead5934b42c93"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"79abaa6367c3b77560f55602ad4bd6d38958b7ba2ecc0a846ea9de1038c7b2ea"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"d3863a2595bb228753ae718bfb2db02eb99929aa10f09e1bd606c6259c16041d"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"7d0b1f1b6e42174c545e1063d548a603c1ae6668b5cf7b3f28dacec5ce96be02"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"8af93b54d7b6d09176d9c9016e65470b9e3497c2e30cd6af0b8b0a89230292a4"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"17d419e2167256ad4ce4ed1c8ea6705a1557bd207e1a6c4646cec137e6d464a3"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"e77007840932850fa094cdb6bdb3c4e2ef4fe628e22b7a6481b86626f4f92142"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"ae89563012357e2752caf7e6742a52ef07a6f5204c507c6edc628ebeddaa59fd"},"taxa":[{"id":"CWE-1385","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-20","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"e784c3b3436a5492e3681578f170b531df7aacd4c42d17e073e783b561521f6b"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"d0e652bec40bedfc95a85d1efc8b7a7881354cea0df6c9b183dd724c7926f1ad"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"663099eafb4b27be60bea7a4d5aa15e44ffabfc424ce0d273fd794ee10c251c5"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"135a0bf03dfb6c762077079cb929d9038268646b1f04d9a9e5b162bb3ad36e01"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"908d6d4c808b5471df51b80581c7ea8c9e47aa7ffa14f616bb71023134321b41"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"6eccb66e2f7ad4dcb7a528cfc22dc0dca7daeb4b36eb87d62f1d04d3c0d8a12b"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"295b50d4abc5a04610ead805c4a3a744ffedb3a5da46d5629e87e5fe36919ba8"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"8a0d4dcdfab99e96b6fb4cef216a7cbb58339a962b5e5e5ab55917a34d1b13c1"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"4d09c4cafaf3fb43d1ec8204d5d816ab8a01082f3911fe8ec35bebdf51caf087"},"taxa":[{"id":"CWE-209","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"a825f35e9883044e6a3bcb89fa059a7ccd3b43cebfa2be79765af4c84de42afe"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"b8732e065e390c1d3804c6779a9b1b1cba9d05a9acb98d56cf27698f6c16d6bc"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"2f25b5a0ac4878689f2e0f2c099f2f60da9e50dae1da63f630ca3a3875b501c8"},"taxa":[{"id":"CWE-1333","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"d335ec1ba3894d29fb7bf2d211f31c9bd95fbae95925926f01c48669f0f6f173"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"8a821c2d7025cf3790dceb0b870f52e49395df83af314f33f183e50754ac29f9"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"5a859e1ec0eb2ba8b639c8461459c1d21ce6a8fd8d01ecfbec44fcf082c530f0"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"f455139e218eb301659022a474d65db776a8a022d2d3cadc4b282829d5296792"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"1c6115aee10afcbacd2837278712c548d169654a409353302ecdb07e71b6cf2b"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"c5bdfc1f21a3936278ad52bf2ebe6f42d04b099023f2a353ab20c19782fce9ba"},"taxa":[{"id":"CWE-209","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"97e0a2ad24b556fc2aaf53211168a897371f41a15104992b66ea7da8ad81a9ec"},"taxa":[{"id":"CWE-209","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"efd1b5a3ea2867be0604408b77a76287e1682a2114dfbd5c3a5b38a282db0e62"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"97f60460c08d61a92d957d5336b40f52b6bed36fc144b24dc2b3f8d62c7c5907"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"a0038a1f68dc129c19c9ba74ff300748c100f51b02d179b59992cef2ef2c4194"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"2a1752563488fc0723e77ae1ffcf92534edd45b1cad57e6bb388d8d9bcbae28c"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"e1e20c3a123fc2ae23a187f599eb16a268be3f2cb93e68dd00ffcb66fd2a13c9"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"afa8dc0f3759447b8efce8199a1f98e98c780bbe664b266fe885bf224cb2ca47"},"taxa":[{"id":"CWE-1333","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"5b1c29577075d92d8f3512d766e08d1c0188c8ff72be40d81d875c7f0760601f"},"taxa":[{"id":"CWE-1333","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"f1407670a639f4e1887632c8611d5b4b96553439f8f7517336b1afa2fcaeb7f1"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"a60e92622b80e9a2adf6dabfeda7d3f1207993046e9b4f6937b10912038769e0"},"taxa":[{"id":"CWE-1333","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"add03b4cc3d318e812438435a9692aa55f6898ed596ca94cf27a6cf161039f19"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"1b2b7a8f3bbf998f5d360fa2aaea357cfe8bea68dba38c9ab30af9ec8b2f3775"},"taxa":[{"id":"CWE-1333","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"f4a2659121f5f4217599426fb217cb894eae20509feef2c38ab981162fcdbe9f"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"99d5d31113f484fce75e6f56374827a257a2c5b6aebe3235adac198976441bcb"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"e6cb6b0634f3fba3d9270521217aa7f9a20aff83b3f0b5e2efbcfcb604c6c0ae"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"97c12720b2507508956a0c6b5e4e3087343fef2e41264b7d313af385cc6c8a5f"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"9b117824e30f6e50b9f024ceb34276ee0d37af1973fc53fdfb0bd9f7974f0b4d"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"f1ffbc1c528cc71cd47e9daaa3de562195721a2edbf8f3144092f414e7ebb9ac"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"03d7e6f7910e56f255a28e2d88629f1f24f8bf4fdee95a617d70ab20d9b202ca"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"27c2bd48a62cc5e1ef0fdd4a7d3da6b1967bbae4eb56b93077789c8594c19168"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"4e525c0250ea93954a4a90e6c02b5da50ac0fa2a22aa210e93d467f0331c5185"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"fd62ad2971a0d6efab4d64ecb39361f601591db564f28d06448094219bf7cbc5"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"16ec56c7c5df130e71771e47e46ec7808405dac4705df748fb7396130e498cde"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"7b25c7112344bf860379265a2fc06214ef798ec0b2d104243220a487e87a1654"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"ae8e1b8c0424f90023af76aabf954c80d10318d5c680bf7ad0906538e844b38c"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"f6b719c08c965b8024e8d86549ee568340f71337e942e9eac6f7dd9cba015c86"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"1ba3e3cb541c8cd28aa5d7c0a61b2908c5efaa075c98330c527666423d618cd0"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"4fc6d2395daa9eed6cd5198dd4a6e9a4ed868d2c4300732bdf8f8f452516ee06"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"a408b421b20af9ee086c82c90263c6f7b36394f650dc3480c7ae68b6d5652697"},"taxa":[{"id":"CWE-1333","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"a744bea5b3495e30164bf498266872c0f2cf253a05fb6d7d711721ffc619c613"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"1f21a6d7caa15ddbf6611b1a057400dcd8c2230745521b5d679e47c7a5b15cee"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"38fcdaa05d8a39caa7a5aa04478f0f0a39cd8834a56b0e9cfbe3f30124ce4870"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"0f087d2a9b250ce63a6dc50b90e40b6d97cdc0f71b460d78f8181ee65e6dd0be"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"2bbcf6de6dabda401134b2959741396632aa44d0be3145f5a1d4c2f7cd520768"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"c85113265214aa515bf8f62c00c8c8421d5fa20f393943c18f50f5a90c738fca"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D30","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":"1b422d7d2acf4ec86c8855b185b5bb8a76f746739db2b625b71467e001072cde"},"properties":{"dependency":{"package":"tar","version":"7.5.16","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"d1754e97a3376f1ef47f5c47057bf822f0ba8c50f235bcc6db67a58714875746"},"properties":{"dependency":{"package":"brace-expansion","version":"1.1.15","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"bc12772371548d75628e121e6133ae4a2d181f148a4f34e76eca386557c28548"},"properties":{"dependency":{"package":"brace-expansion","version":"2.1.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"24578003d3d21dc82788bfc13a3d11d639a4d620708fe5a6a3746ec647e16c91"},"properties":{"dependency":{"package":"undici","version":"6.28.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"production","file":"packages/core/src/agents/cdp-client.ts","line":1}}}},{"ruleId":"D30","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":"769e9d2248cb98851adbaf62aa7f78db3f94886ca662e318699216e6f9e92bbe"},"properties":{"dependency":{"package":"@xmldom/xmldom","version":"0.8.13","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"eb354110d4b9e8b10e4103c9441c209949e03ab05dbabeaa342188f4dfcd03a4"},"properties":{"dependency":{"package":"basic-ftp","version":"5.3.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"2190ae85077de42b2f06e32d576fa03dc1bacf2028109ec8ffd210a9c832c3d5"},"properties":{"dependency":{"package":"electron","version":"42.4.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"production","file":"packages/electron/src/main/app-menu.ts","line":1}}}},{"ruleId":"D30","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":"9d861d97c9e6c69cb47d2f5bc645ecdddee4776c7500c34080ca158cbba2b714"},"properties":{"dependency":{"package":"fast-uri","version":"3.1.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"48576bc3e3a6c631d51107e6b5625cd44897060157c844011a1f5127a08e8efe"},"properties":{"dependency":{"package":"fastify","version":"5.8.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"ec98ce9551df602242a7f118a0edde5356cbd1400c0abc82227a52f1a97280a6"},"properties":{"dependency":{"package":"follow-redirects","version":"1.16.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"5a31a0b5364830f542d37385755d27dd90f97746286a80cb6c17836bc6e14179"},"properties":{"dependency":{"package":"js-yaml","version":"4.3.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"test-or-tooling","file":"package.json"}}}},{"ruleId":"D30","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":"5663b5d3983a9f6f7744b9af8d10ede9d273d65b8a859266b06bf516fc0e4e27"},"properties":{"dependency":{"package":"brace-expansion","version":"5.0.9","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"d83e3a34f05bf58ce5d7f0ffd2f01b3fa9f9c90ba4ee16d5aebdb39f11031323"},"properties":{"dependency":{"package":"node-forge","version":"1.4.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"production","file":"packages/core/src/proxy/certificates.ts","line":6}}}},{"ruleId":"D30","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":"e2eab6fef4930c0c2bfc4eab79d4e2e6cc6b45dac8edb5579100f0276ef44860"},"properties":{"dependency":{"package":"undici","version":"6.27.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"production","file":"packages/core/src/agents/cdp-client.ts","line":1}}}},{"ruleId":"D30","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":"a143e49def50f6267786be10dea52190e0d09245364207bf6c8be5fcae3b49ff"},"properties":{"dependency":{"package":"source-map-js","version":"1.2.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"a9966a1f5fa40e826876effe6fe5ca6b066299275be5016f450fb7e1afbb6c25"},"properties":{"dependency":{"package":"undici","version":"7.29.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"production","file":"packages/core/src/agents/cdp-client.ts","line":1}}}},{"ruleId":"D30","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":"85fe4c90c629c087da41d26f2b686efcc2e5a210d7f5e7ef803b0e4e2d09c164"},"properties":{"dependency":{"package":"basic-ftp","version":"5.3.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"eae0aa15add4c44f623d8f76ab1c5c03eabbbfd35cf491d4d4bc4e21095e9e8e"},"properties":{"dependency":{"package":"brace-expansion","version":"1.1.18","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"bd0707cfb6c6d776575008e4ef62f4e68d9503941f9559cea23d61b3ae63813a"},"properties":{"dependency":{"package":"brace-expansion","version":"2.1.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"f15b53792bce799dc59ccd82f2873324fcd4e95134c00a476acd7fcdf737eb26"},"properties":{"dependency":{"package":"brace-expansion","version":"5.0.9","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"5956cd200c595380c10c7ef62c15e6841006935e95d264885e58c5ba44477320"},"properties":{"dependency":{"package":"electron","version":"42.11.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"production","file":"packages/electron/src/main/app-menu.ts","line":1}}}},{"ruleId":"D30","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":"a864d29ec9ae0651ce1ebb4554a2c6972d561a32aa077a00bb240c7d4fe41d3b"},"properties":{"dependency":{"package":"fast-uri","version":"3.1.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"878cbe304c84734c942695ec49f3f2bd70cd9c74329d62fbdb5c493907fd27e2"},"properties":{"dependency":{"package":"fast-uri","version":"4.1.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"f2a876976a9f2754c42c0bb864cfa5f6459f9751290e608775645f3ba4658751"},"properties":{"dependency":{"package":"fastify","version":"5.12.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"0a0c650d6de0f98a1406fe5e38b03340f31c240361b33d484921a60f320d852c"},"properties":{"dependency":{"package":"follow-redirects","version":"1.16.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"685cba4514570b53bf9bc85812fa54c07fec7b3f62fc67d4712c038e9ec2e605"},"properties":{"dependency":{"package":"js-yaml","version":"4.3.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"test-or-tooling","file":"package.json"}}}},{"ruleId":"D30","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":"49c5537bee0c69e672c49cca0de0a09d237cd77a3e3a2dde707bd008a338cb49"},"properties":{"dependency":{"package":"node-forge","version":"1.4.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"production","file":"packages/core/src/proxy/certificates.ts","line":6}}}},{"ruleId":"D30","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":"0bf997523edcbfd004b0e48079d2d03fc36b5b8058c165442d7b3299bf52fe16"},"properties":{"dependency":{"package":"source-map-js","version":"1.2.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"7934ec6f0944532b0d0898777fe9d1168f380b6a62482a6ef661884543cb3825"},"properties":{"dependency":{"package":"undici","version":"6.28.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"production","file":"packages/core/src/agents/cdp-client.ts","line":1}}}},{"ruleId":"D30","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":"230b6ba1b1271d1ac3a96d19e42f9e2fcf05e70cd55ce76c6be390029ff2dba3"},"properties":{"dependency":{"package":"undici","version":"7.29.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"production","file":"packages/core/src/agents/cdp-client.ts","line":1}}}},{"ruleId":"D30","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":"6aa31470802bb7a502a49b56e995ba21658b5ecb7e395374e7379fdb231218f9"},"properties":{"dependency":{"package":"minimatch","version":"9.0.9","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"254e159535de5a467ea5671a4a81fbc3bf399623b11dcd1fc4071f2230ac5cd0"},"properties":{"dependency":{"package":"glob","version":"13.0.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"ef7b61662aad73439eec0d494cf24b1cb31c781694acbc07a155ba26d21c4c4f"},"properties":{"dependency":{"package":"ip-address","version":"10.5.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"95c5c63b500ec2b1dac7978c496f54faecc668697e288356cf42c215621a46f5"},"properties":{"dependency":{"package":"minimatch","version":"10.2.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"15a0f55bf98d45cec1e6067645c9a127cb539e6219bff589e0ceebe0057ab9e3"},"properties":{"dependency":{"package":"moment","version":"2.30.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"ea7e5354ab7cfc90dd177dde60810f39ea3e10b3fe5c807ca0b2b906b7004ac5"},"properties":{"dependency":{"package":"glob","version":"13.0.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"31178cfe8e1b20bd95e0f40b8216f3fea2dcfbd63a4d737097fe113b52f4f7da"},"properties":{"dependency":{"package":"ip-address","version":"10.7.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"6ae92bdca562286a441b78fd7b9f5daecc1bea14f21a20cfae2a9031f1f044c2"},"properties":{"dependency":{"package":"minimatch","version":"10.2.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"4ce7f29c6211e46f43a8d06945b0be2dd9e2de28782d44a91ac2c1157be56754"},"properties":{"dependency":{"package":"minimatch","version":"9.0.9","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"3f6bb23071c440294f3d87dfa4e9ee37b146d57b5b27ed00ddba8ed121a9f485"},"properties":{"dependency":{"package":"moment","version":"2.30.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"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":"3681e0b0dced2dca00be692922bda4012adb5a0234c1d22c53a13969ab5dd823"},"properties":{"dependency":{"package":"esbuild","version":"0.27.7","advisory":"[GHSA redacted]","reachability":{"kind":"test-or-tooling","file":"package.json"}}}},{"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":"3f54d1f4607fdaea22194262dabcf05db6136d2d813d8619ac129c6b6f33edda"},"properties":{"dependency":{"package":"esbuild","version":"0.27.7","advisory":"[GHSA redacted]","reachability":{"kind":"test-or-tooling","file":"package.json"}}}},{"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":"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"e04b5602159cda120607601027e36bb87006d4b0e62de991614d45fd572a52cc"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: preload.ts \u2194 electron.d.ts: \u0060packages/electron/src/main/preload.ts\u0060 (context electron) and \u0060packages/ui/src/types/electron.d.ts\u0060 (context ui) sit in DIFFERENT parts of the tree yet change together 100% of the time (17 of the 17 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 17 shared commits counted here, the most recent 3 are \u0060923c7421\u0060 Add overview statistics reset with persistent reset tracking; \u00609e7d4f78\u0060 Implement router enhancements; \u00604097bbe5\u0060 Improve router configuration and request handling \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/src/main/preload.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0de19a18e138a4e889bfaae68cd0f71769fd3b7a500972062e667efa45cefc7"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: ipc-channels.ts \u2192 app.ts, App.tsx, electron.d.ts: \u0060packages/core/src/contracts/ipc-channels.ts\u0060 changes together with 3 other files \u2014 \u0060packages/core/src/contracts/app.ts\u0060, \u0060packages/ui/src/pages/home/App.tsx\u0060, \u0060packages/ui/src/types/electron.d.ts\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":"packages/core/src/contracts/ipc-channels.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c087a2b9a4aad9b6be109e76c3711e1e1feadd1591f542773a0d7a5371e870db"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: config.ts \u2192 app-launch.ts, deep-link.ts, ipc-channels.ts, launch-core.ts, preload.ts, profiles.tsx, settings.tsx, i18n.tsx, profiles.ts, types.ts, shared.tsx, electron.d.ts: \u0060packages/core/src/config/config.ts\u0060 changes together with 12 other files \u2014 \u0060packages/core/src/agents/codex/app-launch.ts\u0060, \u0060packages/core/src/contracts/deep-link.ts\u0060, \u0060packages/core/src/contracts/ipc-channels.ts\u0060, \u0060packages/core/src/profiles/launch-core.ts\u0060, \u0060packages/electron/src/main/preload.ts\u0060, \u0060packages/ui/src/pages/home/components/profiles.tsx\u0060, \u0060packages/ui/src/pages/home/components/settings.tsx\u0060, \u0060packages/ui/src/pages/home/shared/i18n.tsx\u0060, \u0060packages/ui/src/pages/home/shared/profiles.ts\u0060, \u0060packages/ui/src/pages/home/shared/types.ts\u0060, \u0060packages/ui/src/pages/tray/shared.tsx\u0060, \u0060packages/ui/src/types/electron.d.ts\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 12 separate couplings, not 12 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 12."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c28291dcb1f27fd768af206e17688c1e6fc6f33ccbf79c312933e515534a7962"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: launch-core.ts \u2194 service.ts: \u0060packages/core/src/profiles/launch-core.ts\u0060 and \u0060packages/core/src/profiles/service.ts\u0060 change together 85% of the time (11 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) 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 11 shared commits counted here, the most recent 3 are \u0060c8e5e2b5\u0060 Add WorkBuddy app integration; \u00607c4a877c\u0060 feat: support Kilo Code profiles; \u0060084b660c\u0060 Document Pi agent profile support \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/launch-core.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee202596fa5c05281e68274ec5f9bbc10a1702806026758e241a4613076003ba"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: management-server.ts \u2194 ipc.ts: \u0060packages/core/src/web/management-server.ts\u0060 and \u0060packages/electron/src/main/ipc.ts\u0060 change together 71% of the time (15 of the 21 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 15 shared commits counted here, the most recent 3 are \u00609f45399b\u0060 perf(app): avoid repeated eager executable discovery (#1776); \u0060923c7421\u0060 Add overview statistics reset with persistent reset tracking; \u00609e7d4f78\u0060 Implement router enhancements \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/web/management-server.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3efd22d7aeee8f5ffe56dce5cabda22afd7d66cda60f13e47bc2e0bdbc6b3f00"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: i18n.tsx \u2192 app.ts, deep-link.ts, account-service.ts, options.ts, profiles.ts, providers.ts: \u0060packages/ui/src/pages/home/shared/i18n.tsx\u0060 changes together with 6 other files \u2014 \u0060packages/core/src/contracts/app.ts\u0060, \u0060packages/core/src/contracts/deep-link.ts\u0060, \u0060packages/core/src/providers/account-service.ts\u0060, \u0060packages/ui/src/pages/home/shared/options.ts\u0060, \u0060packages/ui/src/pages/home/shared/profiles.ts\u0060, \u0060packages/ui/src/pages/home/shared/providers.ts\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 6 separate couplings, not 6 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 6."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/i18n.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a4b01b084fa408363910bb0d12bb24fb0e4b47b4025aa9b47cae66144b1952e"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: App.tsx \u2194 electron.d.ts: \u0060packages/ui/src/pages/home/App.tsx\u0060 and \u0060packages/ui/src/types/electron.d.ts\u0060 change together 65% of the time (11 of the 17 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 \u0060923c7421\u0060 Add overview statistics reset with persistent reset tracking; \u006010786391\u0060 fix(theme): synchronize dark mode across app and tray; \u0060ca2609c7\u0060 Add Codex model metadata probing and propagation \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/App.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"031d184bc2abb7eddde7dff2d1430089d21af8274f6179ce7fa8e20b24766710"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: deep-link.ts \u2194 providers.tsx: \u0060packages/core/src/contracts/deep-link.ts\u0060 and \u0060packages/ui/src/pages/home/components/providers.tsx\u0060 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) 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 \u00607a2b4c3a\u0060 feat: respect explicit user context windows over imported Codex caps; \u00609e7d4f78\u0060 Implement router enhancements; \u00604344a2d6\u0060 Refactor routing configuration and improve provider support \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/contracts/deep-link.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ea04cadf55b9c5e23223ff1b4b21de48cd5697f00ef27f1926d33270fa0e2a2"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: app-launch.ts \u2194 cli-middleware-runtime.ts: \u0060packages/core/src/agents/codex/app-launch.ts\u0060 and \u0060packages/core/src/agents/codex/cli-middleware-runtime.ts\u0060 change together 56% of the time (10 of the 18 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 10 shared commits counted here, the most recent 3 are \u006026e7b0b7\u0060 fix codex worksapce error; \u00604344a2d6\u0060 Refactor routing configuration and improve provider support; \u0060225b3c23\u0060 Improve Codex authentication and app-server launch handling \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/codex/app-launch.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"21493ec88e949104f844a7420bf62d1eb89fab34a247d6840bce633b0eb1e048"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: probe.ts \u2194 providers.ts: \u0060packages/core/src/providers/probe.ts\u0060 and \u0060packages/ui/src/pages/home/shared/providers.ts\u0060 change together 55% of the time (11 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 11 shared commits counted here, the most recent 3 are \u006014df423c\u0060 fix(opencode-go): support Go provider identity and required session h\u2026; \u0060e8db9406\u0060 Add automatic provider model refresh and dialog Escape handling; \u00603f566d99\u0060 Preserve API keys across provider probes \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/providers/probe.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"777f2477d5339aeb6f9f799b772d5d5a1bc46e7d186a7218e6732130cace3a04"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: request-log-store.ts \u2194 store.ts: \u0060packages/core/src/observability/request-log-store.ts\u0060 and \u0060packages/core/src/usage/store.ts\u0060 change together 55% of the time (6 of the 11 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 \u0060e52f037d\u0060 Support DeepSeek cache usage for OpenCode Go; \u006017fd7458\u0060 Normalize usage token conventions per source; \u006000f5d6e4\u0060 fix cache ratio token accounting \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d08285c79ff13a1cfc5ee3af754234a51af94eb6ffa274042ea309c8482084e"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: launch-core.ts \u2194 profiles.ts: \u0060packages/core/src/profiles/launch-core.ts\u0060 and \u0060packages/ui/src/pages/home/shared/profiles.ts\u0060 change together 54% of the time (7 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) 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 7 shared commits counted here, the most recent 3 are \u0060c8e5e2b5\u0060 Add WorkBuddy app integration; \u00607c4a877c\u0060 feat: support Kilo Code profiles; \u0060084b660c\u0060 Document Pi agent profile support \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/launch-core.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"202d5ff7c640e96c22458635b19061e7feaf143b66ad8eb11d68d2bc13e4286f"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: service.ts \u2194 profiles.ts: \u0060packages/core/src/profiles/service.ts\u0060 and \u0060packages/ui/src/pages/home/shared/profiles.ts\u0060 change together 53% of the time (9 of the 17 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 9 shared commits counted here, the most recent 3 are \u0060c8e5e2b5\u0060 Add WorkBuddy app integration; \u00606e34da7f\u0060 Enforce profile model allowlists across agent catalogs; \u00607c4a877c\u0060 feat: support Kilo Code profiles \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/service.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b480bd8aafda8fd47ebd769d19178539d58be457f6da65841ebf0235d2648689"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: probe.ts \u2194 providers.tsx: \u0060packages/core/src/providers/probe.ts\u0060 and \u0060packages/ui/src/pages/home/components/providers.tsx\u0060 change together 50% of the time (10 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 10 shared commits counted here, the most recent 3 are \u006014df423c\u0060 fix(opencode-go): support Go provider identity and required session h\u2026; \u0060b1fd1e24\u0060 fix(gemini): honor selected protocols and API key auth (#1778); \u0060e8db9406\u0060 Add automatic provider model refresh and dialog Escape handling \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/providers/probe.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec58289e8d352f09a7a7e0db34b591c3017a0f6320b0977bdd670cc237148d23"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: dashboard.tsx \u2194 shared.tsx: \u0060packages/ui/src/pages/home/components/dashboard.tsx\u0060 and \u0060packages/ui/src/pages/tray/shared.tsx\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 \u006043948b4c\u0060 Refactor router configuration and expand provider support (at that commit the files were still \u0060src/renderer/pages/home/components/dashboard.tsx\u0060 and \u0060src/renderer/pages/tray/shared.tsx\u0060); \u0060b6f8bb3c\u0060 Add Codex manual reset account metrics (at that commit the files were still \u0060src/renderer/pages/home/components/dashboard.tsx\u0060 and \u0060src/renderer/pages/tray/shared.tsx\u0060); \u0060e558a7c4\u0060 Add catalog-backed Claude Code model metadata (at that commit the files were still \u0060src/renderer/pages/home/components/dashboard.tsx\u0060 and \u0060src/renderer/pages/tray/shared.tsx\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3148022e6a1ec2c7d4e293e25d07e6a419c499a3d309a19e3402196f11ebe9c1"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: deep-link.ts \u2194 providers.ts: \u0060packages/core/src/contracts/deep-link.ts\u0060 and \u0060packages/ui/src/pages/home/shared/providers.ts\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 \u00606c1a9088\u0060 Refactor router implementation and configuration; \u00600d51897d\u0060 Add Gemini interactions protocol support (at that commit the files were still \u0060src/shared/deep-link.ts\u0060 and \u0060src/renderer/pages/home/shared/providers.ts\u0060); \u006056c1b666\u0060 Refactor router config and provider handling (at that commit the files were still \u0060src/shared/deep-link.ts\u0060 and \u0060src/renderer/pages/home/shared/providers.ts\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/contracts/deep-link.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2071869108dc49e65a3afdd2e808a6d0579ea623176146201ce0a5cdb6acb1b3"}},{"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"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"c6eb5a94052c328a9f9d4f3228923a5f2d4d56700f96d3ddbb1b358415402983"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CSelect\u003E field component without a label: This UI-library field component has no label / aria-label / aria-labelledby / id at this call site, and nothing written inside it here carries one either (a name prop is the form-submission key, not a label; an id, even one the component sets on what it renders, names nothing until a label points at it) \u2014 so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/profiles.tsx"},"region":{"startLine":2177}}}],"partialFingerprints":{"codehealthFindingId/v1":"2345a260075fa87fd577b1b79788cb02b7eb99cce07c16b526cb6b2758b8e333"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003Cfieldset\u003E without a \u003Clegend\u003E: A fieldset groups related controls but has no \u003Clegend\u003E to name the group. Add a \u003Clegend\u003E as its first child \u2014 or, if the group already has a visible caption beside it (or the fieldset is there only to disable its subtree and carries no group box), point aria-labelledby at that caption\u0027s id instead, which names the group without rendering a second one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/settings.tsx"},"region":{"startLine":1758}}}],"partialFingerprints":{"codehealthFindingId/v1":"4584dbc5267f7f4e72d24c04c8298b5645a396001d2bb28c6d55457b7e62de89"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CSelect\u003E field component without a label: This UI-library field component has no label / aria-label / aria-labelledby / id at this call site, and nothing written inside it here carries one either (a name prop is the form-submission key, not a label; an id, even one the component sets on what it renders, names nothing until a label points at it) \u2014 so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/settings.tsx"},"region":{"startLine":2569}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad38b8832f3f8ca6859b8547f4b019d345d0737160a3ba14eb6be55a13211d49"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CSelect\u003E field component without a label: This UI-library field component has no label / aria-label / aria-labelledby / id at this call site, and nothing written inside it here carries one either (a name prop is the form-submission key, not a label; an id, even one the component sets on what it renders, names nothing until a label points at it) \u2014 so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/controls.tsx"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"1637bb607cd715b15381f4fb6716b5c44cf4faae8fb8c862f31b0c6c7d6d115b"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CTextarea\u003E field component without a label: This UI-library field component has no label / aria-label / aria-labelledby / id at this call site, and nothing written inside it here carries one either (a name prop is the form-submission key, not a label; an id, even one the component sets on what it renders, names nothing until a label points at it) \u2014 so it likely renders an unlabelled control. Name it whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/controls.tsx"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"20cbd22855d152a24671b2f200c45e1b4597c6f4cabb4e9d58e3e27111e2eedc"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/src/components/Redirect.astro"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"080ec54ed31cd6dd35f3bad922e706c4005c9e410281577b737ac64d589f0277"}},{"ruleId":"AC3","level":"warning","message":{"text":"Multiple navigation landmarks without distinguishing labels: With more than one navigation landmark, each needs an aria-label/aria-labelledby (e.g. \u0022Primary\u0022, \u0022Footer\u0022) so assistive tech can tell them apart. At least one nav here is unlabelled."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/src/layouts/DocsLayout.astro"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"183d7b6dd40bf81d3f4edea09e732462d4aa263c195e3ad1aa927439011ac853"}},{"ruleId":"AC4","level":"error","message":{"text":"Hover-only interaction on \u003Cdiv\u003E: This \u003Cdiv\u003E binds mouse-enter and mouse-leave and nothing else \u2014 no click, no key handler, no focus handler, and no tabIndex={0}, so it cannot even take focus. A keyboard user cannot hover, so whatever the pair reveals or highlights is reachable with a mouse only. Bind the same state to focus/blur as well, and add tabIndex={0}=\u00220\u0022 so the element can receive that focus."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/network-logs.tsx"},"region":{"startLine":1456}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9715042fc89fad067f270335514fd6e54c568e311c741e24da4c4c73ba15b28"}},{"ruleId":"AC4","level":"warning","message":{"text":"Modal dialog does not manage focus: This \u003Cdiv role=\u0022dialog\u0022\u003E is a modal dialog, but nothing moves focus into it when it opens and nothing keeps focus inside it while it is open, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native \u003Cdialog\u003E opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/network-logs.tsx"},"region":{"startLine":2264}}}],"partialFingerprints":{"codehealthFindingId/v1":"51e7ac628100f3518f32e52d257cc56d38464cbea2a90e290d022cc60135cdca"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast Tailwind colour pair (2.5:1): This element\u0027s Tailwind text/background colour utilities fall below the 4.5:1 WCAG AA minimum for normal text. Pick a darker or lighter shade."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/api-keys.tsx"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"089bfcba8a155b380becd0eb2da1ccc14327a029cafcacd41310e2943417682e"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Cinput\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":4916}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ec5699d3f9df072a94121cfd06cda1d009d71605fb8400b7cae37719293fea5"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Cbutton\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/model-selector.tsx"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b963cd17e0e356280f47ed717fce12f53fcb8ccc2a1779a354c92471fab6895"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Cinput\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/network-logs.tsx"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb1f53491d7d1255c8b517ec4254a1327db8c093da1753604ed21cac1ccab056"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Cbutton\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/network-logs.tsx"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"c72d3daae572f385eee64bc6a609bc29a8a48bc22c85ea5deddbcc3cf1d04daf"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Cbutton\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/network-logs.tsx"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"11cc20e292be15b127d68424171dc13f758bb50e571f104e86145e917c488e9a"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Cinput\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/network-logs.tsx"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"889c4349bb1aa389047197f24f58a24baba5e1cccb8c0109de41adadfc1b37c5"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Cbutton\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/network-logs.tsx"},"region":{"startLine":908}}}],"partialFingerprints":{"codehealthFindingId/v1":"0925ae18cccb7a964588b8da3a74c7216b04648bafd6a55ee52474d7610cef64"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Cinput\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/network-logs.tsx"},"region":{"startLine":2119}}}],"partialFingerprints":{"codehealthFindingId/v1":"d81abf19b948f24647172e0eabb03387bd7dba53217bcdb0b1660fa6366a9c84"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Cbutton\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/network-logs.tsx"},"region":{"startLine":2128}}}],"partialFingerprints":{"codehealthFindingId/v1":"90f87a738ccdc77a5718ada8427e92eac6d927bfd452236fabba8be794f129b3"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Cbutton\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/network-logs.tsx"},"region":{"startLine":2707}}}],"partialFingerprints":{"codehealthFindingId/v1":"a805da121820e0c30fcacb8ac3a3bc61b55fc0a5cf929970d5557a42ebac0fc7"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Cbutton\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/network-logs.tsx"},"region":{"startLine":2752}}}],"partialFingerprints":{"codehealthFindingId/v1":"31ba2cbf0cb5cf6ee47a793701a6cebc6c70405ffb53dc38ddc3f5e4fc87c82a"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (2.2:1): \u0060.overview-status-icon[data-tone=\u0022ok\u0022]\u0060 sets color: #fff on background-color: #34c759 \u2014 2.2:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/styles/globals.css"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a0e4e15ac4c36aadb54214078ac9802c38aed70a8c07c60c80460225352cd76"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (3.5:1): \u0060.overview-status-icon[data-tone=\u0022error\u0022]\u0060 sets color: #fff on background-color: #ff3b30 \u2014 3.5:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/styles/globals.css"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eb7b4bed63e25654bc5f6285d487c7d64f20d31d72b4efe79a1383781de4dd7"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (3.3:1): \u0060.cta-button\u0060 sets color: #ffffff on background-color: #16a34a \u2014 3.3:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/src/styles/global.css"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3ee0426cd07fc1f1fb050784b59b11ffeda7e91d7e0d7a2664973f4114d524e"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060.search input\u0060 sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/src/styles/global.css"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"e07854b7e8ddcd0cd7ac4fa05ce36859772c4ea42edd3e9b2d34cca05e2ab26a"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.overview-status-segment\u0060 moves (\u0060transition: filter 140ms ease, transform 140ms ease\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/styles/globals.css"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aa644600768c9c3927ea8be8f57a1dd1309ebd6b995b5eef035e51619c82590"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.overview-activity-cell\u0060 moves (\u0060transition: filter 120ms ease, transform 120ms ease\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/styles/globals.css"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"12b2a6aa3f899f18e54b7cb78d46fd54969ab793847e029bc3397fd1f078f928"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.onboarding-step-panel\u0060 moves (\u0060transition: opacity 180ms ease-out,\n      transform 240ms cubic-bezier(.22, 1, .36, 1),\n      visibility 0ms linear 180ms\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/styles/globals.css"},"region":{"startLine":1456}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6b3b8f745a672a562e1123b1df1385ad15d5471f661f3dbc6b656c53a675835"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.onboarding-step-panel-active\u0060 moves (\u0060transition: opacity 180ms ease-out 40ms,\n      transform 260ms cubic-bezier(.22, 1, .36, 1) 40ms,\n      visibility 0ms\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/styles/globals.css"},"region":{"startLine":1470}}}],"partialFingerprints":{"codehealthFindingId/v1":"5398a3ac9b57cff9c00369bb286ff7c2906f827966bb9eabe73062f21fc0b35b"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.onboarding-mascot-sprite-provider\u0060 moves (\u0060animation: onboarding-mascot-sprite-run-provider 680ms steps(7, end) both,\n      onboarding-mascot-provider-motion 680ms cubic-bezier(.22, 1, .36, 1) both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/styles/globals.css"},"region":{"startLine":1478}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f2a0d26461c69965a6a3d0e1fe845dce88930e03f23538a8a3eb27d271e5cac"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.onboarding-mascot-sprite-profile\u0060 moves (\u0060animation: onboarding-mascot-sprite-run-profile 820ms steps(7, end) both,\n      onboarding-mascot-profile-motion 820ms cubic-bezier(.16, 1, .3, 1) both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/styles/globals.css"},"region":{"startLine":1484}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcd71e43f29abe227a48f3b5086a0a8464f7bb5045368946c8b4c0163415990f"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.onboarding-mascot-sprite-enter\u0060 moves (\u0060animation: onboarding-mascot-sprite-run-enter 620ms steps(7, end) both,\n      onboarding-mascot-enter-motion 620ms cubic-bezier(.2, 1.1, .3, 1) both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/styles/globals.css"},"region":{"startLine":1490}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ee746bd4415b42dbcb76468f8294ee626048079292b221cb864e1328563239f"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.cta-button\u0060 moves (\u0060transition: background 140ms ease,\n    box-shadow 140ms ease,\n    transform 140ms ease\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/src/styles/global.css"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8bfea02c0fb5668e4433827fcf8a7db2373bbf24de9462eec80599b2bb4ae10"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.code-copy .copy-icon\u0060 moves (\u0060transition: opacity 160ms ease,\n    transform 160ms ease,\n    color 160ms ease\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/src/styles/global.css"},"region":{"startLine":1726}}}],"partialFingerprints":{"codehealthFindingId/v1":"471af109a81879883e6ca3ff7ab12b3523e03743659fd51a6e84bb57b57fc39a"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.toc-inline summary svg:last-child\u0060 moves (\u0060transition: transform 160ms ease\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/src/styles/global.css"},"region":{"startLine":1960}}}],"partialFingerprints":{"codehealthFindingId/v1":"acfb3305a172754642bed6d11438709c6f89416ae8680a470e1c3f2163bfe3cb"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.sidebar\u0060 moves (\u0060transition: transform 180ms cubic-bezier(0.2, 0, 0.13, 1)\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/src/styles/global.css"},"region":{"startLine":2212}}}],"partialFingerprints":{"codehealthFindingId/v1":"34a692a617d6d8e3c86681e832aaf2ab3cf0b0f25967ea400b579572ef3b41e0"}},{"ruleId":"IC1","level":"warning","message":{"text":"Empty method body \u2014 does nothing with its inputs: \u0060notify\u0060 takes parameters but its body is empty \u2014 it accepts inputs and does nothing. Either implement it or remove it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/src/components/interactive/ProvidersViewDemo.tsx"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"9009161841be1647dd3704c13d3b5b36c34a3cc52a7676f80d3f702c200eb97a"}},{"ruleId":"IC1","level":"warning","message":{"text":"Guard cannot change the result \u2014 returns what the code already falls through to: The guard above \u0060return trimmed;\u0060 also returns \u0060trimmed\u0060, so no input can make it matter. Implement the distinction that was intended, or delete the guard."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/bot-gateway/sdk-import.ts"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"054c1c38aef222f4317c57b269e2f1b49358fc71fb3c132485fd21e1160d2c58"}},{"ruleId":"IC1","level":"warning","message":{"text":"Both branches are identical \u2014 the condition decides nothing: Both arms of this conditional expression are the same, so no input can make the condition matter. Implement the distinction that was intended, or drop the condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/providers/account-service.ts"},"region":{"startLine":2206}}}],"partialFingerprints":{"codehealthFindingId/v1":"13b37912b44ab6cb2f2306dae7e56758fa27423ea5d5aa079a279b815452ee4c"}},{"ruleId":"IC1","level":"warning","message":{"text":"Fake-async \u2014 async method never awaits: \u0060quitApp\u0060 is declared \u0060async\u0060 but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop \u0060async\u0060 or do the real async work."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/web/management-server.ts"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e669299c66225a5d5eb861ab534c324e22dd151fda26275bbbed676628927f5"}},{"ruleId":"IC1","level":"warning","message":{"text":"Hollow method \u2014 returns a constant without doing the work: \u0060shouldUseOnlineClaudeApp\u0060 looks like it should compute a result but its body just returns a constant \u2014 a placeholder return that was never filled in."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":14247}}}],"partialFingerprints":{"codehealthFindingId/v1":"afef0ea2b09b277b2ff3546a99cf6ddc6ba4e8b7fc612e1491add9c6aaba8b5b"}},{"ruleId":"IC1","level":"warning","message":{"text":"Guard cannot change the result \u2014 returns what the code already falls through to: The guard above \u0060return \u0022*/*\u0022;\u0060 also returns \u0060\u0022*/*\u0022\u0060, so no input can make it matter. Implement the distinction that was intended, or delete the guard."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":14690}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6a53c36eda4baa33f3cbf312bfc7c8aad2babd4717a2b6c0e735f184fc005e4"}},{"ruleId":"IC1","level":"warning","message":{"text":"Hollow method \u2014 returns a constant without doing the work: \u0060frontendAssetsDisabled\u0060 looks like it should compute a result but its body just returns a constant \u2014 a placeholder return that was never filled in."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":16486}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b3d4850eca73a4c02e6bf677c2448cc747526975e76c9430eae19d2ec8e674c"}},{"ruleId":"IC1","level":"warning","message":{"text":"Fake-async \u2014 async method never awaits: \u0060openExternal\u0060 is declared \u0060async\u0060 but never awaits anything, so it runs synchronously while pretending to be asynchronous. Drop \u0060async\u0060 or do the real async work."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/web-client-bridge.ts"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a9840aaa727174509afd09c73f68a843023102a0d5aea0471dddda035e1e2f2"}},{"ruleId":"IC1","level":"note","message":{"text":"Disabled test: A test is skipped/ignored \u2014 coverage that looks present but never runs. Re-enable it or delete it so the green run means something."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/e2e/electron-cdp.spec.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"16f2a3350f3112e6e1dd738dfd9a9ac54e8f78ee6430a838ef19943b046c5da9"}},{"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":"P2","level":"note","message":{"text":"Logging is not universal: Only 2/3 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060packages/cli\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/web/management-server.ts\u0060 reports through \u0060console.*\u0060 at line 163 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/web/management-server.ts"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"22dc126f085838609b19c3da5cefba5765dfc6a51fc467dbd79ed51bc70c676c"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/web/management-server.ts\u0060 reports through \u0060console.*\u0060 at line 496 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/web/management-server.ts"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9ed07bff95e1712a12332f5decd2251bb7ce930060985cc63001e18d355d135"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/web/management-server.ts\u0060 reports through \u0060console.*\u0060 at line 500 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/web/management-server.ts"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"a020a5f3d2097c409cab919d71f64799eb09b610ad808a670e86cd9a32642f65"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/web/management-server.ts\u0060 reports through \u0060console.*\u0060 at line 510 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/web/management-server.ts"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cd67e1d3fbaeee731908b71c76a82f938f43082d37a5df9e1520cb3472eeed7"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/web/management-server.ts\u0060 reports through \u0060console.*\u0060 at line 515 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/web/management-server.ts"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0a918995b73d82dcd18a6ab55eecf2671c036a4d3d6a8fd9406516e24f1ab4d"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/web/management-server.ts\u0060 reports through \u0060console.*\u0060 at line 522 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/web/management-server.ts"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"014e093b281538cfaa9d64c28d9e499cf651808bb8d3c03c97296f6711e213c7"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/web/management-server.ts\u0060 reports through \u0060console.*\u0060 at line 527 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/web/management-server.ts"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b3523a0ea737fe33c9a3db21a151883f5346398fccdc48e5afb32a42ab68be7"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/web/management-server.ts\u0060 reports through \u0060console.*\u0060 at line 552 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/web/management-server.ts"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb160e80da3dbc24774f0ed4f142d87b31400795b8190de7d488ade8376e0e2d"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/web/management-server.ts\u0060 reports through \u0060console.*\u0060 at line 856 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/web/management-server.ts"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"16f428e9e8c7b6c82258e3df1996e6942d84cf932e6c17b2522c295b6541756c"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/usage/store.ts\u0060 reports through \u0060console.*\u0060 at line 405 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/usage/store.ts"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d9cc246c0b69bf99a6fece3843807f3d3f89e0e4dcbe8969b48928b9c5e0ba1"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/usage/store.ts\u0060 reports through \u0060console.*\u0060 at line 530 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/usage/store.ts"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e252bbafba6f82e36b28706cb8936cce0e030b43070897ec5459906f1aa31e1"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/usage/store.ts\u0060 reports through \u0060console.*\u0060 at line 539 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/usage/store.ts"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"854440eb43be410b863d0d7e8bc6556b7d96752f220416d5138709205233c650"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/usage/store.ts\u0060 reports through \u0060console.*\u0060 at line 548 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/usage/store.ts"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdcd9cee55e06e0275ec4399c7253b7a80934d79c75b696cc42640e6a16f1968"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/usage/store.ts\u0060 reports through \u0060console.*\u0060 at line 557 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/usage/store.ts"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"d153d53dbb9ae976f277e066df677c7f38c03a62bf36df4b3c55f7d922f8f186"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/usage/store.ts\u0060 reports through \u0060console.*\u0060 at line 566 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/usage/store.ts"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"78f8a208896c91d19037ab766c1a99af6ff3f090abff7976258a69c6f6fb1e95"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/usage/store.ts\u0060 reports through \u0060console.*\u0060 at line 578 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/usage/store.ts"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"90ae24af2c41a3e33786cd22e28def035d8308ccccacfef46a092476abab4a8c"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/storage/migration.ts\u0060 reports through \u0060console.*\u0060 at line 13 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/storage/migration.ts"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"b414513fc78fc43dffe7b03ac7714f57b038bb5fb328cf5e464f36f925dd0156"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/proxy/service.ts\u0060 reports through \u0060console.*\u0060 at line 709 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/proxy/service.ts"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce06696f99aaab53cbad5947f276c153881fe8b3a0f57d0fc7a3df999240fbce"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/proxy/service.ts\u0060 reports through \u0060console.*\u0060 at line 1891 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/proxy/service.ts"},"region":{"startLine":1891}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa761a79c8b9b823004308653c15ef52efc34dae56cd2ea76da6b4579f707bdf"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/proxy/system-proxy-fetch.ts\u0060 reports through \u0060console.*\u0060 at line 140 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/proxy/system-proxy-fetch.ts"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"cea13cf2110b6d4fe5cee9775f58aa25b0a0ccaad7b095365b27f13a92537010"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/proxy/system-proxy-fetch.ts\u0060 reports through \u0060console.*\u0060 at line 168 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/proxy/system-proxy-fetch.ts"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"08c686fd6ddca380c1d290449135d4089dc29fa59cf4cd747cb84512ecd1a123"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/proxy/system-proxy-fetch.ts\u0060 reports through \u0060console.*\u0060 at line 180 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/proxy/system-proxy-fetch.ts"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8fc49c1b73308248424ea9b5ce87865cc1b7399211121e18e4727d4fddb8b18"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/proxy/system-proxy.ts\u0060 reports through \u0060console.*\u0060 at line 520 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/proxy/system-proxy.ts"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"30896314ec6b6ada2f366c1c98db51f61366d11b4f211d8a1e3e751d90b68424"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/proxy/system-proxy.ts\u0060 reports through \u0060console.*\u0060 at line 559 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/proxy/system-proxy.ts"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab2a57f9ce162f67f9992355c0cd982338d3a5b3ce21e396b054d15cad1b3afb"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/proxy/system-proxy.ts\u0060 reports through \u0060console.*\u0060 at line 756 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/proxy/system-proxy.ts"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f533d1fb62f16f35a27222e7a8adbb0e8e449fae389ad57e1fc20986249ae27"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/proxy/system-proxy.ts\u0060 reports through \u0060console.*\u0060 at line 992 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/proxy/system-proxy.ts"},"region":{"startLine":992}}}],"partialFingerprints":{"codehealthFindingId/v1":"74bf9153a44822b09e12da1247f3ebc04f36708c2b9da65139ac801aa26a2f3a"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/providers/model-catalog.ts\u0060 reports through \u0060console.*\u0060 at line 191 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/providers/model-catalog.ts"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"674c7773b734c79cd1b35ee8f255e3c3aa4deb7670772dd0cbe26a5b45803d27"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/profiles/launch-service.ts\u0060 reports through \u0060console.*\u0060 at line 1352 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/launch-service.ts"},"region":{"startLine":1352}}}],"partialFingerprints":{"codehealthFindingId/v1":"1971f368c375d749b38e47f889b11da0be1477e083a5ccb11f48faba475231d7"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/profiles/launch-service.ts\u0060 reports through \u0060console.*\u0060 at line 1361 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/launch-service.ts"},"region":{"startLine":1361}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0a33bbabe2da7273aca9720b696cb824a6239cf4e664aed67d7837e3059a3d4"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/profiles/launch-service.ts\u0060 reports through \u0060console.*\u0060 at line 1370 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/launch-service.ts"},"region":{"startLine":1370}}}],"partialFingerprints":{"codehealthFindingId/v1":"64e46b25394d3333121ff93be9311eda1059e13b3485af337e843a5fa616cdb7"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/profiles/launch-service.ts\u0060 reports through \u0060console.*\u0060 at line 1425 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/launch-service.ts"},"region":{"startLine":1425}}}],"partialFingerprints":{"codehealthFindingId/v1":"56cb8048b1ad561ed039e8328ce77c601f0eccc6f13ddc2c90646b43294417f0"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/profiles/launch-service.ts\u0060 reports through \u0060console.*\u0060 at line 1435 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/launch-service.ts"},"region":{"startLine":1435}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c8272640806953032ff5aa4b71bbc7e6cf0b4a66be07ca1f28ee51fd17eb34b"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/profiles/launch-service.ts\u0060 reports through \u0060console.*\u0060 at line 1445 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/launch-service.ts"},"region":{"startLine":1445}}}],"partialFingerprints":{"codehealthFindingId/v1":"c743b9826e78942de90acedabbf362e99465d612bd81bdcad709d3403a2f44b8"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/profiles/launch-service.ts\u0060 reports through \u0060console.*\u0060 at line 1480 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/launch-service.ts"},"region":{"startLine":1480}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e13a59c510955db8f9cf16d91fb52169ab6c46b43cb3732a41f159e53146db3"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/profiles/launch-service.ts\u0060 reports through \u0060console.*\u0060 at line 1485 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/launch-service.ts"},"region":{"startLine":1485}}}],"partialFingerprints":{"codehealthFindingId/v1":"2241e54d4f54782d3aaf6ed6c0be29711af9e9e1d5dbeb090117ed15b6f58214"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/profiles/launch-service.ts\u0060 reports through \u0060console.*\u0060 at line 1490 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/launch-service.ts"},"region":{"startLine":1490}}}],"partialFingerprints":{"codehealthFindingId/v1":"b77ddb0a4a5fdc8045585422c1f99f029c0ec03ad3f79fd191c60cb132ff9eca"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/profiles/launch-service.ts\u0060 reports through \u0060console.*\u0060 at line 1739 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/launch-service.ts"},"region":{"startLine":1739}}}],"partialFingerprints":{"codehealthFindingId/v1":"06beb64d3269bdce2f47a73594995bf5b981d6434443ac823249675e451f61b0"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/profiles/launch-service.ts\u0060 reports through \u0060console.*\u0060 at line 1905 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/launch-service.ts"},"region":{"startLine":1905}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aa48e6fed273925cd011cfd02c5f74a5fb2eaca5c9e5a259dfe06778f00757c"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/plugins/backend-service.ts\u0060 reports through \u0060console.*\u0060 at line 124 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/plugins/backend-service.ts"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"92e851279b94cac9bbd30e27cd37e83cb63e8721ec5e0ba2df3c45b5a3640c1f"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/plugins/backend-service.ts\u0060 reports through \u0060console.*\u0060 at line 176 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/plugins/backend-service.ts"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"605dcd986f4ac21a83361e703eac29a130c563a52628575b8e726eb554c3871e"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/plugins/marketplace.ts\u0060 reports through \u0060console.*\u0060 at line 64 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/plugins/marketplace.ts"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ae0a8ad3e3af8d565167bd1dce006c9b77acecc863f918514fa641fe374e2b6"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/plugins/marketplace.ts\u0060 reports through \u0060console.*\u0060 at line 78 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/plugins/marketplace.ts"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"56279968511401b8449df5f506cf9bb02b8bc7d57dd4cf3c26db98a385c49060"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/plugins/marketplace.ts\u0060 reports through \u0060console.*\u0060 at line 97 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/plugins/marketplace.ts"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fecd86f5ca2e46d928b4d98dbe1a60f259c88e965ab15863b90f94eaaf7ac86"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/plugins/marketplace.ts\u0060 reports through \u0060console.*\u0060 at line 254 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/plugins/marketplace.ts"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"e46b444595a0e4b9763c645f9088afe1b9fff537f528f6bd9b6a11b633f2f2c1"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/plugins/service.ts\u0060 reports through \u0060console.*\u0060 at line 288 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/plugins/service.ts"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"85a7cf5b8e95e78b183f2f2696c8a7f585cb7fcd489987552739764652f9b8b0"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/plugins/service.ts\u0060 reports through \u0060console.*\u0060 at line 302 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/plugins/service.ts"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"b102ddb4b21ed6330a398f32ac38d11daebe58d3def437456680eab0c2e56da1"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/plugins/service.ts\u0060 reports through \u0060console.*\u0060 at line 363 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/plugins/service.ts"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e23a84894443fea4059dd1c3d7c01e97bd2c0f1ad80907f9d9ae0ca4541e23f"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/plugins/service.ts\u0060 reports through \u0060console.*\u0060 at line 475 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/plugins/service.ts"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"57452ade70746b1d6911c505624aa57f6748205d0a01e4e63ea13b0b2f22af4b"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/plugins/service.ts\u0060 reports through \u0060console.*\u0060 at line 953 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/plugins/service.ts"},"region":{"startLine":953}}}],"partialFingerprints":{"codehealthFindingId/v1":"989ed6e04d265971acbc63418458a009563a1beab0b8ef19838da1a50f46e7f5"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/plugins/service.ts\u0060 reports through \u0060console.*\u0060 at line 960 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/plugins/service.ts"},"region":{"startLine":960}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5f091dc23ad6d975d45737ec1127b63d1d0f7c2df78bb7eb47dfc46364f2c5e"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/plugins/service.ts\u0060 reports through \u0060console.*\u0060 at line 1188 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/plugins/service.ts"},"region":{"startLine":1188}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeb5dfca161524abc7fa3b235148d3db2de14a5058abc5426e097ef7745ce69a"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/plugins/service.ts\u0060 reports through \u0060console.*\u0060 at line 1189 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/plugins/service.ts"},"region":{"startLine":1189}}}],"partialFingerprints":{"codehealthFindingId/v1":"38be14935ab33c2721b17ca79e7ab49b64c399dd90b2113e0f65088aec5159bb"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/plugins/service.ts\u0060 reports through \u0060console.*\u0060 at line 1190 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/plugins/service.ts"},"region":{"startLine":1190}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b0633e2eceedc08ebc462ba8698d5dbca6d77c5dcef392e1085cb1496719c6f"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/plugins/service.ts\u0060 reports through \u0060console.*\u0060 at line 1191 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/plugins/service.ts"},"region":{"startLine":1191}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbd8683c78197279cefa4b91db61c7cc36fe93235bb01f1c8e065e920ab5ea8a"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/observability/raw-trace-sync.ts\u0060 reports through \u0060console.*\u0060 at line 220 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/raw-trace-sync.ts"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"6189630614dd77558c6fcf81741c0dd91cf8a9e4b559aae77e4b5c9c4fc97bd0"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/observability/raw-trace-sync.ts\u0060 reports through \u0060console.*\u0060 at line 228 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/raw-trace-sync.ts"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b5687f19b3bd83055d34c6f420888bbdca0bf05675fa73ae37e4ee429b38e12"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/observability/raw-trace-sync.ts\u0060 reports through \u0060console.*\u0060 at line 243 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/raw-trace-sync.ts"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"5218d5170491a71af9ce94ce01317880cbfca9b6a4b566c640bf3e54f056d720"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/observability/raw-trace-sync.ts\u0060 reports through \u0060console.*\u0060 at line 283 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/raw-trace-sync.ts"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"22d63485a412c3681c082c5bddeed50f8d13c3ba1be0d86db4933f95ca312c6a"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/observability/raw-trace-sync.ts\u0060 reports through \u0060console.*\u0060 at line 293 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/raw-trace-sync.ts"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"57f35b46a5cc955742e60774acc629fcd4d49c7784f3ab90a28e5850ebfd0cf9"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/observability/raw-trace-sync.ts\u0060 reports through \u0060console.*\u0060 at line 342 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/raw-trace-sync.ts"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2f0710eeacfefaf5f5fd6b9027574fccefa89d1bf4a13515371b0b973fb5331"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/observability/raw-trace-sync.ts\u0060 reports through \u0060console.*\u0060 at line 583 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/raw-trace-sync.ts"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"904a654a46c0c569c97a051dc8b5fb297f660b43190732eb1482056350cff3d6"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/observability/raw-trace-sync.ts\u0060 reports through \u0060console.*\u0060 at line 598 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/raw-trace-sync.ts"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"151d683d4d8474e8ef7e853baf1d3514375b0c3629445d93274e672204175bc2"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/observability/raw-trace-sync.ts\u0060 reports through \u0060console.*\u0060 at line 625 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/raw-trace-sync.ts"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd496df34b251347755456e9671566ef761dcebce6fc2ce1d8e7f4aea74b2411"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/observability/raw-trace-sync.ts\u0060 reports through \u0060console.*\u0060 at line 647 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/raw-trace-sync.ts"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee9578533435e6350a87bb4ba095274aa691d3512a50a781ff687ed9726f84be"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/observability/raw-trace-sync.ts\u0060 reports through \u0060console.*\u0060 at line 761 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/raw-trace-sync.ts"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"beb18ab3d64bbb6f7a4db0d12043326363c9e9c72fbd90d808bb41e89c48537f"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/observability/raw-trace-sync.ts\u0060 reports through \u0060console.*\u0060 at line 800 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/raw-trace-sync.ts"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"04f78ad98ac00a2e95188b2172f0b84f2954826cecf11019dc62424bab0734fe"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/observability/raw-trace-sync.ts\u0060 reports through \u0060console.*\u0060 at line 1234 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/raw-trace-sync.ts"},"region":{"startLine":1234}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0d44b715baa7608431dec54abef06db7150cffd13653608e2bbbaafd43da46e"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/observability/raw-trace-sync.ts\u0060 reports through \u0060console.*\u0060 at line 1295 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/raw-trace-sync.ts"},"region":{"startLine":1295}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e8dd05222ff5c2cbbc8b78503cc5d81e497196ba3bcb0cd79025f867e96fc07"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/observability/raw-trace-sync.ts\u0060 reports through \u0060console.*\u0060 at line 1330 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/raw-trace-sync.ts"},"region":{"startLine":1330}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfa80130c4906aa69e259e8af28e343dddd15c063570790f6f1bfe60289ed89a"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/observability/raw-trace-sync.ts\u0060 reports through \u0060console.*\u0060 at line 1337 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/raw-trace-sync.ts"},"region":{"startLine":1337}}}],"partialFingerprints":{"codehealthFindingId/v1":"680aa3c77b2e1f8be8c94d94c9b5b13635dc434e865fe86db61494b00b36f31f"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/observability/raw-trace-sync.ts\u0060 reports through \u0060console.*\u0060 at line 1357 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/raw-trace-sync.ts"},"region":{"startLine":1357}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4d301865ea51212f9240e804054b7f8da895605302571f9d5c33b0f1cb2280d"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/observability/raw-trace-sync.ts\u0060 reports through \u0060console.*\u0060 at line 1361 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/raw-trace-sync.ts"},"region":{"startLine":1361}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1b334f13e6095f27ad03e606ffbe3554f10687208f2e2a33e40c7f2e2337ac9"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/observability/raw-trace-sync.ts\u0060 reports through \u0060console.*\u0060 at line 1745 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/raw-trace-sync.ts"},"region":{"startLine":1745}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f9740ce61e710151ab8fdac5f05dc6d0cd540011638a34233b1272fc89ea734"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/observability/raw-trace-sync.ts\u0060 reports through \u0060console.*\u0060 at line 1771 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/raw-trace-sync.ts"},"region":{"startLine":1771}}}],"partialFingerprints":{"codehealthFindingId/v1":"edb198fdd56959cee47121ee7952dd5d54f54f177e40f61431a2fb9272b91f7a"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/observability/request-log-admission-store.ts\u0060 reports through \u0060console.*\u0060 at line 361 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-admission-store.ts"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"f81a4ed73ec693ab6467c5b66a25b716542fe98a62475e040d8c07e3693f30f7"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/observability/request-log-runtime.ts\u0060 reports through \u0060console.*\u0060 at line 393 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-runtime.ts"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"06d9bd464a3167e31352c0ed3987594ae2dbb175d3d3456f855de90eab3beb8f"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/observability/request-log-runtime.ts\u0060 reports through \u0060console.*\u0060 at line 603 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-runtime.ts"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c35705b7edbe627a31789563437ee8e792f98ece3a076cda5dbc173a5cc7a40"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/observability/request-log-runtime.ts\u0060 reports through \u0060console.*\u0060 at line 646 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-runtime.ts"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca8f0fc765bb9722719de6587dd10f03b76dba8a9c64cebab585a7038d85d77f"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/observability/request-log-runtime.ts\u0060 reports through \u0060console.*\u0060 at line 800 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-runtime.ts"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"818f4d884b67c1fba55f083fc61fdb42b4fa997ad57ed5655f2ad97f79d92545"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/observability/request-log-runtime.ts\u0060 reports through \u0060console.*\u0060 at line 822 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-runtime.ts"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed40efa0f6efacbe16e4139c363830b54c6219d6b72ac3836843d71e9a237879"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/observability/request-log-runtime.ts\u0060 reports through \u0060console.*\u0060 at line 857 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-runtime.ts"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"e379e653ab47d0509039e1ce2134191bc3b68c4daf5e8757aa1ec9ef7522c6e3"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/observability/request-log-store.ts\u0060 reports through \u0060console.*\u0060 at line 1829 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":1829}}}],"partialFingerprints":{"codehealthFindingId/v1":"456457eb278489c2f548adb8b415165182d09111ed14cad6c11564515834cfcc"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/observability/request-log-store.ts\u0060 reports through \u0060console.*\u0060 at line 1838 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":1838}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fc39c05242f34cc1507b5c5f8d6deb348ca4ed17ad1d29074b1a772ef831df3"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/observability/request-log-store.ts\u0060 reports through \u0060console.*\u0060 at line 1847 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":1847}}}],"partialFingerprints":{"codehealthFindingId/v1":"8229e5efdeba4436f09fa14b1a4e6eb2962c0b120af04f32da8474deadbf9b8e"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/observability/request-log-store.ts\u0060 reports through \u0060console.*\u0060 at line 1856 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":1856}}}],"partialFingerprints":{"codehealthFindingId/v1":"79f71cbb5454e89746ce9be5b5aeb4470015a8e197de15fd9d34c5e99f424b50"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/observability/request-log-store.ts\u0060 reports through \u0060console.*\u0060 at line 1865 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":1865}}}],"partialFingerprints":{"codehealthFindingId/v1":"59ee1c489a35eb521405a9aaa3c290d7fef0c4d2692d6277f15cffce6ad14f51"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/observability/request-log-worker.ts\u0060 reports through \u0060console.*\u0060 at line 118 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-worker.ts"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbfa20b74f8016998191d1e8887b74db08504f4fde99386193515e67d47cc584"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/observability/request-log-worker.ts\u0060 reports through \u0060console.*\u0060 at line 144 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-worker.ts"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"34dfcb08c5ca02cdf2265e6c66c392e612c93cb084c01c8addb13b8bd3fc0423"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/models/catalog-file.ts\u0060 reports through \u0060console.*\u0060 at line 64 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/models/catalog-file.ts"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fcfcb39f7731379d5d70765baed3e9b247095f2a728f316b6b389d7a5a35095"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/media/storage.ts\u0060 reports through \u0060console.*\u0060 at line 78 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/media/storage.ts"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"002af83bf9c3656bf340fc05ec339146ede13fa912a4ba031549045ec35bb2c1"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/mcp/fusion-vision-mcp.ts\u0060 reports through \u0060console.*\u0060 at line 434 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/mcp/fusion-vision-mcp.ts"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"f60e561dbf55db421e3061dbe481b5a01eb84ab85222532e384573b1ab483734"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/gateway/model-catalog.ts\u0060 reports through \u0060console.*\u0060 at line 234 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/model-catalog.ts"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"942f8e851411e4ddc19a032c2ed6fce98e43a49bfbb1b1382c7501a5ba9022dd"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/gateway/request/pipeline.ts\u0060 reports through \u0060console.*\u0060 at line 529 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/request/pipeline.ts"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"19f5ec53c4955fd6c5caf2c725ea34441ea179f1ea7b68be74b36af1fa5d4ff6"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/gateway/features/cursor-compat.ts\u0060 reports through \u0060console.*\u0060 at line 54 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/features/cursor-compat.ts"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b70cba095342726467cc03a3a599a823318d5ec7d716787f1521b9e0e33691c"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/gateway/features/hosted-web-search/discovery.ts\u0060 reports through \u0060console.*\u0060 at line 515 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/features/hosted-web-search/discovery.ts"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eea078320dcd85a6a58b835c5333a63d2c2f7c21545c928c3997da00cbc61f2"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/gateway/features/hosted-web-search/discovery.ts\u0060 reports through \u0060console.*\u0060 at line 544 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/features/hosted-web-search/discovery.ts"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"15d89827943b04942c47e67093a26642e30dd649776760d9188514c2dbcfbfd2"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/gateway/features/hosted-web-search/discovery.ts\u0060 reports through \u0060console.*\u0060 at line 561 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/features/hosted-web-search/discovery.ts"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"e171898700edb99ed9a80c646ee4236b639639dce204f94f6a31f0ded4557c61"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/gateway/features/hosted-web-search/discovery.ts\u0060 reports through \u0060console.*\u0060 at line 580 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/features/hosted-web-search/discovery.ts"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2d97bce4c05a8a6452675108279a38f1894b60eba178dea2657c004e13f837c"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/gateway/features/hosted-web-search/discovery.ts\u0060 reports through \u0060console.*\u0060 at line 596 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/features/hosted-web-search/discovery.ts"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f2d227afe3b66c96e80d62f690b5d4295611f627669ca14de1d23049ba2603c"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/gateway/features/hosted-web-search/discovery.ts\u0060 reports through \u0060console.*\u0060 at line 615 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/features/hosted-web-search/discovery.ts"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"27d46bc639d55f990dd50981730c4da6564d88faf9c7c4e0c1bd7adb2afa0ea4"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/gateway/features/hosted-web-search/discovery.ts\u0060 reports through \u0060console.*\u0060 at line 631 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/features/hosted-web-search/discovery.ts"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2c3bd2b45b3e6909bd508024ffb363f3818332daf89f5743d85c54e0736392c"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/gateway/features/hosted-web-search/discovery.ts\u0060 reports through \u0060console.*\u0060 at line 651 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/features/hosted-web-search/discovery.ts"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d5ce5640f0a7ab711b2f7e25338b531cad2e58572be6a88ab6069b01938962c"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/gateway/features/hosted-web-search/discovery.ts\u0060 reports through \u0060console.*\u0060 at line 672 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/features/hosted-web-search/discovery.ts"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"9489dec4946d2908de59c31becd990211cd9bbaf6a7aed331c1e00b5ef473098"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/gateway/features/hosted-web-search/response-transform.ts\u0060 reports through \u0060console.*\u0060 at line 54 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/features/hosted-web-search/response-transform.ts"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"a364e75bd9fe169a5fa74ec05019c9b3a392a6eb22321a1f7cecf6743943d78c"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/gateway/features/hosted-web-search/response-transform.ts\u0060 reports through \u0060console.*\u0060 at line 101 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/features/hosted-web-search/response-transform.ts"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"f54feae04eda5bec261a871fc727f856597092787c05c11920d516693727aa66"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/gateway/features/hosted-web-search/response-transform.ts\u0060 reports through \u0060console.*\u0060 at line 120 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/features/hosted-web-search/response-transform.ts"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"66da892d2bee03b791c6d4105e69e8f9e202cfc0b2ea289a7dd737c5db9b3ecc"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/gateway/features/hosted-web-search/response-transform.ts\u0060 reports through \u0060console.*\u0060 at line 305 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/features/hosted-web-search/response-transform.ts"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"db5cbd02806e3b8427995c82804020e29a5025e43f5512a8e756b17854d6b134"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/gateway/features/hosted-web-search/response-transform.ts\u0060 reports through \u0060console.*\u0060 at line 324 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/features/hosted-web-search/response-transform.ts"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"50b05844aca4d7870cf77d3d4097c894d952940516faa1e48e748946f91fbfd4"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/gateway/core-runtime/gateway-bootstrap.ts\u0060 reports through \u0060console.*\u0060 at line 38 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/core-runtime/gateway-bootstrap.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"6579d211c2a9ca852b338f8927c81412b50310903edf4c4b82dd00111d72a502"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/gateway/auth/api-key-authorizer.ts\u0060 reports through \u0060console.*\u0060 at line 236 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/auth/api-key-authorizer.ts"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"91ec6b835c4f6e08d03d7f56eab7c85cecba6cd22d67fa75126b4203bde09b37"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/gateway/application/gateway-service.ts\u0060 reports through \u0060console.*\u0060 at line 188 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/application/gateway-service.ts"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5e0dbe9daa6495cc2f85b50fd273538a9557e1c7273a4b990bda294a6013397"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/gateway/application/gateway-service.ts\u0060 reports through \u0060console.*\u0060 at line 266 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/application/gateway-service.ts"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"89752b45fe9d53954212b6a92d4b345a4210a08b149842014f46f21c71542fa6"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/gateway/application/gateway-service.ts\u0060 reports through \u0060console.*\u0060 at line 267 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/application/gateway-service.ts"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"1075dd20d81b500ac6e5970c9ca329b8dc8d19ad600175a28fcddbc1692caa7f"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/gateway/application/gateway-service.ts\u0060 reports through \u0060console.*\u0060 at line 399 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/application/gateway-service.ts"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"166e61f737dffd0806e9ef965110930996f78f094d5a2b0e355592158ce87040"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/gateway/application/gateway-service.ts\u0060 reports through \u0060console.*\u0060 at line 402 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/application/gateway-service.ts"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"baf9c4432ed618f84e057a94709dca0d0ab0c5bb70ce3ef6cd457c3f59efb2e8"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/gateway/application/gateway-service.ts\u0060 reports through \u0060console.*\u0060 at line 588 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/application/gateway-service.ts"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d7f8cf2fbd58c2facf04ca66e554f88c84a80ce06da93bd7fb93f5040ca0823"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/gateway/application/gateway-service.ts\u0060 reports through \u0060console.*\u0060 at line 598 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/application/gateway-service.ts"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3132c0870cb71e47cbc8851620461420828e941f351d1cc78dc661f4333a6c3"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/gateway/application/gateway-service.ts\u0060 reports through \u0060console.*\u0060 at line 694 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/application/gateway-service.ts"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"213fb1f05032d6216b5634138f062587bec9087e13b4fabd5e1ebc471d267db6"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/gateway/application/gateway-service.ts\u0060 reports through \u0060console.*\u0060 at line 724 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/application/gateway-service.ts"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"8615f6b44e3fae81630b99aabe497668bc89eca6abeb6caa22cf397ed4a52cbd"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/config/config-repository.ts\u0060 reports through \u0060console.*\u0060 at line 404 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config-repository.ts"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"9291e12c791b5e58aaeb8a88b797a15722acee8139b59aa113368b73edae8285"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/config/config-repository.ts\u0060 reports through \u0060console.*\u0060 at line 548 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config-repository.ts"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"462460586390d84207fa6870ac495742d357e6222920ca5e664425db994e4426"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/config/config-repository.ts\u0060 reports through \u0060console.*\u0060 at line 564 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config-repository.ts"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"10618dab3adf2d7a6c976890e91055f05aee4860e15df12ee66a99f5804bdc4e"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/config/config-repository.ts\u0060 reports through \u0060console.*\u0060 at line 615 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config-repository.ts"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b03d76816caaaaa5cbb9bcd8047981b9a9f4962afecf5d34b520668b9c665e5"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/config/config-repository.ts\u0060 reports through \u0060console.*\u0060 at line 645 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config-repository.ts"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9d9b68c53bf74b9a718741f3542d9416c6efcd13053f90685c428daf0d187c2"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/config/config-repository.ts\u0060 reports through \u0060console.*\u0060 at line 725 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config-repository.ts"},"region":{"startLine":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c21624de71c27c43c95c1a6b3dd0cb2743be589222972769786321794ee3af4"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/config/config.ts\u0060 reports through \u0060console.*\u0060 at line 354 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"de5d9bce32151ab78d3af4863d962c1a3d13a263b20d5ca51ef6c3fd332d7c19"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/config/config.ts\u0060 reports through \u0060console.*\u0060 at line 360 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee9b4c079bc8a7537948dbbf6669b62bde67c682c3489a9511e49e71e912343d"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/config/config.ts\u0060 reports through \u0060console.*\u0060 at line 362 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"510b0a617429b7cf693bb9b5c59ce43dfabb43002d447271637af2cec6dcf875"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/config/config.ts\u0060 reports through \u0060console.*\u0060 at line 368 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"508e25343703ad467efecf5da72f5d4a38cd38676d9dfdad8d4e9bb65474c649"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/config/config.ts\u0060 reports through \u0060console.*\u0060 at line 711 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"178e70c75f9e351d2a94ede93e8376ec7b2873c01289e6da433a2f3fa389a647"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/config/config.ts\u0060 reports through \u0060console.*\u0060 at line 713 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"acd4531fc675ad58a04620d95b00e6aa0fc14890f0d2b043433294095c1eca18"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/config/onboarding-state.ts\u0060 reports through \u0060console.*\u0060 at line 16 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/onboarding-state.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"966f8aac9889d932eed3d259b7f1d763e2bd621392167e4e869fde9cac18e725"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/core/src/agents/claude-app/launch.ts\u0060 reports through \u0060console.*\u0060 at line 58 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/claude-app/launch.ts"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"5435ec8881f3c646ce5362a7d5c4070d5f72c9140e696b806baacfd7a895cb56"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/electron/src/main/built-in-browser.ts\u0060 reports through \u0060console.*\u0060 at line 460 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/src/main/built-in-browser.ts"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e0e8324687f07fd8e88ff8df85649ef7dafc97127db9470afe79f0a8fddc2d7"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/electron/src/main/ipc.ts\u0060 reports through \u0060console.*\u0060 at line 446 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/src/main/ipc.ts"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f384bd7862389c2d3343b8a74567822ce76dca6ea7bbe3477be7dedde64fb16"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/electron/src/main/ipc.ts\u0060 reports through \u0060console.*\u0060 at line 710 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/src/main/ipc.ts"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"03b0bcaf3e911a4b9ad43b19b7c8e7d240a717872018b9b72f1c074cda6e5364"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/electron/src/main/ipc.ts\u0060 reports through \u0060console.*\u0060 at line 730 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/src/main/ipc.ts"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e98ecd336d872860b3ed490fd6db49742f59cc1482e0d72132982bf6a10eaa2"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/electron/src/main/ipc.ts\u0060 reports through \u0060console.*\u0060 at line 980 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/src/main/ipc.ts"},"region":{"startLine":980}}}],"partialFingerprints":{"codehealthFindingId/v1":"1024d7ebc5fa2ff300450d83b9187b8033739ba8080fb7de316ce4c5fa8d41c4"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/electron/src/main/update-service.ts\u0060 reports through \u0060console.*\u0060 at line 195 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/src/main/update-service.ts"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f2800c5acb689eabdf18ceafc9e15e7d3d934d359b374b69e3ae10e067ef647"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/electron/src/main/update-service.ts\u0060 reports through \u0060console.*\u0060 at line 196 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/src/main/update-service.ts"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a36930c3cc602a2afb1121fff7ac54a2a6312ec7ab8c17a3337fb427020a515"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/electron/src/main/update-service.ts\u0060 reports through \u0060console.*\u0060 at line 197 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/src/main/update-service.ts"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"118780b8f679d36e91ee11fb0528b1ad7285e9f57f0909da07e7bed8bab7a01d"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060packages/electron/src/main/update-service.ts\u0060 reports through \u0060console.*\u0060 at line 198 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/src/main/update-service.ts"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2b020d9f8f87770363abaef496dd3eeecfb096988e3bce316f3295aa6def520"}},{"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/typescript\u0060, or eslint-plugin-security as a CI step. What was searched, so you can tell an absence from a miss: the 3 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":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060package.json\u0060 declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices \u2014 including after an advisory is published against it. Add a \u0060.github/dependabot.yml\u0060 with one \u0060package-ecosystem\u0060 entry per ecosystem the tree uses (or an enabled \u0060renovate.json\u0060), and gate pull requests with \u0060actions/dependency-review-action\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package.json"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b237f7efe841e3a95b381b232502a3a473094adeb069a11eaca8ca533fb1c34"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"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":"packages/core/src/mcp/toolhub-mcp.ts"},"region":{"startLine":1074}}}],"partialFingerprints":{"codehealthFindingId/v1":"96bd8d9173a2f64db243fe7971e27d5b0cbd5ac3454a2dc8683c441af0b5f348"}},{"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":"packages/core/src/proxy/system-proxy-fetch.ts"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"46468c080ee5cd38e858cdc37179d87660f6490200300f6284d2be3eff959dcc"}},{"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":"packages/core/src/proxy/system-proxy-fetch.ts"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f2901f255d17913bd9d09adfa79754c3fa76d129433f0c00d820465cbc34086"}},{"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":"packages/core/src/proxy/system-proxy-fetch.ts"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"79f7e9b654341468b1a255cf400e267f4d72088e0ce096208902bd1edbde4a8b"}},{"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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":5778}}}],"partialFingerprints":{"codehealthFindingId/v1":"360c9172f39b351b24bf8511a95695e1ccd4d4182743c0c40208abce6eee3caa"}},{"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":"packages/electron/src/main/claude-design-window.ts"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf35ff7365b16c9238cba98cf40c23702d2fea93b7eeff66bf42130d3f0fd60a"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060mkdtempSync\u0060 in \u0060runScenario\u0060 blocks the event loop until it finishes \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":"packages/core/benchmark/request-log-runtime.bench.mjs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5184af402ff7dfef872d9cc1b40ab65ae61d5674e83d5427ffe9d3eb1426d9a"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060rmSync\u0060 in \u0060runScenario\u0060 blocks the event loop until it finishes \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":"packages/core/benchmark/request-log-runtime.bench.mjs"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d55eb5bd30ce81404329cc08d81509e2eff9c3a51e0a0a44850e8479981e049"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060mkdtempSync\u0060 in \u0060runWebScenario\u0060 blocks the event loop until it finishes \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":"packages/core/benchmark/request-log-runtime.bench.mjs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"f167d0127110d04ba82b0b688fae6200242d47c75a2931fa774461518f28ffd4"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060rmSync\u0060 in \u0060runWebScenario\u0060 blocks the event loop until it finishes \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":"packages/core/benchmark/request-log-runtime.bench.mjs"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"200894879b3688c3ad382ccb4c848409a151777e77e1e7408f6d16257fc8a80e"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060mkdirSync\u0060 in \u0060startBotGatewayQrLogin\u0060 blocks the event loop until it finishes \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":"packages/core/src/agents/bot-gateway/qr-login-service.ts"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ec17543e5afd1876a5562fb5e9b9aa181f69a4259c72b431d403aa6db5ea2a5"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060mkdirSync\u0060 in \u0060launchClaudeAppProfile\u0060 blocks the event loop until it finishes \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":"packages/core/src/agents/claude-app/launch.ts"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"57918d6b86c6529fbbce9cfbef075a3a675a17f42a0de748ae73c7160b608795"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060launchCodexCompatibleAppProfile\u0060 blocks the event loop until it finishes \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":"packages/core/src/agents/codex/app-launch.ts"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"2df54de065751ac3875c0977197402acd0e759adb0b67df11673cac0314dc5d2"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060appendFileSync\u0060 in \u0060prepareCodexAppNetResponder\u0060 blocks the event loop until it finishes \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":"packages/core/src/agents/codex/app-launch.ts"},"region":{"startLine":1014}}}],"partialFingerprints":{"codehealthFindingId/v1":"166d21bed3333392a5c76b688e4261b3f38de03a5762023a9fe8865ddad9e48b"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060readFileSync\u0060 in \u0060waitForCodexDevToolsPort\u0060 blocks the event loop until it finishes \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":"packages/core/src/agents/codex/media-preview-bridge.ts"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a0a7a643e3fb91509e30062dd49e77cc2d58c1e2724ce0efbd078fbd8868793"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060mkdirSync\u0060 in \u0060open\u0060 blocks the event loop until it finishes \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":"packages/core/src/config/config-repository.ts"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"43ece1c28c02fdd7708e26f5f64568d40b43cbfdb553819c1bbe0df8f2b0f2e7"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060loadOnboardingFinished\u0060 blocks the event loop until it finishes \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":"packages/core/src/config/onboarding-state.ts"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"636794828454a173bdf95fdd46a5f984d42fb0a64d92c7badb6083b9cdc0489c"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060readManagedCoreGatewayMarker\u0060 blocks the event loop until it finishes \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":"packages/core/src/gateway/core-runtime/supervisor.ts"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"77521d2ca4e8d982dbfef38546ff3ecc3d61cc63742fe9173eb53ed8b1a693c6"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060readFileSync\u0060 in \u0060readManagedCoreGatewayMarker\u0060 blocks the event loop until it finishes \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":"packages/core/src/gateway/core-runtime/supervisor.ts"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"153bbad048a5daa1145aca3a48af1b0f0e5496ad48fe672267654f34dcb709cb"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060rmSync\u0060 in \u0060removeManagedCoreGatewayMarker\u0060 blocks the event loop until it finishes \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":"packages/core/src/gateway/core-runtime/supervisor.ts"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c66dec9aedfe880146a00f3ee61bcf7ed0ab9949e93ccd6b6944565f9b24925"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060openSync\u0060 in \u0060download\u0060 blocks the event loop until it finishes \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":"packages/core/src/media/executors.ts"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"73c7d4854991b2298fe6ef620b5b70d1bcaf3df4ed2660ae06adc38d63119f1b"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060writeSync\u0060 in \u0060download\u0060 blocks the event loop until it finishes \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":"packages/core/src/media/executors.ts"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"e71212c8c25305365267423e94dcdf047051aff1e9c8284c6a5f7a070ff36a42"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060closeSync\u0060 in \u0060download\u0060 blocks the event loop until it finishes \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":"packages/core/src/media/executors.ts"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"645f6c7ec25c1febbf39033795c900f47a36c31e588610740775ca538e050b7b"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060rmSync\u0060 in \u0060download\u0060 blocks the event loop until it finishes \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":"packages/core/src/media/executors.ts"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"f53696d417f095c9a50a254f25e8cdc12a14a1f68fa85f7d0893a9ddc797850a"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060closeSync\u0060 in \u0060download\u0060 blocks the event loop until it finishes \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":"packages/core/src/media/executors.ts"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"01f35b3c35b62fd08f4f453084b51d0927c97adff29135947eac5cf13b6288c4"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060rmSync\u0060 in \u0060importResult\u0060 blocks the event loop until it finishes \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":"packages/core/src/media/service.ts"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"333cae454aa0184bb30c4a3741b98d6ee23d0f97b1da881d4ac3d31e09a63ee0"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060getBodyChunk\u0060 blocks the event loop until it finishes \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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":1202}}}],"partialFingerprints":{"codehealthFindingId/v1":"97f2a0f16b1721561df2872fad25c8c1932e0e7acda638b187dab65469631dbf"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060mkdirSync\u0060 in \u0060open\u0060 blocks the event loop until it finishes \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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":1400}}}],"partialFingerprints":{"codehealthFindingId/v1":"f84a8e5488f1f7e059254582c0e134e09bde3085162da47b64d0eeb4f50727c4"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060mkdirSync\u0060 in \u0060openSqliteStore\u0060 blocks the event loop until it finishes \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":"packages/core/src/plugins/backend-service.ts"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"71875b3f1f70bd26adf3d5f1a10ee6f37327e3eabcf565b97ec5b880cc9b7769"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060mkdirSync\u0060 in \u0060openSqliteStore\u0060 blocks the event loop until it finishes \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":"packages/core/src/plugins/backend-service.ts"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aa9d779b717cce3b293cb4792b594fcc2e10efcb78b6afb32c879c7267c6cf3"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060writeFileSync\u0060 in \u0060fetchPluginMarketplace\u0060 blocks the event loop until it finishes \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":"packages/core/src/plugins/marketplace.ts"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"683d936990f62fb48a149913967e75e494b99fae3c99b6de579350c48c6723c7"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060readCachedMarketplace\u0060 blocks the event loop until it finishes \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":"packages/core/src/plugins/marketplace.ts"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"3acede7685e907e1a484024156800e33645dc06dd86aeda046ee1dcdeee993d3"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060readFileSync\u0060 in \u0060readCachedMarketplace\u0060 blocks the event loop until it finishes \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":"packages/core/src/plugins/marketplace.ts"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"15e23e6107f722086b637cf3a01da9af33990f5413b89a63094d6953d08391e9"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060cachedMarketplaceModulePath\u0060 blocks the event loop until it finishes \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":"packages/core/src/plugins/marketplace.ts"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b220f371da6b8e9b5531c197a9dcacae007f8d35116e416cd3567909943fb37"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060readFileSync\u0060 in \u0060cachedMarketplaceModulePath\u0060 blocks the event loop until it finishes \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":"packages/core/src/plugins/marketplace.ts"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bf18463d64f56dc022e4d2011c3869fddb901785b310bcd8a7c380809e2d2ec"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060writeFileSync\u0060 in \u0060cachedMarketplaceModulePath\u0060 blocks the event loop until it finishes \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":"packages/core/src/plugins/marketplace.ts"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e98acb84976eab976b330405df86802519268e474f844e6a13fe4e76375dafe"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060openProfileFromCcr\u0060 blocks the event loop until it finishes \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":"packages/core/src/profiles/launch-service.ts"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"67ed74a0a0ff337ad31bbd54fc014b5c583dc9c1a240eecb3563c1cf1c43d71c"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060mkdirSync\u0060 in \u0060downloadProviderIconCandidate\u0060 blocks the event loop until it finishes \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":"packages/core/src/providers/icons.ts"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"194a9baa64a2da80994fa06dbd2c3c5130acb2a6d9a5941705991bf3f04bd4e8"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060writeFileSync\u0060 in \u0060downloadProviderIconCandidate\u0060 blocks the event loop until it finishes \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":"packages/core/src/providers/icons.ts"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddf6dfa68a0ced84ac7195ee6c280c99f110ff18ed76168d433229971845d8d8"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060writeFileSync\u0060 in \u0060openMacosTerminalCertificateInstaller\u0060 blocks the event loop until it finishes \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":"packages/core/src/proxy/service.ts"},"region":{"startLine":1584}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e4c1d4b31d8cb40ca75e39018101d36a198fc37b79505fed751b6d4797dc1e2"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060chmodSync\u0060 in \u0060openMacosTerminalCertificateInstaller\u0060 blocks the event loop until it finishes \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":"packages/core/src/proxy/service.ts"},"region":{"startLine":1585}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ea875601189a2800736831d9163008a93ac7e55671c0d0d8c5fa3d494b3b456"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060mkdirSync\u0060 in \u0060open\u0060 blocks the event loop until it finishes \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":"packages/core/src/usage/store.ts"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"78e797c21f07249172a0b9f15f6f78c0e6d95fc35024cf28d1b7c813a235135a"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060mkdirSync\u0060 in \u0060exportAppData\u0060 blocks the event loop until it finishes \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":"packages/core/src/web/management-server.ts"},"region":{"startLine":809}}}],"partialFingerprints":{"codehealthFindingId/v1":"420ac0bb28c7b50d63567d86480fdf19aaa1698ddf530fb94f4036f70214d493"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060writeFileSync\u0060 in \u0060exportAppData\u0060 blocks the event loop until it finishes \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":"packages/core/src/web/management-server.ts"},"region":{"startLine":828}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbcfee5efbda0739ef1e2a5f69444808a291fea12ccf79cc24aee83a4b85df98"}},{"ruleId":"R1","level":"warning","message":{"text":"Type Safety: 338 typed \u00B7 159 plain JS \u2014 the untyped files are cdn/public/ccr-provider-buttons.js, extension/chrome/background.js, extension/chrome/confirm.js, extension/chrome/popup.js, packages/cli/test/integration/cli-help.test.mjs, packages/core/test/architecture/gateway-service-architecture.test.mjs (\u002B153 more)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d00ee7953f55325a823d27e5db9657c80ca9b9861c0c0abf8fe487cd3fa586d3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 16 sibling directories (168 clone groups): 168 duplicated blocks under packages/core/src/ have copies in at least two of the sibling directories agents, config, contracts, gateway, mcp, media (\u002B10 more sibling(s) not listed) \u2014 116 of them are reported below, and 52 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 168 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 168 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 168 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":"packages/core/src/gateway/features/hosted-web-search/discovery.ts"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"65f426ae73458ca1075483c9cbdd95f0fcd2e874a09e8ef4558f4658b415a43d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 4 sibling directories (150 clone groups): 150 duplicated blocks under packages/ have copies in at least two of the sibling directories cli, core, electron, ui \u2014 113 of them are reported below, and 37 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 150 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 150 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 150 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":"packages/core/src/web/management-server.ts"},"region":{"startLine":936}}}],"partialFingerprints":{"codehealthFindingId/v1":"88618a84540f3fe5c309662f185e2813c92debb5a3d68e5461b19bab63cb9b54"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 3 sibling directories (29 clone groups): 29 duplicated blocks under packages/ui/src/pages/ have copies in at least two of the sibling directories browser, home, tray \u2014 22 of them are reported below, and 7 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 29 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 29 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 29 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":"packages/ui/src/pages/home/shared/common.ts"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"a066e67295d25acb1b95b9e4dc956bcf5ba1e7add40d294029ac6186ae04c767"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 8 sibling directories (12 clone groups): 12 of the duplicated blocks reported below have copies in at least two of the sibling directories claude-app, claude-code, codex, kilo, local-providers, opencode (\u002B2 more sibling(s) not listed) under packages/core/src/agents/. That concentration is one structural fact, not 12 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 12 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":"packages/core/src/agents/kilo/profile-config.ts"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"51fa58c0958811086d00679074af60339d1a01d5e3569c8dbd605d1fc504ce81"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 2 sibling directories (10 clone groups): 10 duplicated blocks under the repository root have copies in at least two of the sibling directories packages, scripts \u2014 4 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 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":4243}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d6bcb6ada48bc3a0620f39624c9ac57f6c94d92dcdd5885c7e038d207c1cd3f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 7 sibling directories (8 clone groups): 8 of the duplicated blocks reported below have copies in at least two of the sibling directories auth, context-archive, core-runtime, features, http, request (\u002B1 more sibling(s) not listed) under packages/core/src/gateway/. 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":"packages/core/src/gateway/request/pipeline.ts"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8e0dfc5f39e9270376331a9cd2d5d9a3e10e670ef2710c4a140e9075be5e97b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 2 sibling directories (7 clone groups): 7 duplicated blocks under packages/ui/src/pages/home/ have copies in at least two of the sibling directories components, shared \u2014 2 of them are reported below, and 5 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 7 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 7 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 7 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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":2228}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e2957655df5bb614c9c39c85075fd955ffba5dd3901454955ed2de648ab0a1b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (229 lines \u00D7 2 locations): packages/core/src/web/management-server.ts:936 \u00B7 packages/electron/src/main/ipc.ts:1147 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/web/management-server.ts"},"region":{"startLine":936}}}],"partialFingerprints":{"codehealthFindingId/v1":"91e969aeee99d6713fac64da6fe031779aaaa43973ac39f91317fe1d7170dd73"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (201 matched lines \u00D7 2 locations): extension/chrome/background.js:18 \u00B7 extension/chrome/popup.js:34 \u2014 the two spans are one implementation copied and then locally edited \u2014 1322 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":"extension/chrome/background.js"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"b227607f9a1d74282a0d66dde9af117ddc79684d6103648e173f15a5d7486426"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (161 matched lines \u00D7 2 locations): packages/core/src/config/config.ts:1878 \u00B7 packages/ui/src/pages/home/shared/routing.ts:58 \u2014 the two spans are one implementation copied and then locally edited \u2014 1165 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":"packages/core/src/config/config.ts"},"region":{"startLine":1878}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ead3747e02da5eac11f2eb47339c2bedd58dd57b50ed74a7183766b34a70d68"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (140 matched lines \u00D7 2 locations): packages/core/src/gateway/features/codex-multi-agent-bridge.ts:16 \u00B7 packages/core/src/gateway/features/codex-patch-bridge.ts:18 \u2014 the two spans are one implementation copied and then locally edited \u2014 899 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":"packages/core/src/gateway/features/codex-multi-agent-bridge.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9fb7f5544ddd04a4c2cafab86c5744b99fd553507d3e785377df9e74cb99813"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (138 matched lines \u00D7 2 locations): packages/core/src/agents/kilo/profile-config.ts:17 \u00B7 packages/core/src/agents/opencode/profile-config.ts:29 \u2014 the two spans are one implementation copied and then locally edited \u2014 1065 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":"packages/core/src/agents/kilo/profile-config.ts"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dd5fb9752014c13f39d33233b5a506cd686a82b9824ca1a8629b0d857910426"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (134 matched lines \u00D7 2 locations): packages/core/src/gateway/features/codex-multi-agent-bridge.ts:242 \u00B7 packages/core/src/gateway/features/codex-patch-bridge.ts:289 \u2014 the two spans are one implementation copied and then locally edited \u2014 954 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":"packages/core/src/gateway/features/codex-multi-agent-bridge.ts"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"03140d6e003be89479445fab571be1230d7d63c6204c92b3e129f91636025c9e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (123 lines \u00D7 2 locations): packages/ui/src/pages/home/shared/common.ts:176 \u00B7 packages/ui/src/pages/tray/shared.tsx:386 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/common.ts"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c1ebdb4997f86f9211c22c6a7d0694400682b01ec9474eb9b6cb374ba0514da"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (120 matched lines \u00D7 2 locations): packages/core/src/agents/claude-app/launch.ts:220 \u00B7 packages/core/src/agents/codex/app-launch.ts:1074 \u2014 the two spans are one implementation copied and then locally edited \u2014 752 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":"packages/core/src/agents/claude-app/launch.ts"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8d6ca7e52b03fd0a4771345f14af065451814f8dbe5c712449039ca4ec7f5aa"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (111 matched lines \u00D7 2 locations): packages/core/src/agents/opencode/profile-config.ts:22 \u00B7 packages/core/src/agents/pi/profile-config.ts:26 \u2014 the two spans are one implementation copied and then locally edited \u2014 748 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":"packages/core/src/agents/opencode/profile-config.ts"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"7143458e572e8a34aba7f70fb428473bfe1615a5d3739207fbc56074495bc9ce"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (96 matched lines \u00D7 2 locations): packages/ui/src/pages/home/components/profiles.tsx:554 \u00B7 packages/ui/src/pages/home/components/virtual-models.tsx:1042 \u2014 the two spans are one implementation copied and then locally edited \u2014 638 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":"packages/ui/src/pages/home/components/profiles.tsx"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"1893fcf729d94a404c03ab6b9c9e608deb776322c2fa13873a9400f331092d85"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (88 matched lines \u00D7 2 locations): packages/ui/src/pages/home/shared/provider-accounts.ts:9 \u00B7 packages/ui/src/pages/tray/shared.tsx:772 \u2014 the two spans are one implementation copied and then locally edited \u2014 677 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":"packages/ui/src/pages/home/shared/provider-accounts.ts"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"e607657dd9b167039301de1b7b70cd137aa6da71b45b5b98be4d8f8a71960351"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (79 matched lines \u00D7 2 locations): packages/core/src/gateway/features/hosted-web-search/discovery.ts:568 \u00B7 packages/core/src/mcp/fusion-vision-mcp.ts:713 \u2014 the two spans are one implementation copied and then locally edited \u2014 954 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":"packages/core/src/gateway/features/hosted-web-search/discovery.ts"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"24457624582706ca1ddb91c35f14101af61755b4fec6d19f48304bcc7a49db6b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (76 lines \u00D7 2 locations): packages/core/src/observability/request-log-store.ts:6344 \u00B7 packages/core/src/usage/store.ts:1136 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":6344}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b4d3dbde570670a09921a9a820eb481a44ef64c87edba70ab77db71b89c9cc7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (70 matched lines \u00D7 2 locations): packages/ui/src/pages/tray/TrayApp.tsx:25 \u00B7 packages/ui/src/pages/tray/TrayDetailApp.tsx:16 \u2014 the two spans are one implementation copied and then locally edited \u2014 527 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":"packages/ui/src/pages/tray/TrayApp.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"113e846a39e031ba7c2566794fb0877a79a2aafbaa7121f1c9ce4637a34aac85"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (66 lines \u00D7 2 locations): packages/core/src/agents/bot-gateway/env.ts:204 \u00B7 packages/core/src/config/config.ts:173 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/bot-gateway/env.ts"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a5d266e24be9d8ecac1d00f23df3b9d87f5093d6817cea94318da174831cc18"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (66 matched lines \u00D7 2 locations): packages/ui/src/pages/home/components/settings.tsx:865 \u00B7 packages/ui/src/pages/home/components/virtual-models.tsx:729 \u2014 the two spans are one implementation copied and then locally edited \u2014 582 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":"packages/ui/src/pages/home/components/settings.tsx"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"f08d6646fdee48ebab43ecae5c8cef674929858126716d3d25b0cdf4e63b9acd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (65 matched lines \u00D7 2 locations): packages/core/src/contracts/i18n.ts:79 \u00B7 packages/core/src/contracts/i18n.ts:223 \u2014 the two spans are one implementation copied and then locally edited \u2014 259 tokens are still identical, in the same order in both spans, 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":"packages/core/src/contracts/i18n.ts"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a1c427627b1daae4f3173925f5b0358c89bd37f68a086ac7f058d0e12153105"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (61 matched lines \u00D7 2 locations): packages/core/src/config/config.ts:1107 \u00B7 packages/ui/src/pages/home/shared/common.ts:361 \u2014 the two spans are one implementation copied and then locally edited \u2014 420 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":"packages/core/src/config/config.ts"},"region":{"startLine":1107}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfa983b529f6fcda833593f2d1fc93241cbf35021fc188c289af35952648412d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (60 lines \u00D7 2 locations): packages/core/src/config/config.ts:3168 \u00B7 packages/core/src/plugins/marketplace.ts:404 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":3168}}}],"partialFingerprints":{"codehealthFindingId/v1":"045217d7bfa344ecc6818d5a8c658d813bf3a0726429eb43d100e01a192baf3a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (58 lines \u00D7 2 locations): packages/core/src/plugins/marketplace.ts:528 \u00B7 packages/ui/src/pages/home/shared/extensions.ts:185 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/plugins/marketplace.ts"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2f8d0fde3576f43a6d3917bcfe72aec4972cdacdce7aa7653f2e91943ba7cd9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (57 lines \u00D7 2 locations): packages/ui/src/pages/home/components/dashboard.tsx:2228 \u00B7 packages/ui/src/pages/home/shared/common.ts:449 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":2228}}}],"partialFingerprints":{"codehealthFindingId/v1":"bad6d489bfd5d6d349046c0690c7b5e2a6a504062101b2ce5d8a8fc0ee772c1a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (56 lines \u00D7 2 locations): packages/core/src/gateway/features/hosted-web-search/response-transform.ts:74 \u00B7 packages/core/src/gateway/features/hosted-web-search/response-transform.ts:278 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/features/hosted-web-search/response-transform.ts"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba02f50f3097a54dbf000428e9d7c00dc7188f465a706bbe1330b2b78b8e9b84"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (55 matched lines \u00D7 2 locations): packages/core/src/config/config.ts:172 \u00B7 packages/ui/src/pages/home/shared/profiles.ts:1104 \u2014 the two spans are one implementation copied and then locally edited \u2014 395 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":"packages/core/src/config/config.ts"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf8589302ff4e284cff2d37bf2d7960c797ce8a2c09fb69e276cd7d76418d385"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (55 lines \u00D7 2 locations): packages/core/src/contracts/deep-link.ts:123 \u00B7 packages/core/src/contracts/deep-link.ts:198 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/contracts/deep-link.ts"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"89f301bbbccf4061f37b49cb41c5b7fa80ea1e3d9b4273d066dd0cf08160ff7a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (55 matched lines \u00D7 2 locations): packages/core/src/observability/request-log-store.ts:6070 \u00B7 packages/core/src/usage/store.ts:1074 \u2014 the two spans are one implementation copied and then locally edited \u2014 357 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":6070}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffe36ac42427a58b120b83100bd88fe219857c36820ff72bbe78c73845309eb1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (55 matched lines \u00D7 2 locations): packages/ui/src/pages/home/components/api-keys.tsx:269 \u00B7 packages/ui/src/pages/home/components/extensions.tsx:212 \u2014 the two spans are one implementation copied and then locally edited \u2014 351 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":"packages/ui/src/pages/home/components/api-keys.tsx"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"f02678f1593ab89da9bafcb6e258e3c28725f1ed4a06ecfa9220ccdca3819186"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (54 matched lines \u00D7 2 locations): packages/ui/src/pages/home/shared/provider-accounts.ts:150 \u00B7 packages/ui/src/pages/tray/shared.tsx:868 \u2014 the two spans are one implementation copied and then locally edited \u2014 401 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":"packages/ui/src/pages/home/shared/provider-accounts.ts"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"330b85e627c56e09ff035f3efb55ab833878aa491f55fd4f11e5d122ccf69e2e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (50 matched lines \u00D7 2 locations): packages/ui/src/pages/home/shared/logs.ts:1036 \u00B7 packages/ui/src/pages/home/shared/logs.ts:1216 \u2014 the two spans are one implementation copied and then locally edited \u2014 311 tokens are still identical, in the same order in both spans, 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":"packages/ui/src/pages/home/shared/logs.ts"},"region":{"startLine":1036}}}],"partialFingerprints":{"codehealthFindingId/v1":"a525271ba0293a4b33f3b1a03370995b6dfec0f79c698cbe407d340be07cc0f5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (48 lines \u00D7 2 locations): packages/core/src/web/management-server.ts:1206 \u00B7 packages/electron/src/main/ipc.ts:1084 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/web/management-server.ts"},"region":{"startLine":1206}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbe5024b945a8cb77fcd7e7bafc94f845dca6fa8b8afd39b1b1f5b5e3ce794fc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (48 lines \u00D7 2 locations): packages/core/src/web/management-server.ts:1327 \u00B7 packages/electron/src/main/ipc.ts:1480 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/web/management-server.ts"},"region":{"startLine":1327}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4f2c599b6a1e5b50b65cec48f5b616ecdbfca8503cb2ffe4488b0b841a8fec2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (45 lines \u00D7 2 locations): packages/core/src/web/management-server.ts:1276 \u00B7 packages/electron/src/main/ipc.ts:1424 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/web/management-server.ts"},"region":{"startLine":1276}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf7cc74972f4d5ef09987d1dc4b032c0edd9b9defa567c8f2c929e47b4c73384"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 2 locations): packages/core/src/providers/account-service.ts:2017 \u00B7 packages/electron/src/main/provider-account-webcontent.ts:238 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/providers/account-service.ts"},"region":{"startLine":2017}}}],"partialFingerprints":{"codehealthFindingId/v1":"484d311212f156ef78de1b52e689770a06cf7f5543e82e15ecc979d970043589"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (43 matched lines \u00D7 2 locations): packages/core/src/mcp/network-capture-mcp.ts:363 \u00B7 packages/electron/src/main/electron-web-search-mcp.ts:1239 \u2014 the two spans are one implementation copied and then locally edited \u2014 329 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":"packages/core/src/mcp/network-capture-mcp.ts"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e66a56a7c81126a1fc365e525d1bf81d37fd39eb21a261a0dce2ae28de38709"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2 locations): packages/ui/src/pages/home/App.tsx:2335 \u00B7 packages/ui/src/pages/home/App.tsx:2386 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/App.tsx"},"region":{"startLine":2335}}}],"partialFingerprints":{"codehealthFindingId/v1":"9063cdfe4c00f8c8e752484e361236022274dae40572c107d07cad75e5974182"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2 locations): packages/ui/src/pages/home/components/dashboard.tsx:1748 \u00B7 packages/ui/src/pages/home/components/dashboard.tsx:1832 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":1748}}}],"partialFingerprints":{"codehealthFindingId/v1":"f474bd417dcb556710935a498593443d4b97c09ba15e172344c48a44bf3664b2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2 locations): packages/core/src/providers/presets/zai-global-coding/index.ts:4 \u00B7 packages/core/src/providers/presets/zai-global-general/index.ts:4 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/providers/presets/zai-global-coding/index.ts"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"5de78001dfc209e8892205611e4372638ebb0afa47a9f6f850a060d8384ae551"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2 locations): packages/core/src/providers/presets/zhipu-cn-coding/index.ts:4 \u00B7 packages/core/src/providers/presets/zhipu-cn-general/index.ts:4 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/providers/presets/zhipu-cn-coding/index.ts"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"b00627e63847a970c7ee9e9a5e7e185fc19ddd95af16da268c1ea676f290ed8c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2 locations): packages/electron/src/main/browser-automation-mcp.ts:715 \u00B7 packages/electron/src/main/electron-web-search-mcp.ts:270 \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":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dabef93d5bbe3e26f5777052abb60c89863d45f76f3594e6a3b913f9ce41e43"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2 locations): packages/ui/src/pages/home/components/settings.tsx:3333 \u00B7 packages/ui/src/pages/tray/components/widgets.tsx:575 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/settings.tsx"},"region":{"startLine":3333}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3c9bde606b11a46d47603490ede413fa44b09197b952b8f98a09bc912441f92"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (39 matched lines \u00D7 2 locations): packages/core/src/agents/opencode/app-launch.ts:215 \u00B7 packages/core/src/profiles/launch-service.ts:1101 \u2014 the two spans are one implementation copied and then locally edited \u2014 210 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":"packages/core/src/agents/opencode/app-launch.ts"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"58d761866f8cd5dab04a11003bd0dac9814bddc8dfc7d8f2ad1f1cab0b528507"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2 locations): packages/core/src/mcp/fusion-tool-fallback-mcp.ts:54 \u00B7 packages/core/src/mcp/fusion-vision-mcp.ts:146 \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":"packages/core/src/mcp/fusion-tool-fallback-mcp.ts"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"113ee40ef042ac883a17ee5b7638d14076d5fe39a9c498f78ef0175fa6148056"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (37 matched lines \u00D7 2 locations): packages/core/src/contracts/app.ts:2241 \u00B7 packages/core/src/observability/request-log-store.ts:236 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is inside a TYPE DECLARATION, not executable code. There is no function to extract and no call site to call one from, so do not read this as an extract-a-helper row: the collapse a type offers is a generic \u2014 name the shape once, parameterised over the part that varies, and have each copy instantiate it. First check what actually differs between the copies: where they are a MATRIX of cases (one entry per input, differing precisely in the case each one pins), the repetition IS the enumeration and collapsing it would delete cases rather than de-duplicate anything \u2014 leave those alone. Reported because the copies that are not a matrix drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/contracts/app.ts"},"region":{"startLine":2241}}}],"partialFingerprints":{"codehealthFindingId/v1":"feca4a30b82d26fff661bbebea1d77d6e77f345736a089f612933cefbb35cdb7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2 locations): packages/core/src/proxy/service.ts:969 \u00B7 packages/core/src/proxy/service.ts:1050 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/proxy/service.ts"},"region":{"startLine":969}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0f3a5a9f6f0eaa26fe8f6b3365e65fdba959171672ae14825fc85b1910f6b93"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (36 matched lines \u00D7 2 locations): packages/core/src/observability/request-log-store.ts:6435 \u00B7 packages/core/src/usage/store.ts:1216 \u2014 the two spans are one implementation copied and then locally edited \u2014 279 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":6435}}}],"partialFingerprints":{"codehealthFindingId/v1":"108a13127e2ebd4349e83f7c03f43d3aed9214ce3092e7817b29947607b815ed"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2 locations): packages/core/src/profiles/service.ts:757 \u00B7 packages/core/src/profiles/service.ts:794 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/service.ts"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"e056b94d3b14d07800bd661166b18a5824e72466b306ed0b747b226a35933d49"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2 locations): packages/ui/src/pages/home/components/profiles.tsx:357 \u00B7 packages/ui/src/pages/home/components/routing.tsx:335 \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":"packages/ui/src/pages/home/components/profiles.tsx"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"f18ddb0fb9f3b2e57f6e6b84de50e9b9d97e784d41727d76e4e85e9c1e0b9bc7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2 locations): packages/ui/src/pages/home/components/extensions.tsx:24 \u00B7 packages/ui/src/pages/home/components/routing.tsx:37 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/extensions.tsx"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"2537c2a2564906132f0293db57ae3655a984d8049b3cca9642d61c695e074bf9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (34 matched lines \u00D7 2 locations): packages/core/src/observability/request-log-store.ts:6537 \u00B7 packages/core/src/usage/store.ts:1271 \u2014 the two spans are one implementation copied and then locally edited \u2014 313 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":6537}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f1715c69b4b3f1660ee5b21bbc102b2ec1f115e2e75a8a3e42ac45c46f64288"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (33 matched lines \u00D7 2 locations): packages/core/src/agents/local-providers/codex.ts:381 \u00B7 packages/core/src/agents/local-providers/grok.ts:561 \u2014 the two spans are one implementation copied and then locally edited \u2014 183 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":"packages/core/src/agents/local-providers/codex.ts"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"eafd415e3045251904e4dfa2cc19b1a702617262503688b9be8c128b008067fe"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2 locations): packages/core/src/observability/request-log-store.ts:2952 \u00B7 packages/core/src/observability/request-log-store.ts:3286 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":2952}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4c6c23ce4baef0d627a9decf8874b2461968656402717e791417f67e0bb5ff4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2 locations): packages/ui/src/pages/home/components/dashboard.tsx:6443 \u00B7 packages/ui/src/pages/tray/components/widgets.tsx:348 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":6443}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7d0ac812ac75e0384b28d2df29a38fd6552cefedcdd61837fca1fff3fd8f22f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2 locations): packages/ui/src/pages/home/components/network-logs.tsx:2685 \u00B7 packages/ui/src/pages/home/components/network-logs.tsx:2729 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/network-logs.tsx"},"region":{"startLine":2685}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2a4720614510e9aad755e0b04e877f284f46b26422138744f6691f74dd3fb8f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2 locations): packages/core/src/observability/request-log-store.ts:4134 \u00B7 packages/core/src/usage/store.ts:968 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":4134}}}],"partialFingerprints":{"codehealthFindingId/v1":"675421f03644f67a05c7c31bab58839a618a52b04f71de4c530a8e9e6cdca846"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (32 matched lines \u00D7 2 locations): packages/ui/src/pages/home/components/api-keys.tsx:146 \u00B7 packages/ui/src/pages/home/components/api-keys.tsx:286 \u2014 the two spans are one implementation copied and then locally edited \u2014 254 tokens are still identical, in the same order in both spans, 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":"packages/ui/src/pages/home/components/api-keys.tsx"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb9994f0c4010e6a1c2b24c8d2aa9c546e8edadb461cfc07b11570c828934495"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2 locations): packages/core/src/profiles/service.ts:1309 \u00B7 packages/ui/src/pages/home/shared/profiles.ts:501 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/service.ts"},"region":{"startLine":1309}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6704c4119631dceffa45d4f0f01dd4caa13590488dd6b20d720cb8546728422"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (31 matched lines \u00D7 2 locations): packages/core/src/web/management-server.ts:268 \u00B7 packages/electron/src/main/ipc.ts:219 \u2014 the two spans are one implementation copied and then locally edited \u2014 186 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":"packages/core/src/web/management-server.ts"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"9304c040340afa74249fd057d5d55d42eb5bb45d015dfdb6c86e0590bd08ad01"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2 locations): packages/ui/src/pages/home/components/settings.tsx:3301 \u00B7 packages/ui/src/pages/tray/components/widgets.tsx:670 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/settings.tsx"},"region":{"startLine":3301}}}],"partialFingerprints":{"codehealthFindingId/v1":"de366845f65d64790b38fecda88e6cebd2429cb695d1dabce5f664b4bb54bcef"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2 locations): packages/core/src/agents/codex/model-catalog.ts:717 \u00B7 packages/core/src/gateway/features/model-discovery.ts:928 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/codex/model-catalog.ts"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe23cde9a8abbf5ff81e25fd0a88cd4f0e4855cf6a638e086c74331454e3f0a2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2 locations): packages/core/src/mcp/fusion-vision-mcp.ts:1197 \u00B7 packages/core/src/mcp/network-capture-mcp.ts:335 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/mcp/fusion-vision-mcp.ts"},"region":{"startLine":1197}}}],"partialFingerprints":{"codehealthFindingId/v1":"24a63c29bc9fdb3b356144bd498f0d51df2a0e303d41501e1aeb714c51188442"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2 locations): packages/core/src/agents/codex/model-catalog.ts:618 \u00B7 packages/core/src/providers/runtime-topology.ts:388 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/codex/model-catalog.ts"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"89597e788bc5c84480a60448945ba1e24d4f7ecf02cd32202ad46273a4a520e4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2 locations): packages/core/src/gateway/remote-control-service.ts:220 \u00B7 packages/core/src/gateway/remote-control-service.ts:263 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/remote-control-service.ts"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a3f16a0e2e3e44bb3b671a05b1758c7230ef233da3c12cee1ae098e77527002"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2 locations): packages/core/src/mcp/network-capture-mcp.ts:96 \u00B7 packages/electron/src/main/browser-automation-mcp.ts:672 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/mcp/network-capture-mcp.ts"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"43291b7a419e6897abc14903a42aded66c4984b9ec969356eb17b062baa28791"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2 locations): packages/core/src/contracts/deep-link.ts:544 \u00B7 packages/core/src/contracts/deep-link.ts:581 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/contracts/deep-link.ts"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3142364bec4c45923705f61e4b54e6701a7b53614bc88e2e398b47e791fa6c7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2 locations): packages/core/src/mcp/fusion-tool-fallback-mcp.ts:188 \u00B7 packages/electron/src/main/electron-web-search-mcp.ts:1216 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/mcp/fusion-tool-fallback-mcp.ts"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb0dcb849ab4b96b424ec4ec2556ba10fe806bd32ed72c77ca91c1931e94420e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2 locations): packages/core/src/mcp/fusion-vision-mcp.ts:5 \u00B7 packages/electron/src/main/electron-web-search-mcp.ts:12 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/mcp/fusion-vision-mcp.ts"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"21b942e0c7586a280833fdc33d5773ca7cc7fe7882058c2580243d8336214a8a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2 locations): packages/ui/src/pages/home/components/api-keys.tsx:36 \u00B7 packages/ui/src/pages/home/components/providers.tsx:91 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/api-keys.tsx"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"48d5f3c7a8706dd28fda72d54190554feef4ef18fe36617768d427cabc5f2ee7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2 locations): packages/ui/src/pages/home/components/providers.tsx:1018 \u00B7 packages/ui/src/pages/home/components/providers.tsx:4367 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":1018}}}],"partialFingerprints":{"codehealthFindingId/v1":"f649656e8ad5ab047b6bcace9eceb643ecd8584236b69475e53d6916d4f9c5da"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2 locations): packages/cli/src/cli.ts:331 \u00B7 packages/core/src/entrypoints/server.ts:47 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/cli/src/cli.ts"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"21b3392c2d6f3c4fe68531ccf7f0c18993711a0b7be798287e8710037699857f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 3 locations): packages/core/src/mcp/fusion-tool-fallback-mcp.ts:1 \u00B7 packages/core/src/mcp/network-capture-mcp.ts:6 \u00B7 packages/electron/src/main/browser-automation-mcp.ts:16 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/mcp/fusion-tool-fallback-mcp.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"664badc50d7f188b4a4361b89c2bda10becf0e750e9f2132e8c3636cc9113f01"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2 locations): packages/core/src/providers/probe.ts:608 \u00B7 packages/core/src/providers/probe.ts:637 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/providers/probe.ts"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaf4d9f734d5fae6f5d9f27c9ae8a0f089f77cbef806655c83514b7b4f2959e9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2 locations): packages/ui/src/pages/home/components/onboarding.tsx:127 \u00B7 packages/ui/src/pages/home/components/providers.tsx:3536 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/onboarding.tsx"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"b97fa4d9624293ae2b8946e4de80438ff055278149a21a4dd60abf1496cf2848"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2 locations): packages/ui/src/pages/home/components/settings.tsx:3118 \u00B7 packages/ui/src/pages/tray/components/widgets.tsx:47 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/settings.tsx"},"region":{"startLine":3118}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf59e6c668618fabeea243430c3f72b206161f65294bb03dd5099ecb3c0fa35a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (27 matched lines \u00D7 2 locations): packages/ui/src/pages/tray/TrayApp.tsx:221 \u00B7 packages/ui/src/pages/tray/components/usage-detail.tsx:64 \u2014 the two spans are one implementation copied and then locally edited \u2014 358 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":"packages/ui/src/pages/tray/TrayApp.tsx"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"a255b9fb6664fb14be71e1a99808bf6aeef268af072882061918c721c566eacc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (26 matched lines \u00D7 2 locations): packages/core/src/gateway/core-runtime/responses-session-affinity.ts:3 \u00B7 packages/core/src/gateway/core-runtime/responses-tool-strictness.ts:1 \u2014 the two spans are one implementation copied and then locally edited \u2014 131 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":"packages/core/src/gateway/core-runtime/responses-session-affinity.ts"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3445032ef7e5b4cddd7bcc647964fb5069b064962957684223e0f7dfaaa4bb8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2 locations): packages/core/src/gateway/http/io.ts:328 \u00B7 packages/core/src/proxy/service.ts:1464 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/http/io.ts"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"60b4ba1cc3db1dea092245d9a7a2ed170d2c9264487a2f9bd3a10a1f9fd62330"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (26 matched lines \u00D7 2 locations): packages/electron/src/main/ipc.ts:923 \u00B7 packages/electron/src/main/tray-controller.ts:787 \u2014 the two spans are one implementation copied and then locally edited \u2014 219 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":"packages/electron/src/main/ipc.ts"},"region":{"startLine":923}}}],"partialFingerprints":{"codehealthFindingId/v1":"94af141a3266b4503a343ca513491d6390055073d3381c8ddd6f6dd1e6c0e196"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2 locations): packages/ui/src/pages/home/components/extensions.tsx:200 \u00B7 packages/ui/src/pages/home/components/routing.tsx:354 \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":"packages/ui/src/pages/home/components/extensions.tsx"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4ca01afbca08760ca936fa06d71a83b0b8f791635d09f86cacecea471084776"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2 locations): packages/cli/src/cli.ts:366 \u00B7 packages/core/src/entrypoints/server.ts:71 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/cli/src/cli.ts"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"c822c1613bd0b4cf8ecb2ccdff7608f558f93002fc05db5924e1711e7072e1d8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2 locations): packages/core/src/gateway/claude-code-router-plugin.ts:1126 \u00B7 packages/core/src/gateway/claude-code-router-plugin.ts:1170 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/claude-code-router-plugin.ts"},"region":{"startLine":1126}}}],"partialFingerprints":{"codehealthFindingId/v1":"df240ad35b415637a8af72f3bc585bcad740f2720878e268dbbdb0193974147e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2 locations): packages/electron/src/main/browser-automation-mcp.ts:2819 \u00B7 packages/electron/src/main/browser-automation-mcp.ts:2933 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":2819}}}],"partialFingerprints":{"codehealthFindingId/v1":"67f78f6b567731f479ad9070de9cfd6e8ed725f296a1f7a79d283793d3f432d0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2 locations): packages/ui/src/pages/home/App.tsx:608 \u00B7 packages/ui/src/pages/home/App.tsx:657 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/App.tsx"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"b92e2aaa49590141fddf5a2c72243ad761fa1bcd229760b8f51f9808498e0124"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2 locations): packages/ui/src/pages/home/shared/usage.ts:142 \u00B7 packages/ui/src/pages/tray/shared.tsx:736 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/usage.ts"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dd70856c40c30e98d9845397a93659f0a9f177d985b83b856397a0da7f038c1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2 locations): packages/cli/src/cli.ts:1047 \u00B7 packages/core/src/profiles/launch-service.ts:1261 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/cli/src/cli.ts"},"region":{"startLine":1047}}}],"partialFingerprints":{"codehealthFindingId/v1":"006a494fa527f3d8c15ecfc7987b5ecc6b1a5bab8d105644efcf7537ce2e58cd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (24 matched lines \u00D7 2 locations): packages/core/src/config/config.ts:3490 \u00B7 packages/core/src/config/config.ts:3534 \u2014 the two spans are one implementation copied and then locally edited \u2014 173 tokens are still identical, in the same order in both spans, 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":"packages/core/src/config/config.ts"},"region":{"startLine":3490}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba28656ad20044bcf63e63d98421f16e64de9034a8f9f4563d20ab8678a8a6ae"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (24 matched lines \u00D7 2 locations): packages/core/src/config/config.ts:4061 \u00B7 packages/ui/src/pages/home/shared/api-keys.ts:42 \u2014 the two spans are one implementation copied and then locally edited \u2014 156 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":"packages/core/src/config/config.ts"},"region":{"startLine":4061}}}],"partialFingerprints":{"codehealthFindingId/v1":"930599d3481eee90c5056b37b40416755d1711cd0fafa881a3b73c0d8d1c4354"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2 locations): packages/core/src/mcp/grok-media-mcp.ts:32 \u00B7 packages/core/src/mcp/network-capture-mcp.ts:86 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/mcp/grok-media-mcp.ts"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"f25192db20daa613c0acbdd2a9d0f2dc5269b2c8d0747d32c9b617be4ff1b05b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2 locations): packages/ui/src/pages/home/components/providers.tsx:694 \u00B7 packages/ui/src/pages/home/components/routing.tsx:307 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"92ae4b6c42d7e83d52ca901a7e9d1a7e3a0fddb93f5d38fd01318e93219ee99a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2 locations): packages/core/src/config/config.ts:1616 \u00B7 packages/core/src/contracts/deep-link.ts:783 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":1616}}}],"partialFingerprints":{"codehealthFindingId/v1":"524a5a1b220ffae8a2faae90a6ce66649a4e90fd3877146e5a41d8b88ef053fc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2 locations): packages/core/src/gateway/claude-code-router-plugin.ts:242 \u00B7 packages/core/src/plugins/service.ts:995 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/claude-code-router-plugin.ts"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"42e1509ccb1636f48651a859c408a53280968559649299977d0b9fb6bf33f3ce"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2 locations): packages/core/src/plugins/service.ts:801 \u00B7 packages/core/src/plugins/service.ts:825 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/plugins/service.ts"},"region":{"startLine":801}}}],"partialFingerprints":{"codehealthFindingId/v1":"57d543d84428da08a906e9688dbea40352b887fcc14f27c1e4e4f8605bc81eaa"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (23 matched lines \u00D7 2 locations): packages/core/src/profiles/launch-service.ts:236 \u00B7 packages/core/src/profiles/launch-service.ts:311 \u2014 the two spans are one implementation copied and then locally edited \u2014 168 tokens are still identical, in the same order in both spans, 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":"packages/core/src/profiles/launch-service.ts"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0dc7bdd22816eed519b1fb08c480f7b5d4acb29716a7192a937f396a611f6e8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2 locations): packages/core/src/config/config.ts:588 \u00B7 packages/core/src/config/config.ts:612 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d67e0f70bd29b01634344daecbd0a56dcb69a5d20dc34077a7e93b12548d4f1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2 locations): packages/core/src/contracts/app.ts:1145 \u00B7 packages/core/src/gateway/features/model-discovery.ts:519 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/contracts/app.ts"},"region":{"startLine":1145}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8ebc605d0e7e520d2ed934a451cd6e3bc327bf214352fd1cc9bce5069bfd070"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2 locations): packages/core/src/gateway/existing-gateway-probe.ts:161 \u00B7 packages/core/src/profiles/launch-service.ts:520 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/existing-gateway-probe.ts"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"14605518c4dea947523d0908abc55e0c03b434e421aaf46c13d6946b245e11d0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2 locations): packages/core/src/gateway/features/hosted-web-search/response-transform.ts:140 \u00B7 packages/core/src/gateway/features/hosted-web-search/response-transform.ts:349 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/features/hosted-web-search/response-transform.ts"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bfe2e9db40cdad7c0b1ccda4d6500cb005ba2c33ef2af8863361723558f79a7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2 locations): packages/core/src/media/tools.ts:204 \u00B7 packages/electron/src/main/electron-web-search-mcp.ts:1276 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/media/tools.ts"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4d6b470f8f0344d47510256245ce7c6a91fc77d1ac86fe390c4c7c27887e951"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2 locations): packages/core/src/providers/account-service.ts:1674 \u00B7 packages/core/src/providers/probe.ts:1344 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/providers/account-service.ts"},"region":{"startLine":1674}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1a0b9f1c064543e3c4ffd21ba75c9ad0065d82fd27d0b6d0005fe5764b13fd6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2 locations): packages/core/src/providers/probe.ts:720 \u00B7 packages/core/src/providers/probe.ts:777 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/providers/probe.ts"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d66a89e99f2d1daa87b39b7424b2e730f53f294ec3268a92df46d974db4905a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2 locations): packages/core/src/proxy/service.ts:182 \u00B7 packages/core/src/proxy/service.ts:226 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/proxy/service.ts"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad7f97949ce179bdbf2d631d1ca3e36bf8dddb58743cfa928a9b71df18456752"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2 locations): packages/electron/bundled-plugins/claude-design/index.cjs:14542 \u00B7 packages/electron/bundled-plugins/claude-design/index.cjs:14587 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":14542}}}],"partialFingerprints":{"codehealthFindingId/v1":"847b7557e77ec3fe3d8e04db0fc680ba258aa948f61d71b9d2b65880eeddf0de"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2 locations): packages/ui/src/pages/home/components/dashboard.tsx:1687 \u00B7 packages/ui/src/pages/tray/components/widgets.tsx:325 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":1687}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc4762213f3ef35c09f80bcc1ad64f68f40aa67838cc9cb99238ae5ea9c29775"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2 locations): packages/core/src/providers/account-service.ts:2092 \u00B7 packages/core/src/providers/account-webcontent.ts:46 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/providers/account-service.ts"},"region":{"startLine":2092}}}],"partialFingerprints":{"codehealthFindingId/v1":"37b820f5e0ea9f4f81c25636b5e9d4c9d3c5f00e0bac09ee00a3a53ced5c9b25"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2 locations): packages/ui/src/pages/home/App.tsx:581 \u00B7 packages/ui/src/pages/home/App.tsx:635 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/App.tsx"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f84602a329c03037270e682ab67fecbbf20c01476aefd5d8f8369d6e6a24d59"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2 locations): packages/ui/src/pages/home/App.tsx:1433 \u00B7 packages/ui/src/pages/home/App.tsx:1512 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/App.tsx"},"region":{"startLine":1433}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fb3de0e75d769a95013fede6ad86d09fabe16fe2b4ecd4ed33b9aab8b4d1e9b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2 locations): packages/ui/src/pages/home/components/providers.tsx:1116 \u00B7 packages/ui/src/pages/home/components/providers.tsx:4458 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":1116}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b041d07c2c3d54e5c6744cda25311c13948b979ac56e371140bff28de7a530c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (20 matched lines \u00D7 2 locations): packages/core/src/agents/local-providers/kimi.ts:521 \u00B7 packages/core/src/agents/local-providers/kimi.ts:577 \u2014 the two spans are one implementation copied and then locally edited \u2014 94 tokens are still identical, in the same order in both spans, 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":"packages/core/src/agents/local-providers/kimi.ts"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2ef1889c0b994b6134ad28c57a6c1ebbc0a67f1cb8409c0f418fae27833b704"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): packages/core/src/platform/windows-app-discovery.ts:88 \u00B7 packages/core/src/platform/windows-app-discovery.ts:238 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/platform/windows-app-discovery.ts"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"99a3be49ab4a8d81ef71b29d30fad4c33c08701afd6cdf2b476ac6e517801ebc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3 locations): packages/core/src/plugins/marketplace.ts:456 \u00B7 packages/core/src/web/management-server.ts:1055 \u00B7 packages/electron/src/main/ipc.ts:1266 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/plugins/marketplace.ts"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"33072d3f74d194e39dbca37344448af6e807f6f41397488886a2c2adadf30bab"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): packages/core/src/profiles/launch-core.ts:135 \u00B7 packages/core/src/profiles/launch-core.ts:156 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/launch-core.ts"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b226856abcfe01bf4d4cf2a7b7159af5565c3dfc4af108e2f271ab71590641e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): packages/core/src/profiles/launch-service.ts:1349 \u00B7 packages/core/src/profiles/launch-service.ts:1422 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/launch-service.ts"},"region":{"startLine":1349}}}],"partialFingerprints":{"codehealthFindingId/v1":"af7fe3f5caf28a0b4f53a24c84262b1add856db5a4174561b0a8988b0010172c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): packages/core/src/profiles/launch-service.ts:2005 \u00B7 packages/core/src/profiles/launch-service.ts:2039 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/launch-service.ts"},"region":{"startLine":2005}}}],"partialFingerprints":{"codehealthFindingId/v1":"d177a2436c2c8fdc87af7df3f74e4642599e81d78a98a954f1aac06d016b4f3a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): packages/core/src/profiles/service.ts:2684 \u00B7 packages/core/src/profiles/service.ts:2831 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/service.ts"},"region":{"startLine":2684}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a8982225e237135d7831e989cf9f8da2c61d3191eabebc5ade3be3d40e8beff"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): packages/electron/src/main/tray-controller.ts:673 \u00B7 packages/ui/src/pages/home/components/settings.tsx:3424 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/src/main/tray-controller.ts"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8caa41a202cc9f3839c697aae332dc8a0481b8e3b84e83ebbf0a72edb35acce"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): packages/electron/src/main/windows.ts:527 \u00B7 packages/electron/src/main/windows.ts:555 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/src/main/windows.ts"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"c37c401b5f07e3b22cc297e3d524e35933a0facec83741195b9ea6209bd0d4dc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): packages/ui/src/pages/home/components/network-logs.tsx:87 \u00B7 packages/ui/src/pages/home/components/network-logs.tsx:117 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/network-logs.tsx"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"20f87b40e96dfda4ce7e23a577dfbeadf0f0915d147183ae77d55459ad0ff1d7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): packages/ui/src/pages/home/components/settings.tsx:3277 \u00B7 packages/ui/src/pages/tray/components/widgets.tsx:644 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/settings.tsx"},"region":{"startLine":3277}}}],"partialFingerprints":{"codehealthFindingId/v1":"eab18d02cf5d4ffc693f38acdad18ea76ff213c55c40047b3b025a494386837d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): packages/ui/src/pages/home/shared/virtual-models.ts:238 \u00B7 packages/ui/src/pages/home/shared/virtual-models.ts:296 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/virtual-models.ts"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"414593957b0f819791689115a502326002ccebe76f34f2a14fc5d232cfd857db"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): packages/core/src/gateway/core-runtime/router-plugin.ts:608 \u00B7 packages/core/src/gateway/core-runtime/router-plugin.ts:657 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/core-runtime/router-plugin.ts"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3384c65b96fe1c1d62a2e01ae2f8670e56dc6f7ce1e57582ceedbdf5319b4fc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): packages/core/src/gateway/request/pipeline.ts:453 \u00B7 packages/core/src/gateway/request/pipeline.ts:483 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/request/pipeline.ts"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"9532f5221911b952459b2195ba3b771678144b80766de452ab1e49cf1321f6c3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (19 matched lines \u00D7 2 locations): packages/core/src/mcp/grok-media-config.ts:41 \u00B7 packages/core/src/mcp/toolhub-config.ts:184 \u2014 the two spans are one implementation copied and then locally edited \u2014 200 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":"packages/core/src/mcp/grok-media-config.ts"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"718810277829eed03982625795b45ae7d5b2fb857b518b7004acc281f723fa40"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): packages/core/src/observability/request-log-store.ts:3166 \u00B7 packages/core/src/observability/request-log-store.ts:3347 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":3166}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0cc80eb5e1dd3ceaa6a353b6c214d1975429b084e22edcc92ebf5b36887bde1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3 locations): packages/core/src/profiles/launch-core.ts:171 \u00B7 packages/core/src/profiles/launch-core.ts:191 \u00B7 packages/core/src/profiles/launch-core.ts:211 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/launch-core.ts"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"445ba684815d6ddd7522694b6460d81a582f936cdd84338d8392f4bdf629a29d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): packages/ui/src/pages/home/components/dashboard.tsx:2915 \u00B7 packages/ui/src/pages/home/components/dashboard.tsx:3091 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":2915}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e673fb10ae158c01109ffbdae4e69c1bfe5c6a6fb33a631ef9958d15d4301ee"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (18 matched lines \u00D7 2 locations): packages/core/src/agents/bot-gateway/qr-login-service.ts:478 \u00B7 packages/electron/src/main/electron-web-search-mcp.ts:1190 \u2014 the two spans are one implementation copied and then locally edited \u2014 100 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":"packages/core/src/agents/bot-gateway/qr-login-service.ts"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"335487841380e593cca71fdc13045b6bad5f8371bd2d3fb98678b8defe7ba33c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): packages/core/src/agents/local-providers/grok.ts:879 \u00B7 packages/core/src/providers/account-service.ts:1738 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/local-providers/grok.ts"},"region":{"startLine":879}}}],"partialFingerprints":{"codehealthFindingId/v1":"1689cc1a07e110d027aad41234dd5a45936ceced46685b1d713998df0f51a27c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): packages/core/src/agents/local-providers/shared.ts:209 \u00B7 packages/core/src/agents/local-providers/shared.ts:258 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/local-providers/shared.ts"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"c777c14f3d443c5805e40034fd673063d195fdc026481753ab128ef70e035dbf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): packages/core/src/config/config.ts:1294 \u00B7 packages/ui/src/pages/home/shared/common.ts:176 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":1294}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c2012c0e4cee68882cab4c8296ca02d7f464777158dd5db07c7fcc6aeb97711"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): packages/core/src/config/config.ts:3747 \u00B7 packages/ui/src/pages/home/shared/profiles.ts:412 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":3747}}}],"partialFingerprints":{"codehealthFindingId/v1":"4de9e88aeedaec64807d22db099373ef3e90fe8ae50e4af95c4704c051171595"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): packages/core/src/gateway/existing-gateway-probe.ts:54 \u00B7 packages/core/src/profiles/launch-service.ts:496 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/existing-gateway-probe.ts"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8fc8eb88054c84f314fa5599fbfd9e5cdb5b0bb2f8e1a817fd8b4a16f53ff34"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): packages/core/src/gateway/features/hosted-web-search/discovery.ts:325 \u00B7 packages/core/src/gateway/features/hosted-web-search/discovery.ts:344 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/features/hosted-web-search/discovery.ts"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"370354fbdbc157f2a23078e02e993cc1622b4aaea22779cdc997e56876f8729c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): packages/core/src/mcp/toolhub-mcp.ts:933 \u00B7 packages/core/src/mcp/toolhub-mcp.ts:1123 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/mcp/toolhub-mcp.ts"},"region":{"startLine":933}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9d02dd1c00166da68eb42f36069305611b0261644d85c286d9c5d9770ed7fa2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): packages/core/src/observability/raw-trace-sync.ts:848 \u00B7 packages/core/src/observability/raw-trace-sync.ts:928 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/raw-trace-sync.ts"},"region":{"startLine":848}}}],"partialFingerprints":{"codehealthFindingId/v1":"d49a6ff87aa3d8045a84a645aaf4857fe37053db81069b83f5531ad5cab60ca0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): packages/core/src/observability/request-log-runtime.ts:716 \u00B7 packages/core/src/observability/request-log-runtime.ts:869 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-runtime.ts"},"region":{"startLine":716}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a001076c37257d413a8285b8bc8e52a1d711a9608106f43ae7892e8b1aaed54"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): packages/core/src/observability/request-log-store.ts:3272 \u00B7 packages/core/src/observability/request-log-store.ts:3331 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":3272}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e1bbf75190fbc7af6b8a2a3beeef04dd78105b7ae07238324137f128e908bd2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): packages/core/src/profiles/service.ts:3301 \u00B7 packages/core/src/profiles/service.ts:3324 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/service.ts"},"region":{"startLine":3301}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fd3f672ef18c57a8a582b26f178ac9fb88f181a8ebdc75386d2392927ff5b9e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): packages/core/src/web/management-server.ts:1185 \u00B7 packages/electron/src/main/ipc.ts:1062 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/web/management-server.ts"},"region":{"startLine":1185}}}],"partialFingerprints":{"codehealthFindingId/v1":"754bdf888cae0c171bfd1e1897b3ae68ce74c6f3bd196ae08d132d763f99195c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): packages/ui/src/pages/home/App.tsx:2952 \u00B7 packages/ui/src/pages/home/App.tsx:2974 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/App.tsx"},"region":{"startLine":2952}}}],"partialFingerprints":{"codehealthFindingId/v1":"64d75b70404096fab74cca8827821abcd77f828d8bbc66ca4b37b800b74a0ceb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): packages/ui/src/pages/home/components/dashboard.tsx:1642 \u00B7 packages/ui/src/pages/tray/components/widgets.tsx:281 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":1642}}}],"partialFingerprints":{"codehealthFindingId/v1":"84d0b1f4a20a108daaba7e1ac2033f5878b9b2fd7f20392cb82cc253e600599d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): packages/ui/src/pages/home/components/extensions.tsx:127 \u00B7 packages/ui/src/pages/home/components/routing.tsx:176 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/extensions.tsx"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"35856488352845bc4a98abd9ce262f000e803965bde23fcd936872f089a11baa"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3 locations): packages/ui/src/pages/home/components/model-selector.tsx:218 \u00B7 packages/ui/src/pages/home/components/profiles.tsx:651 \u00B7 packages/ui/src/pages/home/components/virtual-models.tsx:1156 \u2014 the 3 copies are spread across 3 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/model-selector.tsx"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"921f162cfa5054b067dd9de6de7ff53ce68bdb882d128b79c36db1953957fbf9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): packages/ui/src/pages/home/shared/api-keys.ts:299 \u00B7 packages/ui/src/pages/home/shared/controls.tsx:595 \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":"packages/ui/src/pages/home/shared/api-keys.ts"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"59f80103e64d176a241d7e32a111a3e6e71fc5fe73c37c235780825bfa4b3b52"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): packages/ui/src/pages/tray/TrayApp.tsx:275 \u00B7 packages/ui/src/pages/tray/components/widgets.tsx:8 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/tray/TrayApp.tsx"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8c061697bbf1063bfa75c569e231a9d79cccc00af441eca26229442ef1e2602"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3 locations): packages/core/src/agents/bot-gateway/env.ts:184 \u00B7 packages/core/src/config/config.ts:153 \u00B7 packages/ui/src/pages/home/shared/profiles.ts:1085 \u2014 the 3 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/bot-gateway/env.ts"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ed08e127ed2a13d9f9e5d22c1c2048e9b0b65c2ebe9c73698357cb5c21cb431"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): packages/core/src/agents/codex/app-launch.ts:1186 \u00B7 packages/core/src/profiles/service.ts:4109 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/codex/app-launch.ts"},"region":{"startLine":1186}}}],"partialFingerprints":{"codehealthFindingId/v1":"661312a6cd93d8728236dcd416b7aec4bbf40662d802186ae73313051a71bc46"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): packages/core/src/agents/local-providers/zcode.ts:220 \u00B7 packages/core/src/agents/local-providers/zcode.ts:240 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/local-providers/zcode.ts"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"85b861fa6ddb094a8ad6491b219aa8505248af43c3432dc658d7b082eada2f65"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): packages/core/src/gateway/features/hosted-web-search/response-transform.ts:631 \u00B7 packages/core/src/gateway/features/hosted-web-search/response-transform.ts:761 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/features/hosted-web-search/response-transform.ts"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c5b229a9a7e17e5eb4286e0089eb5ca6061dd30a899dda5d54286cb726f2005"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): packages/core/src/gateway/request/pipeline.ts:74 \u00B7 packages/core/src/gateway/upstream/executor.ts:1173 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/request/pipeline.ts"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"17095a1894ed8ffa4b5483b70273d137a9bb1b814301561c200b3e847a39f56d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): packages/core/src/profiles/service.ts:208 \u00B7 packages/core/src/profiles/service.ts:369 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/service.ts"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f3d27def6805e6fc8f106a28f69bae6e3f64bd3ef6d0d599f868661c1f5b54e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): packages/core/src/providers/account-service.ts:430 \u00B7 packages/core/src/providers/probe.ts:431 \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":"packages/core/src/providers/account-service.ts"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2437255c2e588fd5721730549bfd0ff3b9b782f77cac84ed608c42eb668e5b5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): packages/core/src/usage/store.ts:815 \u00B7 packages/core/src/usage/store.ts:842 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/usage/store.ts"},"region":{"startLine":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"e16d993be1b05b33527411dfeaeb444f8fb6c6bb43660cd7b6bb30a500d5d7f6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): packages/core/src/web/management-server.ts:750 \u00B7 packages/electron/src/main/electron-web-search-mcp.ts:1247 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/web/management-server.ts"},"region":{"startLine":750}}}],"partialFingerprints":{"codehealthFindingId/v1":"c25119cde4baa3c207144421564727d5638d0e7babc8263c1a5e55954a3b1022"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3 locations): packages/ui/src/pages/home/components/model-selector.tsx:98 \u00B7 packages/ui/src/pages/home/components/providers.tsx:995 \u00B7 packages/ui/src/pages/home/components/providers.tsx:4337 \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":"packages/ui/src/pages/home/components/model-selector.tsx"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"0206a6a3005fdd74a7c38cc217830b76690226273f35084b5c91c0d4f97040ab"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): packages/ui/src/pages/home/components/providers.tsx:2151 \u00B7 packages/ui/src/pages/home/components/providers.tsx:2169 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":2151}}}],"partialFingerprints":{"codehealthFindingId/v1":"3325b80f6a33944d0ab562808c0f2fbf891c5eb6ab485424b8d69ee3ea48fe00"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): packages/core/src/agents/claude-app/gateway-routes.ts:233 \u00B7 packages/core/src/gateway/features/model-discovery.ts:464 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/claude-app/gateway-routes.ts"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"bba10aaac45cc46a31f4089e7ab6d67924ca237ce97875ed7227313133d2a017"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 6 locations): packages/core/src/config/config.ts:1220 \u00B7 packages/core/src/config/config.ts:3850 \u00B7 packages/core/src/observability/request-log-store.ts:4228 \u00B7 packages/core/src/profiles/service.ts:4152 \u00B7 \u002B2 more site(s) not listed \u2014 the 5 copies are spread across 4 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":1220}}}],"partialFingerprints":{"codehealthFindingId/v1":"39c8f58f119a82558419af4cd133c5467c87baac8c3a300bc69793c1cfe55949"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): packages/core/src/config/config.ts:4131 \u00B7 packages/ui/src/pages/home/shared/api-keys.ts:16 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":4131}}}],"partialFingerprints":{"codehealthFindingId/v1":"1012f01944fe61b156cf517eb6e0659aa537aa5f8f71e6cfe470bd26f393a40c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): packages/core/src/config/config.ts:4236 \u00B7 packages/core/src/contracts/deep-link.ts:808 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":4236}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e4f4f5139d64ee0ab3631dcd3472a6abc51f2db096991e7af8a228be9762f3b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): packages/core/src/contracts/deep-link.ts:866 \u00B7 packages/core/src/providers/probe.ts:2097 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/contracts/deep-link.ts"},"region":{"startLine":866}}}],"partialFingerprints":{"codehealthFindingId/v1":"408dc8376fb669f6bbccd856db59c450a23548ab3775635f4503f0dab4b28265"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): packages/core/src/mcp/fusion-config.ts:577 \u00B7 packages/core/src/mcp/fusion-config.ts:614 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/mcp/fusion-config.ts"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec8f4eda167fc64d76f393f3c5f1293a15ac46a4de0fdb08a91574bc8e431de9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): packages/core/src/mcp/toolhub-mcp.ts:1096 \u00B7 packages/core/src/mcp/toolhub-mcp.ts:1382 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/mcp/toolhub-mcp.ts"},"region":{"startLine":1096}}}],"partialFingerprints":{"codehealthFindingId/v1":"504a2b2316ba58ad4bcd250eca8c67d19b95a3643b74765eb08652f7e93916eb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): packages/core/src/observability/request-log-store.ts:6505 \u00B7 packages/core/src/usage/store.ts:1309 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":6505}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dc2ba3f86e3c74b822789df5442bbcf69bf1683bba273a698903ff7bed8222a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 5 locations): packages/core/src/observability/request-log-store.ts:4243 \u00B7 packages/core/src/profiles/service.ts:4161 \u00B7 packages/ui/src/pages/home/shared/profiles.ts:1699 \u00B7 packages/ui/src/pages/home/shared/usage.ts:208 \u00B7 \u002B1 more site(s) not listed \u2014 the 5 copies are spread across 4 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 5 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":4243}}}],"partialFingerprints":{"codehealthFindingId/v1":"789b03c9908ec0b76edba6caab2437193964811e412ddb9b475f0a4e6274fc26"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3 locations): packages/core/src/plugins/marketplace.ts:345 \u00B7 packages/core/src/web/management-server.ts:1240 \u00B7 packages/electron/src/main/ipc.ts:1118 \u2014 the 3 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/plugins/marketplace.ts"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"50b688b37422022c28ec7faa66f47575634f4fd346b194e51fad449c4dd693d2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): packages/core/src/profiles/launch-core.ts:51 \u00B7 packages/ui/src/pages/home/shared/profiles.ts:1737 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/launch-core.ts"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"24047e5e01711b7b9eace0ea5a5babe2a41fef0d5663835cd4588b9721f2e304"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): packages/core/src/profiles/service.ts:1000 \u00B7 packages/core/src/profiles/service.ts:1019 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/service.ts"},"region":{"startLine":1000}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cb16ca6b779541ac2258802de5cde762cfd80b9309d7f05e79a2dfd058da0c7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): packages/core/src/providers/account-service.ts:2326 \u00B7 packages/core/src/providers/account-service.ts:2343 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/providers/account-service.ts"},"region":{"startLine":2326}}}],"partialFingerprints":{"codehealthFindingId/v1":"301257818e75f3558d621c7945705d6ff05e15b20cda2fac48a5cd40add22160"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): packages/core/src/proxy/service.ts:1039 \u00B7 packages/core/src/proxy/service.ts:1159 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/proxy/service.ts"},"region":{"startLine":1039}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3fdbc82badb930329d70725f1dbbbbfea0f6fbda365659419eac7c641dfa1d4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): packages/ui/src/pages/home/App.tsx:996 \u00B7 packages/ui/src/pages/home/App.tsx:1014 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/App.tsx"},"region":{"startLine":996}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3976545890eb91eac38ab052c078ac413fb2c8e9090d072637d04d7799e07a7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): packages/ui/src/pages/home/components/dashboard.tsx:204 \u00B7 packages/ui/src/pages/home/components/settings.tsx:2092 \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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"7953940d277438df5481f04fb0aea7747ba00ac0ac657cb2a12d480f707077df"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): packages/ui/src/pages/home/components/dashboard.tsx:3978 \u00B7 packages/ui/src/pages/home/components/dashboard.tsx:4017 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":3978}}}],"partialFingerprints":{"codehealthFindingId/v1":"3621ca7d52800a9981615d5c7786982a930e7e9687733fd917695786791d760d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): packages/ui/src/pages/home/components/extensions.tsx:319 \u00B7 packages/ui/src/pages/home/components/virtual-models.tsx:787 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/extensions.tsx"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"866e7c0cc782fdd53ca61ab090d60c09ab2871e60520631b4437a4f7734dfb50"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): packages/ui/src/pages/home/components/providers.tsx:296 \u00B7 packages/ui/src/pages/home/components/providers.tsx:432 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"b35a61f70fba4d3635d0532c20d965153b18b47f53a271b5b8f1f8b5bdcadd95"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): packages/ui/src/pages/home/components/providers.tsx:5047 \u00B7 packages/ui/src/pages/home/components/providers.tsx:5064 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":5047}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e92906b7306e5ac7ba2351b6f5ed3c93c40dee2f77e1be0baa725c8d8fa471c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (16 matched lines \u00D7 2 locations): packages/ui/src/pages/home/components/routing.tsx:274 \u00B7 packages/ui/src/pages/home/components/virtual-models.tsx:871 \u2014 the two spans are one implementation copied and then locally edited \u2014 198 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":"packages/ui/src/pages/home/components/routing.tsx"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"19e9c14596850e037b056c2065a2b9f36ef9e14f2a46a97a66b1e06e67742bf8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/core/src/agents/local-providers/grok.ts:695 \u00B7 packages/core/src/agents/local-providers/kimi.ts:414 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/local-providers/grok.ts"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd9cde8e7f0bfab9990a78b616c89cd713da06559c98eb08de7f0e930bde3cd1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/core/src/config/config.ts:923 \u00B7 packages/core/src/config/config.ts:1011 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":923}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bc42edaf81cabcb05b25913f14f2b6742e15ae1701b553d531c2af697b7eafb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3 locations): packages/core/src/config/config.ts:1484 \u00B7 packages/core/src/config/config.ts:1500 \u00B7 packages/core/src/config/config.ts:1516 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":1484}}}],"partialFingerprints":{"codehealthFindingId/v1":"d424b833315e3356e3710459137539dc7912032bf697995a96a6a1ee5a13271f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/core/src/config/config.ts:2756 \u00B7 packages/core/src/config/config.ts:2906 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":2756}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f7651142380d52102e349dd6f55b193eb859d8f32a8b4445e2451315b735e98"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/core/src/contracts/deep-link.ts:70 \u00B7 packages/core/src/contracts/deep-link.ts:103 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/contracts/deep-link.ts"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff8e2deb3386b302b27df6f34f308fccb6dc2f98edd41be547db73a8bf92b3ae"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/core/src/gateway/existing-gateway-probe.ts:23 \u00B7 packages/core/src/profiles/launch-service.ts:460 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/existing-gateway-probe.ts"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"26b52ea88801be91824556fb7f687ee7611cb682acd9c21cabdcddd5ddbf941c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/core/src/gateway/features/hosted-web-search/response-transform.ts:506 \u00B7 packages/core/src/gateway/features/hosted-web-search/response-transform.ts:549 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/features/hosted-web-search/response-transform.ts"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"127b0921bf0915943df5c75cd56921ea855e0af5d01b7400af9944c4f190c1f3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/core/src/gateway/request/pipeline.ts:473 \u00B7 packages/core/src/gateway/request/pipeline.ts:663 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/request/pipeline.ts"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"06797022aea4d7c9b7fef8b5e9c12b7d805666ba777d8b3623394a8d3404c2a9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/core/src/plugins/built-ins/openrouter-discount-provider-router.ts:1196 \u00B7 packages/electron/bundled-plugins/claude-design/index.cjs:16490 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/plugins/built-ins/openrouter-discount-provider-router.ts"},"region":{"startLine":1196}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f8ed9d8c16d6a5da1ee45ddcbae8defdb8efb3c8788d8b398b52797624f8ffd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/core/src/plugins/service.ts:1152 \u00B7 packages/core/src/proxy/service.ts:1317 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/plugins/service.ts"},"region":{"startLine":1152}}}],"partialFingerprints":{"codehealthFindingId/v1":"1787c783efadc14cdb7a75cef7a450fbe9b3043804fe5c09db46dc964aa2028c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/core/src/profiles/service.ts:1350 \u00B7 packages/core/src/profiles/service.ts:1368 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/service.ts"},"region":{"startLine":1350}}}],"partialFingerprints":{"codehealthFindingId/v1":"169fe1012e151c6fc1d633cf22630039ed8fe3f03963979e866bef9ec801a459"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/core/src/profiles/service.ts:1581 \u00B7 packages/core/src/profiles/service.ts:1620 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/service.ts"},"region":{"startLine":1581}}}],"partialFingerprints":{"codehealthFindingId/v1":"e88c9eb0278694d660e94c3f0f07cc9ed8eac6e05d100f74b6472fc2989356ef"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/core/src/providers/probe.ts:543 \u00B7 packages/ui/src/pages/home/shared/providers.ts:1961 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/providers/probe.ts"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"3197b8961aa74a1b9b2e0eb2416c89e29e45ecef71a1496970128750434fb142"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/electron/bundled-plugins/claude-design/index.cjs:11578 \u00B7 packages/electron/bundled-plugins/claude-design/index.cjs:13151 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":11578}}}],"partialFingerprints":{"codehealthFindingId/v1":"138f71d83b537b103ef2ab3276eb581d0228f1b9c85ac7c66524c203ea5059ec"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/electron/bundled-plugins/claude-design/index.cjs:11760 \u00B7 packages/ui/src/pages/home/shared/routing.ts:418 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":11760}}}],"partialFingerprints":{"codehealthFindingId/v1":"9338f5e3fd088e4f28706cd319a9d8180c76b7f593383662a88fdc68304c40ac"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (15 matched lines \u00D7 2 locations): packages/electron/bundled-plugins/claude-design/index.cjs:5741 \u00B7 packages/electron/src/main/tray-controller.ts:801 \u2014 the two spans are one implementation copied and then locally edited \u2014 102 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":5741}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dbb1687dc04132b27d70ebbff04d900c1f1ecdcfaaa378379a0d94963c325c8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (15 matched lines \u00D7 2 locations): packages/electron/src/main/chrome-login-import.ts:195 \u00B7 packages/electron/src/main/chrome-login-import.ts:215 \u2014 the two spans are one implementation copied and then locally edited \u2014 71 tokens are still identical, in the same order in both spans, 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":"packages/electron/src/main/chrome-login-import.ts"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"b71f0b9897384d50cf683da5987446a46ebe06a3224586e2c1ef8a7bdccf6503"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/ui/src/pages/home/App.tsx:2684 \u00B7 packages/ui/src/pages/home/App.tsx:2707 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/App.tsx"},"region":{"startLine":2684}}}],"partialFingerprints":{"codehealthFindingId/v1":"bba9b8aa40ab24b34fba125391969fedd95f43dd4e2e11cf7909491da394f43d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/ui/src/pages/home/components/extensions.tsx:181 \u00B7 packages/ui/src/pages/home/components/settings.tsx:1384 \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":"packages/ui/src/pages/home/components/extensions.tsx"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"e15d024f1c4799ab0feefdf4e7fde094952e713cb7fa7c1122974b7eaa675d01"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 5 locations): packages/ui/src/pages/home/components/model-selector.tsx:76 \u00B7 packages/ui/src/pages/home/components/profiles.tsx:566 \u00B7 packages/ui/src/pages/home/components/providers.tsx:973 \u00B7 packages/ui/src/pages/home/components/providers.tsx:4315 \u00B7 \u002B1 more site(s) not listed \u2014 the 5 copies are spread across 4 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/model-selector.tsx"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f771eeaa076af65b9f0822959a81d69488c6e642dfe81e5f4562a3b826441bf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/ui/src/pages/home/components/providers.tsx:4202 \u00B7 packages/ui/src/pages/home/components/providers.tsx:4234 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":4202}}}],"partialFingerprints":{"codehealthFindingId/v1":"010d44a2aa7025da3410bfc5ad844154d2d53a6ebb633ee592e8a8e3eeb5cb89"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (14 matched lines \u00D7 2 locations): packages/core/src/agents/claude-app/vm-storage.ts:373 \u00B7 packages/ui/src/pages/home/components/providers.tsx:4619 \u2014 the two spans are one implementation copied and then locally edited \u2014 82 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":"packages/core/src/agents/claude-app/vm-storage.ts"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"7266e7b91e5a2396dfbb52a2b54d7ac2e5c5aec080bda21b51dc543c1bef791c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/core/src/agents/codex/model-catalog.ts:598 \u00B7 packages/core/src/providers/runtime-topology.ts:442 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/codex/model-catalog.ts"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd989317f80664f2fd4a142ee80e869a5e221f4a86dd99309519e4bb74702ecd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/core/src/agents/local-providers/codex.ts:869 \u00B7 packages/core/src/providers/probe.ts:2073 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/local-providers/codex.ts"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"57988f0e7302db53aac0c0e462bdcf7669ecbcf77beaaa7586280939b4474398"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3 locations): packages/core/src/config/config.ts:1385 \u00B7 packages/ui/src/pages/home/shared/common.ts:310 \u00B7 packages/ui/src/pages/tray/shared.tsx:520 \u2014 the 3 copies are spread across 3 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":1385}}}],"partialFingerprints":{"codehealthFindingId/v1":"99d306846ecfd4c804b47c20add472ffa891a80343cb84196cb4be2b222ea67f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (14 matched lines \u00D7 2 locations): packages/core/src/config/config.ts:1537 \u00B7 packages/core/src/contracts/deep-link.ts:644 \u2014 the two spans are one implementation copied and then locally edited \u2014 201 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":"packages/core/src/config/config.ts"},"region":{"startLine":1537}}}],"partialFingerprints":{"codehealthFindingId/v1":"c654c2245d3e60e8c52f5b362edf346427fdc46b88d81225686fb8a770e3afe3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/core/src/contracts/app.ts:1197 \u00B7 packages/core/src/providers/model-auto-refresh.ts:678 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/contracts/app.ts"},"region":{"startLine":1197}}}],"partialFingerprints":{"codehealthFindingId/v1":"5032e1456fbc55fa7c58ffdef0eed2fb02beab642e8d3f8ac2d5af4b1241ed51"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (14 matched lines \u00D7 2 locations): packages/core/src/gateway/auth/api-key-authorizer.ts:170 \u00B7 packages/core/src/gateway/existing-gateway-probe.ts:197 \u2014 the two spans are one implementation copied and then locally edited \u2014 113 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":"packages/core/src/gateway/auth/api-key-authorizer.ts"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"96f254511acfe9ae876a6f509b5178f4926ddac4edc5acc29976a6dbd546fe40"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/core/src/observability/request-log-store.ts:1387 \u00B7 packages/core/src/usage/store.ts:333 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":1387}}}],"partialFingerprints":{"codehealthFindingId/v1":"21590bb9cbd14bf717176456286e2056cd970fdac06c56660b1788789a38ef5b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/core/src/observability/request-log-store.ts:4200 \u00B7 packages/core/src/usage/store.ts:1336 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":4200}}}],"partialFingerprints":{"codehealthFindingId/v1":"f473a53f051aa0b4137584466dab342aed578f806590743515c4ad1bd24fa452"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/core/src/profiles/launch-core.ts:341 \u00B7 packages/core/src/profiles/service.ts:4182 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/launch-core.ts"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"25998e3f1a93e3fbc26fa7494bba4661bc7b1206dace92a9e547159f8562997f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/core/src/profiles/service.ts:2628 \u00B7 packages/core/src/profiles/service.ts:3104 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/service.ts"},"region":{"startLine":2628}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e46ab6859c4e2684a1652d42f8b313faec4db67fcc1387239870ef4e4a14fa9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (14 matched lines \u00D7 2 locations): packages/core/src/profiles/service.ts:1419 \u00B7 packages/ui/src/pages/home/components/providers.tsx:4619 \u2014 the two spans are one implementation copied and then locally edited \u2014 82 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":"packages/core/src/profiles/service.ts"},"region":{"startLine":1419}}}],"partialFingerprints":{"codehealthFindingId/v1":"10c1bb536a7efa3ed476bec43a6a8bfa5b122bf2d6365cf7366ccc1aafb52f97"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/core/src/providers/probe.ts:821 \u00B7 packages/core/src/providers/probe.ts:837 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/providers/probe.ts"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd2f00e3e772c65cd89312826d7d514e2c8ddd5d6fb306168f531814f82290da"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/core/src/providers/probe.ts:1189 \u00B7 packages/ui/src/pages/home/App.tsx:111 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/providers/probe.ts"},"region":{"startLine":1189}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d4705b418b6ea3b7ef0053b17515b1f9f0a57d40f174582eae415bfe444c9dd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/electron/bundled-plugins/claude-design/index.cjs:6043 \u00B7 packages/electron/bundled-plugins/claude-design/index.cjs:10308 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":6043}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c12050900a4645ea9d3a5e7dfc0f92e68f876b9b8b340bf7d692bd90bd3af2f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/electron/src/main/browser-automation-mcp.ts:689 \u00B7 packages/electron/src/main/electron-web-search-mcp.ts:254 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7e36c87aa90ede4214971c361cda651cccc40cd1723e477b882517f609be6cb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3 locations): packages/electron/src/main/built-in-browser.ts:287 \u00B7 packages/electron/src/main/built-in-browser.ts:302 \u00B7 packages/electron/src/main/built-in-browser.ts:317 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/src/main/built-in-browser.ts"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fc2a8ceb707a19c6134e09f72dcdbb8c01d490b27d2835eea5edb6837ea5d85"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/electron/src/main/claude-design-window.ts:696 \u00B7 packages/electron/src/main/deep-link.ts:289 \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":"packages/electron/src/main/claude-design-window.ts"},"region":{"startLine":696}}}],"partialFingerprints":{"codehealthFindingId/v1":"45d6abd9f0e169addae88415b5b0db9cba9f18f5b6df61d8c8bff916e35f2846"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/ui/src/pages/home/App.tsx:2832 \u00B7 packages/ui/src/pages/home/App.tsx:2869 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/App.tsx"},"region":{"startLine":2832}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9ee532e87634f33b3f05f619ff12a52fab0b3b2ee274561366a1a01b083ed95"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3 locations): packages/ui/src/pages/home/components/api-keys.tsx:189 \u00B7 packages/ui/src/pages/home/components/api-keys.tsx:327 \u00B7 packages/ui/src/pages/home/components/extensions.tsx:452 \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":"packages/ui/src/pages/home/components/api-keys.tsx"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"aabdb282c14ca4043df8dfa9bfb88da3aac0434a33857a153fbd6740b6fdf7f6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/ui/src/pages/home/components/dashboard.tsx:3769 \u00B7 packages/ui/src/pages/home/components/dashboard.tsx:3850 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":3769}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d94d6d32f9223d7fa80c72d8f6858ab5057c80328ffb7511847c59f445ba302"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/ui/src/pages/home/components/model-selector.tsx:47 \u00B7 packages/ui/src/pages/home/components/providers.tsx:951 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/model-selector.tsx"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"886f2c67725aab6cc9c93387501f0032729a6e6d42265e9771a015aa68589a9d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/ui/src/pages/home/components/network-logs.tsx:1896 \u00B7 packages/ui/src/pages/home/components/network-logs.tsx:1941 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/network-logs.tsx"},"region":{"startLine":1896}}}],"partialFingerprints":{"codehealthFindingId/v1":"e97a864cc511d4ab3a59ae526a75c8e02200ec0541ea782f90aa6d2126caf100"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/ui/src/pages/home/components/network-logs.tsx:2019 \u00B7 packages/ui/src/pages/home/components/network-logs.tsx:2754 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/network-logs.tsx"},"region":{"startLine":2019}}}],"partialFingerprints":{"codehealthFindingId/v1":"b16809cd9d577d5152b8330fcf5cbd8845a060e9e6111c6fabc5ab0283de32a1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/ui/src/pages/home/components/profiles.tsx:1276 \u00B7 packages/ui/src/pages/home/components/profiles.tsx:1333 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/profiles.tsx"},"region":{"startLine":1276}}}],"partialFingerprints":{"codehealthFindingId/v1":"1364482cd750285a5221d4cb993e9be7c43d13fc412b8efd13017d3933a01a18"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/ui/src/pages/home/shared/virtual-models.ts:277 \u00B7 packages/ui/src/pages/home/shared/virtual-models.ts:325 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/virtual-models.ts"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"b65c5a7d960a1f69b8557c1d73d7abf4b0956b38e05c6ce783ca3bfd50e0ccc9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (13 matched lines \u00D7 2 locations): packages/cli/src/cli.ts:731 \u00B7 packages/core/src/agents/claude-app/gateway-service.ts:522 \u2014 the two spans are one implementation copied and then locally edited \u2014 61 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":"packages/cli/src/cli.ts"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"f012953548f171c08018d6d542b145d8cb8d044b6d3d6142a27a3820b8cb1955"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/core/src/agents/bot-gateway/env.ts:158 \u00B7 packages/core/src/agents/bot-gateway/qr-login-service.ts:311 \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":"packages/core/src/agents/bot-gateway/env.ts"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"26761884b845350e10c68bc73e310753658bb2d08d4af6c91e7cb377d8359980"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3 locations): packages/core/src/agents/claude-code/environment.ts:77 \u00B7 packages/core/src/agents/kilo/profile-config.ts:218 \u00B7 packages/core/src/agents/opencode/profile-config.ts:304 \u2014 the 3 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/claude-code/environment.ts"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9fbea98f2c88e55a89d79df692c7ac84aaf995a6d75362e54a626748c8c89a6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/core/src/agents/codex/model-catalog.ts:556 \u00B7 packages/core/src/agents/codex/model-catalog.ts:570 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/codex/model-catalog.ts"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"86f5ae0a33282014f73e6bcca69dee36e0c432fe34cb487d9336e500b2c85d0f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3 locations): packages/core/src/agents/codex/model-catalog.ts:833 \u00B7 packages/core/src/agents/kilo/profile-config.ts:218 \u00B7 packages/core/src/agents/opencode/profile-config.ts:304 \u2014 the 3 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/codex/model-catalog.ts"},"region":{"startLine":833}}}],"partialFingerprints":{"codehealthFindingId/v1":"34163a6a6025ef3d39d8ea599da6ee7a68018d8318fc3cbfc1bbac1af22f43e7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/core/src/agents/local-providers/shared.ts:315 \u00B7 packages/core/src/gateway/internal/collections.ts:5 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/local-providers/shared.ts"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"76ef38df51169df150024b0d82a694df0e1d197ff3ed748bbe9ba6fb2fb24d03"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/core/src/agents/zcode/profile-config.ts:315 \u00B7 packages/core/src/config/config.ts:4267 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/zcode/profile-config.ts"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a83b9c6e9f802ea51396a3178dd3c42a2088a925d7f3f48b6f77161890e76c3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/core/src/config/config-repository.ts:587 \u00B7 packages/core/src/config/config-repository.ts:624 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config-repository.ts"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5c836985fa5b3375b4a0ed627c593aabe1966e55b40b0d3fd0c270c606055bb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3 locations): packages/core/src/config/config.ts:1371 \u00B7 packages/ui/src/pages/home/shared/common.ts:296 \u00B7 packages/ui/src/pages/tray/shared.tsx:506 \u2014 the 3 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":1371}}}],"partialFingerprints":{"codehealthFindingId/v1":"323c0c3acd02a1046eee0d3779d1dab29648e073cce7f5a61dff1944aa9cd64a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/core/src/config/config.ts:2504 \u00B7 packages/ui/src/pages/home/shared/virtual-models.ts:1122 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":2504}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b71cbc7971a78525a4750b69c77259dfe9576968c283b1142965f7315cc4b0e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/core/src/config/config.ts:3050 \u00B7 packages/electron/src/main/plugin-app-url.ts:153 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":3050}}}],"partialFingerprints":{"codehealthFindingId/v1":"96d2443db19fe79798849e41ed15c9ef9485af7ec87331427fdcaeee168aa196"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/core/src/config/config.ts:4271 \u00B7 packages/core/src/gateway/model-catalog.ts:478 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":4271}}}],"partialFingerprints":{"codehealthFindingId/v1":"a349c87015606a8e14b8084726a1ac97ae1f593d0c79a711f13d96dbf6a74b11"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (13 matched lines \u00D7 2 locations): packages/core/src/gateway/auth/api-key-authorizer.ts:184 \u00B7 packages/core/src/gateway/core-runtime/router-plugin.ts:1204 \u2014 the two spans are one implementation copied and then locally edited \u2014 60 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":"packages/core/src/gateway/auth/api-key-authorizer.ts"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"acb2f7233adbe5e35d4100fec8a7d22dceb47902a33b4150a0e3b4607b146c02"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/core/src/gateway/core-runtime/router-plugin.ts:717 \u00B7 packages/core/src/gateway/core-runtime/router-plugin.ts:731 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/core-runtime/router-plugin.ts"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"168210aa4c465f9e9cf714d9ca1efa258a134ff56bf552b82a4be6138bf91601"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3 locations): packages/core/src/gateway/core-runtime/supervisor.ts:197 \u00B7 packages/core/src/gateway/core-runtime/supervisor.ts:211 \u00B7 packages/core/src/gateway/core-runtime/supervisor.ts:225 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/core-runtime/supervisor.ts"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac4868c25eaaba215365605b84e44a1986f03c3472f52e95d0237ee61376776e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/core/src/gateway/features/hosted-web-search/response-transform.ts:535 \u00B7 packages/core/src/gateway/features/hosted-web-search/response-transform.ts:694 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/features/hosted-web-search/response-transform.ts"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bd6a90250f35705ad119878daa648c427fadc07c286f09a8b885aee3bd07a69"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/core/src/gateway/http/io.ts:31 \u00B7 packages/core/src/proxy/service.ts:1706 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/http/io.ts"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eff3b43810bfb1832f0244a79140ea085ce0cd10e7a05b382bacbde694d68c1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/core/src/gateway/model-catalog.ts:474 \u00B7 packages/core/src/observability/request-log-store.ts:6334 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/model-catalog.ts"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce6f7cfa89aaf3f834c15c91a8c176b0ca9c84215f1992056707d063c36b6f68"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/core/src/gateway/request/pipeline.ts:649 \u00B7 packages/core/src/gateway/request/pipeline.ts:681 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/request/pipeline.ts"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5a3aecd42958b16eb5407d921d0baf88bd6d5cde7b9f4d5ed2bf54ad60ee422"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/core/src/gateway/request/pipeline.ts:806 \u00B7 packages/core/src/gateway/request/pipeline.ts:972 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/request/pipeline.ts"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bf02bb8107d953cedc709778d8759c71c4360db87ce901c5969ede500e08209"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3 locations): packages/core/src/gateway/request/pipeline.ts:952 \u00B7 packages/core/src/gateway/request/pipeline.ts:975 \u00B7 packages/core/src/gateway/request/pipeline.ts:1142 \u2014 all 3 copies are in the same file, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/request/pipeline.ts"},"region":{"startLine":952}}}],"partialFingerprints":{"codehealthFindingId/v1":"90e976b7d3cf94268c859a2c0e93b803125ba77539b9f592d1e2df1eaaf2f599"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (13 matched lines \u00D7 2 locations): packages/core/src/gateway/runtime-config-control.ts:10 \u00B7 packages/core/src/mcp/toolhub-mcp.ts:2812 \u2014 the two spans are one implementation copied and then locally edited \u2014 92 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":"packages/core/src/gateway/runtime-config-control.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"962dcf7cd352a214f3194fc9ed115d147f89c070da9126f22c1c1e4c0f09baad"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/core/src/mcp/tool-discovery.ts:117 \u00B7 packages/core/src/mcp/tool-discovery.ts:262 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/mcp/tool-discovery.ts"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"ace2be50838d1729e8f55c3310edbdcd1dcfac1a0254c1962d3b1096ae3642a9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3 locations): packages/core/src/models/catalog-file.ts:111 \u00B7 packages/core/src/observability/request-log-store.ts:6334 \u00B7 packages/core/src/routing/execution-plan.ts:61 \u2014 the 3 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/models/catalog-file.ts"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"77809a13eaee6fd53c0f4c691266009b05ba4172a6cad9543b0a80bdcd26b583"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/core/src/observability/request-log-store.ts:4174 \u00B7 packages/core/src/usage/store.ts:1348 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":4174}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e1fde4f841f02d198509b59c8ec641d9ae12efd4c0e6967e4f76b9613ce5abc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/core/src/plugins/built-ins/openrouter-discount-provider-router.ts:383 \u00B7 packages/core/src/plugins/built-ins/openrouter-discount-provider-router.ts:397 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/plugins/built-ins/openrouter-discount-provider-router.ts"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"a00e64adac94b34252ab8c7defa9fa639b7b2aacfc141a5cef0e4138e18e675a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/core/src/plugins/built-ins/openrouter-discount-provider-router.ts:1030 \u00B7 packages/core/src/plugins/built-ins/openrouter-discount-provider-router.ts:1052 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/plugins/built-ins/openrouter-discount-provider-router.ts"},"region":{"startLine":1030}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff635498f9909c162db643f16fcedf33113a8b67abc52dcf32d5c88693f8bbf9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/core/src/plugins/built-ins/openrouter-discount-provider-router.ts:1100 \u00B7 packages/core/src/providers/openrouter-provider-catalog.ts:268 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/plugins/built-ins/openrouter-discount-provider-router.ts"},"region":{"startLine":1100}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ae90af34538bafc40d030d50e3564eaae042f30a005ce9b80d5be1275361509"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/core/src/profiles/service.ts:3013 \u00B7 packages/core/src/profiles/service.ts:3044 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/service.ts"},"region":{"startLine":3013}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b25205645c2bf1c936c2700586dfeada892e3cd92f0f2923b5a75b9b4c5394b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/core/src/providers/account-service.ts:2136 \u00B7 packages/core/src/providers/runtime-topology.ts:346 \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":"packages/core/src/providers/account-service.ts"},"region":{"startLine":2136}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe8852f0d114232e9cb16ec4dbb3490c377ff679db73e6274970f53f9640871f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/core/src/proxy/service.ts:155 \u00B7 packages/core/src/proxy/service.ts:204 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/proxy/service.ts"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"d54cf9cbaf0acca32072d6100b1b6c52cdbcdba3862c0e5491c1196f2e139e1b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/core/src/web/management-server.ts:437 \u00B7 packages/electron/src/main/ipc.ts:336 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/web/management-server.ts"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"38bebc2daaf2132f0af2a0cbae25e8fdb55e9d767ec3178cf3ea90712b043e7f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/core/src/web/management-server.ts:531 \u00B7 packages/electron/src/main/ipc.ts:422 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/web/management-server.ts"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"80b73cd15450a0e9ed21509c9fed2812bcfa1fc0f1de3039b97de68630638a8a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/electron/bundled-plugins/claude-design/index.cjs:16204 \u00B7 packages/electron/bundled-plugins/claude-design/index.cjs:16223 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":16204}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e0c627d209d1a6d29e99257319d7a8b00e72d8972c8524375cc16ec39005819"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/electron/src/main/provider-account-webcontent.ts:190 \u00B7 packages/electron/src/main/provider-account-webcontent.ts:204 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/src/main/provider-account-webcontent.ts"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"b491c77a3f487cf4c3b101c811636ace01caf917f6d4d7fc7ac0e6fca7ad6c5e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/ui/src/pages/home/App.tsx:2804 \u00B7 packages/ui/src/pages/home/App.tsx:2842 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/App.tsx"},"region":{"startLine":2804}}}],"partialFingerprints":{"codehealthFindingId/v1":"95a7b76bc9676335d688050a4b08cd681db08288710c24a35378698b44faaa35"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/ui/src/pages/home/App.tsx:3009 \u00B7 packages/ui/src/pages/home/App.tsx:3024 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/App.tsx"},"region":{"startLine":3009}}}],"partialFingerprints":{"codehealthFindingId/v1":"64c9a054ec12fc5d51d1158582caaeec4559ea86233c824dc44dc600e0b4d886"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/ui/src/pages/home/App.tsx:3043 \u00B7 packages/ui/src/pages/home/App.tsx:3099 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/App.tsx"},"region":{"startLine":3043}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d46ee03a2c51ae46d431676f77d7750454bbde7d027625a739c2eee0cb012af"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/ui/src/pages/home/components/dashboard.tsx:863 \u00B7 packages/ui/src/pages/home/components/settings.tsx:2452 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"817dd2031e43066aeb8ac7a536636c1306a99aaa89bb14492d0f3bf4368e7edc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 5 locations): packages/ui/src/pages/home/components/dashboard.tsx:1061 \u00B7 packages/ui/src/pages/home/components/dashboard.tsx:3151 \u00B7 packages/ui/src/pages/home/components/network-logs.tsx:102 \u00B7 packages/ui/src/pages/home/components/network-logs.tsx:132 \u00B7 \u002B1 more site(s) not listed \u2014 the 5 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":1061}}}],"partialFingerprints":{"codehealthFindingId/v1":"b03d44ad504b0e787adb791d02c346911f8df306078a9ab588fd35775d5e7cc6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/ui/src/pages/home/components/providers.tsx:245 \u00B7 packages/ui/src/pages/home/components/providers.tsx:258 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d24e4a4058467cf9c8aaca5cddf213d2944d0b6ef7142c3a1cc2892e3f86ada"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/ui/src/pages/home/components/providers.tsx:955 \u00B7 packages/ui/src/pages/home/components/providers.tsx:4287 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":955}}}],"partialFingerprints":{"codehealthFindingId/v1":"16c4ee348c47c43b895cbc1430824bc6720f7cf53dae1df85985d6e3378a8219"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3 locations): packages/core/src/agents/local-providers/kimi.ts:443 \u00B7 packages/core/src/providers/account-service.ts:1711 \u00B7 packages/core/src/providers/probe.ts:1388 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/local-providers/kimi.ts"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"5979520defad7853f99f18b70e3f251b3fef2b8fb0fce6cf0861d7f830b59219"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/core/src/agents/zcode/profile-config.ts:87 \u00B7 packages/core/src/agents/zcode/profile-config.ts:107 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/zcode/profile-config.ts"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"88f1e1c4c3e9651d0e896189f95033e74e11ceedf422525e8c760a68bbb457f0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/core/src/config/config-repository.ts:766 \u00B7 packages/ui/src/pages/home/shared/api-keys.ts:64 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config-repository.ts"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c2849ab49aa29e1fdfcbc862a72799bad5a801bb4423438be18b47e051d2d72"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/core/src/config/config-repository.ts:858 \u00B7 packages/core/src/gateway/core-runtime/supervisor.ts:554 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config-repository.ts"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a5a5101cbae5ceab65c2fa35752527b91dfbb65543927880fef754946fe70f5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/core/src/config/config.ts:1567 \u00B7 packages/core/src/contracts/deep-link.ts:676 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":1567}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3349b7753739fe1a8e4d421225f1e5b22b10983db05aa769fdb2c0ae7ff9161"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/core/src/gateway/context-archive.ts:400 \u00B7 packages/core/src/gateway/context-archive.ts:414 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/context-archive.ts"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f04521e5fe4eba4b316f6e2a8d0022cebc4507edb976a5e45381ea7421605ed"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/core/src/gateway/context-archive.ts:807 \u00B7 packages/electron/src/main/browser-automation-mcp.ts:3484 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/context-archive.ts"},"region":{"startLine":807}}}],"partialFingerprints":{"codehealthFindingId/v1":"5538ccc732705eda3e122b855a0d7d1834f8030a57044097a3fc1dc2ee119573"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/core/src/gateway/core-runtime/router-plugin.ts:1383 \u00B7 packages/core/src/mcp/grok-media-config.ts:56 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/core-runtime/router-plugin.ts"},"region":{"startLine":1383}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1b75384479314cdb5c806558944b2d60582430a1ffd87623efdc6b397bd7a93"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/core/src/gateway/core-runtime/supervisor.ts:322 \u00B7 packages/core/src/gateway/core-runtime/supervisor.ts:348 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/core-runtime/supervisor.ts"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9eacc8ccd91a6ea789658d69cc8b44414ffa4bab2c067b6abe496a18f4d7603"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4 locations): packages/core/src/gateway/remote-control-service.ts:138 \u00B7 packages/core/src/gateway/remote-control-service.ts:235 \u00B7 packages/core/src/gateway/remote-control-service.ts:278 \u00B7 packages/core/src/gateway/remote-control-service.ts:313 \u2014 all 4 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/remote-control-service.ts"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e51a898390326e630de8edf46ca069fc568f2b1d19f359b3150cefa9e5810a9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3 locations): packages/core/src/mcp/toolhub-config.ts:220 \u00B7 packages/core/src/profiles/launch-service.ts:1877 \u00B7 packages/electron/src/main/ipc.ts:1017 \u2014 the 3 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/mcp/toolhub-config.ts"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"c510398c4592b88bdd61f5b27d34db47d1d65ee9610803fcd4355d3dce4764f9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/core/src/mcp/toolhub-mcp.ts:1051 \u00B7 packages/core/src/mcp/toolhub-mcp.ts:1311 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/mcp/toolhub-mcp.ts"},"region":{"startLine":1051}}}],"partialFingerprints":{"codehealthFindingId/v1":"e84f0b81bd2f6addff9979284afbfa016c6a8884da5631fc2d36f39bbab49c45"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/core/src/models/pricing-service.ts:54 \u00B7 packages/core/src/models/pricing-service.ts:91 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/models/pricing-service.ts"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aecf4b22f2a64ce0912ae6782673d23e149c6c945748fc9a42149625d409505"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/core/src/plugins/built-ins/openrouter-discount-provider-router.ts:1256 \u00B7 packages/core/src/providers/openrouter-provider-catalog.ts:310 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/plugins/built-ins/openrouter-discount-provider-router.ts"},"region":{"startLine":1256}}}],"partialFingerprints":{"codehealthFindingId/v1":"21cbc926695fa44a02eeac2b00c99b2d5a23339df62ad2f9d628957fb82c15c9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/core/src/plugins/marketplace.ts:606 \u00B7 packages/core/src/web/management-server.ts:1174 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/plugins/marketplace.ts"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"296ca64b8c68479fa4b9e072249c4e5c63dc7ea1334c33c821ae65260427e31b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/core/src/profiles/service.ts:1168 \u00B7 packages/core/src/profiles/service.ts:1188 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/service.ts"},"region":{"startLine":1168}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae68432ac766acbe7224e845d3527ec747b0427bc68e6b8fcc1aa76beef4034a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/core/src/profiles/service.ts:1830 \u00B7 packages/core/src/profiles/service.ts:1928 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/service.ts"},"region":{"startLine":1830}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f964937f6c11541d591676602732d193e73fcf80b1f103fe4978ecf7ab86ace"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/core/src/profiles/service.ts:3530 \u00B7 packages/core/src/profiles/service.ts:3546 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/service.ts"},"region":{"startLine":3530}}}],"partialFingerprints":{"codehealthFindingId/v1":"42fc58e347568c783767b08049b32e7f3f30e919c126a5d6cf5f6cfd9e51bdb3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/core/src/providers/account-service.ts:1068 \u00B7 packages/core/src/providers/account-service.ts:1107 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/providers/account-service.ts"},"region":{"startLine":1068}}}],"partialFingerprints":{"codehealthFindingId/v1":"3265791967aecbff76ee4e95a8d2f46f3f5074124284b27a47fca7a63dc15589"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/core/src/web/management-server.ts:348 \u00B7 packages/electron/src/main/ipc.ts:134 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/web/management-server.ts"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"42c08c951953e7bf0184b3f7ac06300256951bd55428943014b844635c59ba30"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/core/src/web/management-server.ts:1548 \u00B7 packages/electron/src/main/ipc.ts:1017 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/web/management-server.ts"},"region":{"startLine":1548}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e38f15d497ce163f6519ff22adea40a310062cfa811df2c35b452012a116e23"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/electron/bundled-plugins/claude-design/index.cjs:3093 \u00B7 packages/electron/bundled-plugins/claude-design/index.cjs:3117 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":3093}}}],"partialFingerprints":{"codehealthFindingId/v1":"c495440c3ed401f32d5229497e3b3c307d6b6f8bb897082883951a6fd5c451c0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/electron/bundled-plugins/claude-design/index.cjs:13889 \u00B7 packages/electron/bundled-plugins/claude-design/index.cjs:13915 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":13889}}}],"partialFingerprints":{"codehealthFindingId/v1":"260a1e52aee8f77d2e6c0834d06ec01f289ad221c87b891ccf0523d4f265fafc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (12 matched lines \u00D7 2 locations): packages/electron/src/main/browser-automation-mcp.ts:1468 \u00B7 packages/ui/src/pages/browser/main.tsx:365 \u2014 the two spans are one implementation copied and then locally edited \u2014 82 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":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":1468}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c42a34924b4e66b4907a6bf6bfebdeb2881fec2951aedcad31acfd7102d97e0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/ui/src/pages/home/App.tsx:2866 \u00B7 packages/ui/src/pages/home/App.tsx:2892 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/App.tsx"},"region":{"startLine":2866}}}],"partialFingerprints":{"codehealthFindingId/v1":"e41b086f39ccd0cb7ce88df4b4b78096f43e00bfd4101616195d88ec82420802"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/ui/src/pages/home/components/dashboard.tsx:541 \u00B7 packages/ui/src/pages/home/components/providers.tsx:3726 \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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"d96a8c5edf23290ee5da77ef7763c6cf405c8c5b2a1296cdf807f427f52fb0cc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/ui/src/pages/home/components/dashboard.tsx:878 \u00B7 packages/ui/src/pages/home/components/settings.tsx:2501 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"65fce9e29621cb7cd537c6eedef773a3c368264161e228117e7e39e2d323983f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/ui/src/pages/home/components/dashboard.tsx:2316 \u00B7 packages/ui/src/pages/home/components/dashboard.tsx:2330 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":2316}}}],"partialFingerprints":{"codehealthFindingId/v1":"90c35635ca9ec1c84e552a279e84b508782128d8e4ad07ec3bc82153a2d0b56a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/ui/src/pages/home/components/dashboard.tsx:2733 \u00B7 packages/ui/src/pages/home/components/dashboard.tsx:3567 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":2733}}}],"partialFingerprints":{"codehealthFindingId/v1":"894fdbe5f3fc7e7fc9796167aa5a246cf66b8592bf8c715a327545a84b5977a0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/ui/src/pages/home/components/dashboard.tsx:4544 \u00B7 packages/ui/src/pages/home/components/network-logs.tsx:694 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":4544}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0705c6dc90a4f0076af1cd9ab19d21631a1bf60c3326182a53e337073d1ff7b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/ui/src/pages/home/components/network-logs.tsx:643 \u00B7 packages/ui/src/pages/home/components/network-logs.tsx:657 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/network-logs.tsx"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f2c244835411abfa08e0371d320a8b86349c877d9fa1d8372ec2958c4bb72e4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3 locations): packages/ui/src/pages/home/shared/profiles.ts:970 \u00B7 packages/ui/src/pages/home/shared/profiles.ts:1673 \u00B7 packages/ui/src/pages/home/shared/virtual-models.ts:693 \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":"packages/ui/src/pages/home/shared/profiles.ts"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"57f08285fc6a6870c53a666e66c83f6f79cfcfcb007003cd4892d8a9aa7a2b91"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/ui/src/pages/home/shared/usage.ts:17 \u00B7 packages/ui/src/pages/tray/shared.tsx:581 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/usage.ts"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"e980dbe2f97687db4df9f84efdae5c9d4f7a5cac8dc24ca1c46e713b57241370"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/cli/src/cli.ts:660 \u00B7 packages/cli/src/cli.ts:673 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/cli/src/cli.ts"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c98a5712e7923b622ac61b5d9b8cdc717f1c011e22b34496f2f75ed796c6086"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 12 locations): packages/core/src/agents/claude-app/gateway-service.ts:239 \u00B7 packages/core/src/agents/codex/model-catalog.ts:857 \u00B7 packages/core/src/agents/pi/profile-config.ts:213 \u00B7 packages/core/src/agents/zcode/profile-config.ts:317 \u00B7 \u002B8 more site(s) not listed \u2014 the 11 copies are spread across 10 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/claude-app/gateway-service.ts"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbe94c2d0d9c5bb20f42005b69ac69bc29f31d53a34f3f49a3bc6609ce72a9bd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/core/src/agents/codex/model-catalog.ts:87 \u00B7 packages/core/src/gateway/features/model-discovery.ts:505 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/codex/model-catalog.ts"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"fab8229b6052cac8cfd7b5f641c2baaf37643f5e732ea5dccc76cc78c4933145"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/core/src/agents/local-providers/shared.ts:171 \u00B7 packages/core/src/gateway/core-runtime/supervisor.ts:806 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/local-providers/shared.ts"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"f579865f47247832a0fbbc0633922e2a4c949043842b5b2d8c6c3fdc81b6cbcc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/core/src/agents/pi/profile-config.ts:200 \u00B7 packages/core/src/config/config-repository.ts:861 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/pi/profile-config.ts"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ee949e1863f8a99974fd5b4414d7edd40567c25aafcdc86540804f218b46369"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/core/src/agents/zcode/profile-config.ts:257 \u00B7 packages/core/src/profiles/service.ts:3092 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/zcode/profile-config.ts"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"aea72ccb57544b68df3ce7f46a70e02a47b9598b814b2563385d631429e1d0d5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/core/src/config/config-repository.ts:858 \u00B7 packages/core/src/gateway/context-archive/store.ts:294 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config-repository.ts"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"33761d6a30d3aefbe58105949b8b060067b904e06b00dccdc25570613df16abd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/core/src/config/config.ts:1118 \u00B7 packages/core/src/config/config.ts:1309 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":1118}}}],"partialFingerprints":{"codehealthFindingId/v1":"c28a31aec68fefd80c2f7dba0bd4c914049bde57c2070f8bcabed07159f3adb4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/core/src/gateway/context-archive.ts:555 \u00B7 packages/core/src/gateway/context-archive.ts:581 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/context-archive.ts"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"59f81cfe35797aca47223555f1ed1da9347c0110f8940f5bc96d4f1604935bdf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/core/src/gateway/core-runtime/router-plugin.ts:1021 \u00B7 packages/core/src/gateway/request/pipeline.ts:1302 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/core-runtime/router-plugin.ts"},"region":{"startLine":1021}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cb12f2a476401cc4f1995d38da057b8833a1b36134f5631ab519b4e926f13fe"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/core/src/gateway/existing-gateway-probe.ts:243 \u00B7 packages/core/src/profiles/launch-service.ts:543 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/existing-gateway-probe.ts"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad2d515c352a5d4e0700b5c5683ae26de1b482c79668787f0dc00d8bcba43c69"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (11 matched lines \u00D7 2 locations): packages/core/src/gateway/features/context-archive-continuation.ts:435 \u00B7 packages/core/src/gateway/features/context-archive-continuation.ts:496 \u2014 the two spans are one implementation copied and then locally edited \u2014 103 tokens are still identical, in the same order in both spans, 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":"packages/core/src/gateway/features/context-archive-continuation.ts"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c93c3adcb029c8643c217f3347b9157e750108eb42a5516494bf243037b6d27"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/core/src/gateway/features/hosted-web-search/discovery.ts:348 \u00B7 packages/core/src/gateway/features/hosted-web-search/discovery.ts:364 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/features/hosted-web-search/discovery.ts"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"b342973348864052fcec2423f1b84b97f4de453c86db76e69c943de63c825602"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/core/src/gateway/features/model-discovery.ts:759 \u00B7 packages/core/src/gateway/features/model-discovery.ts:821 \u2014 all 2 copies are in the same file, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/features/model-discovery.ts"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a90fe0e78dbf2e6df05e9436444c92a6ae9426f7ef8d413bf31cb0d4be1e1a3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/core/src/gateway/remote-control-service.ts:253 \u00B7 packages/core/src/gateway/remote-control-service.ts:296 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/remote-control-service.ts"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"cab0becb307e7f02bbf50d5d765f6bad4c5949ed1ba2107b7affee057c046f39"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/core/src/mcp/fusion-vision-mcp.ts:691 \u00B7 packages/core/src/mcp/fusion-vision-mcp.ts:707 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/mcp/fusion-vision-mcp.ts"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"5af473ff3b0c0255c5581da22e9348d6949572cc4279bb635ec00a652aad2cf1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 7 locations): packages/core/src/mcp/fusion-vision-mcp.ts:1243 \u00B7 packages/core/src/media/tools.ts:217 \u00B7 packages/core/src/plugins/built-ins/openrouter-discount-provider-router.ts:1212 \u00B7 packages/core/src/providers/account-service.ts:2590 \u00B7 \u002B3 more site(s) not listed \u2014 the 7 copies are spread across 6 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 7 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/mcp/fusion-vision-mcp.ts"},"region":{"startLine":1243}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd7ee9833fb80697a3a24c85c87fc0c9dfae5f887c1b338d71359894defe3a1d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/core/src/observability/raw-trace-sync.ts:186 \u00B7 packages/core/src/usage/billing-sync.ts:41 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/raw-trace-sync.ts"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dffbc8fb9a08d9478a37213c7136720d9265a2c3a84068ac275366ae0fef249"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/core/src/plugins/service.ts:1105 \u00B7 packages/electron/src/main/built-in-browser.ts:997 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/plugins/service.ts"},"region":{"startLine":1105}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e4ee60b92cdcd9b02835759c2e4af2af2e4b5c7d924ae47514a59ec48242fc8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/core/src/profiles/launch-service.ts:274 \u00B7 packages/core/src/profiles/launch-service.ts:293 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/launch-service.ts"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb885f95075e3cd8991083005d04363f69138acbeb75df3aa906da7b218498b6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5 locations): packages/core/src/profiles/service.ts:3492 \u00B7 packages/core/src/profiles/service.ts:3507 \u00B7 packages/core/src/profiles/service.ts:3522 \u00B7 packages/core/src/profiles/service.ts:3538 \u00B7 \u002B1 more site(s) not listed \u2014 all 5 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/service.ts"},"region":{"startLine":3492}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6c83c152fe0ce5714bbf411b01b3172017714391658f683424d00f95621fe09"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/core/src/providers/account-service.ts:1293 \u00B7 packages/core/src/providers/account-service.ts:2359 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/providers/account-service.ts"},"region":{"startLine":1293}}}],"partialFingerprints":{"codehealthFindingId/v1":"77b07360ba6e259ec1cbc7466a99deb11ebbaa4167786f21536fbc7abb21d6cd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3 locations): packages/core/src/providers/account-service.ts:2283 \u00B7 packages/core/src/providers/account-service.ts:2329 \u00B7 packages/core/src/providers/account-service.ts:2346 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/providers/account-service.ts"},"region":{"startLine":2283}}}],"partialFingerprints":{"codehealthFindingId/v1":"4051544f28be1fd02b88d01ed104b3db9032ac5e9c4c425c3492aa95af7f4ad0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (11 matched lines \u00D7 2 locations): packages/core/src/providers/manifest-service.ts:174 \u00B7 packages/ui/src/pages/home/shared/providers.ts:1449 \u2014 the two spans are one implementation copied and then locally edited \u2014 75 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":"packages/core/src/providers/manifest-service.ts"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fb36e3fd37b141e81f1c3f01844bb86854670f9a9667d3ea5574204cbca16c1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/core/src/proxy/service.ts:1590 \u00B7 packages/core/src/web/management-server.ts:1420 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/proxy/service.ts"},"region":{"startLine":1590}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd145cea7970a76a1899b8295992d6de592c4e2b27ee8dc28c14060882dfbb0f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/core/src/routing/model-registry.ts:180 \u00B7 packages/electron/bundled-plugins/claude-design/index.cjs:12317 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/routing/model-registry.ts"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"f654e0c96716fd86c33642c909a37c2042edb39041392274c4dc06497b7a9420"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/electron/bundled-plugins/claude-design/index.cjs:3707 \u00B7 packages/electron/bundled-plugins/claude-design/index.cjs:3727 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":3707}}}],"partialFingerprints":{"codehealthFindingId/v1":"92358050ebb6828917f4feba4bb23c317a20f10e18568827871e094cdbde2153"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/electron/bundled-plugins/claude-design/index.cjs:10835 \u00B7 packages/electron/bundled-plugins/claude-design/index.cjs:12571 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":10835}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f7007cf233d77708e176374898fc26b3210d54edb91d51fea098dc84c606cb1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/electron/bundled-plugins/claude-design/index.cjs:13685 \u00B7 packages/electron/bundled-plugins/claude-design/index.cjs:13698 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":13685}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc9f1d45edd4d271cbded394293b4d00b3965dd68ea4ddf5b98afaee0ab650db"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/electron/src/main/browser-automation-mcp.ts:746 \u00B7 packages/electron/src/main/electron-web-search-mcp.ts:301 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"59495f45282b8f1f85bf244cf1c64c598f4792f8c8f508f301ba22db7f6988b8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/electron/src/main/browser-automation-mcp.ts:840 \u00B7 packages/electron/src/main/browser-automation-mcp.ts:852 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":840}}}],"partialFingerprints":{"codehealthFindingId/v1":"735035e87d70c8ab7105bfd6d676ca1a07da968416467369060c4e668659bdbd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (11 matched lines \u00D7 2 locations): packages/electron/src/main/browser-automation-mcp.ts:2026 \u00B7 packages/electron/src/main/built-in-browser.ts:946 \u2014 the two spans are one implementation copied and then locally edited \u2014 53 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":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":2026}}}],"partialFingerprints":{"codehealthFindingId/v1":"4161dd1eb3ab4e185f1f5868a479d4ed62ce9d9dbdf7258e1a17897491dac1f4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/electron/src/main/deep-link.ts:192 \u00B7 packages/electron/src/main/deep-link.ts:213 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/src/main/deep-link.ts"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"597b0aebd4420aeaccf65cf1018dea1bdbfa7341282b31aa86fa542150768606"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/ui/src/components/ui/tooltip.tsx:235 \u00B7 packages/ui/src/components/ui/tooltip.tsx:246 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/components/ui/tooltip.tsx"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1a1263bca89b1d02e40dfc6d2136b10b384a5407e56ee3d23652bdaab819ac3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/ui/src/pages/home/App.tsx:1482 \u00B7 packages/ui/src/pages/home/App.tsx:1596 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/App.tsx"},"region":{"startLine":1482}}}],"partialFingerprints":{"codehealthFindingId/v1":"285992d3add6031fb3ad3acdf8d7982fdce18ddf0fe6ec8e9a8c4e71e35e714d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/ui/src/pages/home/App.tsx:2929 \u00B7 packages/ui/src/pages/home/App.tsx:2962 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/App.tsx"},"region":{"startLine":2929}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e694df88ba9c2e6c71fd23985da05975704857ef13e41ecd0705dd63b12225c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/ui/src/pages/home/components/dashboard.tsx:253 \u00B7 packages/ui/src/pages/home/components/dashboard.tsx:305 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"26781cd590ab73923e9f52c90a87cb2dc1f383d01990f34ea8d12fae066264a0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/ui/src/pages/home/components/dashboard.tsx:1515 \u00B7 packages/ui/src/pages/tray/components/widgets.tsx:176 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":1515}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c972ca9ca8154b9885ebc60edd73400c5a24d4a6a2b12b9e2d0b0e728342e1f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/ui/src/pages/home/components/dashboard.tsx:1612 \u00B7 packages/ui/src/pages/tray/components/widgets.tsx:252 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":1612}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b61cbbb3a90b7ff381e184476bb10cd7f0b8078cc182f6f64c3982f33921b61"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/ui/src/pages/home/components/dashboard.tsx:1793 \u00B7 packages/ui/src/pages/home/components/dashboard.tsx:1875 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":1793}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffb136a1918795c376eff8a4865e91cb7410a1e47b9d62e66e4e3795d5f71a0b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/ui/src/pages/home/components/dashboard.tsx:2060 \u00B7 packages/ui/src/pages/home/components/settings.tsx:2443 \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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":2060}}}],"partialFingerprints":{"codehealthFindingId/v1":"92455e1bdb06b205fe41738e0564e45eca14cfd56b164564c23c997c827b2f6f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/ui/src/pages/home/components/dashboard.tsx:2355 \u00B7 packages/ui/src/pages/home/components/settings.tsx:2420 \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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":2355}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec18bba27201c67b98f124f43a5f10fd1ca58f991e8f94e0db6f9ed60e914396"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3 locations): packages/ui/src/pages/home/components/dashboard.tsx:4724 \u00B7 packages/ui/src/pages/home/components/dashboard.tsx:5416 \u00B7 packages/ui/src/pages/home/components/dashboard.tsx:6188 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":4724}}}],"partialFingerprints":{"codehealthFindingId/v1":"270908f7f90baf8a413b0e8052af077bed137e07fb1b92757893bd187ad0dc3f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/ui/src/pages/home/components/model-selector.tsx:138 \u00B7 packages/ui/src/pages/home/shared/controls.tsx:426 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/model-selector.tsx"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dec43f893d541f86ac2c44e325dcf9479810481a2d471bc10599162a896ab5d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3 locations): packages/ui/src/pages/home/shared/extensions.ts:50 \u00B7 packages/ui/src/pages/home/shared/extensions.ts:102 \u00B7 packages/ui/src/pages/home/shared/extensions.ts:122 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/extensions.ts"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"698ddbb8536b157f454ef27de958a13574a9f334a61414e81e52af8c10264f17"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3 locations): packages/ui/src/pages/home/shared/profiles.ts:432 \u00B7 packages/ui/src/pages/home/shared/profiles.ts:1257 \u00B7 packages/ui/src/pages/home/shared/profiles.ts:1601 \u2014 all 3 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/profiles.ts"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"13b12adc1d85c7090b3c43b0362342f1e4afba157da5ae1f5e27f96169045651"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/ui/src/pages/home/shared/providers.ts:1098 \u00B7 packages/ui/src/pages/home/shared/providers.ts:1110 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/providers.ts"},"region":{"startLine":1098}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a9b07fe10be82cb29107db223b5cc133ba2d8d64ac91a3eecf09446c2edee31"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/ui/src/pages/tray/components/widgets.tsx:408 \u00B7 packages/ui/src/pages/tray/components/widgets.tsx:525 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/tray/components/widgets.tsx"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"40c80069cc2a8837f091a26e817ee24215e5d0ee8e94c08bbab1d679c3754344"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4 locations): packages/core/src/agents/bot-gateway/env.ts:292 \u00B7 packages/core/src/agents/kilo/profile-config.ts:241 \u00B7 packages/core/src/agents/opencode/profile-config.ts:333 \u00B7 packages/core/src/profiles/service.ts:4112 \u2014 the 4 copies are spread across 4 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 4 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/bot-gateway/env.ts"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"aecac388a6b2a18e893217d4d824183f26d000f309fdb201e77a12117ec7739f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3 locations): packages/core/src/agents/bot-gateway/qr-login-service.ts:521 \u00B7 packages/core/src/gateway/claude-code-router-plugin.ts:274 \u00B7 packages/core/src/plugins/service.ts:1214 \u2014 the 3 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/bot-gateway/qr-login-service.ts"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"e078006a85b0fdd99fdc646a367214bb8493ddf1d6ae0787c1788abb8df0fb09"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): packages/core/src/agents/codex/media-preview-bridge.ts:274 \u00B7 packages/core/src/agents/codex/media-preview-bridge.ts:412 \u2014 the two spans are one implementation copied and then locally edited \u2014 106 tokens are still identical, in the same order in both spans, 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":"packages/core/src/agents/codex/media-preview-bridge.ts"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"a97d6df8c3a916176914580cef3a0568c0da8b58447b2f29d6753678a938dbb1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3 locations): packages/core/src/agents/codex/model-catalog.ts:327 \u00B7 packages/core/src/agents/opencode/profile-config.ts:183 \u00B7 packages/core/src/agents/pi/profile-config.ts:147 \u2014 the 3 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/codex/model-catalog.ts"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ed05fe9a3948887a4351b0fdf0c8b414fabb44aac1c26339a49520fc5bc5978"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/core/src/agents/codex/model-catalog.ts:673 \u00B7 packages/core/src/agents/codex/model-catalog.ts:684 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/codex/model-catalog.ts"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"f75aac35fbc2aedd61230e9decd94f164a937264e19bf9535af70d9065bae55e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/core/src/agents/codex/model-catalog.ts:778 \u00B7 packages/core/src/gateway/features/model-discovery.ts:969 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/codex/model-catalog.ts"},"region":{"startLine":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c2ab469614b0841139cb929757c07c602a8ff788ef77abb3efd85563e211a4f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): packages/core/src/agents/codex/model-catalog.ts:427 \u00B7 packages/core/src/agents/local-providers/codex.ts:814 \u2014 the two spans are one implementation copied and then locally edited \u2014 61 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":"packages/core/src/agents/codex/model-catalog.ts"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a4f5c8ee8fa781cddffa0aefd4df802b5f4a84777416692a0da05e3a253539d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/core/src/agents/local-providers/kimi.ts:543 \u00B7 packages/core/src/agents/local-providers/kimi.ts:605 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/local-providers/kimi.ts"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"690d143e718d81dbd7d308a65d301878b6a1d16545d7dc0298c9ac10c2065c47"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/core/src/agents/local-providers/shared.ts:71 \u00B7 packages/ui/src/pages/home/shared/providers.ts:2268 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/local-providers/shared.ts"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f9ce892633b69cb83adc6f9c97b680f8b45cd7722c2729b396b4c7f67dcc328"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/core/src/agents/opencode/app-launch.ts:288 \u00B7 packages/core/src/profiles/service.ts:4112 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/opencode/app-launch.ts"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"6584e6e64878ec51f730505fab3d3190f641ba1419adae087c953dd84129d3df"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/core/src/agents/pi/profile-config.ts:239 \u00B7 packages/core/src/profiles/launch-core.ts:406 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/pi/profile-config.ts"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"97e4c40068542348498ecf12bd50687ca8f7bffbc25591a90c26ea583e61965f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/core/src/config/config.ts:837 \u00B7 packages/core/src/config/config.ts:2542 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":837}}}],"partialFingerprints":{"codehealthFindingId/v1":"af0aca81e9cbb40c0959051e7fa5961fdee7e57eb6228b036714b0fe6fb99d93"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/core/src/config/config.ts:1006 \u00B7 packages/core/src/config/config.ts:1052 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":1006}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d79f3881a0d6d0ebdaa21c7906ded4fa4426bbdbcdde2d68a4615b14766eeaf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4 locations): packages/core/src/config/config.ts:2072 \u00B7 packages/core/src/config/config.ts:2150 \u00B7 packages/ui/src/pages/home/shared/routing.ts:211 \u00B7 packages/ui/src/pages/home/shared/routing.ts:275 \u2014 the 4 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":2072}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aad1c81d3e4a4b169e1d72fd6df05051f651f2f178d52aa2c3c4d1c902a08fc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3 locations): packages/core/src/config/config.ts:2276 \u00B7 packages/core/src/config/config.ts:2286 \u00B7 packages/core/src/config/config.ts:2399 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":2276}}}],"partialFingerprints":{"codehealthFindingId/v1":"9575e6b0b1e88da21b5d3c0b750455ba02e6af152beb944521e2d1a9501ee8e7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/core/src/config/config.ts:2862 \u00B7 packages/core/src/config/config.ts:2937 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":2862}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b23f23ec09670c77f1d7ca72b7a0dfa10fe5bfe6a81745519f1302cfbe971b1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/core/src/config/config.ts:3925 \u00B7 packages/ui/src/pages/home/shared/profiles.ts:1065 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":3925}}}],"partialFingerprints":{"codehealthFindingId/v1":"52c9426100b424657e0d51f8c216217e029aed435993dfad11210626271f4270"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/core/src/config/config.ts:4030 \u00B7 packages/core/src/mcp/fusion-config.ts:802 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":4030}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef539df9b8c5c292425893a91f7f2b694e82f97e0dc598961567e097bed82ff9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): packages/core/src/gateway/application/gateway-service.ts:58 \u00B7 packages/core/src/profiles/model-allowlist.ts:13 \u2014 the two spans are one implementation copied and then locally edited \u2014 50 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":"packages/core/src/gateway/application/gateway-service.ts"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"852254b2c49a2f3f9a147602e34c92b944a607f08cfed7bbfce6c483051a422b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6 locations): packages/core/src/gateway/context-archive.ts:38 \u00B7 packages/core/src/mcp/fusion-tool-fallback-mcp.ts:1 \u00B7 packages/core/src/mcp/fusion-vision-mcp.ts:5 \u00B7 packages/core/src/mcp/network-capture-mcp.ts:6 \u00B7 \u002B2 more site(s) not listed \u2014 the 6 copies are spread across 6 files, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/context-archive.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe785b72960bbd9a060f8a5e9a81c5e165bcf1f390a8de46e08a9385a884642e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4 locations): packages/core/src/gateway/features/context-archive-continuation.ts:709 \u00B7 packages/core/src/gateway/features/hosted-web-search/discovery.ts:231 \u00B7 packages/core/src/gateway/features/hosted-web-search/discovery.ts:322 \u00B7 packages/core/src/gateway/features/hosted-web-search/discovery.ts:341 \u2014 the 4 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/features/context-archive-continuation.ts"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"550a1b4546312b09958ad1b6190b18f03df4e0e81e4479765477ffe997741364"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/core/src/gateway/model-catalog.ts:371 \u00B7 scripts/generate-models-json.mjs:611 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/model-catalog.ts"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"95db0aa7f5d5b13b7fcd40355a31c6aadf7429d370d96239a820b800efb97014"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/core/src/mcp/fusion-config.ts:462 \u00B7 packages/ui/src/pages/home/shared/providers.ts:131 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/mcp/fusion-config.ts"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"74f31e4fe530f47d9bde855b63d335d35c7a18d282b8f7de39e9348bbed4056e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/core/src/mcp/fusion-vision-mcp.ts:1243 \u00B7 packages/electron/src/main/electron-web-search-mcp.ts:1279 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/mcp/fusion-vision-mcp.ts"},"region":{"startLine":1243}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e3377a3cd4bec4593e5566b77c0cce076fc1b97b9257e51cdec9efabd30d2cc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/core/src/mcp/tool-discovery.ts:91 \u00B7 packages/core/src/mcp/tool-discovery.ts:275 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/mcp/tool-discovery.ts"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"f251357a43b10e882379262472ac9694cd594dfb103bb75c7f16ddd74086e76b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/core/src/mcp/toolhub-mcp.ts:394 \u00B7 packages/core/src/mcp/toolhub-mcp.ts:412 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/mcp/toolhub-mcp.ts"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bc8d6c1b15aa3f79fa1592562e043ecb230fb4a26ceff461bf444ac72b561fa"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/core/src/mcp/toolhub-mcp.ts:1540 \u00B7 packages/core/src/mcp/toolhub-mcp.ts:1579 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/mcp/toolhub-mcp.ts"},"region":{"startLine":1540}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea4c32e98b6447ceaeffe6eaab6f20f054bc9b0123af6d063742e129783fc0be"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): packages/core/src/media/storage.ts:101 \u00B7 packages/core/src/media/storage.ts:118 \u2014 the two spans are one implementation copied and then locally edited \u2014 100 tokens are still identical, in the same order in both spans, 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":"packages/core/src/media/storage.ts"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"53554c01fdda7036ee22a6834f31b6b2de3d1c9adf548ffe7bb8f5926e2f7467"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/core/src/observability/request-log-store.ts:1823 \u00B7 packages/core/src/observability/request-log-store.ts:1850 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":1823}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9d818947a481156847be82fa242518d0a925ee2c5ef1aa6086f1db31a0e4f8c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/core/src/observability/request-log-store.ts:4577 \u00B7 packages/core/src/observability/request-log-store.ts:4616 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":4577}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aeceea31c07964e69cca9255c6ec76ad5da67023d1f2ae757d4452153f87f44"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3 locations): packages/core/src/observability/request-log-store.ts:4664 \u00B7 packages/core/src/observability/request-log-store.ts:4675 \u00B7 packages/core/src/usage/store.ts:489 \u2014 the 3 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":4664}}}],"partialFingerprints":{"codehealthFindingId/v1":"c685363c6213769898e413bc3e711bd94cff4ea00baf05bf3c60ce550aea993d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/core/src/profiles/launch-service.ts:651 \u00B7 packages/core/src/profiles/service.ts:3906 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/launch-service.ts"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"f37a6b79ba97c05ea26911b8f6c1a787c603cfb7142758908882998fbacf2e0e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/core/src/profiles/service.ts:2203 \u00B7 packages/core/src/profiles/service.ts:2427 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/service.ts"},"region":{"startLine":2203}}}],"partialFingerprints":{"codehealthFindingId/v1":"d37aa70761fe1bd2965aa1da58321a015c5b12708c0316be920eee2f51855707"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/core/src/profiles/service.ts:3167 \u00B7 packages/ui/src/pages/home/components/profiles.tsx:1640 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/service.ts"},"region":{"startLine":3167}}}],"partialFingerprints":{"codehealthFindingId/v1":"b763d20b5891458af2fad89734f30f2c3f8b75cbb7fb2884afcb39e69514d84e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/core/src/providers/account-service.ts:200 \u00B7 packages/core/src/providers/account-service.ts:210 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/providers/account-service.ts"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"39c2128829827cc29144986b32a6cfdcdedb81bb9fe43eb4d4da4d5f48d5bf89"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/core/src/providers/account-service.ts:1281 \u00B7 packages/ui/src/pages/home/components/settings.tsx:2422 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/providers/account-service.ts"},"region":{"startLine":1281}}}],"partialFingerprints":{"codehealthFindingId/v1":"2be8fb1dc82141f50be14a2757ef328cf2d74b8e7568c47b1553987d098a574b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3 locations): packages/core/src/providers/account-service.ts:1412 \u00B7 packages/core/src/web/management-server.ts:1207 \u00B7 packages/electron/src/main/ipc.ts:1085 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/providers/account-service.ts"},"region":{"startLine":1412}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c4252a1626dd4d94564ad8d38dae632a0e86321c0e44fbc98ec399637b6accf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/core/src/providers/account-service.ts:2590 \u00B7 packages/core/src/providers/openrouter-provider-catalog.ts:302 \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":"packages/core/src/providers/account-service.ts"},"region":{"startLine":2590}}}],"partialFingerprints":{"codehealthFindingId/v1":"145b307d7146a6c167de121366e3d19828ac22c627f61b3a4d0a3983d2aee0e2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/core/src/proxy/system-proxy-fetch.ts:60 \u00B7 packages/core/src/proxy/system-proxy-fetch.ts:79 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/proxy/system-proxy-fetch.ts"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"3270a3680def955cbca1775dce4c44278978e2b97a59af18c526c4e4af065cd0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/core/src/proxy/system-proxy.ts:592 \u00B7 packages/core/src/proxy/system-proxy.ts:657 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/proxy/system-proxy.ts"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"f743697ffd24b97828b61d6cf87d102a63047f146b2389152dabd8a76cf3beba"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/core/src/web/management-server.ts:494 \u00B7 packages/electron/src/main/main-app.ts:230 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/web/management-server.ts"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fead54862df60090a16e3a27a27c00c209e775674e2c0359054d5307cb1087c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/core/src/web/management-server.ts:1403 \u00B7 packages/electron/src/main/built-in-browser.ts:1012 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/web/management-server.ts"},"region":{"startLine":1403}}}],"partialFingerprints":{"codehealthFindingId/v1":"9832691f70ebdac3ca4670172b487982f997a868714c93f51dc1db70fad2c798"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/electron/bundled-plugins/claude-design/index.cjs:1187 \u00B7 packages/electron/bundled-plugins/claude-design/index.cjs:1786 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":1187}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f271b7e97430826566eeb9af822dce7a1090cf98a861dd3e6e724c83eab7e8f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/electron/bundled-plugins/claude-design/index.cjs:2509 \u00B7 packages/electron/bundled-plugins/claude-design/index.cjs:3331 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":2509}}}],"partialFingerprints":{"codehealthFindingId/v1":"6347e153217d6e2e3a03150d4adffe00d06f03617fdecba8889d6575b5feccc3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/electron/bundled-plugins/claude-design/index.cjs:8419 \u00B7 packages/electron/bundled-plugins/claude-design/index.cjs:8442 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":8419}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8fe6c3349fec5143f0bf8263c0e227192b738e39b6519805ff5a129542aa066"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/electron/bundled-plugins/claude-design/index.cjs:9629 \u00B7 packages/electron/bundled-plugins/claude-design/index.cjs:13565 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":9629}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a8d1739431695969a96da2d1b8212031a9e57af172756ba05fa0408d4f5b091"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/electron/bundled-plugins/claude-design/index.cjs:12952 \u00B7 packages/electron/bundled-plugins/claude-design/index.cjs:12968 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":12952}}}],"partialFingerprints":{"codehealthFindingId/v1":"2355e6f79d2ca4d8e96318118d9492dcc58dc321f345e7a0c5cd56f945991702"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/electron/src/main/browser-automation-mcp.ts:858 \u00B7 packages/electron/src/main/browser-automation-mcp.ts:871 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"714510cd2d60a1b749c590a834d9ca6762edbcdf69a07206f1ea05e54158d057"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/electron/src/main/browser-automation-mcp.ts:2785 \u00B7 packages/electron/src/main/browser-automation-mcp.ts:2923 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":2785}}}],"partialFingerprints":{"codehealthFindingId/v1":"568e42dfaff33cce84b78d88bbe9bc9a19c1f0981bafa1337ae786fbf81cd1b9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/electron/src/main/built-in-browser.ts:266 \u00B7 packages/electron/src/main/built-in-browser.ts:813 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/src/main/built-in-browser.ts"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bab64ab138a0add34e82c863e17a862895ca851b6faec5755c8cbc24e16932f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/electron/src/main/claude-design-window.ts:669 \u00B7 packages/electron/src/main/deep-link.ts:406 \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":"packages/electron/src/main/claude-design-window.ts"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fc1054285ef55ecbcd141e7556bde26948c3cf7577deefe8dd69a0138351d10"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): packages/electron/src/main/deep-link.ts:392 \u00B7 packages/ui/src/pages/home/shared/extensions.ts:247 \u2014 the two spans are one implementation copied and then locally edited \u2014 56 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":"packages/electron/src/main/deep-link.ts"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef237232e51528ab1f8661c3315e3614b1555eabf70a516e41f51cc0d11b0b42"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/ui/src/pages/home/components/dashboard.tsx:128 \u00B7 packages/ui/src/pages/home/components/settings.tsx:2671 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c23456c8b1f830fafbffe9a5febca057d51306282b3a7a31bab46ce0f98483c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/ui/src/pages/home/components/dashboard.tsx:2699 \u00B7 packages/ui/src/pages/home/components/dashboard.tsx:2723 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":2699}}}],"partialFingerprints":{"codehealthFindingId/v1":"f872abdd388e57a4186cd92fe4b8b2a71a19768ab45667c77a47444b9e73e4e8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/ui/src/pages/home/components/profiles.tsx:928 \u00B7 packages/ui/src/pages/home/components/profiles.tsx:938 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/profiles.tsx"},"region":{"startLine":928}}}],"partialFingerprints":{"codehealthFindingId/v1":"50eed3a7f9ec7ce86b4332006c6b31e4b3c4ac357d77f909b60f1663c5616433"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/ui/src/pages/home/components/providers.tsx:2463 \u00B7 packages/ui/src/pages/home/components/providers.tsx:2474 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":2463}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f82c9865d78ac1ecd4ec57aa109318ee866a597934dad4500d49dae63c97329"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4 locations): packages/ui/src/pages/home/components/settings.tsx:2905 \u00B7 packages/ui/src/pages/home/components/settings.tsx:3119 \u00B7 packages/ui/src/pages/home/components/settings.tsx:3143 \u00B7 packages/ui/src/pages/tray/components/widgets.tsx:48 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/settings.tsx"},"region":{"startLine":2905}}}],"partialFingerprints":{"codehealthFindingId/v1":"17243d0a7c8ca949c79128b163a1151c5fa5897969e1dc8bbb7e94d11f4c6670"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/ui/src/pages/home/shared/virtual-models.ts:680 \u00B7 packages/ui/src/pages/home/shared/virtual-models.ts:1175 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/virtual-models.ts"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c1eb5e80682cd730bf625941118a0f03816e1f6cf3189a92d9cea0b67116dad"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/cli/src/cli.ts:1026 \u00B7 packages/core/src/entrypoints/server.ts:117 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/cli/src/cli.ts"},"region":{"startLine":1026}}}],"partialFingerprints":{"codehealthFindingId/v1":"979525b37bd78571604f2d6f710885c9d19188097562465e949cf6c12453994c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): packages/cli/src/cli.ts:869 \u00B7 packages/core/src/agents/local-providers/kimi.ts:768 \u2014 the two spans are one implementation copied and then locally edited \u2014 51 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":"packages/cli/src/cli.ts"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"63792efe3aac2a6669b384b25c38111d26e33cd0664bf70fbe4811e6d9c83ecc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): packages/core/src/agents/claude-app/cdp.ts:167 \u00B7 packages/core/src/agents/codex/media-preview-bridge.ts:259 \u2014 the two spans are one implementation copied and then locally edited \u2014 60 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":"packages/core/src/agents/claude-app/cdp.ts"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd8c3acd1557043d491f90d50b476713cc0b2e8110b7d2478a5fdf4964ca973e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/core/src/agents/claude-app/launch.ts:43 \u00B7 packages/core/src/agents/opencode/app-launch.ts:65 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/claude-app/launch.ts"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1a73082a2954a0ca55892f137b53ade009495854c8d897552f9b3c2dc89622a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/core/src/agents/codex/app-launch.ts:532 \u00B7 packages/core/src/agents/codex/model-catalog.ts:663 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/codex/app-launch.ts"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e19fe98ba906105a8236c080caeadfec97df03de99ad50135427a58871bc7c4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/core/src/agents/codex/app-launch.ts:751 \u00B7 packages/core/src/config/config.ts:4211 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/codex/app-launch.ts"},"region":{"startLine":751}}}],"partialFingerprints":{"codehealthFindingId/v1":"0969448438a8c8949d997c385302da7cbd46505d0c0cb907a3c752765f20afd4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): packages/core/src/agents/codex/model-catalog.ts:102 \u00B7 packages/core/src/contracts/app.ts:1147 \u00B7 packages/core/src/gateway/features/model-discovery.ts:520 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/codex/model-catalog.ts"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"11ae989b9d3a340f7c7a423dfa69b5ef8f9bf54f97e1b1545f1f2d5327268f5d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6 locations): packages/core/src/agents/codex/model-catalog.ts:371 \u00B7 packages/core/src/agents/local-providers/codex.ts:583 \u00B7 packages/core/src/agents/local-providers/grok.ts:639 \u00B7 packages/core/src/config/config.ts:650 \u00B7 \u002B2 more site(s) not listed \u2014 the 6 copies are spread across 6 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/codex/model-catalog.ts"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd22cfc628939dc5a76a4d978725aaeccc8a17124293f80eba531bc21dfe91fa"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/core/src/agents/local-providers/codex.ts:528 \u00B7 packages/core/src/agents/local-providers/codex.ts:538 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/local-providers/codex.ts"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"52abe0460e3501163e63ff0c6c20c6ed7f2b7fc4a94b53b4ecbfa2eeb95b65ac"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): packages/core/src/agents/local-providers/grok.ts:812 \u00B7 packages/ui/src/pages/home/shared/provider-accounts.ts:114 \u00B7 packages/ui/src/pages/tray/shared.tsx:853 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/local-providers/grok.ts"},"region":{"startLine":812}}}],"partialFingerprints":{"codehealthFindingId/v1":"60eda07c3f228f7734d90b7beba4ca66676cc1f46e9bd13739c01b0402630392"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): packages/core/src/agents/local-providers/grok.ts:739 \u00B7 packages/core/src/models/pricing-service.ts:499 \u2014 the two spans are one implementation copied and then locally edited \u2014 62 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":"packages/core/src/agents/local-providers/grok.ts"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"187e92b78d880ea4df038952b587dbeadd6908004b3c55a0e6dab56f71131ecf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): packages/core/src/agents/local-providers/opencode.ts:686 \u00B7 packages/core/src/agents/pi/profile-config.ts:239 \u00B7 packages/core/src/profiles/launch-core.ts:406 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/local-providers/opencode.ts"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cb7b4675e07275d9ab7102c40b61c6ca22c38bc42bd53a59710c1703f9f7f53"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): packages/core/src/config/config.ts:1342 \u00B7 packages/ui/src/pages/home/shared/common.ts:267 \u00B7 packages/ui/src/pages/tray/shared.tsx:477 \u2014 the 3 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":1342}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7f619cf9a9f53c5f1f55a0b69a946f5a63bebc97f9d5df0d16613384bcc6670"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): packages/core/src/config/config.ts:2302 \u00B7 packages/core/src/config/config.ts:2403 \u00B7 packages/core/src/config/config.ts:2552 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":2302}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ea3da8afd5ae41d09d76f8cd9596068f7018c3ba8b7ef2cf404c1c8221da4d3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): packages/core/src/config/config.ts:1680 \u00B7 packages/core/src/routing/model-registry.ts:194 \u2014 the two spans are one implementation copied and then locally edited \u2014 55 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":"packages/core/src/config/config.ts"},"region":{"startLine":1680}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a7470675db132d1edf59a0abb8818c61b54ddc2ac4dd79af36aa784b13562eb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): packages/core/src/gateway/auth/api-key-authorizer.ts:171 \u00B7 packages/core/src/profiles/launch-service.ts:600 \u2014 the two spans are one implementation copied and then locally edited \u2014 63 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":"packages/core/src/gateway/auth/api-key-authorizer.ts"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"141d2f21c09904c26d530a225e02d9a7a2cfb9546a2b33c6c5c7a2a45c79ed8b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/core/src/gateway/claude-code-router-plugin.ts:1506 \u00B7 packages/core/src/routing/rewrite.ts:200 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/claude-code-router-plugin.ts"},"region":{"startLine":1506}}}],"partialFingerprints":{"codehealthFindingId/v1":"8efbeed89c937bc24a4b324a340d8fcadaaa6f79e1a679f4d79a1049e1b28d64"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/core/src/gateway/claude-code-router-plugin.ts:1572 \u00B7 packages/core/src/routing/rewrite.ts:308 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/claude-code-router-plugin.ts"},"region":{"startLine":1572}}}],"partialFingerprints":{"codehealthFindingId/v1":"07e01e20731c0f90826ac728aab6d76d637c2e0752f556da26aebe15bcaf95b7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): packages/core/src/gateway/claude-code-router-plugin.ts:1583 \u00B7 packages/ui/src/pages/home/shared/logs.ts:1331 \u2014 the two spans are one implementation copied and then locally edited \u2014 54 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":"packages/core/src/gateway/claude-code-router-plugin.ts"},"region":{"startLine":1583}}}],"partialFingerprints":{"codehealthFindingId/v1":"13f1886f52e84d644165cf7a0cc15a81b28e8668eeda8d0b9d7b964799dc0635"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/core/src/gateway/core-runtime/config-compiler.ts:591 \u00B7 packages/core/src/gateway/core-runtime/config-compiler.ts:617 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/core-runtime/config-compiler.ts"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a484b2d9455fc8af4d9c275cdb33b014d3e64f3f8b5b108e517a3f34ce5cc23"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): packages/core/src/gateway/core-runtime/config-compiler.ts:358 \u00B7 packages/core/src/providers/model-catalog.ts:676 \u2014 the two spans are one implementation copied and then locally edited \u2014 52 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":"packages/core/src/gateway/core-runtime/config-compiler.ts"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b967fcd8d4a790398807a6891c6c9fba15a372023643c4fb091addf62a21050"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/core/src/gateway/features/codex-patch-bridge.ts:454 \u00B7 packages/core/src/gateway/features/hosted-web-search/sse.ts:18 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/features/codex-patch-bridge.ts"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e7e024102773a4c96e175c6693616d994acf1594799ecdecd1330fa72199759"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/core/src/gateway/features/context-archive-continuation.ts:333 \u00B7 packages/core/src/gateway/features/context-archive-continuation.ts:354 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/features/context-archive-continuation.ts"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca9293a4e42cd2c6c1ed0c34a4abfefdabfa1c745e0ca10a688772f8e9efb8db"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4 locations): packages/core/src/gateway/features/hosted-web-search/discovery.ts:539 \u00B7 packages/core/src/gateway/features/hosted-web-search/discovery.ts:556 \u00B7 packages/core/src/gateway/features/hosted-web-search/discovery.ts:610 \u00B7 packages/core/src/gateway/features/hosted-web-search/discovery.ts:626 \u2014 all 4 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/features/hosted-web-search/discovery.ts"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"79fa4a4269d0d0d6eaeb948e6786979743e8992e1d21b1d8691eef5f2f000ba4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6 locations): packages/core/src/gateway/features/hosted-web-search/discovery.ts:555 \u00B7 packages/core/src/gateway/features/hosted-web-search/discovery.ts:590 \u00B7 packages/core/src/gateway/features/hosted-web-search/discovery.ts:609 \u00B7 packages/core/src/gateway/features/hosted-web-search/discovery.ts:625 \u00B7 \u002B2 more site(s) not listed \u2014 all 6 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/features/hosted-web-search/discovery.ts"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3d0f12f517840f2324dad2e805304db1dead1755df5210cc5032edbe474cc7c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): packages/core/src/gateway/features/opencode-cache-usage.ts:76 \u00B7 packages/core/src/gateway/features/opencode-cache-usage.ts:87 \u2014 the two spans are one implementation copied and then locally edited \u2014 53 tokens are still identical, in the same order in both spans, 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":"packages/core/src/gateway/features/opencode-cache-usage.ts"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"387a5aa2be1b23b519914a5032fd2a088cb20e5b9bdce28154df1c4e66a2208a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/core/src/gateway/http/io.ts:83 \u00B7 packages/core/src/proxy/service.ts:1232 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/http/io.ts"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"adc697463fc6887b18eed23e45c27af63006dc65b3d2196312d5cdbec1c7d54f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4 locations): packages/core/src/gateway/remote-control-service.ts:164 \u00B7 packages/core/src/gateway/remote-control-service.ts:216 \u00B7 packages/core/src/gateway/remote-control-service.ts:259 \u00B7 packages/core/src/gateway/remote-control-service.ts:302 \u2014 all 4 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/remote-control-service.ts"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"83d8590067e2cf9d82830d014d9e41df8a566741114063fe71469e53bf2e7849"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): packages/core/src/mcp/browser-web-search-proxy-mcp.ts:18 \u00B7 packages/core/src/mcp/fusion-tool-fallback-mcp.ts:52 \u00B7 packages/core/src/mcp/fusion-vision-mcp.ts:144 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/mcp/browser-web-search-proxy-mcp.ts"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5cb45c2a186ed56da4fdaaf0268ec25355192ea767feb937a2a9aaeae1ab17a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/core/src/mcp/fusion-tool-fallback-mcp.ts:225 \u00B7 packages/core/src/usage/store.ts:1290 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/mcp/fusion-tool-fallback-mcp.ts"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"aea683c3c5347309475cff3d7095d3195b89875bbdfb333aaba1938a820c483a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): packages/core/src/mcp/fusion-vision-mcp.ts:218 \u00B7 packages/electron/src/main/browser-automation-mcp.ts:748 \u00B7 packages/electron/src/main/electron-web-search-mcp.ts:303 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/mcp/fusion-vision-mcp.ts"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"895e1f44906d143208d928da35983649b7724c1120b21ed58d4c6b044a0a46ee"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/core/src/mcp/network-capture-mcp.ts:377 \u00B7 packages/core/src/web/management-server.ts:755 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/mcp/network-capture-mcp.ts"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"e774f54a695338aa0a46f691954955f061609e8a50c98fe82166000ebc2c8d8a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/core/src/mcp/tool-discovery.ts:338 \u00B7 packages/core/src/mcp/toolhub-mcp.ts:2873 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/mcp/tool-discovery.ts"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"314e995e82081a88ec1ac2d61d02f119bb68c37f043e358caacb128960b95f9b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/core/src/mcp/tool-discovery.ts:460 \u00B7 packages/core/src/mcp/toolhub-mcp.ts:1961 \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":"packages/core/src/mcp/tool-discovery.ts"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed037268480e608999358fae9b4bfd1c26511124dd0a8af7fdb539256c5addb7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/core/src/mcp/toolhub-mcp.ts:965 \u00B7 packages/core/src/mcp/toolhub-mcp.ts:1151 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/mcp/toolhub-mcp.ts"},"region":{"startLine":965}}}],"partialFingerprints":{"codehealthFindingId/v1":"9873e48552f7fe8f4bd62f56efc3765401cf192f6bd7758917b890c4a17a22a5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/core/src/media/executors.ts:39 \u00B7 packages/core/src/media/executors.ts:51 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/media/executors.ts"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"583ed97d3538ec00cf62b1569bc8a7aeea8081bb04671f2e23003078463dc00e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): packages/core/src/observability/request-log-admission-store.ts:203 \u00B7 packages/core/src/observability/request-log-admission-store.ts:241 \u2014 the two spans are one implementation copied and then locally edited \u2014 53 tokens are still identical, in the same order in both spans, 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":"packages/core/src/observability/request-log-admission-store.ts"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"28fa063137273c9399ced873662ddf25946ec1a460b3cce84a2f4dac4d67f6fe"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): packages/core/src/observability/request-log-model.ts:32 \u00B7 packages/core/src/observability/request-log-store.ts:6344 \u00B7 packages/core/src/usage/store.ts:1136 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-model.ts"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b3a75d42090c409ffc023daa6d4e0ad50918319779fb1a0be31248e79f2e709"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/core/src/observability/request-log-store.ts:6030 \u00B7 packages/core/src/observability/request-log-store.ts:6046 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":6030}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1576179ccdbc9b6d89127ec16f2a52dde8a49ebaf801e23797d24c08456f8ae"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): packages/core/src/observability/stream-experience.ts:559 \u00B7 packages/electron/src/main/chrome-login-import.ts:551 \u2014 the two spans are one implementation copied and then locally edited \u2014 59 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":"packages/core/src/observability/stream-experience.ts"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"82dd7927d89f8f50a91871f1c51d024f35c7522c806490e89a83d22b6120ae0d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/core/src/plugins/backend-service.ts:353 \u00B7 packages/core/src/proxy/service.ts:1454 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/plugins/backend-service.ts"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"488a5e9b2875693f3ec8a27d82bb7be305ffddd9752e84b2e74a48e4eea4c7c6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/core/src/plugins/built-ins/openrouter-discount-provider-router.ts:749 \u00B7 packages/core/src/routing/token-estimator.ts:30 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/plugins/built-ins/openrouter-discount-provider-router.ts"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a8f0458c5ea8853081db3a15ceb76207d2c641ac1928af6b6bdf0f27a9bcee1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/core/src/profiles/launch-core.ts:388 \u00B7 packages/core/src/profiles/service.ts:2644 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/launch-core.ts"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c0b56808cb91a1457d646b24da59aa5b65ce673ce6fe0c6dbd9cd9645c1446e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/core/src/profiles/launch-service.ts:2115 \u00B7 packages/core/src/proxy/system-proxy.ts:1019 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/launch-service.ts"},"region":{"startLine":2115}}}],"partialFingerprints":{"codehealthFindingId/v1":"b766d14703b7f66cd2f9347d5923898f2686fcf0df2283a1d7b1000fae0947e0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/core/src/profiles/service.ts:1478 \u00B7 packages/core/src/profiles/service.ts:1508 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/service.ts"},"region":{"startLine":1478}}}],"partialFingerprints":{"codehealthFindingId/v1":"15fd77d4d51b792c54c02c09feb87d6ddb786892a7b8c5095134d1042e41229b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/core/src/profiles/service.ts:1764 \u00B7 packages/core/src/profiles/service.ts:1841 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/service.ts"},"region":{"startLine":1764}}}],"partialFingerprints":{"codehealthFindingId/v1":"19764b37f4206165f4abbcae5b8ac3ce8d5f4185310260d0cd933602dd51b119"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/core/src/providers/account-service.ts:1518 \u00B7 packages/core/src/providers/model-auto-refresh.ts:456 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/providers/account-service.ts"},"region":{"startLine":1518}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e7a26d20a812938cc65f9ca06ee1eaeef81723bdd5f9cedb4af2f60e7991a7b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/core/src/providers/account-service.ts:1831 \u00B7 packages/core/src/providers/account-service.ts:1843 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/providers/account-service.ts"},"region":{"startLine":1831}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e887986e3185ea647c138e06dcf9f31606d07457f79d9e622a8cff4590f2e5d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/core/src/providers/url.ts:136 \u00B7 packages/core/src/providers/url.ts:151 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/providers/url.ts"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"17d17a42e0fc53bf6fc5fab0ee29f7fba2d8818f9327c3d1a66561ee55a03850"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/core/src/proxy/system-proxy.ts:332 \u00B7 packages/electron/src/main/claude-design-window.ts:726 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/proxy/system-proxy.ts"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"228d89fc14e89b067539be7de6f2cdd2a06463769d23cbc5ea2e75a4b7a87151"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): packages/core/src/routing/config-compiler.ts:279 \u00B7 packages/ui/src/pages/home/shared/providers.ts:234 \u2014 the two spans are one implementation copied and then locally edited \u2014 54 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":"packages/core/src/routing/config-compiler.ts"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"99a5d9fb1d3c4701ec68834312f0bc9976fb4d84a27495ba90513da1ac78b74f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/core/src/routing/token-estimator.ts:4 \u00B7 packages/core/src/routing/token-estimator.ts:15 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/routing/token-estimator.ts"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ef72792a83bb454d8bc6a3238bcae39db7263c5871cb3d63145236d2d86ccab"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/electron/bundled-plugins/claude-design/index.cjs:1803 \u00B7 packages/electron/bundled-plugins/claude-design/index.cjs:1874 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":1803}}}],"partialFingerprints":{"codehealthFindingId/v1":"c022b864ee78ecbe4197492ca8ff6b8dd8b4fe759a11d25fe066b4226586d1d7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/electron/bundled-plugins/claude-design/index.cjs:2621 \u00B7 packages/electron/bundled-plugins/claude-design/index.cjs:3176 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":2621}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea75d28fde6ee23811789be198c514733fa165decc09b90d38f3ca8a8e51ab70"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/electron/bundled-plugins/claude-design/index.cjs:8370 \u00B7 packages/electron/bundled-plugins/claude-design/index.cjs:8412 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":8370}}}],"partialFingerprints":{"codehealthFindingId/v1":"be0f9e1a9fd98f5d600e1082f108f3d7fd00cf6a8c3aaed3e098a657bf360c4a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/ui/src/pages/browser/main.tsx:198 \u00B7 packages/ui/src/pages/browser/main.tsx:207 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/browser/main.tsx"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b44c4ab373111a2bcd1d92d5368771d46323fc089c13d7c3a2fd67511698466"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6 locations): packages/ui/src/pages/home/components/api-keys.tsx:68 \u00B7 packages/ui/src/pages/home/components/extensions.tsx:63 \u00B7 packages/ui/src/pages/home/components/providers.tsx:122 \u00B7 packages/ui/src/pages/home/components/providers.tsx:532 \u00B7 \u002B2 more site(s) not listed \u2014 the 6 copies are spread across 5 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/api-keys.tsx"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"14c1e339ec1fa64443d9f7d0f3bf4cb25b17a9f37550507d1500122653d6fe27"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/ui/src/pages/home/components/api-keys.tsx:303 \u00B7 packages/ui/src/pages/home/components/settings.tsx:972 \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":"packages/ui/src/pages/home/components/api-keys.tsx"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"f75d3717848f766a5360f588a6d765a07908491637f9b0f55d31bd08900dbce8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/ui/src/pages/home/components/dashboard.tsx:1737 \u00B7 packages/ui/src/pages/home/components/dashboard.tsx:1819 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":1737}}}],"partialFingerprints":{"codehealthFindingId/v1":"a30787cfa1ab14224f9cec23c0b6e4264b05554e67fa0e8b2f7607acc8e16eb6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/ui/src/pages/home/components/dashboard.tsx:2492 \u00B7 packages/ui/src/pages/home/components/network-logs.tsx:1423 \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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":2492}}}],"partialFingerprints":{"codehealthFindingId/v1":"38f470da175c945b6c52f490f59034a7b85a48f36b85f368add4794db43b267d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/ui/src/pages/home/components/dashboard.tsx:3019 \u00B7 packages/ui/src/pages/home/components/dashboard.tsx:3074 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":3019}}}],"partialFingerprints":{"codehealthFindingId/v1":"41e597828901bff87756a48684748baefdcf6ec867ef986e99d6e8b32ab81690"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/ui/src/pages/home/components/dashboard.tsx:5976 \u00B7 packages/ui/src/pages/home/components/network-logs.tsx:2622 \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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":5976}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c71d9d011c7397e6c3e3d6da3c32ab6931fde937ddef02f1ead2916e4430f36"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): packages/ui/src/pages/home/components/dashboard.tsx:6021 \u00B7 packages/ui/src/pages/home/components/dashboard.tsx:6031 \u00B7 packages/ui/src/pages/home/components/dashboard.tsx:6105 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":6021}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c0c586e925023bedf2b00399c9737300d4df1e8f61cfbf7922ce4f733be1b91"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5 locations): packages/ui/src/pages/home/components/extensions.tsx:246 \u00B7 packages/ui/src/pages/home/components/extensions.tsx:375 \u00B7 packages/ui/src/pages/home/components/settings.tsx:853 \u00B7 packages/ui/src/pages/home/components/virtual-models.tsx:475 \u00B7 \u002B1 more site(s) not listed \u2014 the 3 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":"packages/ui/src/pages/home/components/extensions.tsx"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"f807d082839d8c51a6c1c889bcf8827d0bae2bbba8841ce4445e92fb10354820"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): packages/ui/src/pages/home/components/profiles.tsx:893 \u00B7 packages/ui/src/pages/home/components/profiles.tsx:902 \u00B7 packages/ui/src/pages/home/components/profiles.tsx:911 \u2014 all 3 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/profiles.tsx"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ae4ba8486bf6c74d0301b6b344e4396842b515359e9d194bf4b48724c1f48a2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/ui/src/pages/home/components/providers.tsx:893 \u00B7 packages/ui/src/pages/home/components/update.tsx:126 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"351c8a6cd97fcec4e023c4129434ea1b6dd1569fadadc9e436eaeb5bbecc357a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/ui/src/pages/home/components/providers.tsx:2499 \u00B7 packages/ui/src/pages/home/components/providers.tsx:2533 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":2499}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c7dc199993604e6da3b6a14672ae16fe62b084ef5e2f9e99e802bbec05c7cce"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): packages/ui/src/pages/home/components/providers.tsx:5033 \u00B7 packages/ui/src/pages/home/components/providers.tsx:5050 \u00B7 packages/ui/src/pages/home/components/providers.tsx:5067 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":5033}}}],"partialFingerprints":{"codehealthFindingId/v1":"f691fb33c744f14a6e57f892ed127633b49580fa282ee3bc32382bc51397a647"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): packages/ui/src/pages/home/components/settings.tsx:567 \u00B7 packages/ui/src/pages/home/components/settings.tsx:715 \u00B7 packages/ui/src/pages/home/components/settings.tsx:725 \u2014 all 3 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/settings.tsx"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"385af03acec69ceba905a7d3762786fdc12f61ae058f079b772ea5cab8726db9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4 locations): packages/ui/src/pages/home/components/settings.tsx:3170 \u00B7 packages/ui/src/pages/home/components/settings.tsx:3245 \u00B7 packages/ui/src/pages/tray/components/widgets.tsx:412 \u00B7 packages/ui/src/pages/tray/components/widgets.tsx:529 \u2014 the 4 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/settings.tsx"},"region":{"startLine":3170}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c71e7069cddc651be2f6b2d4af8abb44f65582589416592053293e783213608"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/ui/src/pages/home/components/virtual-models.tsx:247 \u00B7 packages/ui/src/pages/home/components/virtual-models.tsx:872 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/virtual-models.tsx"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"95417528e60a577bba949533106bb6537fe15d6fb4f27ae06584c7f859b6e5b2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/ui/src/pages/home/shared/common.ts:51 \u00B7 packages/ui/src/pages/tray/shared.tsx:547 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/common.ts"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ba7e4c60b5bbcc16ac098e8695a77ec9e624808423cf55652cb19f8cf3854fd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/ui/src/pages/home/shared/logs.ts:596 \u00B7 packages/ui/src/pages/home/shared/logs.ts:613 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/logs.ts"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"4088a8a24d124d6b60299c5835de9d7ff4f540107741d75ace7f2b9eb259d4e6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/ui/src/pages/home/shared/providers.ts:475 \u00B7 packages/ui/src/pages/home/shared/routing.ts:649 \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":"packages/ui/src/pages/home/shared/providers.ts"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"677c262fbae6f9534557a7a915b735c2a26d0147cc90bfbfbae042eaad251ed4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/ui/src/pages/home/shared/routing.ts:93 \u00B7 packages/ui/src/pages/home/shared/routing.ts:305 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/routing.ts"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"b68540ff6bf81f1defd57671d52f51efb92377dada53aa3ec73559c05841a95e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/cli/src/cli.ts:201 \u00B7 packages/cli/src/cli.ts:210 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/cli/src/cli.ts"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"d838309caa0b725ae5f3d3ecef1902eedfa69ef9dbc9f5f8fa1aad9d8ca788a1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/core/src/agents/bot-gateway/env.ts:54 \u00B7 packages/core/src/agents/bot-gateway/env.ts:69 \u2014 all 2 copies are in the same file, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/bot-gateway/env.ts"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6575d3d772346ac3f547b801522b48ddbf2bdee5f33bfa04a21228cde7e7c98"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/core/src/agents/claude-app/launch.ts:287 \u00B7 packages/core/src/agents/opencode/app-launch.ts:170 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/claude-app/launch.ts"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"73529fa2eb677fdbd39003fb0930fc0409de5d4b5f8ce8383a3cf4166d8d8131"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/core/src/agents/codex/model-catalog.ts:792 \u00B7 packages/core/src/gateway/remote-control-service.ts:605 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/codex/model-catalog.ts"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"eee12315ed5b4617375f0cf2f9876b6989ed89c92604c660d0480653c070fddb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): packages/core/src/agents/kilo/profile-config.ts:257 \u00B7 packages/core/src/media/tools.ts:229 \u2014 the two spans are one implementation copied and then locally edited \u2014 61 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":"packages/core/src/agents/kilo/profile-config.ts"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4f2327b8dece7ffb1e288a43791ad13226f6b9af141841f3eb02f0849735f8f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/core/src/agents/local-providers/codex.ts:701 \u00B7 packages/core/src/agents/local-providers/zcode.ts:218 \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":"packages/core/src/agents/local-providers/codex.ts"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"01af37dc9f57c49fb6adbef21ce62a5893fd899f2745646c6aecaaceb945d2b8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/core/src/agents/local-providers/codex.ts:767 \u00B7 packages/core/src/profiles/service.ts:2197 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/local-providers/codex.ts"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"28840e02bcfab28c1e34ab64e0d8c46f97e4b58f68f558420e1e65efbc863912"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/core/src/agents/local-providers/grok.ts:611 \u00B7 packages/ui/src/pages/home/shared/providers.ts:548 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/local-providers/grok.ts"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"665ae01f87e9d9037ace23eace369430e2ce7040b400000e53c3869fb58cfd1e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/core/src/agents/local-providers/kimi.ts:737 \u00B7 packages/core/src/agents/pi/profile-config.ts:232 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/local-providers/kimi.ts"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4b875fad767da52eff82efb78bd5e37955da6a016d1df8609050012bf45795b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/core/src/agents/local-providers/service.ts:30 \u00B7 packages/core/src/agents/local-providers/service.ts:57 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/local-providers/service.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"69e5ee6abaf5df615470a70c2b66c0242792361bc97ee129fd0228b426eeb83f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/core/src/agents/opencode/profile-config.ts:162 \u00B7 packages/core/src/agents/zcode/model-catalog.ts:57 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/opencode/profile-config.ts"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbbfce89f142e154f21947ad61f9d1d9301671b16141f0e0853aedaec193a2a1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/core/src/agents/zcode/profile-config.ts:298 \u00B7 packages/core/src/profiles/service.ts:4074 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/zcode/profile-config.ts"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d0b2d3781bc60c12edd44fe3695095896bea954af01aad24011c9633631018a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/core/src/config/config-repository.ts:833 \u00B7 packages/core/src/usage/store.ts:658 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config-repository.ts"},"region":{"startLine":833}}}],"partialFingerprints":{"codehealthFindingId/v1":"66de979227e2ac679cf66a029cac588ddab6fa95e9e0bf096f38e22ce46e8677"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/core/src/config/config.ts:772 \u00B7 packages/core/src/config/config.ts:869 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b7fa32496734494bb383c10dee23875410dbef6bcea70bcc4bfb110ae246bd9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6 locations): packages/core/src/config/config.ts:943 \u00B7 packages/core/src/config/config.ts:951 \u00B7 packages/core/src/config/config.ts:1023 \u00B7 packages/core/src/config/config.ts:2313 \u00B7 \u002B2 more site(s) not listed \u2014 all 6 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":943}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e51b120dea48084b46763ec35cd8b04f8f05a90c3339990ec02a6012dd66e0e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/core/src/config/config.ts:1555 \u00B7 packages/core/src/contracts/deep-link.ts:665 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":1555}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d263b095cba649452ce62f3e7383a5d44c65a4b648b2ac2a1274aca1fc629db"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/core/src/config/config.ts:3957 \u00B7 packages/core/src/config/config.ts:3974 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":3957}}}],"partialFingerprints":{"codehealthFindingId/v1":"78cc74a66fd067e2bca20a4b86bed10f66e624634166ec4b62bd0402dc19620f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/core/src/contracts/deep-link.ts:752 \u00B7 packages/ui/src/pages/tray/shared.tsx:540 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/contracts/deep-link.ts"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ce8d5b65294881f81d75c8fbbcec335678d05185afd1afef5aab31f844a909c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/core/src/gateway/application/gateway-service.ts:796 \u00B7 packages/core/src/gateway/application/gateway-service.ts:810 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/application/gateway-service.ts"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"10374f811b0b64998db93bcbdf5e4bbf9e59bfd6ce3f49bbffd401f0900972f7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/core/src/gateway/claude-code-router-plugin.ts:1011 \u00B7 packages/core/src/gateway/features/model-discovery.ts:504 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/claude-code-router-plugin.ts"},"region":{"startLine":1011}}}],"partialFingerprints":{"codehealthFindingId/v1":"201ab527272a2dd76cc79f4294a21afa9ea150edbfe5e741b0de4c0f58dcf344"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/core/src/gateway/claude-code-router-plugin.ts:1525 \u00B7 packages/core/src/routing/rewrite.ts:301 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/claude-code-router-plugin.ts"},"region":{"startLine":1525}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e69008ee9c5bb1150e8a1d67fe4f8b93c0b623389a8cf5be319344d13e04b22"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/core/src/gateway/claude-code-router-plugin.ts:1668 \u00B7 packages/core/src/proxy/system-proxy.ts:1023 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/claude-code-router-plugin.ts"},"region":{"startLine":1668}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc07871f6a03975c445e6aca50447070ac458a29de80577e8f70c81e078c861d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): packages/core/src/gateway/claude-code-router-plugin.ts:1593 \u00B7 packages/core/src/plugins/built-ins/openrouter-discount-provider-router.ts:1212 \u2014 the two spans are one implementation copied and then locally edited \u2014 54 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":"packages/core/src/gateway/claude-code-router-plugin.ts"},"region":{"startLine":1593}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b551503b477425ff506c23d8bbb6302a0b3085c549c78c90bd1469b5efc3bd6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/core/src/gateway/context-archive.ts:828 \u00B7 packages/electron/src/main/chrome-login-import.ts:472 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/context-archive.ts"},"region":{"startLine":828}}}],"partialFingerprints":{"codehealthFindingId/v1":"75b24ff561bd9cb4935bea42c76b676e396fa63dae5b65d2c36653ad0e4e278f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/core/src/gateway/core-runtime/config-compiler.ts:527 \u00B7 packages/core/src/gateway/core-runtime/router-plugin.ts:1140 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/core-runtime/config-compiler.ts"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"d83b927ac95956682a26630aa7c56629a67eded8e0380206ace4164b63416e59"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/core/src/gateway/core-runtime/responses-session-affinity.ts:194 \u00B7 packages/core/src/gateway/core-runtime/upstream-header-sanitizer.ts:114 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/core-runtime/responses-session-affinity.ts"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6ce08281d9b71e22985d4604cd2064fa0da6b97bd97ecafc99fd7dc35269ee4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): packages/core/src/gateway/core-runtime/router-plugin.ts:1411 \u00B7 packages/core/src/mcp/fusion-vision-mcp.ts:1232 \u00B7 packages/core/src/mcp/tool-discovery.ts:578 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/core-runtime/router-plugin.ts"},"region":{"startLine":1411}}}],"partialFingerprints":{"codehealthFindingId/v1":"03effb689b0525fca1ae991c33a1d97555178843c607d631f9ad70526ca2c225"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6 locations): packages/core/src/gateway/core-runtime/supervisor.ts:183 \u00B7 packages/core/src/gateway/core-runtime/supervisor.ts:201 \u00B7 packages/core/src/gateway/core-runtime/supervisor.ts:215 \u00B7 packages/core/src/gateway/core-runtime/supervisor.ts:229 \u00B7 \u002B2 more site(s) not listed \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/core-runtime/supervisor.ts"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"46065badaaef5876dc34e05d78b2f08ad8f1eb6ee36ed92144b4a8046a62b602"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/core/src/gateway/features/context-archive-continuation.ts:476 \u00B7 packages/core/src/gateway/features/context-archive-continuation.ts:539 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/features/context-archive-continuation.ts"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"89b42c169aa5e8ca01314d62672858890b734900c5d4e66259c8fa18a56b78a6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): packages/core/src/gateway/features/hosted-web-search/discovery.ts:416 \u00B7 packages/core/src/mcp/fusion-config.ts:290 \u2014 the two spans are one implementation copied and then locally edited \u2014 52 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":"packages/core/src/gateway/features/hosted-web-search/discovery.ts"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"418e17153fcf6150f8e1694c3f7806b65adee99641b30c681b17609b3939956a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/core/src/gateway/features/hosted-web-search/evidence.ts:112 \u00B7 packages/core/src/gateway/features/hosted-web-search/evidence.ts:144 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/features/hosted-web-search/evidence.ts"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"59d192b7691e65ee84f744f0573b1b4717cb64b76052203f272c8c90798764f9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/core/src/gateway/features/model-discovery.ts:595 \u00B7 packages/core/src/gateway/features/model-discovery.ts:618 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/features/model-discovery.ts"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5b04c270c6f7a48e10748cc8937eb10a774194d35337f3c764a0ffbc0f3efc7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/core/src/gateway/upstream/retry-policy.ts:41 \u00B7 packages/core/src/mcp/fusion-vision-mcp.ts:514 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/upstream/retry-policy.ts"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"33b089d50da4b092d45090a09cc20aee8ddde56e49cd4ba76e3d7734aa866ec2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/core/src/mcp/browser-web-search-proxy-mcp.ts:35 \u00B7 packages/core/src/mcp/toolhub-mcp.ts:260 \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":"packages/core/src/mcp/browser-web-search-proxy-mcp.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"44bd7c067905302732068e5f7a3fba8c0b531c9abd2f9a9b99bf30a3b575a49b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): packages/core/src/mcp/fusion-config.ts:755 \u00B7 packages/core/src/routing/model-registry.ts:167 \u00B7 packages/electron/bundled-plugins/claude-design/index.cjs:11818 \u2014 the 3 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/mcp/fusion-config.ts"},"region":{"startLine":755}}}],"partialFingerprints":{"codehealthFindingId/v1":"7817348859f29f64fd3da3ceb913aad3e7b5bd98f2e7c30cdd91f462b37d417f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/core/src/mcp/tool-discovery.ts:399 \u00B7 packages/core/src/mcp/tool-discovery.ts:450 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/mcp/tool-discovery.ts"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"286757f3bcb6adf4d571e20175167039119da9c58acbaab7c845ab0930fe9deb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/core/src/mcp/toolhub-mcp.ts:1346 \u00B7 packages/core/src/mcp/toolhub-mcp.ts:1366 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/mcp/toolhub-mcp.ts"},"region":{"startLine":1346}}}],"partialFingerprints":{"codehealthFindingId/v1":"71e0b62f023235601dd822d14f1e778b446afc1c3a8b16e18d95cd07e214688f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): packages/core/src/media/tools.ts:229 \u00B7 packages/electron/src/main/chrome-login-import.ts:547 \u2014 the two spans are one implementation copied and then locally edited \u2014 54 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":"packages/core/src/media/tools.ts"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"16cd817da801b9f5880e19452cabff0da1081ea91ea184d8b67a5537b0b10a59"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): packages/core/src/media/tools.ts:185 \u00B7 packages/ui/src/pages/home/shared/virtual-models.ts:406 \u2014 the two spans are one implementation copied and then locally edited \u2014 51 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":"packages/core/src/media/tools.ts"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e09605d35ecdc0101b176dc9e00efce792e1c810d78b31b9e1a9112c3c689d9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/core/src/models/pricing-service.ts:216 \u00B7 packages/core/src/observability/request-log-store.ts:6056 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/models/pricing-service.ts"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"361035e06e8ec10ffb3abb579ff777501cc05c950d54c98be828a5d77f6aef4d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): packages/core/src/models/pricing-service.ts:525 \u00B7 scripts/generate-models-json.mjs:1145 \u2014 the two spans are one implementation copied and then locally edited \u2014 69 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":"packages/core/src/models/pricing-service.ts"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6045fcc8e5a405339fabb9e0ef6a422f3dcfe67f1e329d4174ea71ea03499c8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/core/src/observability/request-log-store.ts:627 \u00B7 packages/core/src/observability/request-log-store.ts:957 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"144b71a28d48b45e110eb879a11d9a3841c8dcf4150db9f7a7ff93129d6aa38d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): packages/core/src/observability/request-log-store.ts:2552 \u00B7 packages/core/src/observability/request-log-store.ts:2561 \u00B7 packages/core/src/observability/request-log-store.ts:2575 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":2552}}}],"partialFingerprints":{"codehealthFindingId/v1":"a64b6ccc208bc8437a7b2168f0e65a8e182acb22545adecddb2b6e82e5d32e03"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): packages/core/src/observability/request-log-store.ts:3439 \u00B7 packages/core/src/observability/request-log-store.ts:3458 \u00B7 packages/core/src/observability/request-log-store.ts:3901 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":3439}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fe9ffb3297b35d267024146ad630f0c792b400249489c70c1a40fd00c56f6d2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/core/src/observability/request-log-store.ts:4991 \u00B7 packages/core/src/observability/request-log-store.ts:5196 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":4991}}}],"partialFingerprints":{"codehealthFindingId/v1":"6497ad9cacf705f6608e8982e2609feb0fcf9d2520c88926b6d7d93bc9c489f2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/core/src/observability/request-log-store.ts:4181 \u00B7 packages/ui/src/lib/usage-activity.ts:249 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":4181}}}],"partialFingerprints":{"codehealthFindingId/v1":"b42ba7d8ebb63ff1b4e8b44884aa356c487009a4d54a2efd31ba43de32c8f2e4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): packages/core/src/plugins/marketplace.ts:401 \u00B7 packages/core/src/web/management-server.ts:996 \u00B7 packages/electron/src/main/ipc.ts:1207 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/plugins/marketplace.ts"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad134f5f9dfafd119efba68fbbeda6ae5d7374c43922791b968bd70da0ca4a9b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/core/src/profiles/launch-core.ts:275 \u00B7 packages/core/src/profiles/service.ts:1079 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/launch-core.ts"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d82d1be787fb17540f614d6dfa33202b64735f52a2bdde1b3c402227825b3a3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/core/src/profiles/launch-service.ts:316 \u00B7 packages/core/src/profiles/launch-service.ts:363 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/launch-service.ts"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d1818dd67d31c9481ecf776ec8c1b8ac922f33c4765426c57024108023cdfab"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/core/src/profiles/launch-service.ts:622 \u00B7 packages/core/src/profiles/launch-service.ts:638 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/launch-service.ts"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"037b9373de8fcf66cc9e82b4f9b0ca7dba261ddf568d9ad11b21d457f5e9e59b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): packages/core/src/profiles/launch-service.ts:1513 \u00B7 packages/core/src/profiles/service.ts:2626 \u00B7 packages/core/src/profiles/service.ts:3102 \u2014 the 3 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/launch-service.ts"},"region":{"startLine":1513}}}],"partialFingerprints":{"codehealthFindingId/v1":"31e007bf59fa7804a195ac23c29bc5527ba4d514208c1912b3400f0853d01009"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/core/src/profiles/service.ts:2950 \u00B7 packages/core/src/profiles/service.ts:3078 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/service.ts"},"region":{"startLine":2950}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eb660444a8aca1fa4c322354b6fb1eef836e6a59820d26bb358585b8e59b1e3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/core/src/profiles/service.ts:3242 \u00B7 packages/core/src/profiles/service.ts:3264 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/service.ts"},"region":{"startLine":3242}}}],"partialFingerprints":{"codehealthFindingId/v1":"00103a858487385f82537125db0228bea4812a72239499b6ab872ea1a17bdc72"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/core/src/providers/account-service.ts:1022 \u00B7 packages/core/src/providers/account-service.ts:1034 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/providers/account-service.ts"},"region":{"startLine":1022}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffe9a8e0e38fd680638ed4b4dcd206ed1708f6853b44e649b49a03b23f2c0f56"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/core/src/providers/probe.ts:1777 \u00B7 packages/core/src/providers/probe.ts:1786 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/providers/probe.ts"},"region":{"startLine":1777}}}],"partialFingerprints":{"codehealthFindingId/v1":"2053ae4d06136da7eae0d8814a9770efc9862f98a60255c54f5695f79651b41c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/core/src/web/management-server.ts:841 \u00B7 packages/electron/src/main/ipc.ts:962 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/web/management-server.ts"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b19a4da47a595836625267f555cb0667b51fc769016a5cff6690bd21d2c7a49"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/electron/bundled-plugins/claude-design/index.cjs:1090 \u00B7 packages/electron/bundled-plugins/claude-design/index.cjs:1098 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":1090}}}],"partialFingerprints":{"codehealthFindingId/v1":"d12fe0c657c58571e7f85bf9064f33b12c16d373d1fb87d5550a528d950d6532"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/electron/bundled-plugins/claude-design/index.cjs:3624 \u00B7 packages/electron/bundled-plugins/claude-design/index.cjs:3633 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":3624}}}],"partialFingerprints":{"codehealthFindingId/v1":"66daa4310f4bb428cedf12883dd56d24d6a99ae88a076310d693f94c0a7bfc29"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/electron/bundled-plugins/claude-design/index.cjs:5116 \u00B7 packages/electron/bundled-plugins/claude-design/index.cjs:5233 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":5116}}}],"partialFingerprints":{"codehealthFindingId/v1":"aab685cca8880bbe2abf6d42b98e78240b70c8a9317ebb045a00d777bd5c87d6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/electron/bundled-plugins/claude-design/index.cjs:8980 \u00B7 packages/electron/bundled-plugins/claude-design/index.cjs:9024 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":8980}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5380e85a49b91d4877e9359ca44d817c5fa5692bd631a0f2f0d653e0d9a4fbb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/electron/bundled-plugins/claude-design/index.cjs:11854 \u00B7 packages/electron/bundled-plugins/claude-design/index.cjs:12373 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":11854}}}],"partialFingerprints":{"codehealthFindingId/v1":"7653646c09603add02b73f2f55b5e8adcd2c508256c85f6c592c2f1f2a823661"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/electron/bundled-plugins/claude-design/index.cjs:14574 \u00B7 packages/electron/bundled-plugins/claude-design/index.cjs:14632 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":14574}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e6a4b035d9d3d05c8417506adb8a5971fc6da56ef013b3bafd5143c7f4b4c49"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4 locations): packages/electron/src/main/browser-automation-mcp.ts:893 \u00B7 packages/electron/src/main/browser-automation-mcp.ts:904 \u00B7 packages/electron/src/main/browser-automation-mcp.ts:917 \u00B7 packages/electron/src/main/browser-automation-mcp.ts:929 \u2014 all 4 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0ade6fed4503c92c9593cca2bc0b17e2a0e74e6d117329953088c1e6d1a5aeb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/electron/src/main/browser-automation-mcp.ts:1717 \u00B7 packages/electron/src/main/browser-automation-mcp.ts:1785 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":1717}}}],"partialFingerprints":{"codehealthFindingId/v1":"930122b09a5389e232676cd240c44fa227d81d7f50fa7a2adf2e5738f395220d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/electron/src/main/browser-automation-mcp.ts:2711 \u00B7 packages/electron/src/main/browser-automation-mcp.ts:2915 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":2711}}}],"partialFingerprints":{"codehealthFindingId/v1":"3050f9cfe299a22303aedbd45aabd9fe07b77f69d6187c755bd3314ed85c1191"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): packages/electron/src/main/chrome-login-import.ts:395 \u00B7 packages/ui/src/pages/browser/main.tsx:365 \u2014 the two spans are one implementation copied and then locally edited \u2014 59 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":"packages/electron/src/main/chrome-login-import.ts"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"c59de7efb19672d84f6a7fcfc76b001c033bb820dc2dcd83eed13dbe7c451ddf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): packages/electron/src/main/ipc.ts:382 \u00B7 packages/electron/src/main/ipc.ts:390 \u00B7 packages/electron/src/main/ipc.ts:413 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/src/main/ipc.ts"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a9c1a08394031d014d7b2f3939686cfa77f0f2141287790cd9435cadf5c6f0c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/ui/src/pages/home/App.tsx:237 \u00B7 packages/ui/src/pages/home/components/network-logs.tsx:1804 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/App.tsx"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"50d3cc75e7e9a6ab3e4e31c77a254c2daca53a96adc36500aab2d4e435841dfa"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/ui/src/pages/home/App.tsx:1566 \u00B7 packages/ui/src/pages/home/App.tsx:1602 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/App.tsx"},"region":{"startLine":1566}}}],"partialFingerprints":{"codehealthFindingId/v1":"c94d4cd0d50f6bd5ea1530d8dce0d1e77cfaab61f6ccd4bdfaf2434fc4f8e39d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4 locations): packages/ui/src/pages/home/components/api-keys.tsx:80 \u00B7 packages/ui/src/pages/home/components/extensions.tsx:75 \u00B7 packages/ui/src/pages/home/components/providers.tsx:158 \u00B7 packages/ui/src/pages/home/components/virtual-models.tsx:131 \u2014 the 4 copies are spread across 4 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/api-keys.tsx"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4450005c88f1a9d24585b7354444941888f00740d3835094e59ffc407719003"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 7 locations): packages/ui/src/pages/home/components/api-keys.tsx:222 \u00B7 packages/ui/src/pages/home/components/extensions.tsx:174 \u00B7 packages/ui/src/pages/home/components/extensions.tsx:239 \u00B7 packages/ui/src/pages/home/components/extensions.tsx:368 \u00B7 \u002B3 more site(s) not listed \u2014 the 7 copies are spread across 5 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/api-keys.tsx"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5789c85d683aebffae6d18810ae9749cfee83ed7ce3fc2e33ebf35d65c00549"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/ui/src/pages/home/components/dashboard.tsx:691 \u00B7 packages/ui/src/pages/home/components/dashboard.tsx:717 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c46f7faa2b0f8eb19bcc92350f2bb67ea57817d8e46ef2922b91c73a9cb4a56"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 7 locations): packages/ui/src/pages/home/components/dashboard.tsx:1388 \u00B7 packages/ui/src/pages/home/components/dashboard.tsx:2166 \u00B7 packages/ui/src/pages/home/components/dashboard.tsx:2177 \u00B7 packages/ui/src/pages/home/components/dashboard.tsx:2207 \u00B7 \u002B3 more site(s) not listed \u2014 the 7 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":1388}}}],"partialFingerprints":{"codehealthFindingId/v1":"916754357a6e3669d898ca1226bd2d8cafa1dc212b9b125f22eb2e2f9627dd3f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/ui/src/pages/home/components/dashboard.tsx:1956 \u00B7 packages/ui/src/pages/home/components/dashboard.tsx:6294 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":1956}}}],"partialFingerprints":{"codehealthFindingId/v1":"232448a97d530815ef518c6c34f7a8bfdf4cd5552135da960a1610353549d44d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/ui/src/pages/home/components/dashboard.tsx:2906 \u00B7 packages/ui/src/pages/home/components/dashboard.tsx:3078 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":2906}}}],"partialFingerprints":{"codehealthFindingId/v1":"b824c9388c19c8b0b157840c94eb09b48bc592bb6ade23895f9e5ef52c7ed2d0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): packages/ui/src/pages/home/components/dashboard.tsx:4644 \u00B7 packages/ui/src/pages/home/components/dashboard.tsx:4831 \u00B7 packages/ui/src/pages/home/components/network-logs.tsx:1084 \u2014 the 3 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":4644}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd43745144ebc7d04494bc46af80bbaadcc9bed6f354377208b83b38433eead1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6 locations): packages/ui/src/pages/home/components/extensions.tsx:172 \u00B7 packages/ui/src/pages/home/components/extensions.tsx:237 \u00B7 packages/ui/src/pages/home/components/extensions.tsx:366 \u00B7 packages/ui/src/pages/home/components/profiles.tsx:348 \u00B7 \u002B2 more site(s) not listed \u2014 the 6 copies are spread across 4 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/extensions.tsx"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fafc01d9614df08efb38dea97ef73428d410517f048e8bb05d95f983cbe826e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/ui/src/pages/home/components/network-logs.tsx:324 \u00B7 packages/ui/src/pages/home/components/network-logs.tsx:821 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/network-logs.tsx"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f0660c51f49707ec7e235dc71efc41371e0366474cc09c0c7bf78938027a7ad"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/ui/src/pages/home/components/profiles.tsx:443 \u00B7 packages/ui/src/pages/home/components/settings.tsx:1377 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/profiles.tsx"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aeac86613636c6b762a7a70fefa79fa08118b613f24cf711a112b1f4be46e6f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/ui/src/pages/home/components/settings.tsx:965 \u00B7 packages/ui/src/pages/home/components/virtual-models.tsx:709 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/settings.tsx"},"region":{"startLine":965}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeebc85f7401b4f75af73aa66ef124244002dc963cfd823ea9993978fea94d6d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/ui/src/pages/home/shared/profiles.ts:1615 \u00B7 packages/ui/src/pages/home/shared/profiles.ts:1630 \u2014 all 2 copies are in the same file, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/profiles.ts"},"region":{"startLine":1615}}}],"partialFingerprints":{"codehealthFindingId/v1":"40cb18fb66218873e007b8f60b302ff6b3e7e8ab16ec3d7eb4868b8eb028e2e6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/ui/src/pages/home/shared/routing.ts:380 \u00B7 packages/ui/src/pages/home/shared/routing.ts:389 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/routing.ts"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e4e1b82a5b6118f642ad7970478e25da6aff47f4d3f4c1e5af56736491ea0c0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/ui/src/pages/tray/components/account-panel.tsx:160 \u00B7 packages/ui/src/pages/tray/components/account-panel.tsx:182 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/tray/components/account-panel.tsx"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"923efafca63ab7018f1f20174ecf6a8ac5110df4dad61167e82553a4bdfc90fc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): scripts/generate-models-json.mjs:1087 \u00B7 scripts/generate-models-json.mjs:1098 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/generate-models-json.mjs"},"region":{"startLine":1087}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ca79e07ca208ca3e19b378977a97b5cad25d1b9f75e5dfdc102df756d4a8ad7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/core/src/agents/claude-app/gateway-routes.ts:321 \u00B7 packages/electron/bundled-plugins/claude-design/index.cjs:12301 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/claude-app/gateway-routes.ts"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"754aed625444d7e22effc03e5edb16809dfcee1372a0bb52c79b3e08383bd903"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6 locations): packages/core/src/agents/claude-app/gateway-routes.ts:414 \u00B7 packages/core/src/config/config.ts:4124 \u00B7 packages/core/src/gateway/model-catalog.ts:471 \u00B7 packages/core/src/models/catalog-file.ts:108 \u00B7 \u002B2 more site(s) not listed \u2014 the 6 copies are spread across 6 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/claude-app/gateway-routes.ts"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"e56252dbc080233bf1da819029ff6ff41e128bba53d675b8700e1672d7ded9b4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): packages/core/src/agents/codex/media-preview-bridge.ts:343 \u00B7 packages/core/src/media/storage.ts:177 \u2014 the two spans are one implementation copied and then locally edited \u2014 171 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":"packages/core/src/agents/codex/media-preview-bridge.ts"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0e36652df5e64acf5f92831c2f81bfc5131de3dcd5e8b61fe70736810691ffb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): packages/core/src/agents/codex/model-catalog.ts:825 \u00B7 packages/core/src/mcp/fusion-config.ts:466 \u00B7 packages/ui/src/pages/home/shared/providers.ts:134 \u2014 the 3 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/codex/model-catalog.ts"},"region":{"startLine":825}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dba0b25f72dbbb6ac9eecda44d456caf5f5ede74561c8aadf8026239349c072"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): packages/core/src/config/config.ts:780 \u00B7 packages/core/src/config/config.ts:821 \u00B7 packages/core/src/config/config.ts:867 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":780}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9a950839f733af1ee1ba3cd7202ff474cc9a634324e366d69811c768d4f2922"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/core/src/config/config.ts:3896 \u00B7 packages/ui/src/pages/home/shared/profiles.ts:1824 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":3896}}}],"partialFingerprints":{"codehealthFindingId/v1":"d16bfff94e7df7db2bb30e8e69510ac362aed07a85a68be029b17795e7d50d15"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): packages/core/src/gateway/claude-code-router-plugin.ts:1690 \u00B7 packages/core/src/media/service.ts:593 \u00B7 packages/core/src/providers/account-service.ts:2606 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/claude-code-router-plugin.ts"},"region":{"startLine":1690}}}],"partialFingerprints":{"codehealthFindingId/v1":"9704bc0d0483eca1aeddd784e8616facf39798366fc8e9a29ff9a34f741e5c14"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): packages/core/src/gateway/context-archive.ts:798 \u00B7 packages/core/src/observability/stream-experience.ts:562 \u2014 the two spans are one implementation copied and then locally edited \u2014 57 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":"packages/core/src/gateway/context-archive.ts"},"region":{"startLine":798}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a263d80d1738ff7876a43928e1c92e9b927a432ff6108d5e9bece71b53d5bc0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): packages/core/src/gateway/context-archive.ts:798 \u00B7 packages/core/src/providers/probe.ts:2114 \u2014 the two spans are one implementation copied and then locally edited \u2014 60 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":"packages/core/src/gateway/context-archive.ts"},"region":{"startLine":798}}}],"partialFingerprints":{"codehealthFindingId/v1":"78fc3b8278baa8bcb75b9a7d9acf38bd308b56faa9353bbb7f1d89f39ddcb207"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/core/src/gateway/core-runtime/config-compiler.ts:865 \u00B7 packages/core/src/gateway/core-runtime/config-compiler.ts:874 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/core-runtime/config-compiler.ts"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"468de70f0bf78328c850becdd8ecdba43e71a5133e08b95b015fa255bfbf672e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/core/src/gateway/core-runtime/local-agent-auth-provider-hook.ts:377 \u00B7 packages/core/src/gateway/core-runtime/local-agent-auth-provider-hook.ts:390 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/core-runtime/local-agent-auth-provider-hook.ts"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5ad36701c022c88b005545407d398a95154845e8e56192dae018f4ad44a89ae"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): packages/core/src/gateway/core-runtime/router-plugin.ts:639 \u00B7 packages/core/src/gateway/http/request-handler.ts:100 \u2014 the two spans are one implementation copied and then locally edited \u2014 55 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":"packages/core/src/gateway/core-runtime/router-plugin.ts"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"17c18ff8e42a792074d41e4effeb6c9df84444d56f6dfc029e64d7d3f5feeacc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): packages/core/src/gateway/core-runtime/supervisor.ts:463 \u00B7 packages/core/src/mcp/toolhub-mcp.ts:2150 \u00B7 packages/core/src/providers/probe.ts:2146 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/core-runtime/supervisor.ts"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"51a681ae8f3b2cb6d77cc6b21fff92998e0a8d472c7a455e35b96c3926a50589"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): packages/core/src/gateway/features/anthropic-response-model.ts:47 \u00B7 packages/core/src/gateway/features/hosted-web-search/response-transform.ts:142 \u00B7 packages/core/src/gateway/features/hosted-web-search/response-transform.ts:351 \u2014 the 3 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/features/anthropic-response-model.ts"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c3fb9e2ec2e396522fde8071d75233604095425f1c4e7a76973d581388dae87"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/core/src/gateway/features/anthropic-response-model.ts:99 \u00B7 packages/core/src/gateway/features/codex-patch-bridge.ts:460 \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":"packages/core/src/gateway/features/anthropic-response-model.ts"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"aad445cc325c65b6f96156c829c5b9fa7c926b0639340287e45714a9a9b88860"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/core/src/gateway/features/context-archive-continuation.ts:568 \u00B7 packages/core/src/gateway/features/context-archive-continuation.ts:576 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/features/context-archive-continuation.ts"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"abbac626fca33f164644d9c16ae751ff5cdaee498d471c89a2b2cc3efa9a9d16"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/core/src/gateway/http/request-handler.ts:183 \u00B7 packages/core/src/gateway/http/request-handler.ts:199 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/http/request-handler.ts"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"86c3c4fab8dca0e98ccb72ac622a2c9a08f5de674cd2732ac7cd91923178e69d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/core/src/mcp/media-tools-proxy-mcp.ts:193 \u00B7 packages/ui/src/pages/home/components/dashboard.tsx:5985 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/mcp/media-tools-proxy-mcp.ts"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e0a328b5d7aec69f695771208bf9fd42842d26d4f154149036c1365bb016a83"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): packages/core/src/mcp/network-capture-mcp.ts:387 \u00B7 packages/core/src/plugins/backend-service.ts:345 \u00B7 packages/core/src/plugins/service.ts:1192 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/mcp/network-capture-mcp.ts"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"5964d368e085f6caeb5045f21f7997e21bf1a18df1f1eda59ebde6df49ee7c32"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/core/src/media/service.ts:593 \u00B7 packages/core/src/web/management-server.ts:1520 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/media/service.ts"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae21c0cdea8573c1093f8a42363ce4e936a5a9a5d666790dbceb70559f3348ca"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): packages/core/src/media/service.ts:665 \u00B7 packages/core/src/media/storage.ts:206 \u2014 the two spans are one implementation copied and then locally edited \u2014 57 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":"packages/core/src/media/service.ts"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"280bad5ea51241c603f5b5a52ccd6008ce0986ec91db461a3f8177aaf6300bf6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/core/src/observability/raw-trace-sync.ts:161 \u00B7 packages/core/src/observability/raw-trace-sync.ts:301 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/raw-trace-sync.ts"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"407e08589efd8386cdb9e79c8f67f14156e97548878793f2fd786e38a9336f00"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/core/src/observability/raw-trace-sync.ts:1421 \u00B7 packages/core/src/observability/request-log-runtime.ts:1186 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/raw-trace-sync.ts"},"region":{"startLine":1421}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bf162588c6450e6c9e3248beece6c6ce4646ba81dd388403da0af7277a727a3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): packages/core/src/observability/raw-trace-sync.ts:1590 \u00B7 packages/core/src/observability/request-log-store.ts:5644 \u2014 the two spans are one implementation copied and then locally edited \u2014 52 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":"packages/core/src/observability/raw-trace-sync.ts"},"region":{"startLine":1590}}}],"partialFingerprints":{"codehealthFindingId/v1":"99e818e54d11816b6b80d12cfbbe3370fb59f6bed68b16d55d025b203c1427af"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/core/src/observability/request-log-runtime.ts:469 \u00B7 packages/core/src/observability/request-log-runtime.ts:478 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-runtime.ts"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"221fb414aab345a3bf0823abb13d8df254e302661b0950ec77428d901a838452"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/core/src/observability/request-log-runtime.ts:1213 \u00B7 packages/electron/src/main/provider-account-webcontent.ts:289 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-runtime.ts"},"region":{"startLine":1213}}}],"partialFingerprints":{"codehealthFindingId/v1":"929bb1c11600b167b6f2c096cb475ae370795d9f3a0737bdaabeb6e000136d78"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/core/src/observability/request-log-store.ts:1019 \u00B7 packages/core/src/observability/request-log-store.ts:1042 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":1019}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f8d62930145e7eba7e91ce7452a27152d3d7942783296c87c9115f194d00342"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/core/src/observability/request-log-store.ts:3451 \u00B7 packages/core/src/observability/request-log-store.ts:3473 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":3451}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c00e22706ed3861ad90536470281fb48455af1972356100187025e606b12019"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): packages/core/src/observability/stream-experience.ts:560 \u00B7 packages/electron/src/main/provider-account-webcontent.ts:303 \u2014 the two spans are one implementation copied and then locally edited \u2014 50 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":"packages/core/src/observability/stream-experience.ts"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1dc987d97c5f21c8a1b414bec443f25d4bc4ed999b304a3492c26bbd410abbc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/core/src/plugins/built-ins/openrouter-discount-provider-router.ts:367 \u00B7 packages/core/src/providers/openrouter-provider-catalog.ts:45 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/plugins/built-ins/openrouter-discount-provider-router.ts"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"483cfe668f65f1adb85c2969f9742c8924994198b01319d0c9da7ee27348e7e1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): packages/core/src/profiles/launch-service.ts:1874 \u00B7 packages/electron/src/main/electron-web-search-mcp.ts:1052 \u00B7 packages/electron/src/main/ipc.ts:1014 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/launch-service.ts"},"region":{"startLine":1874}}}],"partialFingerprints":{"codehealthFindingId/v1":"6023a94cb3b8af666719fabe435a23f584ceeec595e681ce4175939ee41d54d0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/core/src/profiles/service.ts:1467 \u00B7 packages/core/src/profiles/service.ts:1485 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/service.ts"},"region":{"startLine":1467}}}],"partialFingerprints":{"codehealthFindingId/v1":"db60bd59af5580b402828e5791c7ccd6b8385691cfb93548ef8fe39b801b57c1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/core/src/profiles/service.ts:1566 \u00B7 packages/core/src/profiles/service.ts:2251 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/service.ts"},"region":{"startLine":1566}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dccc447029b33954610064fe0284cf1dea22580fa87d19ff02364f9a3ff181b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/core/src/profiles/service.ts:1850 \u00B7 packages/core/src/profiles/service.ts:1954 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/service.ts"},"region":{"startLine":1850}}}],"partialFingerprints":{"codehealthFindingId/v1":"03ff9b403b837c1b84fba112d71cac2063b656c991cec10411fa8c4c6cc1d876"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/core/src/profiles/service.ts:2270 \u00B7 packages/core/src/profiles/service.ts:2294 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/service.ts"},"region":{"startLine":2270}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d317f5884262eafa6cbec9c5dde363888d336e089709a3ba45a9489928d41df"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/core/src/providers/model-catalog.ts:741 \u00B7 packages/ui/src/pages/tray/shared.tsx:554 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/providers/model-catalog.ts"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"4312d88fbbff1c3a64564533d88c83ea776a9f2ec023fd19eb44a9aa5d076060"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/core/src/routing/route-script-runtime.ts:387 \u00B7 packages/core/src/routing/route-script-worker.ts:304 \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":"packages/core/src/routing/route-script-runtime.ts"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"17a935f20b8293420860e96126a3fd0dc03717d2e94838874d19f8de829efab0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/electron/bundled-plugins/claude-design/index.cjs:5087 \u00B7 packages/electron/bundled-plugins/claude-design/index.cjs:5122 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":5087}}}],"partialFingerprints":{"codehealthFindingId/v1":"169eb74dac9c845389027895aa42e7b62147d2dddce2bc89abeee8b0d67cfdbf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/electron/bundled-plugins/claude-design/index.cjs:6062 \u00B7 packages/electron/bundled-plugins/claude-design/index.cjs:6316 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":6062}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6064f200cc9dfb0bfd71f6fbbf867aa49e5fd97758d5bc6b53587c7e3c5777b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/electron/bundled-plugins/claude-design/index.cjs:7622 \u00B7 packages/electron/bundled-plugins/claude-design/index.cjs:7875 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":7622}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ca9902286f272673656264ab41580102bc24b2a25d492a25de40a8af64ca45f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/electron/bundled-plugins/claude-design/index.cjs:9323 \u00B7 packages/electron/bundled-plugins/claude-design/index.cjs:9391 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":9323}}}],"partialFingerprints":{"codehealthFindingId/v1":"60e33966b9fdcdf9fec7e800abb057ba3c9e60e63f86fbe2d06d782fad9b2455"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): packages/electron/bundled-plugins/claude-design/index.cjs:9581 \u00B7 packages/electron/bundled-plugins/claude-design/index.cjs:9633 \u00B7 packages/electron/bundled-plugins/claude-design/index.cjs:13569 \u2014 all 3 copies are in the same file, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":9581}}}],"partialFingerprints":{"codehealthFindingId/v1":"fde76d88866a705fc961c6ff29188ef051d95ce16da8b9c11e06bd8429c69078"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/electron/bundled-plugins/claude-design/index.cjs:10956 \u00B7 packages/electron/bundled-plugins/claude-design/index.cjs:12610 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":10956}}}],"partialFingerprints":{"codehealthFindingId/v1":"e23cd1a6f0afe2dc1c2af8588e7a47f549448e472476f1f7e189fe0b0d06b716"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4 locations): packages/ui/src/components/ui/card.tsx:14 \u00B7 packages/ui/src/components/ui/card.tsx:28 \u00B7 packages/ui/src/components/ui/dialog.tsx:197 \u00B7 packages/ui/src/components/ui/tabs.tsx:22 \u2014 the 4 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/components/ui/card.tsx"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"11180c380e4777de6184c366eba777f1df0f96e0c8733a27e91f891f0d51ecad"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/ui/src/pages/home/components/api-keys.tsx:24 \u00B7 packages/ui/src/pages/home/components/virtual-models.tsx:76 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/api-keys.tsx"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a6f60646e8c2e725f89e0955ae88e8902c369297a874f255c6df8397efbaffd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/ui/src/pages/home/components/dashboard.tsx:737 \u00B7 packages/ui/src/pages/home/components/settings.tsx:2736 \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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"518cf01b9f00316da10ca21c944af78bc558b7c04d1c1305f852d529dc6c8e2a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): packages/ui/src/pages/home/components/dashboard.tsx:4738 \u00B7 packages/ui/src/pages/home/components/dashboard.tsx:5431 \u00B7 packages/ui/src/pages/home/components/dashboard.tsx:6209 \u2014 all 3 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":4738}}}],"partialFingerprints":{"codehealthFindingId/v1":"e03269185d9a6cc8d237689793d8e78c8e907980da218743e6a4d0fe4d31b83a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/ui/src/pages/home/components/network-logs.tsx:808 \u00B7 packages/ui/src/pages/home/components/network-logs.tsx:898 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/network-logs.tsx"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f7249753392b8a665b35ff56ddb6c6531dfaea7f2ce9f705ef52d007d593fae"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): packages/ui/src/pages/home/components/providers.tsx:986 \u00B7 packages/ui/src/pages/home/components/providers.tsx:4328 \u00B7 packages/ui/src/pages/home/components/virtual-models.tsx:1075 \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":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":986}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d011ac7f3a9dd3d5ccc330c25853766f5688f52a049dd425f840b877da5386a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/ui/src/pages/home/components/providers.tsx:4982 \u00B7 packages/ui/src/pages/home/components/providers.tsx:5046 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":4982}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4c355c099fc3967e247126d6c79809b1f2637ece7d42f01018b69a97a4be640"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/ui/src/pages/home/components/routing.tsx:158 \u00B7 packages/ui/src/pages/home/components/routing.tsx:170 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/routing.tsx"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"7608bba2b2dada72ed27f24572377ac81216ddbdc8c1bea34b553d1ca1c481dd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/ui/src/pages/home/components/routing.tsx:720 \u00B7 packages/ui/src/pages/home/components/virtual-models.tsx:530 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/routing.tsx"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b1f6e1f7911327afc7cdb2881a58a77b3f5c15c9d66fa180979e154fbd0c9ca"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/ui/src/pages/home/components/settings.tsx:211 \u00B7 packages/ui/src/pages/home/components/settings.tsx:1382 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/settings.tsx"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"330d3e2fc57e1c66015131cb43305fb9eddd415942e3a9d6b1709e42ff8c1818"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/ui/src/pages/home/shared/common.ts:152 \u00B7 packages/ui/src/pages/tray/shared.tsx:359 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/common.ts"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"3086947fba1f640d55d8a7d67bbb1b4c948a7f9ff29114e99ab40e3d2695ddb0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/ui/src/pages/home/shared/common.ts:161 \u00B7 packages/ui/src/pages/tray/shared.tsx:368 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/common.ts"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"f40a83d3447473f945d905594814fbf69c05ae43ebfe1373d3e7a1169643977c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/ui/src/pages/home/shared/motion.tsx:34 \u00B7 packages/ui/src/pages/home/shared/motion.tsx:68 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/motion.tsx"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"3552195523ad7601c31d67e69a7be59389da5d70fb626ae331c0e62e6698020f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/ui/src/pages/home/shared/network.ts:174 \u00B7 packages/ui/src/pages/home/shared/network.ts:182 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/network.ts"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecbc68e80c8f5592f0322facf95645aebeddb2d7a7dd32cf2ce73a6486fb5719"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/ui/src/pages/home/shared/usage.ts:100 \u00B7 packages/ui/src/pages/home/shared/usage.ts:115 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/usage.ts"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"59ad9be1f4fb686b2cc58a5fce097c2f0339385763a3ee3c07490705d56e1274"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/core/src/agents/bot-gateway/qr-login-service.ts:535 \u00B7 packages/core/src/providers/model-auto-refresh.ts:707 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/bot-gateway/qr-login-service.ts"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cf2cf676a29e803a3747829058ae91fb7addcacc17519f69e2cad2f2951b7fc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3 locations): packages/core/src/agents/codex/app-net-responder.ts:214 \u00B7 packages/core/src/gateway/context-archive.ts:829 \u00B7 packages/electron/src/main/chrome-login-import.ts:473 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/codex/app-net-responder.ts"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5f442a26bc142a674fbae4d6eaae34e49314f900fad45a5e8d1758f7a69d8f0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/core/src/agents/local-providers/grok.ts:788 \u00B7 packages/core/src/agents/local-providers/zcode.ts:321 \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":"packages/core/src/agents/local-providers/grok.ts"},"region":{"startLine":788}}}],"partialFingerprints":{"codehealthFindingId/v1":"9330eb9ede062b141012f3405d3e74658d96dc50036d1de7361ac27aa0886b0d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/core/src/agents/local-providers/grok.ts:825 \u00B7 packages/core/src/providers/account-service.ts:1807 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/local-providers/grok.ts"},"region":{"startLine":825}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ffd3c7ac1f9404f34068a0d1c3a30676e2d291eed4f4dd8941685bf30242c20"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/core/src/agents/local-providers/shared.ts:88 \u00B7 packages/ui/src/pages/home/shared/providers.ts:2285 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/local-providers/shared.ts"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"00362504d4cd1763b2db0029fe2c46cd2af8e17445ed510a50c6d4e1fda7663d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3 locations): packages/core/src/agents/opencode/profile-config.ts:345 \u00B7 packages/core/src/agents/pi/profile-config.ts:232 \u00B7 packages/core/src/profiles/launch-core.ts:422 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/opencode/profile-config.ts"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8f860cff667670eebff2927d44d494c43dee546c88419c308f7f701869f6f41"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/core/src/config/config-repository.ts:78 \u00B7 packages/core/src/config/config-repository.ts:106 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config-repository.ts"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"753791f6efa0782203a8ca24039456d25649bcb7313282eada80e76164dcfd4f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 10 locations): packages/core/src/config/config-repository.ts:886 \u00B7 packages/core/src/gateway/core-runtime/gateway-bootstrap.ts:107 \u00B7 packages/core/src/mcp/fusion-tool-fallback-mcp.ts:230 \u00B7 packages/core/src/mcp/grok-media-mcp.ts:190 \u00B7 \u002B6 more site(s) not listed \u2014 the 10 copies are spread across 10 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config-repository.ts"},"region":{"startLine":886}}}],"partialFingerprints":{"codehealthFindingId/v1":"80562423793cf11f0247e9b10619064b82bcd26b4935b1c0bd887bd0f13fcdba"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/core/src/config/config.ts:2637 \u00B7 packages/core/src/config/config.ts:3428 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":2637}}}],"partialFingerprints":{"codehealthFindingId/v1":"12650e34ff2c65d6b4379864d895c06e803e2733c02a4c8e9dff890a964e3a0e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): packages/core/src/gateway/context-archive.ts:791 \u00B7 packages/core/src/gateway/context-archive/protocol.ts:837 \u2014 the two spans are one implementation copied and then locally edited \u2014 71 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":"packages/core/src/gateway/context-archive.ts"},"region":{"startLine":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"d43e071fc9160e1767f6162a7e0b85f8e5534356182d4aac7de4a327956a723e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): packages/core/src/gateway/context-archive.ts:798 \u00B7 packages/electron/src/main/provider-account-webcontent.ts:305 \u2014 the two spans are one implementation copied and then locally edited \u2014 59 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":"packages/core/src/gateway/context-archive.ts"},"region":{"startLine":798}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdfb174909d6fbdeb66d914b15962d5215c78206bf98f78619a056ce8519cbae"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/core/src/gateway/context-archive/protocol.ts:661 \u00B7 packages/core/src/gateway/features/anthropic-response-model.ts:93 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/context-archive/protocol.ts"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"519e9ea7ee9885879242c07d385186c41fb96e012e94da9d846ebe8d7a670441"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/core/src/gateway/core-runtime/router-plugin.ts:386 \u00B7 packages/core/src/gateway/core-runtime/router-plugin.ts:699 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/core-runtime/router-plugin.ts"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"97c6aa4ff3944146b3252658e4251cfaf301a0318206f8ddd683906b62f321c8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/core/src/gateway/core-runtime/router-plugin.ts:1007 \u00B7 packages/ui/src/pages/home/shared/routing.ts:185 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/core-runtime/router-plugin.ts"},"region":{"startLine":1007}}}],"partialFingerprints":{"codehealthFindingId/v1":"001204430e9958c92be12266bfc9fb6cf6af589b4cc31a209d207a6adaeac242"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/core/src/gateway/core-runtime/router-plugin.ts:1291 \u00B7 packages/core/src/gateway/http/io.ts:75 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/core-runtime/router-plugin.ts"},"region":{"startLine":1291}}}],"partialFingerprints":{"codehealthFindingId/v1":"d49a57df3c27b6f2c306046e70536e52410aebefa50469ea83e21457e7a59d97"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/core/src/gateway/features/hosted-web-search/discovery.ts:455 \u00B7 packages/core/src/gateway/features/hosted-web-search/discovery.ts:757 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/features/hosted-web-search/discovery.ts"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"db4b2b679ae1e98b5c503a278d67c2b64c9948c39f750ccb1f66fa30832baaae"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/core/src/gateway/features/hosted-web-search/response-transform.ts:967 \u00B7 packages/core/src/gateway/features/hosted-web-search/response-transform.ts:1035 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/features/hosted-web-search/response-transform.ts"},"region":{"startLine":967}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c07ed3013b4b1030643c567f13e454a9c9d3a59ceefc4e8f0477276a4bc0669"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/core/src/gateway/features/model-discovery.ts:313 \u00B7 packages/core/src/gateway/features/model-discovery.ts:355 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/features/model-discovery.ts"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cf70c7a4a553d2cfd69a6b69d180d116f7988d9e4c2711e5b23e22f07d0fd0c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3 locations): packages/core/src/gateway/http/io.ts:304 \u00B7 packages/core/src/gateway/remote-control-service.ts:601 \u00B7 packages/core/src/proxy/service.ts:1630 \u2014 the 3 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/http/io.ts"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"f406a71522d5d20f5646f21f5d5f3f88b1d115f98cdbbaaf15f4e67c6dc93d48"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/core/src/gateway/internal/value.ts:2 \u00B7 packages/ui/src/pages/home/shared/common.ts:43 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/internal/value.ts"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"464c703fca01440e47893d56c7bf4078a464d1a9561e817ad245fac63f6791c0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/core/src/gateway/remote-control-service.ts:601 \u00B7 packages/core/src/proxy/service.ts:1630 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/remote-control-service.ts"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e3092d801872234c2af960931710fbfd46c03514eb92bd438169dd48969fc48"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/core/src/gateway/remote-control-service.ts:609 \u00B7 packages/electron/src/main/ipc.ts:1533 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/remote-control-service.ts"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bd94cc2a31f47b2e114b9924d6b2b4f9d0021492c548666a2cf607afc1120cf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/core/src/mcp/fusion-vision-mcp.ts:1004 \u00B7 packages/core/src/providers/icons.ts:295 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/mcp/fusion-vision-mcp.ts"},"region":{"startLine":1004}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e760c951baaa21542e9a376e2c825b3c25813e591fd4e9f7d4ff6662b38e70f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/core/src/mcp/grok-media-mcp.ts:127 \u00B7 packages/core/src/mcp/media-tools-proxy-mcp.ts:59 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/mcp/grok-media-mcp.ts"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"94701fc9251885c4af14ed9c38bb704c85c370b21f89812ab61ed2b4fe49cf40"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/core/src/mcp/tool-discovery.ts:578 \u00B7 packages/electron/src/main/browser-automation-mcp.ts:3535 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/mcp/tool-discovery.ts"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"3171669c8fa9f965d3fea3ef80832b11e304bbaf81dccb60ee557ab5b318a1f3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/core/src/mcp/toolhub-config.ts:176 \u00B7 packages/core/src/usage/store.ts:1294 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/mcp/toolhub-config.ts"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"e06b5e94cd2949f79ee513452ed15d9b6419972fbb0d9945d4822f1aeb48f28f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/core/src/mcp/toolhub-mcp.ts:1086 \u00B7 packages/core/src/mcp/toolhub-mcp.ts:1186 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/mcp/toolhub-mcp.ts"},"region":{"startLine":1086}}}],"partialFingerprints":{"codehealthFindingId/v1":"385f69634fb76ee265b3a01e70bbbf3e5a970216d5b6f415f2c28da47d57e420"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): packages/core/src/media/tools.ts:232 \u00B7 packages/core/src/models/pricing-service.ts:556 \u2014 the two spans are one implementation copied and then locally edited \u2014 51 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":"packages/core/src/media/tools.ts"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca14ffbdd113381bf865904d27ea590cfadc2597c01cdfcd7b92d77ccf9532c2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/core/src/observability/raw-trace-sync.ts:282 \u00B7 packages/core/src/observability/raw-trace-sync.ts:292 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/raw-trace-sync.ts"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"93e01f46dfb59352398c3dabd7081f0d8851910936e2d9c68f9f3e5d9912ef30"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/core/src/observability/request-log-body.ts:79 \u00B7 packages/core/src/observability/request-log-body.ts:98 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-body.ts"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"745722cba43974cc7d7cbe5ffffafa788c3c816061ca637c730050fca3605eb4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/core/src/observability/request-log-runtime.ts:1185 \u00B7 packages/core/src/observability/request-log-worker.ts:301 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-runtime.ts"},"region":{"startLine":1185}}}],"partialFingerprints":{"codehealthFindingId/v1":"573fa5fd82c851922f7b23027f6b995b145b632e494fa50a7024fe1e085a12f4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/core/src/observability/request-log-store.ts:3526 \u00B7 packages/core/src/observability/request-log-store.ts:3897 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":3526}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bfc6d650a9e8ba98b3c50d6b545ef84f2e33877c0ad407c03a05901a49fea6d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/core/src/observability/request-log-store.ts:6173 \u00B7 packages/core/src/observability/stream-experience.ts:355 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":6173}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce46cb02b8287ceda80d2681c2b870f00db3803744f98b084ce8c6a416fdbdd3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/core/src/observability/request-log-store.ts:6551 \u00B7 packages/electron/src/main/tray-controller.ts:745 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":6551}}}],"partialFingerprints":{"codehealthFindingId/v1":"5815fb65fda4561383124fd6223fc846691ce189454ef0bb960b0f4310d0ecd6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/core/src/observability/request-log-worker.ts:85 \u00B7 packages/core/src/observability/request-log-worker.ts:91 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-worker.ts"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"2def386fc79aa8f3d2dfea1c53c1b15a30bec1ca84bbcd103788b0f0fb5dc768"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3 locations): packages/core/src/plugins/marketplace.ts:327 \u00B7 packages/core/src/web/management-server.ts:1223 \u00B7 packages/electron/src/main/ipc.ts:1101 \u2014 the 3 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/plugins/marketplace.ts"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c14165977c25293ce8e3ee86e25f1f7b82e297265158365c1860d03b615b8b6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/core/src/profiles/service.ts:1387 \u00B7 packages/ui/src/pages/home/components/profiles.tsx:1633 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/service.ts"},"region":{"startLine":1387}}}],"partialFingerprints":{"codehealthFindingId/v1":"0edaf0926a6bb1ae6495f1e166a22a21e6d70ec77018380c6512cfdc4539a03c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): packages/core/src/providers/credential-pool.ts:19 \u00B7 packages/core/src/providers/credential-pool.ts:84 \u2014 the two spans are one implementation copied and then locally edited \u2014 83 tokens are still identical, in the same order in both spans, 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":"packages/core/src/providers/credential-pool.ts"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd3e3a311b5b448dbbddb406831012be269da73629e53837a9e023c8d20b4dd5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/core/src/proxy/certificates.ts:39 \u00B7 packages/core/src/proxy/certificates.ts:146 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/proxy/certificates.ts"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf422529efc922079311ddfc1aad7fa3b17deea47c09c5365abe188c2bfa979c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/core/src/proxy/service.ts:1509 \u00B7 packages/core/src/proxy/service.ts:1521 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/proxy/service.ts"},"region":{"startLine":1509}}}],"partialFingerprints":{"codehealthFindingId/v1":"666e0fc91148fb979a076d808c4635fae292e1cee83fe5451d13c47b910699f6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/electron/bundled-plugins/claude-design/index.cjs:4030 \u00B7 packages/electron/bundled-plugins/claude-design/index.cjs:4043 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":4030}}}],"partialFingerprints":{"codehealthFindingId/v1":"17fa7e4d53b1f794c15f21af1e2741088f10e46527412c3b9ffa6b18dca8b59c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/electron/bundled-plugins/claude-design/index.cjs:9967 \u00B7 packages/electron/bundled-plugins/claude-design/index.cjs:9975 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":9967}}}],"partialFingerprints":{"codehealthFindingId/v1":"c26efa8c44bf0bf48ce96f4c7ff4ac2747beb8a6daa8f544e4f675cce57a958b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/electron/bundled-plugins/claude-design/index.cjs:10578 \u00B7 packages/electron/bundled-plugins/claude-design/index.cjs:10673 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":10578}}}],"partialFingerprints":{"codehealthFindingId/v1":"37edaa0c19354b67effc0cdd94f745ac7a6a3534aae06854a95ead33e2dd75e4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/electron/bundled-plugins/claude-design/index.cjs:13586 \u00B7 packages/electron/bundled-plugins/claude-design/index.cjs:13613 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":13586}}}],"partialFingerprints":{"codehealthFindingId/v1":"66e4b3d8c6b49d58f07bdd5e7b316b5c97feb5182e19b7111570d60cc32ee689"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): packages/electron/src/main/chrome-login-import.ts:554 \u00B7 packages/electron/src/main/plugin-app-url.ts:145 \u2014 the two spans are one implementation copied and then locally edited \u2014 51 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":"packages/electron/src/main/chrome-login-import.ts"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"79e87978e2bd77ac8934e08bff6cde8beb794cdd75577868e908f863b4101f3e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/ui/src/components/ui/card.tsx:33 \u00B7 packages/ui/src/components/ui/dialog.tsx:232 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/components/ui/card.tsx"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"61ad9639418658f2ab0a4c072cff1cf590ed7b6fd88e549a96cdfbc4d40a5370"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/ui/src/pages/home/App.tsx:226 \u00B7 packages/ui/src/pages/home/components/providers.tsx:2901 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/App.tsx"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"950f330b8ac60462105dba94edca4aebaa25c109dc1237ecf9c5a876d76ca6c3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/ui/src/pages/home/components/dashboard.tsx:682 \u00B7 packages/ui/src/pages/home/components/dashboard.tsx:702 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"30051552b0189427beb3c6fb9a6692e4ffc072806c8294fc2f757cc1cba5705d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3 locations): packages/ui/src/pages/home/components/dashboard.tsx:4234 \u00B7 packages/ui/src/pages/home/shared/provider-accounts.ts:55 \u00B7 packages/ui/src/pages/tray/shared.tsx:823 \u2014 the 3 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":4234}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eaf0985d8d0b62dbf885ba8a8dc5085a301753aeedd2c1c63a85f2feaec84e5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/ui/src/pages/home/components/dashboard.tsx:5646 \u00B7 packages/ui/src/pages/home/components/dashboard.tsx:5722 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":5646}}}],"partialFingerprints":{"codehealthFindingId/v1":"0404b1abfca4d35919f039aa9e6d8ff45864c9a824aca96f87654e4ab7dc5188"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3 locations): packages/ui/src/pages/home/components/routing.tsx:500 \u00B7 packages/ui/src/pages/home/components/settings.tsx:848 \u00B7 packages/ui/src/pages/home/components/virtual-models.tsx:470 \u2014 the 3 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. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/routing.tsx"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"99aecb3de4be9acbc5a5368b32e8be3e0a8b02982a08770aa4c1fb72590e8eb1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/ui/src/pages/home/components/settings.tsx:3083 \u00B7 packages/ui/src/pages/home/components/share-cards.tsx:401 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/settings.tsx"},"region":{"startLine":3083}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3e7a599c7927ab87e1555e3299e21363c8c2521782c6ee716f0184a942ad949"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3 locations): packages/core/src/agents/codex/app-launch.ts:414 \u00B7 packages/core/src/agents/zcode/profile-config.ts:293 \u00B7 packages/core/src/profiles/service.ts:4069 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/codex/app-launch.ts"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"78ad2a431bd94d12ab7e644a99ca1db855c5d7acfcdb1d9aab6ea6c476196b12"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/core/src/agents/local-providers/codex.ts:578 \u00B7 packages/ui/src/pages/tray/shared.tsx:815 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/local-providers/codex.ts"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ca460c0594a0067ddf835d46a163a5ddd14b0cfc5f159171df300fe046dd5c4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/core/src/agents/local-providers/grok.ts:840 \u00B7 packages/core/src/agents/local-providers/kimi.ts:752 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/local-providers/grok.ts"},"region":{"startLine":840}}}],"partialFingerprints":{"codehealthFindingId/v1":"38b9c592dd95b12108a981f73782232d8ee61b088945a39fabeecad67ea7e052"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/core/src/agents/zcode/profile-config.ts:81 \u00B7 packages/core/src/agents/zcode/profile-config.ts:97 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/zcode/profile-config.ts"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"5320cdb1839a1529ee5991bd702fdc45940690a69bd2b9b81a311e7eac44b180"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3 locations): packages/core/src/config/config.ts:1408 \u00B7 packages/ui/src/pages/home/shared/common.ts:161 \u00B7 packages/ui/src/pages/tray/shared.tsx:368 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":1408}}}],"partialFingerprints":{"codehealthFindingId/v1":"d06f78f714d727c87aa0f20ef44745f36e498e23e5f528b2d830c71855dcea76"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/core/src/contracts/deep-link.ts:804 \u00B7 packages/core/src/providers/model-catalog.ts:722 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/contracts/deep-link.ts"},"region":{"startLine":804}}}],"partialFingerprints":{"codehealthFindingId/v1":"6605d4acfafe62ee5009d73f4a1179714b3d8d38f337ae9b997efb204353aff8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (5 matched lines \u00D7 2 locations): packages/core/src/gateway/context-archive/protocol.ts:835 \u00B7 packages/core/src/gateway/core-runtime/router-plugin.ts:1263 \u2014 the two spans are one implementation copied and then locally edited \u2014 51 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":"packages/core/src/gateway/context-archive/protocol.ts"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec96d44887cec0be87e0330ef72042abd7e29b5883953d1635e47fb716c79721"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (5 matched lines \u00D7 2 locations): packages/core/src/gateway/core-runtime/config-compiler.ts:776 \u00B7 packages/core/src/gateway/upstream/executor.ts:709 \u2014 the two spans are one implementation copied and then locally edited \u2014 62 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":"packages/core/src/gateway/core-runtime/config-compiler.ts"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cbe8f66c4a84cde359250798c3877f0e47f23b9474c972de8816da12eff728d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/core/src/gateway/core-runtime/supervisor.ts:709 \u00B7 packages/core/src/providers/manifest-service.ts:266 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/core-runtime/supervisor.ts"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6c1bad38a8a9d3db4b9010528c1090882a575763155fb0a13792cf7021c12d4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/core/src/gateway/http/io.ts:315 \u00B7 packages/core/src/plugins/service.ts:1207 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/http/io.ts"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"301c1f360f2e44c0f63bf7297e35f79d13c269bc76bf050dd69391de609234a5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3 locations): packages/core/src/mcp/fusion-config.ts:511 \u00B7 packages/core/src/mcp/fusion-config.ts:556 \u00B7 packages/core/src/mcp/fusion-config.ts:591 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/mcp/fusion-config.ts"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5e6de34b59cceb0f8e0b9506167f05517c238057b123978e7827c3858c45c15"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/core/src/media/executors.ts:421 \u00B7 packages/electron/src/main/tray-controller.ts:744 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/media/executors.ts"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"14fb153ba2d2f27cd387e963e0b8e8dc8ea8e06598261664a93072e418776dd4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (5 matched lines \u00D7 2 locations): packages/core/src/observability/raw-trace-sync.ts:1783 \u00B7 packages/core/src/routing/route-script-worker.ts:248 \u2014 the two spans are one implementation copied and then locally edited \u2014 55 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":"packages/core/src/observability/raw-trace-sync.ts"},"region":{"startLine":1783}}}],"partialFingerprints":{"codehealthFindingId/v1":"52d2d4eafde9659c915f0b5030944741dcf2d2329a086fbb17324fa2d2dbd990"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/core/src/observability/request-log-store.ts:3914 \u00B7 packages/core/src/observability/request-log-store.ts:3957 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":3914}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c7fbbb4c1a674e19a320759e7f507241188709d1a6f78aca77e6bdc4edb86b8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (5 matched lines \u00D7 2 locations): packages/core/src/plugins/backend-service.ts:373 \u00B7 packages/electron/src/main/built-in-browser.ts:1023 \u2014 the two spans are one implementation copied and then locally edited \u2014 53 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":"packages/core/src/plugins/backend-service.ts"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"284d846e3eadacc3ed2ced590320b9e9c86eeb06ce03acc2e242f742321caf45"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3 locations): packages/core/src/plugins/marketplace.ts:207 \u00B7 packages/core/src/web/management-server.ts:1319 \u00B7 packages/electron/src/main/ipc.ts:1470 \u2014 the 3 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/plugins/marketplace.ts"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"788750475623405cb63444804c78d1153ef4da68bc2890b9ed12a678e6d3b85d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3 locations): packages/core/src/plugins/service.ts:1134 \u00B7 packages/ui/src/pages/tray/TrayApp.tsx:258 \u00B7 packages/ui/src/pages/tray/components/usage-detail.tsx:91 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/plugins/service.ts"},"region":{"startLine":1134}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ae673399c3e12d6c760412d8d3a0d64600ef4006f749c0afcb25620ee7df34e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/core/src/plugins/service.ts:1179 \u00B7 packages/core/src/providers/account-service.ts:2617 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/plugins/service.ts"},"region":{"startLine":1179}}}],"partialFingerprints":{"codehealthFindingId/v1":"56f3a884a0f6a717c7e0e7a243b85ccc9012dfb047f0aa293fb770ec8c9eb7fc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/core/src/profiles/service.ts:1805 \u00B7 packages/core/src/profiles/service.ts:2247 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/service.ts"},"region":{"startLine":1805}}}],"partialFingerprints":{"codehealthFindingId/v1":"397058934137f9752f5685d824f57b53fd5da4e6baeab99378e6c29f7b22862e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/electron/bundled-plugins/claude-design/index.cjs:9200 \u00B7 packages/electron/bundled-plugins/claude-design/index.cjs:9273 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":9200}}}],"partialFingerprints":{"codehealthFindingId/v1":"a27fceb0ff9ff4e0d636b4c5b22955f6b90f2c572210dddc1376c6682441e34d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/electron/bundled-plugins/claude-design/index.cjs:9398 \u00B7 packages/electron/bundled-plugins/claude-design/index.cjs:9411 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":9398}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a14eea6487c0e4d1dba790f1ed27e7a648bca0f73f247f05238a6db5b179a33"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (5 matched lines \u00D7 2 locations): packages/electron/src/main/browser-automation-mcp.ts:3174 \u00B7 scripts/generate-models-json.mjs:1150 \u2014 the two spans are one implementation copied and then locally edited \u2014 53 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":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":3174}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7206db76320280c6dcecad70cae0660f2271959b6db6b9390d803501410711d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/electron/src/main/electron-web-search-mcp.ts:403 \u00B7 packages/electron/src/main/electron-web-search-mcp.ts:409 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/src/main/electron-web-search-mcp.ts"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6d8adae31b2b9662245938486d758a098a9d57c948768f618dafe9f1a18bb55"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/electron/src/main/ipc.ts:847 \u00B7 packages/electron/src/main/ipc.ts:853 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/src/main/ipc.ts"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0e1d644c8f71632b1a36d9b833afdde257f3e158b567a5abda20f931cad13eb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/ui/src/pages/browser/main.tsx:32 \u00B7 packages/ui/src/pages/home/components/providers.tsx:1385 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/browser/main.tsx"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dc013b8a71ece00a897de22b189aed0d7499914ec45b6d8ffe4b1f9e3a78a58"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/ui/src/pages/home/App.tsx:284 \u00B7 packages/ui/src/pages/tray/TrayDetailApp.tsx:13 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/App.tsx"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"e17cf1d9487780db224e7536f032b05eee0e356e34fb09a143028404b2e17ee4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/ui/src/pages/home/components/dashboard.tsx:78 \u00B7 packages/ui/src/pages/home/components/settings.tsx:602 \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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"c97c68351b4484e9fe332cef3b783bcd51ad8990bc9e3d19a90ee79cb6617d0b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/ui/src/pages/home/components/network-logs.tsx:1807 \u00B7 packages/ui/src/pages/home/components/providers.tsx:2904 \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":"packages/ui/src/pages/home/components/network-logs.tsx"},"region":{"startLine":1807}}}],"partialFingerprints":{"codehealthFindingId/v1":"52fe24ec8730024ea50b6b5ef9769bb71a40a0de3be4af27a2d0e009abd868c4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/ui/src/pages/home/components/providers.tsx:903 \u00B7 packages/ui/src/pages/home/components/providers.tsx:3795 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":903}}}],"partialFingerprints":{"codehealthFindingId/v1":"9224d958e88774223a12859db375853e8230414ca05d9f6f2ebeb399ab97a7a7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/ui/src/pages/home/components/providers.tsx:1384 \u00B7 packages/ui/src/pages/home/components/providers.tsx:4284 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":1384}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a5614d56213b5c273b57c23b9aaa92c95d4a4698aeffaf341bb5e17b096f093"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/ui/src/pages/home/components/providers.tsx:3241 \u00B7 packages/ui/src/pages/home/components/providers.tsx:3291 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":3241}}}],"partialFingerprints":{"codehealthFindingId/v1":"62d132f8536d11951250ae608b43b20f8230266166e17d9144aa04d8600dca88"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function proxyRequest (cyclomatic 152, cognitive 172): proxyRequest has cyclomatic complexity 152 and cognitive complexity 172; 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":"packages/core/src/gateway/request/pipeline.ts"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8ba92bcea137f7d821c663e25eeffee92b97cadbafe3288fc0f689e7f96258c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleOmeletteConnectRpc (cyclomatic 112, cognitive 20): handleOmeletteConnectRpc has cyclomatic complexity 112 and cognitive complexity 20; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":2235}}}],"partialFingerprints":{"codehealthFindingId/v1":"0999c7aaa2627be86b8479027ee2185d9c69b130b25332adf221d5dd5fd48dfe"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 91, cognitive 71): (anonymous) has cyclomatic complexity 91 and cognitive complexity 71; 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":"packages/core/src/config/config.ts"},"region":{"startLine":3622}}}],"partialFingerprints":{"codehealthFindingId/v1":"701c77ca827ae29299c96082d9b33e0b645c3dc5732300bd9747fbc62c5b4529"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateFromRawTrace (cyclomatic 90, cognitive 87): updateFromRawTrace has cyclomatic complexity 90 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 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab82a004592c06c9e9857f8561a5fd65eaa00db0fcc9bd88c4444651e2d26cc9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeUnknownProfileItem (cyclomatic 84, cognitive 64): normalizeUnknownProfileItem has cyclomatic complexity 84 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":"packages/ui/src/pages/home/shared/profiles.ts"},"region":{"startLine":1540}}}],"partialFingerprints":{"codehealthFindingId/v1":"f47afdc1fd13bb502ab488a59750d85ef15b8343d03fe4e090c2b26bdeefcc78"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function runTool (cyclomatic 76, cognitive 52): runTool has cyclomatic complexity 76 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":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bfd9ec6da26536da032332100ce27f0b3399bbc8f42265a299e15604a504654"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function setup (cyclomatic 68, cognitive 57): setup has cyclomatic complexity 68 and cognitive complexity 57; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"215d15f67ba2cda5adec02e62c45e05b6e92dfc680cfb8a13da066eda91f1ccd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleDesignRestApi (cyclomatic 67, cognitive 81): handleDesignRestApi has cyclomatic complexity 67 and cognitive complexity 81; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":9815}}}],"partialFingerprints":{"codehealthFindingId/v1":"aed1e6767077fee007524f8cb68ca7a8f86042a27d636f5e8c0784261b11bd19"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function App (cyclomatic 66, cognitive 59): App has cyclomatic complexity 66 and cognitive complexity 59; 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":"packages/ui/src/pages/home/App.tsx"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"8485ffdd39a3ac7ea2f536239e84b708ee9af4fcc04282bc4b5e314a154b2723"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function routeMockRequest (cyclomatic 64, cognitive 63): routeMockRequest has cyclomatic complexity 64 and cognitive complexity 63; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":895}}}],"partialFingerprints":{"codehealthFindingId/v1":"af54a4a8cf466cca65697da6335f7aff06d75927d860717ff81ea1f05c0fbe77"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function pickConfig (cyclomatic 62, cognitive 64): pickConfig has cyclomatic complexity 62 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 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":"packages/core/src/config/config.ts"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c1aca50ad605fb13eef1bf633d020e7ddf64ab14a3b5430109c15b8c6c223b9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseBotGateway (cyclomatic 61, cognitive 54): parseBotGateway has cyclomatic complexity 61 and cognitive complexity 54; 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":"packages/core/src/config/config.ts"},"region":{"startLine":2221}}}],"partialFingerprints":{"codehealthFindingId/v1":"45fb1316dc47cbc31c035a5855bfd0e7aed006d8685c33826bd82dec226fdb24"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseProfile (cyclomatic 57, cognitive 77): parseProfile has cyclomatic complexity 57 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 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":"packages/core/src/config/config.ts"},"region":{"startLine":3480}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fa6ec80fa81eed534e049de2d1d00ffe7184f3af763250be7a91404900c185a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function AddProfileForm (cyclomatic 55, cognitive 49): AddProfileForm has cyclomatic complexity 55 and cognitive complexity 49; 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":"packages/ui/src/pages/home/components/profiles.tsx"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"da11b9be839cedb81a1a551359c3597ca72ffd10bd831ce3c087bc8ef6d3cbcd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleRequest (cyclomatic 54, cognitive 75): handleRequest has cyclomatic complexity 54 and cognitive complexity 75; 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":"packages/core/src/gateway/http/request-handler.ts"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d007203ac93d83be60db0b470347575c97c90cfc1b51fb41299bd4dda7e5f54"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function loadAppConfig (cyclomatic 54, cognitive 56): loadAppConfig has cyclomatic complexity 54 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 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":"packages/core/src/config/config.ts"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"ede44636c32f57f6e1e1986095403ecacdc8b451128faaa3b274700120e5df2c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function inferAgentFromText (cyclomatic 54, cognitive 33): inferAgentFromText has cyclomatic complexity 54 and cognitive complexity 33; 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":2043}}}],"partialFingerprints":{"codehealthFindingId/v1":"241842a086f52d93b787d534756499f9e6081333b0502cdc5473dd4e566142d2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function main (cyclomatic 49, cognitive 53): main has cyclomatic complexity 49 and cognitive complexity 53; 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":"packages/cli/src/cli.ts"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b3c9a7007fe9596c99adb43ca2b8b9ea3c06bdd63e4723e593d824340a480c0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 49, cognitive 34): (anonymous) has cyclomatic complexity 49 and cognitive complexity 34; 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":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":4889}}}],"partialFingerprints":{"codehealthFindingId/v1":"2518caaf7b6395d13728b33484d4ea06c5c9c1f51a25b1f88af8ab18ab59f130"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchUpstreamWithFallback (cyclomatic 48, cognitive 91): fetchUpstreamWithFallback has cyclomatic complexity 48 and cognitive complexity 91; 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":"packages/core/src/gateway/upstream/executor.ts"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d119652397ae84ddea7b19fd9e46446a2663d24beaac7b815d018d8be4e83be"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function assistantFullTextCandidates (cyclomatic 48, cognitive 77): assistantFullTextCandidates has cyclomatic complexity 48 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 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":2746}}}],"partialFingerprints":{"codehealthFindingId/v1":"f57d9aac2c3f6f8ea2876e6f8f98268541cbfa37410bc699b892cd02b1ff464d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function waitForReadiness (cyclomatic 48, cognitive 77): waitForReadiness has cyclomatic complexity 48 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 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":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":1653}}}],"partialFingerprints":{"codehealthFindingId/v1":"87c0be6eb24784cab3e4c6a830af296ea519d7634863f618da94f74f51ac9b51"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function submitProviderDraft (cyclomatic 48, cognitive 48): submitProviderDraft has cyclomatic complexity 48 and cognitive complexity 48; 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":"packages/ui/src/pages/home/App.tsx"},"region":{"startLine":1705}}}],"partialFingerprints":{"codehealthFindingId/v1":"7343bba82d525fb0da7b93381200384a01b1c3a6ac420bc15a574b5bcb3b7aa4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeProfileItem (cyclomatic 47, cognitive 50): normalizeProfileItem has cyclomatic complexity 47 and cognitive complexity 50; 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":"packages/ui/src/pages/home/shared/profiles.ts"},"region":{"startLine":1395}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ae5bf0bc9fff9855e0f3e6ba21d16cd573f9349d0838c58fbc3a13f36c35a40"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function waitForNextReadinessEvent (cyclomatic 45, cognitive 64): waitForNextReadinessEvent has cyclomatic complexity 45 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 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":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":1772}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbb3ef89d42eba7a655e883de6b9677f8325e60db9a850ea829ea175c45dd1d9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ProviderAccountSummaryCard (cyclomatic 44, cognitive 57): ProviderAccountSummaryCard has cyclomatic complexity 44 and cognitive complexity 57; 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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":2929}}}],"partialFingerprints":{"codehealthFindingId/v1":"59fea04cbb98e7fc257aa9f4ced5fca78f436a19b62c0e3a84fc5c8f96aa0427"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function profileSummaryItems (cyclomatic 44, cognitive 37): profileSummaryItems has cyclomatic complexity 44 and cognitive complexity 37; 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":"packages/ui/src/pages/home/shared/profiles.ts"},"region":{"startLine":1285}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5b4b501d8bf2a6e748a85450c44c14e0384a4845684c3cf7948325b5c5c5d24"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseOpenRouterDiscountRouting (cyclomatic 42, cognitive 34): parseOpenRouterDiscountRouting has cyclomatic complexity 42 and cognitive complexity 34; 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":"packages/core/src/config/config.ts"},"region":{"startLine":1572}}}],"partialFingerprints":{"codehealthFindingId/v1":"4381e8ec5c32433b635f138bc93615f69840839fb0a7b88c614d631fcd63e7cd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function extractUsageSnapshot (cyclomatic 41, cognitive 26): extractUsageSnapshot has cyclomatic complexity 41 and cognitive complexity 26; 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":6348}}}],"partialFingerprints":{"codehealthFindingId/v1":"d02d37731a323875c63d01565310f90782818c808b750177f749b17fa49061d6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function aggregateOpenAiResponsesStreamPayloads (cyclomatic 40, cognitive 78): aggregateOpenAiResponsesStreamPayloads has cyclomatic complexity 40 and cognitive complexity 78; 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":"packages/ui/src/pages/home/shared/logs.ts"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"75ee7901efda0439eb2966372df15c4646f065846b3e8487e6b408f579d5d5f1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleAdminRequest (cyclomatic 40, cognitive 44): handleAdminRequest has cyclomatic complexity 40 and cognitive complexity 44; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":4102}}}],"partialFingerprints":{"codehealthFindingId/v1":"3031eb6c34fab91591a3ee3588b84b5006f197c70eca3e6803f4e4e503220192"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleClaudeShipSessionApi (cyclomatic 40, cognitive 44): handleClaudeShipSessionApi has cyclomatic complexity 40 and cognitive complexity 44; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":5197}}}],"partialFingerprints":{"codehealthFindingId/v1":"d074305fbd567bfbb481cc0624112950e383871230fe61bad9c26df8637d6594"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeBotGatewayRuntimeConfig (cyclomatic 40, cognitive 38): normalizeBotGatewayRuntimeConfig has cyclomatic complexity 40 and cognitive complexity 38; 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":"packages/ui/src/pages/home/shared/profiles.ts"},"region":{"startLine":1171}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0118f427ed3cbe6ec4f4a130b824dbaac331ff5e5b36e0d6b807b1f7f39f7a5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function AddProviderDialog (cyclomatic 40, cognitive 34): AddProviderDialog has cyclomatic complexity 40 and cognitive complexity 34; 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":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":3466}}}],"partialFingerprints":{"codehealthFindingId/v1":"da06a5de92ee99322d4a905161548f00c4721296ea6f88ed16a0ff7a27eff75c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function commentFromRequest (cyclomatic 40, cognitive 25): commentFromRequest has cyclomatic complexity 40 and cognitive complexity 25; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":9472}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f244c1eb32f7a230a9e0d063a5c4b6d7a2c1006cbbb747ac71f745636748249"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function synthesizeWeatherWebSearchAnswer (cyclomatic 39, cognitive 40): synthesizeWeatherWebSearchAnswer has cyclomatic complexity 39 and cognitive complexity 40; 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":"packages/core/src/gateway/features/hosted-web-search/evidence.ts"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c6b8a3119e8eeeee488e7053a6d84b6536e5a9cd00db3469fa72f80420ee270"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseProfileAgent (cyclomatic 39, cognitive 20): parseProfileAgent has cyclomatic complexity 39 and cognitive complexity 20; 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":"packages/core/src/config/config.ts"},"region":{"startLine":3801}}}],"partialFingerprints":{"codehealthFindingId/v1":"0716a76bc5a90b81dbb69adfbec34bc4212e008cdfe65abe428cad548aad4f21"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyPluginRegistration (cyclomatic 38, cognitive 36): applyPluginRegistration has cyclomatic complexity 38 and cognitive complexity 36; 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":"packages/core/src/plugins/service.ts"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4bb3187210377a1d1a8b8cc8290cd5949880126ba87a13d2c810663214fee91"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createVirtualModelDraftFromProfile (cyclomatic 38, cognitive 36): createVirtualModelDraftFromProfile has cyclomatic complexity 38 and cognitive complexity 36; 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":"packages/ui/src/pages/home/shared/virtual-models.ts"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"97c31e1e0823318f4aeb42a9c05509091cab634b9389fe0b568e219179c7a443"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function AddProviderForm (cyclomatic 38, cognitive 35): AddProviderForm has cyclomatic complexity 38 and cognitive complexity 35; 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":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":1961}}}],"partialFingerprints":{"codehealthFindingId/v1":"0054b9b802f136dd06a6a7da2a34f0731c3a58383609d3a31cea0f3b447c5ed9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function search (cyclomatic 37, cognitive 57): search has cyclomatic complexity 37 and cognitive complexity 57; 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":"packages/core/src/mcp/toolhub-mcp.ts"},"region":{"startLine":1467}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1455d0d719b8dd872f4d2c35ff6a88ba0e13e4710d620f9bcebc9b8401c5641"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 37, cognitive 35): (anonymous) has cyclomatic complexity 37 and cognitive complexity 35; 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":"packages/ui/src/pages/home/components/profiles.tsx"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1c5be439b596424edc9492cb1121404a777bec2c14ec252023a5c4a503fe47b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function isPublicIpv4 (cyclomatic 37, cognitive 24): isPublicIpv4 has cyclomatic complexity 37 and cognitive complexity 24; 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":"packages/core/src/providers/manifest-service.ts"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"7833c4b123ef362d752a35483372aba5df8c7985473e31b4fc525bede0cf8332"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readOpenCodeCatalog (cyclomatic 36, cognitive 37): readOpenCodeCatalog has cyclomatic complexity 36 and cognitive complexity 37; 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":"packages/core/src/agents/local-providers/opencode.ts"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"43e3888aaddf123f4e0f2e2e446eb510313943138ab6ccafcc4acacf99343a4c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function OnboardingView (cyclomatic 36, cognitive 34): OnboardingView has cyclomatic complexity 36 and cognitive complexity 34; 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":"packages/ui/src/pages/home/components/onboarding.tsx"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"85fde0d71436f58d4dce8baba99c32cfd2e6f084cc407c42833c8d9b83badf88"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function extractUsageSnapshot (cyclomatic 36, cognitive 23): extractUsageSnapshot has cyclomatic complexity 36 and cognitive complexity 23; 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":"packages/core/src/usage/store.ts"},"region":{"startLine":1140}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5ee6d18ab5477c80e48b3d49fd867c075178d487a18e0ec3476d265bdbd1e04"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseProviderModelMetadata (cyclomatic 35, cognitive 32): parseProviderModelMetadata has cyclomatic complexity 35 and cognitive complexity 32; 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":"packages/core/src/config/config.ts"},"region":{"startLine":1532}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eea4cc9a083835637ac43153bf33465f7fa2fe86dcbd253b15e687c51a55984"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function toRequestLogEntry (cyclomatic 35, cognitive 32): toRequestLogEntry has cyclomatic complexity 35 and cognitive complexity 32; 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":5104}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa92b6cfc8aa94c2aa2d5d7157f4c8253c4b685a8b8539de9fbd52a8a873ca6a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function chatWithGateway (cyclomatic 35, cognitive 28): chatWithGateway has cyclomatic complexity 35 and cognitive complexity 28; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":10458}}}],"partialFingerprints":{"codehealthFindingId/v1":"5210aa5d67eeda5ec09616a7f9f10ef8ad8f90c22250262acfe1973695d67330"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeDeepLinkModelMetadata (cyclomatic 34, cognitive 31): normalizeDeepLinkModelMetadata has cyclomatic complexity 34 and cognitive complexity 31; 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":"packages/core/src/contracts/deep-link.ts"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"69c1905bad88525c25b65dd86e5c7ff258523c397f75380264041a7d99e916c1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function prepareRecordForQueue (cyclomatic 34, cognitive 22): prepareRecordForQueue has cyclomatic complexity 34 and cognitive complexity 22; 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":"packages/core/src/observability/request-log-runtime.ts"},"region":{"startLine":945}}}],"partialFingerprints":{"codehealthFindingId/v1":"1281aa20034dbb99f00fac9242c847122654835ea7ec90c02aa62eaca156a0c2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function wrapperPluginCapability (cyclomatic 33, cognitive 41): wrapperPluginCapability has cyclomatic complexity 33 and cognitive complexity 41; 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":"packages/ui/src/pages/home/shared/extensions.ts"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"40ef683d3bc33371045835353dd489760fcb5185f60b4a17bce98033d1168b8e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ProviderDeepLinkDialog (cyclomatic 33, cognitive 31): ProviderDeepLinkDialog has cyclomatic complexity 33 and cognitive complexity 31; 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":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce7f5e0921b9b1d935c438b966faca622375b2e87a6f4ba60bdde9e9959abf8b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ProviderUsageSettings (cyclomatic 33, cognitive 30): ProviderUsageSettings has cyclomatic complexity 33 and cognitive complexity 30; 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":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":2888}}}],"partialFingerprints":{"codehealthFindingId/v1":"60ef4f51e47935de5390e39379b58f7ec4abb87dba428dd81d1374f7b90c34d5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeCoreGatewayVirtualModelProfile (cyclomatic 33, cognitive 29): normalizeCoreGatewayVirtualModelProfile has cyclomatic complexity 33 and cognitive complexity 29; 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":"packages/core/src/gateway/core-runtime/config-compiler.ts"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"94b4b0fa07dc4af185f33aa57df9b4d2d922d3b18f7302c6e97425848779f255"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createProfileDraftFromProfile (cyclomatic 33, cognitive 28): createProfileDraftFromProfile has cyclomatic complexity 33 and cognitive complexity 28; 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":"packages/ui/src/pages/home/shared/profiles.ts"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"509df322b6956fb6c093efa22ff1e7d6a02a336946506d0ab2dcc9df2be6a864"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mediaToolBindingsForConfig (cyclomatic 32, cognitive 53): mediaToolBindingsForConfig has cyclomatic complexity 32 and cognitive complexity 53; 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":"packages/core/src/media/tools.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf72311a4c86550c76cd11aebf6d4044b793267afa802e7f04ab875f68d54a46"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createProviderAccountDraftFromConfig (cyclomatic 32, cognitive 34): createProviderAccountDraftFromConfig has cyclomatic complexity 32 and cognitive complexity 34; 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":"packages/ui/src/pages/home/shared/providers.ts"},"region":{"startLine":1202}}}],"partialFingerprints":{"codehealthFindingId/v1":"cad3815079f218b3d86bd0d3ad0cdedde778685c2e063190ab7db2db99f773bc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function startGateway (cyclomatic 32, cognitive 33): startGateway has cyclomatic complexity 32 and cognitive complexity 33; 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":"packages/core/src/gateway/application/gateway-service.ts"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"081ff2da499c0bd9c52e5f57d9e1e28267ab8e148e5c76419dfca5794ad5efd8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function codexModelMetadataFromItem (cyclomatic 32, cognitive 23): codexModelMetadataFromItem has cyclomatic complexity 32 and cognitive complexity 23; 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":"packages/core/src/agents/local-providers/codex.ts"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"810154e7bfadaecbe785f81d44a4e09e1ff2e3d78fccdc7124492e30b2bedd8b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fusionBuiltinToolArtifacts (cyclomatic 31, cognitive 77): fusionBuiltinToolArtifacts has cyclomatic complexity 31 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 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":"packages/core/src/mcp/fusion-config.ts"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b0998f40291a5f529d0e4394fb6548467a02d376a7658b1d1510a05143d8216"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function restoreInactiveGlobalProfileConfigs (cyclomatic 31, cognitive 51): restoreInactiveGlobalProfileConfigs has cyclomatic complexity 31 and cognitive complexity 51; 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":"packages/core/src/profiles/service.ts"},"region":{"startLine":3481}}}],"partialFingerprints":{"codehealthFindingId/v1":"46ad6c44d3bd2dbcbb3a8d625beae44980bbb618e749929b39e8b23545f3d169"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function LogExpandedDetails (cyclomatic 31, cognitive 30): LogExpandedDetails has cyclomatic complexity 31 and cognitive complexity 30; 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":"packages/ui/src/pages/home/components/network-logs.tsx"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4d2cd4e6da888501c6dbe8cf00dc7817366dbe0d29d2cfe29abf7c1e9c60b3a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveProviderMediaTarget (cyclomatic 31, cognitive 28): resolveProviderMediaTarget has cyclomatic complexity 31 and cognitive complexity 28; 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":"packages/core/src/media/service.ts"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ec887e721165c367f71b680e33a24ea99b7a7ca45f0693fa5c533f22d9bca8c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function stripJsonCommentsAndTrailingCommas (cyclomatic 30, cognitive 53): stripJsonCommentsAndTrailingCommas has cyclomatic complexity 30 and cognitive complexity 53; 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":"packages/core/src/agents/local-providers/shared.ts"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb513dc45e6b87f54256133a00b03f4a6a3e95ab5c6187c513800d9f2b3f7355"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function assistantStreamText (cyclomatic 30, cognitive 38): assistantStreamText has cyclomatic complexity 30 and cognitive complexity 38; 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":2697}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4bf0c91b78815501065b181566df194911ad884686701d22b388322117ebaa7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function botGatewayProfileEnv (cyclomatic 30, cognitive 28): botGatewayProfileEnv has cyclomatic complexity 30 and cognitive complexity 28; 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":"packages/core/src/agents/bot-gateway/env.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"0035861e4f08f3c393761042545c99efe73391feec4821c3122f2eb4356b6ec5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeRouteScriptResult (cyclomatic 30, cognitive 28): normalizeRouteScriptResult has cyclomatic complexity 30 and cognitive complexity 28; 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":"packages/core/src/routing/route-script-result.ts"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"86a6a2594ada551fd184e8826d0bb5906d3fcca7128a18a20e25f4ee0f38d5b9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function codexModelCapabilityProfile (cyclomatic 30, cognitive 25): codexModelCapabilityProfile has cyclomatic complexity 30 and cognitive complexity 25; 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":"packages/core/src/agents/codex/model-catalog.ts"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"b882a18f67781f348114cbb4bcf3579edd9df66fff7afce1bad7c180184c4e08"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function UpdateDialog (cyclomatic 30, cognitive 22): UpdateDialog has cyclomatic complexity 30 and cognitive complexity 22; 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":"packages/ui/src/pages/home/components/update.tsx"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0b46feadd9cbc6d028d83100cfc907428b6697476c3ef759d54df453ec6a375"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeProjectStoreData (cyclomatic 30, cognitive 21): normalizeProjectStoreData has cyclomatic complexity 30 and cognitive complexity 21; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":7966}}}],"partialFingerprints":{"codehealthFindingId/v1":"6464ae562d7467a0da37b28f70a8fcb442193a3528d904aa33da90854b6dd95b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function collectToolCalls (cyclomatic 30, cognitive 18): collectToolCalls has cyclomatic complexity 30 and cognitive complexity 18; 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":2951}}}],"partialFingerprints":{"codehealthFindingId/v1":"a408a6413be706aaa3e29a94da4786c4110bc903f4f0b060b5f3fd4147907004"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function isOnlineClaudeDesignProxyRoutePath (cyclomatic 30, cognitive 18): isOnlineClaudeDesignProxyRoutePath has cyclomatic complexity 30 and cognitive complexity 18; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":14269}}}],"partialFingerprints":{"codehealthFindingId/v1":"65ab5e76270405aa26113fb2920c0d4c8843f52872451f11fd833d2a094ff079"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeCloudflarePagesConfig (cyclomatic 30, cognitive 13): normalizeCloudflarePagesConfig has cyclomatic complexity 30 and cognitive complexity 13; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":16381}}}],"partialFingerprints":{"codehealthFindingId/v1":"8095011b40e9e7b9454149bdd5cc9241fde7ad39f661069c3a7a70dbede9bad7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function targetActionScript (cyclomatic 29, cognitive 48): targetActionScript has cyclomatic complexity 29 and cognitive complexity 48; 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":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":2904}}}],"partialFingerprints":{"codehealthFindingId/v1":"04a7a1dc3a0b8bad13d9b6da57dc746d24dff75e3567d8425256180dc21d90cb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeServerConfig (cyclomatic 29, cognitive 32): normalizeServerConfig has cyclomatic complexity 29 and cognitive complexity 32; 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":"packages/core/src/mcp/toolhub-mcp.ts"},"region":{"startLine":1852}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cc78d6ad9288825fb93ee8f806f986c44b2db14cf91e9f6b1a581b42fd2ce7f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function isRestrictedIpAddress (cyclomatic 29, cognitive 16): isRestrictedIpAddress has cyclomatic complexity 29 and cognitive complexity 16; 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":"packages/core/src/media/executors.ts"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ccd816475a3264e731b6a40f62355e0e9f90f8b9c2b9b5203af6533fb5a31db"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function insert (cyclomatic 28, cognitive 27): insert has cyclomatic complexity 28 and cognitive complexity 27; 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d3ad94d756af9dcedf701a87731bfdc955e47be4338133260afef74be4f02cf"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function record (cyclomatic 28, cognitive 19): record has cyclomatic complexity 28 and cognitive complexity 19; 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"719d4699df15ba3b09440f649edf3b73f888aa6df489a34e51c0d14027246729"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeEndpoint (cyclomatic 28, cognitive 16): normalizeEndpoint has cyclomatic complexity 28 and cognitive complexity 16; 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":"packages/core/src/plugins/built-ins/openrouter-discount-provider-router.ts"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d7a5f091a16b10d66f90b6249f77783aab5d255823958056f3582d420cecfd2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleOrganizationApi (cyclomatic 27, cognitive 39): handleOrganizationApi has cyclomatic complexity 27 and cognitive complexity 39; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":4002}}}],"partialFingerprints":{"codehealthFindingId/v1":"61b14a024bf5191106d349a17097b93b778b93bb58d3f84a51a52c0b20a3a62b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function analyzeVision (cyclomatic 27, cognitive 31): analyzeVision has cyclomatic complexity 27 and cognitive complexity 31; 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":"packages/core/src/mcp/fusion-vision-mcp.ts"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"8811e056b49a6be7c132c3570861239a124736fc6dbd9b7f0abd0252344e1e91"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeQuestionsV2Question (cyclomatic 27, cognitive 29): normalizeQuestionsV2Question has cyclomatic complexity 27 and cognitive complexity 29; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":12811}}}],"partialFingerprints":{"codehealthFindingId/v1":"6881d699aa2714251425661344c38f39b8b2f9f1a4c82162d792357daf1c58c4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function grokModelCatalogFromPayload (cyclomatic 27, cognitive 28): grokModelCatalogFromPayload has cyclomatic complexity 27 and cognitive complexity 28; 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":"packages/core/src/agents/local-providers/grok.ts"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"58c6327191f8201c8a0c71696bd038a8706c058343f6989f3b5bad001b6820d2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function collectToolCallPayloads (cyclomatic 27, cognitive 14): collectToolCallPayloads has cyclomatic complexity 27 and cognitive complexity 14; 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":3285}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9bce734387d316fff0f52b719ef097cbf2c4bbf1edea274dc7cbc23687db096"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function anthropicMessagesResponseFromSseEvents (cyclomatic 26, cognitive 39): anthropicMessagesResponseFromSseEvents has cyclomatic complexity 26 and cognitive complexity 39; 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":"packages/core/src/gateway/features/context-archive-continuation.ts"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"914cb5099c4601c024ff6ff4395cd8ee3c84a7cf660d912fbd908ecb554b1bb8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function routeRequest (cyclomatic 26, cognitive 31): routeRequest has cyclomatic complexity 26 and cognitive complexity 31; 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":"packages/core/src/gateway/claude-code-router-plugin.ts"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d6ab9c95bb3125b24cc3ce52860e331f044bb1c41fb52a58e2d8bc7f6b2c719"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function processStoredBundle (cyclomatic 26, cognitive 30): processStoredBundle has cyclomatic complexity 26 and cognitive complexity 30; 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":"packages/core/src/observability/raw-trace-sync.ts"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"3434f99d2023f1ec8c7e6643135fbaad8d2ab71aedd74271fabd7f6cc1b17ac5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleClaudeShipCodeApi (cyclomatic 26, cognitive 29): handleClaudeShipCodeApi has cyclomatic complexity 26 and cognitive complexity 29; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":5035}}}],"partialFingerprints":{"codehealthFindingId/v1":"12a7a19a183aa3eefd89bacb9582b09d827e1ef5114777abbde08e68e3a84b1a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 26, cognitive 22): (anonymous) has cyclomatic complexity 26 and cognitive complexity 22; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":10588}}}],"partialFingerprints":{"codehealthFindingId/v1":"935ead05e0e5f1479d49773f8eb59783033eb2cc8b502cede84da82a7c6c7533"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyCodexProfile (cyclomatic 26, cognitive 20): applyCodexProfile has cyclomatic complexity 26 and cognitive complexity 20; 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":"packages/core/src/profiles/service.ts"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"1da8999d0d4e09ca28610875f43b7b2bb171c39bb51eddd7c837d5b57a7b1828"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveRouterRule (cyclomatic 25, cognitive 40): resolveRouterRule has cyclomatic complexity 25 and cognitive complexity 40; 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":"packages/core/src/gateway/claude-code-router-plugin.ts"},"region":{"startLine":1231}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7ff728baec56ed318a3b1e34fe2dadd70a53b3a1ff2811702d19a8932fafd9e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function serveAsset (cyclomatic 25, cognitive 40): serveAsset has cyclomatic complexity 25 and cognitive complexity 40; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":2475}}}],"partialFingerprints":{"codehealthFindingId/v1":"290555c2b32ecda1009113ed11348e6b9b19111a630787bbf884c9f5e105a1c0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function reloadExistingCcrGatewayConfig (cyclomatic 25, cognitive 37): reloadExistingCcrGatewayConfig has cyclomatic complexity 25 and cognitive complexity 37; 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":"packages/core/src/gateway/existing-gateway-probe.ts"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a445b0e6f730d4777672bc4bcbdf4d85ca9639ab93d080628c8e6d16539c7dc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function routerRuleConditionMatches (cyclomatic 25, cognitive 29): routerRuleConditionMatches has cyclomatic complexity 25 and cognitive complexity 29; 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":"packages/core/src/gateway/claude-code-router-plugin.ts"},"region":{"startLine":1390}}}],"partialFingerprints":{"codehealthFindingId/v1":"475b2c4c7eab3fbe2fe7c7d2ac8e89f219833127eb7a5ceee02fe655e496f054"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveProviderCredentialRoutingTarget (cyclomatic 25, cognitive 27): resolveProviderCredentialRoutingTarget has cyclomatic complexity 25 and cognitive complexity 27; 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":"packages/core/src/gateway/upstream/executor.ts"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2d843c15dc5fc79829bccb45f737beb58c5b19e5345c6a960abfcc016d4783e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function providerJsonConnectorDraftPartsFromDraft (cyclomatic 25, cognitive 26): providerJsonConnectorDraftPartsFromDraft has cyclomatic complexity 25 and cognitive complexity 26; 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":"packages/ui/src/pages/home/shared/providers.ts"},"region":{"startLine":1300}}}],"partialFingerprints":{"codehealthFindingId/v1":"18dbf22bfd980de31ea632ebd4f6e5500f19fe8790e5d740a0914d1ac5837731"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleClaudeShipBakuSessionApi (cyclomatic 25, cognitive 24): handleClaudeShipBakuSessionApi has cyclomatic complexity 25 and cognitive complexity 24; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":5314}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f7420d6135aa7031c359b52b8afa632d77d51d675124eb2f28a207b578f5fc0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 25, cognitive 24): (anonymous) has cyclomatic complexity 25 and cognitive complexity 24; 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":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"4665c37dad5d57c0cd09f9e8248a4ac3642e7a8565c513a37e7c91f4705fea86"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ProviderConnectionStatusPanel (cyclomatic 25, cognitive 24): ProviderConnectionStatusPanel has cyclomatic complexity 25 and cognitive complexity 24; 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":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":1739}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e193d797b1e97ce0d1d08ea21070f0ef4737cb39eb7c48b9b4a34d189148918"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function CodexResetCreditDialog (cyclomatic 25, cognitive 23): CodexResetCreditDialog has cyclomatic complexity 25 and cognitive complexity 23; 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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":3640}}}],"partialFingerprints":{"codehealthFindingId/v1":"601ed128411a844f979e5924e6dc494f5223e4d8f3c18daf8b1adac7ec00e935"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 25, cognitive 22): (anonymous) has cyclomatic complexity 25 and cognitive complexity 22; 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":"packages/ui/src/pages/home/shared/routing.ts"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9388c54692f64f3cdba4a6452454388f0687d82161a9c57a79d37f23f533bea"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 25, cognitive 20): (anonymous) has cyclomatic complexity 25 and cognitive complexity 20; 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":"packages/ui/src/pages/home/shared/logs.ts"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e0fc3cd884dfbe951235a316b12e5532640b80713c1e8cadf9a9c0aea9f22b2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function detectPageHandoff (cyclomatic 25, cognitive 19): detectPageHandoff has cyclomatic complexity 25 and cognitive complexity 19; 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":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":2516}}}],"partialFingerprints":{"codehealthFindingId/v1":"df1997d2c6e52d802f966775542ebf8d4e23a07dee68eac3e1d8b66b077b96ad"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function openAiResponsesResponseFromSseEvents (cyclomatic 24, cognitive 36): openAiResponsesResponseFromSseEvents has cyclomatic complexity 24 and cognitive complexity 36; 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":"packages/core/src/gateway/features/context-archive-continuation.ts"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"635949554c8b7ad37da19fc819ede0a9e54e76232bbb15116aa211da8338fce8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function receive (cyclomatic 24, cognitive 29): receive has cyclomatic complexity 24 and cognitive complexity 29; 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":"packages/core/src/agents/codex/media-preview-bridge.ts"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b3da90dfe7c21928a7105232f2aad3530a0ccf46ae4f55e83e55162e87ccf72"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function boundedPreview (cyclomatic 24, cognitive 29): boundedPreview has cyclomatic complexity 24 and cognitive complexity 29; 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":"packages/core/src/observability/route-trace.ts"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"418d242c2dcacdf8400dbb888f4ee68d064df11d8c9f6de95dd3971cef9aee1f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function loadCodexMediaArtifact (cyclomatic 24, cognitive 25): loadCodexMediaArtifact has cyclomatic complexity 24 and cognitive complexity 25; 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":"packages/core/src/agents/codex/media-preview-bridge.ts"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"b59591eb84ff17cfffa68e3f4954649e1776b1a03d65ba154c52c1157e648e53"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveGatewayProviderProbe (cyclomatic 24, cognitive 23): resolveGatewayProviderProbe has cyclomatic complexity 24 and cognitive complexity 23; 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":"packages/core/src/providers/probe.ts"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"f284ff1a30b9868a412944e6f248c3dcf67934b25cf29f032d3795017a4f7f87"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ProviderAccountMeterLine (cyclomatic 24, cognitive 22): ProviderAccountMeterLine has cyclomatic complexity 24 and cognitive complexity 22; 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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":3440}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f60d5c236237de57bdb99efce004592cd2795d5e1c9dd0fb24d10e37277f459"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 24, cognitive 21): (anonymous) has cyclomatic complexity 24 and cognitive complexity 21; 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":"packages/core/src/config/config.ts"},"region":{"startLine":1981}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb9f726f8ee37a16cc762c67777a696df82bf96876a74972022961cbd26162d6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fusionFallbackToolDefinitions (cyclomatic 23, cognitive 66): fusionFallbackToolDefinitions has cyclomatic complexity 23 and cognitive complexity 66; 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":"packages/core/src/mcp/fusion-config.ts"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcbd61240080830b8aae6207b2ad9dd3894e8f86db6eb70c296d4aaf2194b6bf"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function zcodeProviderModelCatalog (cyclomatic 23, cognitive 38): zcodeProviderModelCatalog has cyclomatic complexity 23 and cognitive complexity 38; 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":"packages/core/src/agents/local-providers/zcode.ts"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"da08e66b63c756734059c9753fbbbe6409ecaf5d2f0755d6028d09221ec1ce05"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function documentedReasoningProfile (cyclomatic 23, cognitive 23): documentedReasoningProfile has cyclomatic complexity 23 and cognitive complexity 23; 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":"packages/core/src/agents/codex/model-catalog.ts"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dcdbef46a21cea365dc5a064c06da0561a7cf4178af45a81ca10249134a1e5b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function compileRouteRewrite (cyclomatic 23, cognitive 23): compileRouteRewrite has cyclomatic complexity 23 and cognitive complexity 23; 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":"packages/core/src/routing/rewrite.ts"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"b99c74aa1eb4241b959c8b061e5e9caa152f85b72b9973caf7083401cdbbf622"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function routeClaudeDesignFetchRequest (cyclomatic 23, cognitive 23): routeClaudeDesignFetchRequest has cyclomatic complexity 23 and cognitive complexity 23; 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":"packages/electron/src/main/claude-design-window.ts"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"053b7890959d999614c1c445a8c9b1b74fd25db5a9d27a08d815dd852badd052"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function enqueueRawTrace (cyclomatic 23, cognitive 19): enqueueRawTrace has cyclomatic complexity 23 and cognitive complexity 19; 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":"packages/core/src/observability/request-log-runtime.ts"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"1be6dd6363bf225b61b6e7e269a1f3c97549ac274ba8e3ef9b5992a75af3599d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeMarketplaceEntry (cyclomatic 23, cognitive 18): normalizeMarketplaceEntry has cyclomatic complexity 23 and cognitive complexity 18; 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":"packages/core/src/plugins/marketplace.ts"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"e20c8d24c1f81ffe25b40331eb4e459f2d8073393749bd87a0ecc578c7be002f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function TracePayloadPane (cyclomatic 23, cognitive 16): TracePayloadPane has cyclomatic complexity 23 and cognitive complexity 16; 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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":5762}}}],"partialFingerprints":{"codehealthFindingId/v1":"3222ad93db550e0841426fded69b85d8aa38fbc8b42f68a2629b71a19d657cb5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildCodexModelCatalogIds (cyclomatic 22, cognitive 37): buildCodexModelCatalogIds has cyclomatic complexity 22 and cognitive complexity 37; 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":"packages/core/src/agents/codex/model-catalog.ts"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6079953786c62c63d7444f8f1372f6680163ef7183b80a611d026707b93be25"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function aggregateAnthropicStreamPayloads (cyclomatic 22, cognitive 35): aggregateAnthropicStreamPayloads has cyclomatic complexity 22 and cognitive complexity 35; 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":"packages/ui/src/pages/home/shared/logs.ts"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"1476f81f9b3018808af336ae03412af1b72ba9f6c3460e3f1cd1096b7a216e39"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyGatewayRequestTransforms (cyclomatic 22, cognitive 34): applyGatewayRequestTransforms has cyclomatic complexity 22 and cognitive complexity 34; 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":"packages/core/src/plugins/service.ts"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"85d787f7966eec4dc76b46b8951cc4910e332fc6aeee981c05d75d04b30a09d6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function download (cyclomatic 22, cognitive 28): download has cyclomatic complexity 22 and cognitive complexity 28; 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":"packages/core/src/media/executors.ts"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"6681b0c4d7ac6380425e0d25b4713bfda7184a74e5910e8ec5d61abd988d7425"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updatePrimaryAction (cyclomatic 22, cognitive 24): updatePrimaryAction has cyclomatic complexity 22 and cognitive complexity 24; 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":"packages/ui/src/pages/home/components/update.tsx"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"1967adcadaa17e64167cb5df672209bc8caa17dbc4f09420173308b9aae79afc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeDeepLinkOpenRouterDiscountRouting (cyclomatic 22, cognitive 21): normalizeDeepLinkOpenRouterDiscountRouting has cyclomatic complexity 22 and cognitive complexity 21; 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":"packages/core/src/contracts/deep-link.ts"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"40f5626c8ccc7da39be3defaed702cbf910a392464f4b89228b5359f1badd8f5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ProviderModelPicker (cyclomatic 22, cognitive 21): ProviderModelPicker has cyclomatic complexity 22 and cognitive complexity 21; 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":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":3900}}}],"partialFingerprints":{"codehealthFindingId/v1":"c921788e964a9250925e20fb4924e5ec07ee40ad3c9cfdc0976a82d092db2c4b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function LogsView (cyclomatic 22, cognitive 20): LogsView has cyclomatic complexity 22 and cognitive complexity 20; 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":"packages/ui/src/pages/home/components/network-logs.tsx"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e334a321f2f1ddf0bdbf11b3dd7b9b13911e3de1dc2b7e7cd5d99967b0c40e1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function TraySettingsPage (cyclomatic 22, cognitive 20): TraySettingsPage has cyclomatic complexity 22 and cognitive complexity 20; 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":"packages/ui/src/pages/home/components/settings.tsx"},"region":{"startLine":1908}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0fcea1e36d76b7fad752f3d763460d6e751b5748b418cbbc15e7b680947ca55"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function LogJsonPanel (cyclomatic 22, cognitive 19): LogJsonPanel has cyclomatic complexity 22 and cognitive complexity 19; 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":"packages/ui/src/pages/home/components/network-logs.tsx"},"region":{"startLine":1782}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2559535563a09d39c2033eac27bb297eefe619c14cd98be5a67ef298df36787"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function providerModelPrefixes (cyclomatic 22, cognitive 18): providerModelPrefixes has cyclomatic complexity 22 and cognitive complexity 18; 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":"packages/core/src/models/pricing-service.ts"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"b56f630cc999ebc24eb3e6cafbf11a64433f83923c1b570d58a8e96574773041"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function localCodexAccountCredential (cyclomatic 22, cognitive 18): localCodexAccountCredential has cyclomatic complexity 22 and cognitive complexity 18; 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":"packages/core/src/providers/account-service.ts"},"region":{"startLine":1590}}}],"partialFingerprints":{"codehealthFindingId/v1":"a557c6544181fd5f65960cdb5911ca70f816fa8e76a6ec832a9120749d9a0fd0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function omeletteProjectFromRow (cyclomatic 22, cognitive 18): omeletteProjectFromRow has cyclomatic complexity 22 and cognitive complexity 18; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":13502}}}],"partialFingerprints":{"codehealthFindingId/v1":"43963e35277284df4ad0ffcfa7242f5815830b918a9e91f37b756df673846a47"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseProviderCapabilityProtocol (cyclomatic 22, cognitive 17): parseProviderCapabilityProtocol has cyclomatic complexity 22 and cognitive complexity 17; 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":"packages/core/src/config/config.ts"},"region":{"startLine":1811}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e0708f072c464863513fb8a338bd82cf13789aafce700aa44763041ce8e18b2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function standaloneRecordInputFromRawTrace (cyclomatic 22, cognitive 17): standaloneRecordInputFromRawTrace has cyclomatic complexity 22 and cognitive complexity 17; 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":1645}}}],"partialFingerprints":{"codehealthFindingId/v1":"67b1a04f3f6bb5cf0d9e41241adb27e51d261dbf945ae5720b7bbee269d8869c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyClaudeCodeProfile (cyclomatic 22, cognitive 14): applyClaudeCodeProfile has cyclomatic complexity 22 and cognitive complexity 14; 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":"packages/core/src/profiles/service.ts"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"2868c84deacba64713405eb6c0dd54a0f9e170965a54d6cb70e5b055bffbf7a3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function writeBatch (cyclomatic 21, cognitive 44): writeBatch has cyclomatic complexity 21 and cognitive complexity 44; 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"031940cc3c9586e2998cefc31c3dce8ad96a0f5bed86439b749b03195a754c17"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renameProviderReferences (cyclomatic 21, cognitive 39): renameProviderReferences has cyclomatic complexity 21 and cognitive complexity 39; 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":"packages/ui/src/pages/home/shared/provider-references.ts"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aa16598833c29fe7da51cb19b857a248f4e2b1710e217de492dc44efd249ce0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function providerCredentialsFromDraft (cyclomatic 21, cognitive 27): providerCredentialsFromDraft has cyclomatic complexity 21 and cognitive complexity 27; 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":"packages/ui/src/pages/home/shared/providers.ts"},"region":{"startLine":945}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5ebbf739191b611e92ed50b91f1675641d3123a695fb1b437d24f1b69928955"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function claudeCodeWebSearchToolResultTexts (cyclomatic 21, cognitive 26): claudeCodeWebSearchToolResultTexts has cyclomatic complexity 21 and cognitive complexity 26; 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":"packages/core/src/gateway/features/hosted-web-search/discovery.ts"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f48488fb69a5bbee040a9de52007474b34e52131a4320e95eeee05d9d1c4cd5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseProviderAccountDraft (cyclomatic 21, cognitive 26): parseProviderAccountDraft has cyclomatic complexity 21 and cognitive complexity 26; 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":"packages/ui/src/pages/home/shared/providers.ts"},"region":{"startLine":1090}}}],"partialFingerprints":{"codehealthFindingId/v1":"6635fd7733b84d7b749029a8130c557366c0fdc0c1e8b6be578fef3e3b1dd3a8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function AgentTrajectoryNodePreview (cyclomatic 21, cognitive 22): AgentTrajectoryNodePreview has cyclomatic complexity 21 and cognitive complexity 22; 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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":5642}}}],"partialFingerprints":{"codehealthFindingId/v1":"2678981bb01c33cfce62599857f4ebc8afa94e5c9bbd15222381310199e289e3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function main (cyclomatic 21, cognitive 21): main has cyclomatic complexity 21 and cognitive complexity 21; 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":"scripts/update-models-cdn.mjs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb45c3efd19fd41c809e85563f2036b8cb872fa115e4cde3c70654e3f9008386"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseProviderDeepLinkPayload (cyclomatic 21, cognitive 20): parseProviderDeepLinkPayload has cyclomatic complexity 21 and cognitive complexity 20; 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":"packages/core/src/contracts/deep-link.ts"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"eabe6fcd6657578588a1c38b21057cc5c18ae4d012cfe1c68ccaaee1e5c15da1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readDeepLinkAccount (cyclomatic 21, cognitive 20): readDeepLinkAccount has cyclomatic complexity 21 and cognitive complexity 20; 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":"packages/core/src/contracts/deep-link.ts"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"1022d550b82b4df90c11166d0ace6fc385b27270e72b1cdb220227ffa590e5d1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function AppDialogStack (cyclomatic 21, cognitive 20): AppDialogStack has cyclomatic complexity 21 and cognitive complexity 20; 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":"packages/ui/src/pages/home/components/dialog-stack.tsx"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cf30ad66c619458f81b35b524a7fe01d07d131a8a4bdde917a37f568e429259"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseProxy (cyclomatic 21, cognitive 19): parseProxy has cyclomatic complexity 21 and cognitive complexity 19; 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":"packages/core/src/config/config.ts"},"region":{"startLine":2518}}}],"partialFingerprints":{"codehealthFindingId/v1":"a19b56ed8fa73d3873d2fec5777968fef8aeaf09d4640f55179a2fc75de82c21"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveRouterConditionValue (cyclomatic 21, cognitive 19): resolveRouterConditionValue has cyclomatic complexity 21 and cognitive complexity 19; 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":"packages/core/src/gateway/claude-code-router-plugin.ts"},"region":{"startLine":1440}}}],"partialFingerprints":{"codehealthFindingId/v1":"efdb73a56395edeb4f619b4cb4d7811f22313ecad3169749f75d9f7699dc04e8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ModelSelector (cyclomatic 21, cognitive 19): ModelSelector has cyclomatic complexity 21 and cognitive complexity 19; 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":"packages/ui/src/pages/home/components/model-selector.tsx"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"a57ffde04688cc28d3069b391a54fff4c895e2c0e010dd8c905c073c301bf73c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function profileBotRuntimeStatus (cyclomatic 21, cognitive 18): profileBotRuntimeStatus has cyclomatic complexity 21 and cognitive complexity 18; 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":"packages/core/src/profiles/launch-service.ts"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a210a1543e5738449c3709047ecbe063916f7bde56238e8175700b9babe00fa"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function collectOpenAiStreamToolInput (cyclomatic 21, cognitive 16): collectOpenAiStreamToolInput has cyclomatic complexity 21 and cognitive complexity 16; 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":3083}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a3815391a8d949301caad4882bcb6fe6300ae620787dc8e9844d8b694c82942"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function catalogProviderModelRank (cyclomatic 21, cognitive 16): catalogProviderModelRank has cyclomatic complexity 21 and cognitive complexity 16; 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":"packages/core/src/providers/model-catalog.ts"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"34db6aa046a1bed7d5c9dc3f3362786bf9ded999e479ac8a172d893cdb7136fd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveDesignIndexAssets (cyclomatic 21, cognitive 16): resolveDesignIndexAssets has cyclomatic complexity 21 and cognitive complexity 16; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":2995}}}],"partialFingerprints":{"codehealthFindingId/v1":"36871a7981727c0942c48f333f7feb7fcc4435456906a51356a3be921b58d48a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sniffImageType (cyclomatic 21, cognitive 11): sniffImageType has cyclomatic complexity 21 and cognitive complexity 11; 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":"packages/core/src/mcp/fusion-vision-mcp.ts"},"region":{"startLine":997}}}],"partialFingerprints":{"codehealthFindingId/v1":"cccae2e9958081939755a6a9d48b0687c15d4334ddd990c14fe258be49fa34e0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createDesignRestProject (cyclomatic 21, cognitive 11): createDesignRestProject has cyclomatic complexity 21 and cognitive complexity 11; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":7662}}}],"partialFingerprints":{"codehealthFindingId/v1":"3efd4ce42af067c55d9bc9b5f00dc166ed6106d1a22db7ac3cca6c04d9159056"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildGatewayDiscoverableModelIds (cyclomatic 20, cognitive 37): buildGatewayDiscoverableModelIds has cyclomatic complexity 20 and cognitive complexity 37; 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":"packages/core/src/gateway/features/model-discovery.ts"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"cac13697418a8ba8d98abd53a8ac530a0ff78805f22c13f034bb0e595f4dee95"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function splitTomlArray (cyclomatic 20, cognitive 27): splitTomlArray has cyclomatic complexity 20 and cognitive complexity 27; 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":"packages/core/src/agents/local-providers/kimi.ts"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e9c9fc51290dff2e0a4d5ca95d3e895e735661738017b1272937215683d7d4d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function decodePngPixels (cyclomatic 20, cognitive 23): decodePngPixels has cyclomatic complexity 20 and cognitive complexity 23; 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":"packages/electron/src/main/ipc.ts"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"560022064a7d2967525ce8b6dab35d66da748a7993451bbe945a0e011d1f86cf"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function JsonTreeNode (cyclomatic 20, cognitive 23): JsonTreeNode has cyclomatic complexity 20 and cognitive complexity 23; 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":"packages/ui/src/pages/home/components/network-logs.tsx"},"region":{"startLine":2506}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c177dfbe254f8a50e80d0c3fcb22c16400ec8d6483251d34fe908efef0a1d9f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mergeGatewaySsePayload (cyclomatic 20, cognitive 21): mergeGatewaySsePayload has cyclomatic complexity 20 and cognitive complexity 21; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":10912}}}],"partialFingerprints":{"codehealthFindingId/v1":"140ec9cf323938dae847fc185c6d9e07bc83f23fdd35fa18e904e586dbd433cb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildTokenActivity (cyclomatic 20, cognitive 21): buildTokenActivity has cyclomatic complexity 20 and cognitive complexity 21; 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":"packages/ui/src/lib/usage-activity.ts"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f72faac72790554c95880163d03e07678cf725d37e888b18c9c3a779b3cf055"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseContextArchive (cyclomatic 20, cognitive 19): parseContextArchive has cyclomatic complexity 20 and cognitive complexity 19; 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":"packages/core/src/config/config.ts"},"region":{"startLine":923}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec631c24a26a922cb91e524e9c785c34f7baee0a07503df214096c79296308d3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function compileCoreGatewayConfig (cyclomatic 20, cognitive 19): compileCoreGatewayConfig has cyclomatic complexity 20 and cognitive complexity 19; 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":"packages/core/src/gateway/core-runtime/config-compiler.ts"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"83bd69b6926d942a64f185a7cef3ccaa64c17f77fb5dbbd12b9619aaa49d02e3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function kimiCodeUsageMeter (cyclomatic 20, cognitive 19): kimiCodeUsageMeter has cyclomatic complexity 20 and cognitive complexity 19; 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":"packages/core/src/providers/account-service.ts"},"region":{"startLine":1186}}}],"partialFingerprints":{"codehealthFindingId/v1":"51eaf8330e208b1c95ea28ef84294e062e6949ef46fe78359970fc2e1a71df32"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function videoStart (cyclomatic 20, cognitive 18): videoStart has cyclomatic complexity 20 and cognitive complexity 18; 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":"packages/core/src/media/service.ts"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"980a80dceb0ae4b43955966b0325f0677919e4cfc084b9266d7f8dace1e9a69b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function claudeShipSessionPayload (cyclomatic 20, cognitive 18): claudeShipSessionPayload has cyclomatic complexity 20 and cognitive complexity 18; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":6264}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfabcf6822ec74043d554dd29a48eacd12e34cc403c67d3e22999c91eb1aeb19"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function OverviewView (cyclomatic 20, cognitive 18): OverviewView has cyclomatic complexity 20 and cognitive complexity 18; 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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"d853ce9e530b62bec7fcc808bf1c994eb744040d0e499d0ca2dac7d9eeeb47e3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function MainLayout (cyclomatic 20, cognitive 18): MainLayout has cyclomatic complexity 20 and cognitive complexity 18; 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":"packages/ui/src/pages/home/components/layout.tsx"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1a462370f6cdd23a77ac071b297df8178097bee2ab4b2ffa863c11f1d07d55d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseProxyUpstream (cyclomatic 20, cognitive 17): parseProxyUpstream has cyclomatic complexity 20 and cognitive complexity 17; 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":"packages/core/src/config/config.ts"},"region":{"startLine":2571}}}],"partialFingerprints":{"codehealthFindingId/v1":"1061b35d2e20f7e8451751df452ca8821e848e788ebf028985cae28c431ca797"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function refreshCodexAccountToken (cyclomatic 20, cognitive 17): refreshCodexAccountToken has cyclomatic complexity 20 and cognitive complexity 17; 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":"packages/core/src/providers/account-service.ts"},"region":{"startLine":1652}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a24eac308f76d72ca688c98ca92593cffd924f599f1c9ed3e3ad84c3cfc1475"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function profileDraftValidation (cyclomatic 20, cognitive 17): profileDraftValidation has cyclomatic complexity 20 and cognitive complexity 17; 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":"packages/ui/src/pages/home/components/profiles.tsx"},"region":{"startLine":1832}}}],"partialFingerprints":{"codehealthFindingId/v1":"757dbd6e214843581ed2244c7eddc431147a104508118cea469a7b55599c6653"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 20, cognitive 13): (anonymous) has cyclomatic complexity 20 and cognitive complexity 13; 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":"packages/core/src/config/config.ts"},"region":{"startLine":2358}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce0c55423b771f37d23756db4da500735d39436a03248a7e04f87290388552f8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildCatalogIndex (cyclomatic 19, cognitive 37): buildCatalogIndex has cyclomatic complexity 19 and cognitive complexity 37; 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":"packages/core/src/providers/model-catalog.ts"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"827416440cfd0795914e3ebda23203785b8af3febec24e64ab96b9acf72c45d8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mergeStoredMessagesIntoProjectChats (cyclomatic 19, cognitive 31): mergeStoredMessagesIntoProjectChats has cyclomatic complexity 19 and cognitive complexity 31; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":8047}}}],"partialFingerprints":{"codehealthFindingId/v1":"08e90836464ca671043d35c5b4629613ff3e9a4a45c9d1845822fedff03b990d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function pruneRawTraceDeadLetters (cyclomatic 19, cognitive 29): pruneRawTraceDeadLetters has cyclomatic complexity 19 and cognitive complexity 29; 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":"packages/core/src/observability/raw-trace-sync.ts"},"region":{"startLine":1306}}}],"partialFingerprints":{"codehealthFindingId/v1":"f70b6517dcfce15b0ede06df7c1611b0efa9bf8df769a72779f6df3390e6ddbc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function userTextCandidates (cyclomatic 19, cognitive 28): userTextCandidates has cyclomatic complexity 19 and cognitive complexity 28; 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":2469}}}],"partialFingerprints":{"codehealthFindingId/v1":"2180ffad534ef6a1ff64a86de4f782dc5cebffad129c6708a5c7fd69a2846171"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 19, cognitive 27): (anonymous) has cyclomatic complexity 19 and cognitive complexity 27; 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":"packages/core/test/integration/gateway/recent-issues-wire.test.mjs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d27c75175e1dec0fbb98df2d6f9926f50a24f260506add7cd52642dcd77e3c6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function overviewMetricDatum (cyclomatic 19, cognitive 25): overviewMetricDatum has cyclomatic complexity 19 and cognitive complexity 25; 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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":2385}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ca8372c0c5d7ad58c5ca947278f60d421bc4f5239a4ac532cea28f4e75e43ba"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function detectSseEventError (cyclomatic 19, cognitive 20): detectSseEventError has cyclomatic complexity 19 and cognitive complexity 20; 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":6247}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8c756ce776762050dd4dd42900cfae59c40298f880f88ed067b83810960ab6e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function prepareUpstreamCredentialAttempt (cyclomatic 19, cognitive 19): prepareUpstreamCredentialAttempt has cyclomatic complexity 19 and cognitive complexity 19; 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":"packages/core/src/gateway/upstream/executor.ts"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"c444e30143c0d428fbbad35797577c2d1f06cee1f1df5b10af3be5a384becd9f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseToolHub (cyclomatic 19, cognitive 18): parseToolHub has cyclomatic complexity 19 and cognitive complexity 18; 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":"packages/core/src/config/config.ts"},"region":{"startLine":1011}}}],"partialFingerprints":{"codehealthFindingId/v1":"c448784c4ca1248a1cf40020a9593ba2e40e236839e94af32f0be7fb8a528d13"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function capture (cyclomatic 19, cognitive 18): capture has cyclomatic complexity 19 and cognitive complexity 18; 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":"packages/core/src/observability/route-trace.ts"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"d13e6074d766bf2ea2f22ae32990ec0a55c373e58450fc2d053be106258e5c08"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function endpointSatisfiesProviderConstraints (cyclomatic 19, cognitive 18): endpointSatisfiesProviderConstraints has cyclomatic complexity 19 and cognitive complexity 18; 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":"packages/core/src/plugins/built-ins/openrouter-discount-provider-router.ts"},"region":{"startLine":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"720c9308e39bf8c6e3e4137355db36023b3836aae9612c42226db61de862b577"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createMcpServerDraftFromUnknown (cyclomatic 19, cognitive 18): createMcpServerDraftFromUnknown has cyclomatic complexity 19 and cognitive complexity 18; 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":"packages/ui/src/pages/home/shared/virtual-models.ts"},"region":{"startLine":1094}}}],"partialFingerprints":{"codehealthFindingId/v1":"61e23057a48127eb324ae548845181631f8aa86438395dd7c29216faf1a16b44"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function refreshKimiAuth (cyclomatic 19, cognitive 17): refreshKimiAuth has cyclomatic complexity 19 and cognitive complexity 17; 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":"packages/core/src/agents/local-providers/kimi.ts"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"0921e56f3a74d24b9922bcafcd277dd2c7b17fb113836b15f4c29b989d7dda27"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mergeUpstreamProviderHeaders (cyclomatic 19, cognitive 17): mergeUpstreamProviderHeaders has cyclomatic complexity 19 and cognitive complexity 17; 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":"packages/core/src/gateway/core-runtime/upstream-header-sanitizer.ts"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"5381be2e448ba48dd0e364030aa6b00fbe92c77064e688271b9c67903343af14"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function providerModelMetadataFromCatalog (cyclomatic 19, cognitive 17): providerModelMetadataFromCatalog has cyclomatic complexity 19 and cognitive complexity 17; 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":"packages/core/src/providers/model-catalog.ts"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"562bfcb48def540ae8b0788707c34b13541e93d25f47199996d33763f3ee6931"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleClaudeShipSecrets (cyclomatic 19, cognitive 17): handleClaudeShipSecrets has cyclomatic complexity 19 and cognitive complexity 17; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":7486}}}],"partialFingerprints":{"codehealthFindingId/v1":"33bda2dd380f026a155f7925f4c4d3b18098caf6634b34c7bac5298b3d661b1e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function providerAccountCardResizeHandleIcon (cyclomatic 19, cognitive 17): providerAccountCardResizeHandleIcon has cyclomatic complexity 19 and cognitive complexity 17; 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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":3287}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b34f4efff312b40167b52802d55771b4045b94da2dc0039834766502c85598b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function LogBodyChunkContent (cyclomatic 19, cognitive 17): LogBodyChunkContent has cyclomatic complexity 19 and cognitive complexity 17; 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":"packages/ui/src/pages/home/components/network-logs.tsx"},"region":{"startLine":2165}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a222e43eeafa15f8c73bd763fea1cebb622379929d06d9ea231e7fd9fb29585"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeBotGatewayConversationRef (cyclomatic 19, cognitive 17): normalizeBotGatewayConversationRef has cyclomatic complexity 19 and cognitive complexity 17; 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":"packages/ui/src/pages/home/shared/profiles.ts"},"region":{"startLine":1248}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f9b7c1ed980237fba73ef8b00e8ab0220f0d34008a74bab983af180678a515e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function kimiCodeUsageLimitLabel (cyclomatic 19, cognitive 16): kimiCodeUsageLimitLabel has cyclomatic complexity 19 and cognitive complexity 16; 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":"packages/core/src/providers/account-service.ts"},"region":{"startLine":1241}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eac004b8740ef4de52a273640d003cebf1ce578c5dabb789787853c9edcbd47"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function gatewayHttpErrorMessage (cyclomatic 19, cognitive 16): gatewayHttpErrorMessage has cyclomatic complexity 19 and cognitive complexity 16; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":10889}}}],"partialFingerprints":{"codehealthFindingId/v1":"c43b04bb52f6482855941e765fbf8c7441c30344634e77db73b4aa39684215d6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function OpenRouterProviderBlacklistSelect (cyclomatic 19, cognitive 16): OpenRouterProviderBlacklistSelect has cyclomatic complexity 19 and cognitive complexity 16; 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":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":4272}}}],"partialFingerprints":{"codehealthFindingId/v1":"cad0836a6eaf18729d32571ef6bbf55ae586b86d2134b7fa1ea4d6cfea2e4462"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function isProfileDraftSubmittable (cyclomatic 19, cognitive 15): isProfileDraftSubmittable has cyclomatic complexity 19 and cognitive complexity 15; 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":"packages/ui/src/pages/home/shared/profiles.ts"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d306866bf47d7c9484f537b69ef212e8a7effe95c0009f9b21b2ea72aabf75a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function profileConfigFromDraft (cyclomatic 19, cognitive 15): profileConfigFromDraft has cyclomatic complexity 19 and cognitive complexity 15; 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":"packages/ui/src/pages/home/shared/profiles.ts"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c6ac31df050cce9a649ca167828533c6b5a46b82b6ccb446687849f3fed3841"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeRouterRuleScript (cyclomatic 19, cognitive 14): normalizeRouterRuleScript has cyclomatic complexity 19 and cognitive complexity 14; 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":"packages/ui/src/pages/home/shared/routing.ts"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"eda3964b8cd51d2a78bb2276e61b138533c2f3a31a8b8c1a0fe4e927fda74825"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 19, cognitive 12): (anonymous) has cyclomatic complexity 19 and cognitive complexity 12; 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":"packages/core/src/config/config.ts"},"region":{"startLine":1426}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbee86e3b7be315deab20e824ffc515db42de879884be8dc2522d7669bf37bd6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readProfileAppPath (cyclomatic 19, cognitive 10): readProfileAppPath has cyclomatic complexity 19 and cognitive complexity 10; 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":"packages/core/src/config/config.ts"},"region":{"startLine":3785}}}],"partialFingerprints":{"codehealthFindingId/v1":"fca1c748859bd0e7b40662b85d130d6e9eb71268dcff270cdae51cbad2d38e5f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function isOnlineClaudeShipProxyRoutePath (cyclomatic 19, cognitive 9): isOnlineClaudeShipProxyRoutePath has cyclomatic complexity 19 and cognitive complexity 9; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":14318}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4b6cc112e1f721b97a7b2efb3d0acdc30da2e3214680ad024a94eaa928dfe47"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseGatewayPluginSurfaces (cyclomatic 18, cognitive 36): parseGatewayPluginSurfaces has cyclomatic complexity 18 and cognitive complexity 36; 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":"packages/core/src/config/config.ts"},"region":{"startLine":3168}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a66044b97531bc0fead46ad013db3e0b593aa3f7cfe2f3ba5119ec7ab5da35a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parsePluginSurfaces (cyclomatic 18, cognitive 36): parsePluginSurfaces has cyclomatic complexity 18 and cognitive complexity 36; 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":"packages/core/src/plugins/marketplace.ts"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"9490189fe20ff0b52ba5dfcd0b1aa300f353406e7c888acb8db44a3ab7f0ad95"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function configuredSubagentModelDescriptionRows (cyclomatic 18, cognitive 27): configuredSubagentModelDescriptionRows has cyclomatic complexity 18 and cognitive complexity 27; 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":"packages/core/src/gateway/claude-code-router-plugin.ts"},"region":{"startLine":999}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8ca6f6c0809a3de53c61b16ad02c1426a6b67aac6d0a90c9c6b2415d8216761"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function probeExistingProfileGateway (cyclomatic 18, cognitive 26): probeExistingProfileGateway has cyclomatic complexity 18 and cognitive complexity 26; 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":"packages/core/src/profiles/launch-service.ts"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9eed39bf17861af2149d63662787b5870662fdcef7189c9ca4fb19475d9109e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function isCompleteJsonContainer (cyclomatic 18, cognitive 25): isCompleteJsonContainer has cyclomatic complexity 18 and cognitive complexity 25; 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":"packages/core/src/observability/request-log-worker.ts"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"76e138bb0d8850959bc2aeac7d0a3957152c2df932db5bac575b960af551dccb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function appendFooterToJson (cyclomatic 18, cognitive 24): appendFooterToJson has cyclomatic complexity 18 and cognitive complexity 24; 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":"packages/core/src/gateway/context-archive/protocol.ts"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"05fab83af0f1b165c628332e29a61fa9dc2b02012ddc4fdaa2ad08e84b7594b8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function virtualModelMatchesCatalogModel (cyclomatic 18, cognitive 22): virtualModelMatchesCatalogModel has cyclomatic complexity 18 and cognitive complexity 22; 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":"packages/core/src/agents/codex/model-catalog.ts"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"580bcab406403fedcbd3317dbe2bbb710e0e8fb4ebcea7fcd59453054c67c01e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function shouldBypassProxy (cyclomatic 18, cognitive 21): shouldBypassProxy has cyclomatic complexity 18 and cognitive complexity 21; 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":"packages/core/src/proxy/system-proxy-fetch.ts"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ce5bd8f87cee9e73793d5f1275df228032f1b026a1e5184e67ef7669f553ded"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 18, cognitive 20): (anonymous) has cyclomatic complexity 18 and cognitive complexity 20; 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":"packages/core/src/config/config.ts"},"region":{"startLine":2452}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bc5d181ec7f47ff4a763e40c61eb2159018428ec2828df1c00dcf1c22acc666"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function appendEvent (cyclomatic 18, cognitive 20): appendEvent has cyclomatic complexity 18 and cognitive complexity 20; 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":"packages/core/src/gateway/remote-control-service.ts"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"952d84f260094c694b5dbabb452df51e0003efde205af8f3a381d25d80e8f769"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function persistConfig (cyclomatic 18, cognitive 20): persistConfig has cyclomatic complexity 18 and cognitive complexity 20; 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":"packages/ui/src/pages/home/App.tsx"},"region":{"startLine":1062}}}],"partialFingerprints":{"codehealthFindingId/v1":"73c0853870e88e120028931dff641d2475c037351f78fc383b34c3a209b98aec"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function refreshProviderModels (cyclomatic 18, cognitive 20): refreshProviderModels has cyclomatic complexity 18 and cognitive complexity 20; 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":"packages/ui/src/pages/home/App.tsx"},"region":{"startLine":1535}}}],"partialFingerprints":{"codehealthFindingId/v1":"266fddbe7b066d2cd70eb2125558f024e60b530ba9accfe7a884cd1cfa382947"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ask (cyclomatic 18, cognitive 19): ask has cyclomatic complexity 18 and cognitive complexity 19; 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":"packages/core/src/gateway/context-archive.ts"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"48ca6315370cf0e86ace7474a3251315dcca701e0c36e5b8732095f3c64b18ab"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function providerProbeCodexOauthRequest (cyclomatic 18, cognitive 18): providerProbeCodexOauthRequest has cyclomatic complexity 18 and cognitive complexity 18; 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":"packages/core/src/providers/probe.ts"},"region":{"startLine":1223}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbdca0e9bcd54d4827772468c8612fd1c10cb6d8b3b04b4152dc4449b653b430"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseProviderPayloadFields (cyclomatic 18, cognitive 17): parseProviderPayloadFields has cyclomatic complexity 18 and cognitive complexity 17; 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":"packages/core/src/contracts/deep-link.ts"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"0be5312b0493c9add2c421c2c38c177e31237859bded23a13185224b0e063720"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createClaudeCodeModelCapabilities (cyclomatic 18, cognitive 17): createClaudeCodeModelCapabilities has cyclomatic complexity 18 and cognitive complexity 17; 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":"packages/core/src/gateway/features/model-discovery.ts"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4b2a0f0e81f5611b2b68244a58b074c0cb98cb539dac0e6420109b5cf93a6a2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ProviderMobileCard (cyclomatic 18, cognitive 17): ProviderMobileCard has cyclomatic complexity 18 and cognitive complexity 17; 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":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"b24839f34db96452657194d4e4935a7af30f112eb965b8b62c53ef07e61ed574"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function collectContentText (cyclomatic 18, cognitive 16): collectContentText has cyclomatic complexity 18 and cognitive complexity 16; 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":2853}}}],"partialFingerprints":{"codehealthFindingId/v1":"552ddb7e936cb6bdeafaa5d69009b19e02cf666810ec830d03b8e99780309953"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function PersistenceFeedback (cyclomatic 18, cognitive 16): PersistenceFeedback has cyclomatic complexity 18 and cognitive complexity 16; 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":"packages/ui/src/pages/home/components/feedback.tsx"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7c5359a97293e72a9cd5759a21dbef52aecc7c03603ef6d472dae625a1a2926"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 18, cognitive 15): (anonymous) has cyclomatic complexity 18 and cognitive complexity 15; 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":"packages/core/src/agents/local-providers/kimi.ts"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"98f9ede65373327f1e59b0d55a6e8e0bf029f7e7fe266a2a499a79e1719f6d65"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 18, cognitive 15): (anonymous) has cyclomatic complexity 18 and cognitive complexity 15; 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":"packages/ui/src/pages/home/components/routing.tsx"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"f986c27923b940fd453a6e94f62efc1353480f3407e20b05c0ab4e477e34f1a4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createProviderConfigFromDeepLink (cyclomatic 18, cognitive 15): createProviderConfigFromDeepLink has cyclomatic complexity 18 and cognitive complexity 15; 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":"packages/ui/src/pages/home/shared/providers.ts"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"73f6e068168de5d94a575221deeea9cf6cecb2d45845e4ff8f9af89c3b4b2af1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function inferLiteLlmModalities (cyclomatic 18, cognitive 15): inferLiteLlmModalities has cyclomatic complexity 18 and cognitive complexity 15; 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":"scripts/generate-models-json.mjs"},"region":{"startLine":915}}}],"partialFingerprints":{"codehealthFindingId/v1":"24bfaa0efe72671246885fb1ab2ab699cd9064bd6028b87d2bc4a551b96ff6b0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseRouterRuleScript (cyclomatic 18, cognitive 14): parseRouterRuleScript has cyclomatic complexity 18 and cognitive complexity 14; 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":"packages/core/src/config/config.ts"},"region":{"startLine":2038}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cddd841622c448bd2adeb5c2d39433a1a552cf7db664fa08c5415f646cef818"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleMessage (cyclomatic 18, cognitive 12): handleMessage has cyclomatic complexity 18 and cognitive complexity 12; 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":"packages/core/src/observability/request-log-worker.ts"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3bc79b31f934aa1cda8637201db97538cb0a590eb2c8ce40b426880399c87bf"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function recordProviderCredentialOutcome (cyclomatic 18, cognitive 11): recordProviderCredentialOutcome has cyclomatic complexity 18 and cognitive complexity 11; 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":"packages/core/src/providers/credential-pool.ts"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"05345a5fd5c29018cd53a9add95f0107846ea07966beaf32d781b33f1851554f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseArgs (cyclomatic 17, cognitive 21): parseArgs has cyclomatic complexity 17 and cognitive complexity 21; 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":"packages/cli/src/cli.ts"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd8ed12c67e2d8d7395e85df64560ee9dbc5609d030d83b4fed69d2d9d80c8e1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function collectOpenAiResponseOutputItem (cyclomatic 17, cognitive 18): collectOpenAiResponseOutputItem has cyclomatic complexity 17 and cognitive complexity 18; 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":"packages/ui/src/pages/home/shared/logs.ts"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"fda67bbbd5bdf05a61b002e1a3fc37eb034308c341a494c59625923858f8687d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function TrayPreviewWidget (cyclomatic 17, cognitive 17): TrayPreviewWidget has cyclomatic complexity 17 and cognitive complexity 17; 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":"packages/ui/src/pages/home/components/settings.tsx"},"region":{"startLine":2790}}}],"partialFingerprints":{"codehealthFindingId/v1":"181543d115ded52d847eaa7f3f6421ad1c483111de9727f69d5a0aa9fb3bb2df"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function TrayRuntimeWidget (cyclomatic 17, cognitive 17): TrayRuntimeWidget has cyclomatic complexity 17 and cognitive complexity 17; 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":"packages/ui/src/pages/tray/TrayApp.tsx"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a27f6098218a718d5a91ee6cc2748f75681a99a12ce20dc0332b5791d3fd699"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseArpScanTarget (cyclomatic 17, cognitive 16): parseArpScanTarget has cyclomatic complexity 17 and cognitive complexity 16; 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":"packages/core/src/agents/bot-gateway/handoff-scan-service.ts"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"31d0598c3678d6128165cec029df6be946e78ee716ca6e09e4bae728355b1aa8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseOverviewWidget (cyclomatic 17, cognitive 16): parseOverviewWidget has cyclomatic complexity 17 and cognitive complexity 16; 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":"packages/core/src/config/config.ts"},"region":{"startLine":1096}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb46fedc4101f994172258008f4b573fe47a24108df7b11e361e016dc2d2a83b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function transformAnthropicWebSearchProtocolSseText (cyclomatic 17, cognitive 16): transformAnthropicWebSearchProtocolSseText has cyclomatic complexity 17 and cognitive complexity 16; 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":"packages/core/src/gateway/features/hosted-web-search/response-transform.ts"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c939e6f36e5fbff1e0be49cfe31a82a9f3de42aec475ec7b795e3a8f3835d4a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function appendAggregateErrorAttemptSummary (cyclomatic 17, cognitive 16): appendAggregateErrorAttemptSummary has cyclomatic complexity 17 and cognitive complexity 16; 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":"packages/core/src/gateway/http/error-detail.ts"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"3776e5c738b520681824d138bbd8d47c9dcc3d24e0900e755d4757c633d91a57"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readRawTraceRequestLogBundle (cyclomatic 17, cognitive 16): readRawTraceRequestLogBundle has cyclomatic complexity 17 and cognitive complexity 16; 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":"packages/core/src/observability/raw-trace-sync.ts"},"region":{"startLine":1618}}}],"partialFingerprints":{"codehealthFindingId/v1":"57f6c4233737a12c0faac856ee3887102f82181fdd1e7e5bb6d268878571495c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeProjectViewOpenFiles (cyclomatic 17, cognitive 16): normalizeProjectViewOpenFiles has cyclomatic complexity 17 and cognitive complexity 16; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":8013}}}],"partialFingerprints":{"codehealthFindingId/v1":"d41049750b5658da07edfe51790e198796f330331ba9c1210a5c5bd9539250fd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createProviderInstallLinkFromDraft (cyclomatic 17, cognitive 16): createProviderInstallLinkFromDraft has cyclomatic complexity 17 and cognitive complexity 16; 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":"packages/ui/src/pages/home/shared/providers.ts"},"region":{"startLine":1543}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ae9720120533d35d19c12e87ba957cec914f7861338def4e1c6a88b2e441e45"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeVirtualModelDraftPatch (cyclomatic 17, cognitive 16): normalizeVirtualModelDraftPatch has cyclomatic complexity 17 and cognitive complexity 16; 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":"packages/ui/src/pages/home/shared/virtual-models.ts"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"73ff0e3d8a35df1e03b4e33df9c1c94874165150e911ba3707c48021eccd35bb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 17, cognitive 15): (anonymous) has cyclomatic complexity 17 and cognitive complexity 15; 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":"packages/core/src/config/config.ts"},"region":{"startLine":2659}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ae1121aafdd685a44f5843f052361c755897b22e9d9b19ab6c7d4efcec93a24"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function prepareContextArchiveRequest (cyclomatic 17, cognitive 15): prepareContextArchiveRequest has cyclomatic complexity 17 and cognitive complexity 15; 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":"packages/core/src/gateway/context-archive.ts"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"3750dc8000b64e2a3857a0c074b87dfb85431cd17e8afda240a0d9d83f6b40d8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyCodexBridgeRequestTransform (cyclomatic 17, cognitive 14): applyCodexBridgeRequestTransform has cyclomatic complexity 17 and cognitive complexity 14; 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":"packages/core/src/gateway/core-runtime/router-plugin.ts"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"62c663cb47f0ef0643ed1e706f71f425819b64ac8f50ca17523dfbcd57fd88cd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function inferProxyClient (cyclomatic 17, cognitive 14): inferProxyClient has cyclomatic complexity 17 and cognitive complexity 14; 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":"packages/core/src/proxy/service.ts"},"region":{"startLine":1695}}}],"partialFingerprints":{"codehealthFindingId/v1":"79e135c08451159d79dcf5a28f22c757a55bd167518f3a9ca334029e7624d640"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function bluetoothScanTargetFromObject (cyclomatic 17, cognitive 13): bluetoothScanTargetFromObject has cyclomatic complexity 17 and cognitive complexity 13; 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":"packages/core/src/agents/bot-gateway/handoff-scan-service.ts"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3f9111b3b7878373371e1a4fd2bf06a1c8a3f11ed08475eeb30a6f5b79599bd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parsePluginDependency (cyclomatic 17, cognitive 13): parsePluginDependency has cyclomatic complexity 17 and cognitive complexity 13; 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":"packages/core/src/plugins/marketplace.ts"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"38f2dbb824896f815ba2a06991d350a06e99c08d8dab34f9c1cc8d13723b8ff6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeClaudeDesignRoutingRuleDraft (cyclomatic 17, cognitive 13): normalizeClaudeDesignRoutingRuleDraft has cyclomatic complexity 17 and cognitive complexity 13; 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":"packages/ui/src/pages/home/shared/routing.ts"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"82cc05ae89921456ba5f6f8fe80b04cc66507e574b47d848a195c4cec6545441"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fusionVisionConfigFromProfile (cyclomatic 17, cognitive 10): fusionVisionConfigFromProfile has cyclomatic complexity 17 and cognitive complexity 10; 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":"packages/ui/src/pages/home/shared/virtual-models.ts"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"b865210929f9240591919f94da901b7fb075901a1e95a112c7e1294e190b2866"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readVisionUsage (cyclomatic 17, cognitive 9): readVisionUsage has cyclomatic complexity 17 and cognitive complexity 9; 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":"packages/core/src/mcp/fusion-vision-mcp.ts"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"293cf576a58f7a4e63610e0d49db5776126ccad7f97e2088362d01bb8b87827a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function availableGatewayModelIds (cyclomatic 16, cognitive 33): availableGatewayModelIds has cyclomatic complexity 16 and cognitive complexity 33; 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":"packages/core/src/contracts/app.ts"},"region":{"startLine":1143}}}],"partialFingerprints":{"codehealthFindingId/v1":"392895fbccc7e0034ed80c94824eae2abefe9ccea111183a8cde6291a25c00e6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseWebArgs (cyclomatic 16, cognitive 29): parseWebArgs has cyclomatic complexity 16 and cognitive complexity 29; 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":"packages/cli/src/cli.ts"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb053eaffc8727bb49708083952a6ec3fba78c7dcddfa37e8a166687b04acf9e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function searchUrlForEngine (cyclomatic 16, cognitive 26): searchUrlForEngine has cyclomatic complexity 16 and cognitive complexity 26; 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":"packages/electron/src/main/electron-web-search-mcp.ts"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d550ddfd2da67c7716637f9499438983dadd98abc4cad212ff4f6539efe7726"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function providerAccountBentoLayout (cyclomatic 16, cognitive 25): providerAccountBentoLayout has cyclomatic complexity 16 and cognitive complexity 25; 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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":4314}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b083010a4b592c940727dfbb761ccef0fd347505e04a2f8ef783ebaf0e751a7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function localAgentProviderAccountCredential (cyclomatic 16, cognitive 24): localAgentProviderAccountCredential has cyclomatic complexity 16 and cognitive complexity 24; 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":"packages/core/src/providers/account-service.ts"},"region":{"startLine":1470}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a83832c49d44cec10b2685aa3e0d321b364cffd210d9f6215f38a7ed1a3caf9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function listProjectDirectoryEntries (cyclomatic 16, cognitive 24): listProjectDirectoryEntries has cyclomatic complexity 16 and cognitive complexity 24; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":8516}}}],"partialFingerprints":{"codehealthFindingId/v1":"817d2818a9752fa0a62fca4e4c67ad5e0f5ad5e94048d020ff7bbe316ca7087b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function loadInlineFullBody (cyclomatic 16, cognitive 21): loadInlineFullBody has cyclomatic complexity 16 and cognitive complexity 21; 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":"packages/ui/src/pages/home/components/network-logs.tsx"},"region":{"startLine":1929}}}],"partialFingerprints":{"codehealthFindingId/v1":"5de973515b87431c5e3efce982e10b396799b2317d01c12731f16a28a9a7c49a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function virtualModelProfileMatchesSelector (cyclomatic 16, cognitive 20): virtualModelProfileMatchesSelector has cyclomatic complexity 16 and cognitive complexity 20; 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":"packages/core/src/gateway/features/model-discovery.ts"},"region":{"startLine":910}}}],"partialFingerprints":{"codehealthFindingId/v1":"84f09a3007e8feeba9ec9142908f68b7f7c3db6aa39581485fbb42664247dc5c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function execute (cyclomatic 16, cognitive 20): execute has cyclomatic complexity 16 and cognitive complexity 20; 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":"packages/core/src/routing/route-script-runtime.ts"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"d81f39a40da3f8f17f9e6c99366c60e0cd4dc273f288401070002b9c099fff8d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function aggregateGeminiStreamPayloads (cyclomatic 16, cognitive 20): aggregateGeminiStreamPayloads has cyclomatic complexity 16 and cognitive complexity 20; 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":"packages/ui/src/pages/home/shared/logs.ts"},"region":{"startLine":1169}}}],"partialFingerprints":{"codehealthFindingId/v1":"444ee31e673762e5c9c15336abea79b54fffc190b9451ee5cf7dc046cb4b2c1e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function envExampleFromTableCell (cyclomatic 16, cognitive 20): envExampleFromTableCell has cyclomatic complexity 16 and cognitive complexity 20; 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":"scripts/generate-claude-code-config-options.mjs"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"3250ee19869ee4e45f2fdf368716791795a9c11c9b3ee84d1e55e20b52272cc8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resumeVideo (cyclomatic 16, cognitive 19): resumeVideo has cyclomatic complexity 16 and cognitive complexity 19; 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":"packages/core/src/media/executors.ts"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9ae48d16c250fea99ea3d36bf7fe71976827058fc9d6041476694db9d4cf399"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function openOpenCodeAppProfile (cyclomatic 16, cognitive 19): openOpenCodeAppProfile has cyclomatic complexity 16 and cognitive complexity 19; 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":"packages/core/src/profiles/launch-service.ts"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5cd644eab4b9ca762f1d7dd01392e65e7c1b55e007a4a12a3b1514af8c21406"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function aggregateOpenAiStreamPayloads (cyclomatic 16, cognitive 19): aggregateOpenAiStreamPayloads has cyclomatic complexity 16 and cognitive complexity 19; 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":"packages/ui/src/pages/home/shared/logs.ts"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"c56f45f71bbafb7a58c824105da32541c7723b65ab85a8088f5bbd898f690fdd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function SystemStatusBar (cyclomatic 16, cognitive 18): SystemStatusBar has cyclomatic complexity 16 and cognitive complexity 18; 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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":2465}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e07b6a411550bb9a598519d9b4e838f5186771acab0fd5c24b7167da778b524"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function routeOpenRouterRequestByEndpointDiscount (cyclomatic 16, cognitive 16): routeOpenRouterRequestByEndpointDiscount has cyclomatic complexity 16 and cognitive complexity 16; 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":"packages/core/src/plugins/built-ins/openrouter-discount-provider-router.ts"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ff73d46bb4a7cefdcbc3684df2926a30618a184f687cec24cbf8d21bf23b060"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function generatedFilePathFromFenceInfo (cyclomatic 16, cognitive 16): generatedFilePathFromFenceInfo has cyclomatic complexity 16 and cognitive complexity 16; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":11441}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a041130acbc8d848f89b95d1f1e9272ff912ec2f453df15fe5fcc2b2519b5cb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function compactJsonValue (cyclomatic 16, cognitive 16): compactJsonValue has cyclomatic complexity 16 and cognitive complexity 16; 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":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":3377}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fafa083741e59922358d9a007a7e55cd329ec78823a46d16d6ad61c41d95ff7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 16, cognitive 16): (anonymous) has cyclomatic complexity 16 and cognitive complexity 16; 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":"packages/ui/src/pages/tray/components/usage-detail.tsx"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"5641f2e638e62b016abe560764fc6c3a381978ac75af97c29bccedfd303f2fb2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeClaudeDesignRoutingRule (cyclomatic 16, cognitive 15): normalizeClaudeDesignRoutingRule has cyclomatic complexity 16 and cognitive complexity 15; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":11782}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a21c225d182a3ee355a6b0e5b9b745aedd1efa8a950796b6cff6c4aa6b94e7e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeChromeCookie (cyclomatic 16, cognitive 15): normalizeChromeCookie has cyclomatic complexity 16 and cognitive complexity 15; 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":"packages/electron/src/main/chrome-login-import.ts"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"316b2dc9441e8731ee1bf0d6f5f04932163b13fd6b7b4b4c39f61bbacc2b1a03"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ProviderAccountsOverview (cyclomatic 16, cognitive 15): ProviderAccountsOverview has cyclomatic complexity 16 and cognitive complexity 15; 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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":2608}}}],"partialFingerprints":{"codehealthFindingId/v1":"12ce714ff9e223f7b27046042d7727ac7276f151805b3dd58a65b1360e8b5e3b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function NetworkingView (cyclomatic 16, cognitive 15): NetworkingView has cyclomatic complexity 16 and cognitive complexity 15; 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":"packages/ui/src/pages/home/components/network-logs.tsx"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c6971e55e293ae1674e57616d4ee2d5299e6935e97b8c4e857060d9dfa61825"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeOverviewWidget (cyclomatic 16, cognitive 15): normalizeOverviewWidget has cyclomatic complexity 16 and cognitive complexity 15; 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":"packages/ui/src/pages/home/shared/common.ts"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"9657f0701a36d27d21c4d5bb608ac09b7bcd91cf089b5a23bb36c3fa983d3e26"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeConfig (cyclomatic 16, cognitive 15): normalizeConfig has cyclomatic complexity 16 and cognitive complexity 15; 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":"packages/ui/src/pages/home/shared/config.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8e71c0ab6cb7c50c3cf5badfa0c6870941555a3b93d7235007e3c1372b47e18"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sanitizeReportedChange (cyclomatic 16, cognitive 14): sanitizeReportedChange has cyclomatic complexity 16 and cognitive complexity 14; 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":"packages/core/src/observability/route-trace.ts"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"21df4555633f8f4333ce4e9a2c57c687ef6363e8cd7daffb0555f75079fa66bd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function openProfileFromCcr (cyclomatic 16, cognitive 14): openProfileFromCcr has cyclomatic complexity 16 and cognitive complexity 14; 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":"packages/core/src/profiles/launch-service.ts"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d617f105e1c882f2a2a821033b4dfb04d7e7d0941ea76a495cfc9aaf23ef750"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ingest (cyclomatic 16, cognitive 14): ingest has cyclomatic complexity 16 and cognitive complexity 14; 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":"packages/core/src/usage/billing-sync.ts"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"a37d8c7ae31f6dd3c2dedd9c0fc20ac89323f6059b599ed747eeb688469c31ad"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyMetaTokenFloor (cyclomatic 16, cognitive 13): applyMetaTokenFloor has cyclomatic complexity 16 and cognitive complexity 13; 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":"packages/core/src/gateway/core-runtime/meta-token-floor.ts"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"45a6d8f22bad4d5ce48e085bc3b43ddc6bbb519ca6688bbcc946f818b7d8ac1c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function collectToolResults (cyclomatic 16, cognitive 13): collectToolResults has cyclomatic complexity 16 and cognitive complexity 13; 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":3159}}}],"partialFingerprints":{"codehealthFindingId/v1":"a73db02530d0959c487e4bfd88d4b63598dd57ec134f9a13544479407acde7a3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function collectToolResultPayloads (cyclomatic 16, cognitive 13): collectToolResultPayloads has cyclomatic complexity 16 and cognitive complexity 13; 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":3344}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a7a329cc1a7a12891711565eab13093f702f1f5c2b91a928e4a418e1eedb966"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function providerIconMagicExtension (cyclomatic 16, cognitive 13): providerIconMagicExtension has cyclomatic complexity 16 and cognitive complexity 13; 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":"packages/core/src/providers/icons.ts"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd538b5261ebbd56a093bd934f36093962fac60037a955a02c1208c651c22692"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function protocolHints (cyclomatic 16, cognitive 13): protocolHints has cyclomatic complexity 16 and cognitive complexity 13; 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":"packages/core/src/providers/probe.ts"},"region":{"startLine":1823}}}],"partialFingerprints":{"codehealthFindingId/v1":"c184498c2baab8e592845dae5c1b62b31c55ab01098f9b0dc391167ef4a1dce4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function scriptRuleDiagnostics (cyclomatic 16, cognitive 13): scriptRuleDiagnostics has cyclomatic complexity 16 and cognitive complexity 13; 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":"packages/core/src/routing/config-compiler.ts"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc30afd4f6dec97d5992b2b928aa64a109dcc2f59678291a96af88ac869004d8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function UpdateEntryButton (cyclomatic 16, cognitive 13): UpdateEntryButton has cyclomatic complexity 16 and cognitive complexity 13; 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":"packages/ui/src/pages/home/components/layout.tsx"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cc8d741293226c11bedc37606e5158101c7c26a47ed97103889d6d5c8498e93"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function proxyArtifactMessages (cyclomatic 16, cognitive 12): proxyArtifactMessages has cyclomatic complexity 16 and cognitive complexity 12; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":10019}}}],"partialFingerprints":{"codehealthFindingId/v1":"3332c2d321eff40104a88c2674c47a7c9af9597fb80e514a63d2e4b8842f60be"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fusionWebSearchConfigFromProfile (cyclomatic 16, cognitive 12): fusionWebSearchConfigFromProfile has cyclomatic complexity 16 and cognitive complexity 12; 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":"packages/ui/src/pages/home/shared/virtual-models.ts"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdb0f1d09362df486c1aafbf0f873bbec4b85cdb4bc834b0229d404fe052d3ee"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeProviderProtocol (cyclomatic 16, cognitive 11): normalizeProviderProtocol has cyclomatic complexity 16 and cognitive complexity 11; 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":"packages/core/src/agents/codex/model-catalog.ts"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"d81332011dbf78def9984199d3e6d3236979b3872113373aefb99f3af7a564a7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeBotGatewayAuthType (cyclomatic 16, cognitive 11): normalizeBotGatewayAuthType has cyclomatic complexity 16 and cognitive complexity 11; 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":"packages/core/src/config/config.ts"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4c7edbc472febd24200278796dc6146071d8e708a2b5fafcb238d040019445a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeProviderProtocol (cyclomatic 16, cognitive 11): normalizeProviderProtocol has cyclomatic complexity 16 and cognitive complexity 11; 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":"packages/core/src/providers/runtime-topology.ts"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"947ef53d6f35ada2c1a5e9faa875930a08a1786c53835989b7512080183dd8d8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeBotGatewayAuthType (cyclomatic 16, cognitive 11): normalizeBotGatewayAuthType has cyclomatic complexity 16 and cognitive complexity 11; 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":"packages/ui/src/pages/home/shared/profiles.ts"},"region":{"startLine":1104}}}],"partialFingerprints":{"codehealthFindingId/v1":"328c341f23480b0d87be9e29b1cc35c0a93bb2175a02d26f7b4e54eefed8b243"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 16, cognitive 10): (anonymous) has cyclomatic complexity 16 and cognitive complexity 10; 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":"packages/core/src/config/config.ts"},"region":{"startLine":1713}}}],"partialFingerprints":{"codehealthFindingId/v1":"c49b16eeeb7de5e92af01eb85a2c7dccee380769196fc08301502e562a917e30"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 16, cognitive 10): (anonymous) has cyclomatic complexity 16 and cognitive complexity 10; 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":"packages/ui/src/pages/home/components/virtual-models.tsx"},"region":{"startLine":1208}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8fe2b88dbbef6726c9438dd87164d5ae04f42361a944f028162bc38358a1214"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function placeholderForEnvName (cyclomatic 16, cognitive 10): placeholderForEnvName has cyclomatic complexity 16 and cognitive complexity 10; 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":"scripts/generate-claude-code-config-options.mjs"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eab5ac4958bcddcb0cda36c2d7e1f3a9b1f8221d601ba3cd48a1040c4dbbe6b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function reviveCommand (cyclomatic 15, cognitive 34): reviveCommand has cyclomatic complexity 15 and cognitive complexity 34; 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":"packages/core/src/observability/request-log-worker.ts"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"8189a67089308c83f7cebc74b96782e1c581d977a12d474a3c83ea96973ece4c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readJsonPath (cyclomatic 15, cognitive 32): readJsonPath has cyclomatic complexity 15 and cognitive complexity 32; 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":"packages/core/src/providers/account-service.ts"},"region":{"startLine":2373}}}],"partialFingerprints":{"codehealthFindingId/v1":"b229c0c83feedfe05fb3fa084e2600d9e193a2ff708553e83cd2eb9c66a8a518"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 32): (anonymous) has cyclomatic complexity 15 and cognitive complexity 32; 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":"packages/core/test/integration/gateway/recent-issues-wire.test.mjs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"94bed964987671195d7f7876591438db2e744b73ee061f8544713f5c644dca51"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readJsonPathBracket (cyclomatic 15, cognitive 28): readJsonPathBracket has cyclomatic complexity 15 and cognitive complexity 28; 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":"packages/core/src/providers/account-service.ts"},"region":{"startLine":2464}}}],"partialFingerprints":{"codehealthFindingId/v1":"1291b69e91d04f14b1aa8c72f9841b565b8892c2b97a1896060c7efa917b16ca"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function setPathValue (cyclomatic 15, cognitive 27): setPathValue has cyclomatic complexity 15 and cognitive complexity 27; 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":"packages/core/src/routing/rewrite.ts"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0f0dda53a6522e7b88b6adfe2d30bf6e1fb4f2f56874e1aa51eef4643b206af"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parsePluginSurfaces (cyclomatic 15, cognitive 27): parsePluginSurfaces has cyclomatic complexity 15 and cognitive complexity 27; 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":"packages/core/src/web/management-server.ts"},"region":{"startLine":999}}}],"partialFingerprints":{"codehealthFindingId/v1":"d53423950d7b243f3fba6f9083eb3202f8f010f20c72fdf9682b2a523dd2c451"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parsePluginSurfaces (cyclomatic 15, cognitive 27): parsePluginSurfaces has cyclomatic complexity 15 and cognitive complexity 27; 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":"packages/electron/src/main/ipc.ts"},"region":{"startLine":1210}}}],"partialFingerprints":{"codehealthFindingId/v1":"baa82333972a7d3cc5177a40f01b4a4bca1b18996c2edd9c858c0d802b8989a2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mergeOpenAiSsePayload (cyclomatic 15, cognitive 24): mergeOpenAiSsePayload has cyclomatic complexity 15 and cognitive complexity 24; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":10956}}}],"partialFingerprints":{"codehealthFindingId/v1":"075fdf701c97728b726f7133d117de32c6b007e43c3df808e5f38622ec384e03"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyProfileConfig (cyclomatic 15, cognitive 22): applyProfileConfig has cyclomatic complexity 15 and cognitive complexity 22; 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":"packages/core/src/profiles/service.ts"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"829a09e234a05ed82614ec910798d674ae6021e432d4cc0a31077ae862d9dc67"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function persistRawTraceBundle (cyclomatic 15, cognitive 21): persistRawTraceBundle has cyclomatic complexity 15 and cognitive complexity 21; 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":"packages/core/src/observability/raw-trace-sync.ts"},"region":{"startLine":828}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea468bcbe66d3bd6757aad33038ec8ef36426655d71359f63d56f29753ec7dea"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function refreshAutoFetchProviderModels (cyclomatic 15, cognitive 21): refreshAutoFetchProviderModels has cyclomatic complexity 15 and cognitive complexity 21; 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":"packages/core/src/providers/model-auto-refresh.ts"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"af257fea92ab4e764a45fc5ef55147d61bb139b4896ad26541bf741f33344176"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createForwardHeaders (cyclomatic 15, cognitive 19): createForwardHeaders has cyclomatic complexity 15 and cognitive complexity 19; 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":"packages/core/src/proxy/service.ts"},"region":{"startLine":1223}}}],"partialFingerprints":{"codehealthFindingId/v1":"a715fa017dd196c059226665e58543d66e0cbe6ec73253ce2fb34377923704f1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mergeDesignIndexAssets (cyclomatic 15, cognitive 19): mergeDesignIndexAssets has cyclomatic complexity 15 and cognitive complexity 19; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":3073}}}],"partialFingerprints":{"codehealthFindingId/v1":"57efe053ffdcbe73e2c3146924ed4cf9634004154a56a7bf7044a6a2e4c46bf2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function probeExistingCcrGateway (cyclomatic 15, cognitive 17): probeExistingCcrGateway has cyclomatic complexity 15 and cognitive complexity 17; 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":"packages/core/src/gateway/existing-gateway-probe.ts"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"304198b5b482d01d7b09e5f7f39d3b9cb8f3435fd8126c931fe5fdb74b89cca2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function collectAnthropicStreamToolInput (cyclomatic 15, cognitive 17): collectAnthropicStreamToolInput has cyclomatic complexity 15 and cognitive complexity 17; 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":3048}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0c7dfbd87b17992307f03db0fe216359ee6d72e8b6916e6d032eb48ffd2d5a3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseClaudeConfigInputValue (cyclomatic 15, cognitive 17): parseClaudeConfigInputValue has cyclomatic complexity 15 and cognitive complexity 17; 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":"packages/ui/src/pages/home/components/profiles.tsx"},"region":{"startLine":1694}}}],"partialFingerprints":{"codehealthFindingId/v1":"47525840d3a3dbff250165866d70bac207b7415c803c7d8b6cf2676fdfdc6353"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function codexModelCatalogFromPayload (cyclomatic 15, cognitive 16): codexModelCatalogFromPayload has cyclomatic complexity 15 and cognitive complexity 16; 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":"packages/core/src/agents/local-providers/codex.ts"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"22abe2f269f4f1096aff55c718a477e0640f0cfbb6ff2ab765c115bd15218f9f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function openCodexAppProfile (cyclomatic 15, cognitive 16): openCodexAppProfile has cyclomatic complexity 15 and cognitive complexity 16; 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":"packages/core/src/profiles/launch-service.ts"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef45f1ce7e4d0bc12ba011aec1752b3938fc44d459a9bfc14e85b55e6725c395"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ProviderAccountQuotaGauge (cyclomatic 15, cognitive 16): ProviderAccountQuotaGauge has cyclomatic complexity 15 and cognitive complexity 16; 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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":4021}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f505ddbbf7aabb29d7606722f166ebb05d82e6ebd542c61f662a2bd2d761bee"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function firstDescription (cyclomatic 15, cognitive 16): firstDescription has cyclomatic complexity 15 and cognitive complexity 16; 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":"scripts/generate-claude-code-config-options.mjs"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd1dbc645776bb58285fdc3be6b6f899b0f6440963e95c833b4b133764221f61"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveForRawTrace (cyclomatic 15, cognitive 15): resolveForRawTrace has cyclomatic complexity 15 and cognitive complexity 15; 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":"packages/core/src/observability/request-log-admission-store.ts"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"f754ba14193f3ba2746fe6bec4fee5af3ee34fe9383253e002f99a9a5e7be41c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseRewriteLiteral (cyclomatic 15, cognitive 15): parseRewriteLiteral has cyclomatic complexity 15 and cognitive complexity 15; 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":"packages/core/src/routing/rewrite.ts"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ab5220b79be8c4d8de8f2aba98b5b8e2cb12bdb30fef8f93cdfdc2bf012f884"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function openPluginRequest (cyclomatic 15, cognitive 15): openPluginRequest has cyclomatic complexity 15 and cognitive complexity 15; 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":"packages/electron/src/main/deep-link.ts"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"f10c624bf8605cf82c0e6ff29c64e80f212eebaa2bc18676a56962394986c84c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function importLocalAgentProvider (cyclomatic 15, cognitive 14): importLocalAgentProvider has cyclomatic complexity 15 and cognitive complexity 14; 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":"packages/core/src/agents/local-providers/service.ts"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"af92597ddfaa04c36255523d131b1f7f2cec98d7855b6262eb86983f5a650cda"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function pump (cyclomatic 15, cognitive 14): pump has cyclomatic complexity 15 and cognitive complexity 14; 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":"packages/core/src/observability/request-log-runtime.ts"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"3edfd4b943917d5033c067e58e4e7f2b9dddd5f7d69955397a1df6e18d5fbf10"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function requestRouteHopFromRow (cyclomatic 15, cognitive 14): requestRouteHopFromRow has cyclomatic complexity 15 and cognitive complexity 14; 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":4965}}}],"partialFingerprints":{"codehealthFindingId/v1":"2071526e8c4d012a0d65a61395a9eb55bd647959200bb133383dd412f01ed14e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function kimiProfileReasoningMetadata (cyclomatic 15, cognitive 14): kimiProfileReasoningMetadata has cyclomatic complexity 15 and cognitive complexity 14; 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":"packages/core/src/profiles/service.ts"},"region":{"startLine":2148}}}],"partialFingerprints":{"codehealthFindingId/v1":"350a37eac8eb765519bfbc85d55c0daf05ded77abbbd4940dedf948b2687c5a1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function gatewaySseEventTextDelta (cyclomatic 15, cognitive 14): gatewaySseEventTextDelta has cyclomatic complexity 15 and cognitive complexity 14; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":10833}}}],"partialFingerprints":{"codehealthFindingId/v1":"61036e1dbe461b8017de3e071648cbedf92fea1b61215afc48c22557c59ec5c8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function openSession (cyclomatic 15, cognitive 14): openSession has cyclomatic complexity 15 and cognitive complexity 14; 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":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":1108}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3fbe4cf7323a41b030659f0462cc7f0fe74cedfe764a38d594f9f52965134b6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function overviewWidgetTypeLabel (cyclomatic 15, cognitive 14): overviewWidgetTypeLabel has cyclomatic complexity 15 and cognitive complexity 14; 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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":2210}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dcf0e1273b219f9a1e54be2275832a61f13d397b0114a88c4b79d9b3610109c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function saveWithQrLogin (cyclomatic 15, cognitive 14): saveWithQrLogin has cyclomatic complexity 15 and cognitive complexity 14; 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":"packages/ui/src/pages/home/components/settings.tsx"},"region":{"startLine":1604}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8626cc7fd478186153f1234ba49c02e7f693948055b01fc8eabb4668f15bc2f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function collectAnthropicContentBlockDelta (cyclomatic 15, cognitive 14): collectAnthropicContentBlockDelta has cyclomatic complexity 15 and cognitive complexity 14; 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":"packages/ui/src/pages/home/shared/logs.ts"},"region":{"startLine":1074}}}],"partialFingerprints":{"codehealthFindingId/v1":"35d70623800575b3251d1cf3337c912e5fab34899955c06e99aac50067cea0f1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function inferValueKind (cyclomatic 15, cognitive 14): inferValueKind has cyclomatic complexity 15 and cognitive complexity 14; 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":"scripts/generate-claude-code-config-options.mjs"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"651a7fcdf3d88c4fe8c8b4dd7b8a20e4d3b2b141465a299349a24839da218ea5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function detectMediaMimeType (cyclomatic 15, cognitive 13): detectMediaMimeType has cyclomatic complexity 15 and cognitive complexity 13; 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":"packages/core/src/agents/codex/media-preview-bridge.ts"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"15f6ebd1711024d0277bed243422df06a193703fd5142b2b81f7466ad5528935"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 13): (anonymous) has cyclomatic complexity 15 and cognitive complexity 13; 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":"packages/core/src/config/config.ts"},"region":{"startLine":3422}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bd1dabfbb700d039c3048fbd3377ece0d58236556d3e44da1f6d9f86bd226e4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function recordProviderConnectivityRequestLog (cyclomatic 15, cognitive 13): recordProviderConnectivityRequestLog has cyclomatic complexity 15 and cognitive complexity 13; 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":"packages/core/src/providers/probe.ts"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"17748d12daafd54960c445bbf3cbe9aa27ccdf12af74676251a2a20f46008a4a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parsePluginDependencyItem (cyclomatic 15, cognitive 13): parsePluginDependencyItem has cyclomatic complexity 15 and cognitive complexity 13; 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":"packages/electron/src/main/ipc.ts"},"region":{"startLine":1459}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1a274718b1a2d76f069634a21ed78c1186fc7637b201e1546324f227ed503c2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveCcrGatewayRoute (cyclomatic 15, cognitive 12): resolveCcrGatewayRoute has cyclomatic complexity 15 and cognitive complexity 12; 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":"packages/core/src/gateway/core-runtime/router-plugin.ts"},"region":{"startLine":1042}}}],"partialFingerprints":{"codehealthFindingId/v1":"933db787c3affccff45567a79fbfc72357af74c9d5df70eecc7ac592cd6400aa"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function prepareRawTraceForQueue (cyclomatic 15, cognitive 12): prepareRawTraceForQueue has cyclomatic complexity 15 and cognitive complexity 12; 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":"packages/core/src/observability/request-log-runtime.ts"},"region":{"startLine":1009}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8c1e4816a5deb322d688903b6db1b81c1d9b030f3cbc830c857b807f38e3a2a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateDesignIndexAssets (cyclomatic 15, cognitive 12): updateDesignIndexAssets has cyclomatic complexity 15 and cognitive complexity 12; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":3040}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ba27c5f29855bffc42fc32c7376887583a4d25ad2f2f5de792216acbc4b1767"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function requestAutomationHandoff (cyclomatic 15, cognitive 12): requestAutomationHandoff has cyclomatic complexity 15 and cognitive complexity 12; 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":"packages/electron/src/main/built-in-browser.ts"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"f51040138c858c41aceffa559ba7770043b4484beda361fec4435613ad7e9c99"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 11): (anonymous) has cyclomatic complexity 15 and cognitive complexity 11; 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":"packages/core/src/agents/local-providers/zcode.ts"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d1de2a59b719909f281836942e039df67e1279f0c29313061daf01e44eef270"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function transform (cyclomatic 15, cognitive 11): transform has cyclomatic complexity 15 and cognitive complexity 11; 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":"packages/core/src/gateway/core-runtime/router-plugin.ts"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"2613052c1ceb095efe98053e38b387649fc56634cbeee0d1ec70a6b23bced6dd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function claudeShipCloudflareDeploymentPayload (cyclomatic 15, cognitive 11): claudeShipCloudflareDeploymentPayload has cyclomatic complexity 15 and cognitive complexity 11; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":5828}}}],"partialFingerprints":{"codehealthFindingId/v1":"07706b8b3ea54dddf10396b99d300adbbb68a4b33f6639ce175b489a2f6e7bc4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeBotGatewayAuthType (cyclomatic 15, cognitive 10): normalizeBotGatewayAuthType has cyclomatic complexity 15 and cognitive complexity 10; 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":"packages/core/src/agents/bot-gateway/env.ts"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"058f2b16e820daa312b7e96be6fd3ce6503b82853ade579327400025d953bd21"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function virtualModelProfileFromDraft (cyclomatic 15, cognitive 10): virtualModelProfileFromDraft has cyclomatic complexity 15 and cognitive complexity 10; 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":"packages/ui/src/pages/home/shared/virtual-models.ts"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"34e1ab068b7cd6884745e6514fa1c092ff80b2ddc73013d6e0eaf8baa67f0aeb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseArtifactUrl (cyclomatic 15, cognitive 9): parseArtifactUrl has cyclomatic complexity 15 and cognitive complexity 9; 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":"packages/core/src/agents/codex/media-preview-bridge.ts"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"07bbe13ce47fcd9c7c0106f789956acf8e816ed9401a28336e189de406f87701"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function kimiCodeUsageResetAt (cyclomatic 14, cognitive 24): kimiCodeUsageResetAt has cyclomatic complexity 14 and cognitive complexity 24; 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":"packages/core/src/providers/account-service.ts"},"region":{"startLine":1291}}}],"partialFingerprints":{"codehealthFindingId/v1":"96d30fd634e38fb639dbc0dce50095e69b797cf2471915cb7a86acb802b8e0a9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function importLoginState (cyclomatic 14, cognitive 22): importLoginState has cyclomatic complexity 14 and cognitive complexity 22; 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":"packages/electron/src/main/chrome-login-import.ts"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"b867235ee6efc45dae90eed68394959c032d9ea510b1be4121afe247cc0029d3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function goToNextStep (cyclomatic 14, cognitive 22): goToNextStep has cyclomatic complexity 14 and cognitive complexity 22; 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":"packages/ui/src/pages/home/components/onboarding.tsx"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad55470904ca643af2ba9e734c749ba4a95c6d4d3a98332956b58b02cdb72629"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mergeProviderModelAutoRefreshResult (cyclomatic 14, cognitive 21): mergeProviderModelAutoRefreshResult has cyclomatic complexity 14 and cognitive complexity 21; 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":"packages/core/src/providers/model-auto-refresh.ts"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"a02b34be4d0224c0bf61bac80419ed853bd984f06bf2779eca1a0dbf884feac0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function openAiResponsesSseVisibleText (cyclomatic 14, cognitive 18): openAiResponsesSseVisibleText has cyclomatic complexity 14 and cognitive complexity 18; 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":"packages/core/src/gateway/features/hosted-web-search/response-transform.ts"},"region":{"startLine":837}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8998cb089abc878f51926f3fa872d65cca02f7731722c54a7776627930ca794"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function formatSseErrorPayload (cyclomatic 14, cognitive 17): formatSseErrorPayload has cyclomatic complexity 14 and cognitive complexity 17; 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":6278}}}],"partialFingerprints":{"codehealthFindingId/v1":"c35f3788ad162bde9347c259b58bf3be11ca34ef33ad36913dfd4ac8f2479d5f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleClaudeShipCliOutputLine (cyclomatic 14, cognitive 17): handleClaudeShipCliOutputLine has cyclomatic complexity 14 and cognitive complexity 17; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":6893}}}],"partialFingerprints":{"codehealthFindingId/v1":"78fb81564031f9f160a51bbc70a69e368b83640a75c22806bc1aa08a7f4bf3fa"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function isVisibleStoredMessage (cyclomatic 14, cognitive 17): isVisibleStoredMessage has cyclomatic complexity 14 and cognitive complexity 17; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":13166}}}],"partialFingerprints":{"codehealthFindingId/v1":"762d31e046fe9b68be19d5054b0665052168487abc4cb98253a9c4d383070526"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function OverviewWidgetRenderer (cyclomatic 14, cognitive 17): OverviewWidgetRenderer has cyclomatic complexity 14 and cognitive complexity 17; 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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":1237}}}],"partialFingerprints":{"codehealthFindingId/v1":"c670984c9cb6cff3b156bb9dbc45a5f1aefa6a2dd49fb844b31b68d4f0ad44ca"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 17): (anonymous) has cyclomatic complexity 14 and cognitive complexity 17; 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":"packages/ui/src/pages/home/shared/virtual-models.ts"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"79bf5ce30d09896b5cf6d39f1e343cd7c8a8058a0964d349b023c3c7bf82ef77"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mergeCapabilities (cyclomatic 14, cognitive 17): mergeCapabilities has cyclomatic complexity 14 and cognitive complexity 17; 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":"scripts/generate-models-json.mjs"},"region":{"startLine":1006}}}],"partialFingerprints":{"codehealthFindingId/v1":"192d0b4e0f89d93eff3d3a6120cb8c9f9770c22aada3fb356547f2b6e1d22204"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function synthesizeComponentChangelogWebSearchAnswer (cyclomatic 14, cognitive 16): synthesizeComponentChangelogWebSearchAnswer has cyclomatic complexity 14 and cognitive complexity 16; 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":"packages/core/src/gateway/features/hosted-web-search/evidence.ts"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"251299ce59b3383ce55cb21c35901039697135489d8fbe077982f61a897cae95"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readMacUpstreamProxy (cyclomatic 14, cognitive 16): readMacUpstreamProxy has cyclomatic complexity 14 and cognitive complexity 16; 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":"packages/core/src/proxy/system-proxy.ts"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad6c547798c7f3f3e488e7f7bb203f8ec07e533604ac0d99ae0b8d03b9d8932b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function claudeShipSyncedFileBody (cyclomatic 14, cognitive 16): claudeShipSyncedFileBody has cyclomatic complexity 14 and cognitive complexity 16; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":7316}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fc49909a44dc32a4654a366da986ea8227c41104a0a9775d89403f08cd0c73d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function assertAppendableTurn (cyclomatic 14, cognitive 15): assertAppendableTurn has cyclomatic complexity 14 and cognitive complexity 15; 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":"packages/core/src/gateway/context-archive/protocol.ts"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c5c13b9ee5ec713cd2149054768c2ee890c337273e0deb204fc5bb9ee04cd46"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function loadConfiguredPlugin (cyclomatic 14, cognitive 15): loadConfiguredPlugin has cyclomatic complexity 14 and cognitive complexity 15; 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":"packages/core/src/plugins/service.ts"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"257b0dd7adc76cba51adab6ddad3fa42c50422f1dfd838cbdc03e3227fcce490"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeOpenRouterEndpointProviders (cyclomatic 14, cognitive 15): normalizeOpenRouterEndpointProviders has cyclomatic complexity 14 and cognitive complexity 15; 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":"packages/core/src/providers/openrouter-provider-catalog.ts"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d9511826f5e5ead26f70627d69046b37be25f6c81e0d612defa2861b32c3ef4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeOpenRouterActivity (cyclomatic 14, cognitive 15): normalizeOpenRouterActivity has cyclomatic complexity 14 and cognitive complexity 15; 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":"packages/core/src/providers/openrouter-provider-catalog.ts"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2bf5e226b0cdc815fe18d09145c25af300b208c8c03d8e181f39e6a129b4e9b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 15): (anonymous) has cyclomatic complexity 14 and cognitive complexity 15; 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":"packages/core/test/integration/mcp/grok-media-service.test.mjs"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"2571a76072281dda0f9435f13a291b8bd11598df59060c6e4313c225fb02c0b8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyFileMutation (cyclomatic 14, cognitive 15): applyFileMutation has cyclomatic complexity 14 and cognitive complexity 15; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":8799}}}],"partialFingerprints":{"codehealthFindingId/v1":"0066d5621fd405161c1ee8a79b5c6e17d0efdb73222dfe684aaabdc4ad9f1efc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function refreshGrokAuth (cyclomatic 14, cognitive 14): refreshGrokAuth has cyclomatic complexity 14 and cognitive complexity 14; 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":"packages/core/src/agents/local-providers/grok.ts"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d3d1d6afe8a762cf6f0b9fe8565f8791f5e40bb689ec6e30a9755edb682016d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getBodyChunk (cyclomatic 14, cognitive 14): getBodyChunk has cyclomatic complexity 14 and cognitive complexity 14; 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":1164}}}],"partialFingerprints":{"codehealthFindingId/v1":"c05ae2a22b5d538566b869e11034f854833113470946c981f5847949b5afac01"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function cacheRemoteDesignIndexAssets (cyclomatic 14, cognitive 14): cacheRemoteDesignIndexAssets has cyclomatic complexity 14 and cognitive complexity 14; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":3272}}}],"partialFingerprints":{"codehealthFindingId/v1":"72ef305a994e5e31a8fbde6f7660d69992d2b1d86890509420ab955d596735f4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function refFor (cyclomatic 14, cognitive 14): refFor has cyclomatic complexity 14 and cognitive complexity 14; 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":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":2730}}}],"partialFingerprints":{"codehealthFindingId/v1":"489053b2fd9742aa2b84768063b9698bec6a0f8769dcd58545c3f5cb8ddbd90d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseWebContentFetchResult (cyclomatic 14, cognitive 14): parseWebContentFetchResult has cyclomatic complexity 14 and cognitive complexity 14; 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":"packages/electron/src/main/provider-account-webcontent.ts"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"956125944a3468f683472ca3f57cf4068130fe905c4bf962400a4e4ce3b0847e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function checkProviderDraft (cyclomatic 14, cognitive 14): checkProviderDraft has cyclomatic complexity 14 and cognitive complexity 14; 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":"packages/ui/src/pages/home/App.tsx"},"region":{"startLine":1632}}}],"partialFingerprints":{"codehealthFindingId/v1":"63d506453be5ab49b653d1077d2e1fbdef6b540088f176a7dd692e94e977d89f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function onmessage (cyclomatic 14, cognitive 14): onmessage has cyclomatic complexity 14 and cognitive complexity 14; 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":"packages/ui/src/pages/home/components/network-logs.tsx"},"region":{"startLine":1599}}}],"partialFingerprints":{"codehealthFindingId/v1":"5af2927f4657c54a546945fa02acae0b1c69732916019e04040b91397756fa1b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateVirtualModelDraft (cyclomatic 14, cognitive 14): validateVirtualModelDraft has cyclomatic complexity 14 and cognitive complexity 14; 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":"packages/ui/src/pages/home/shared/virtual-models.ts"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"0232aa36ca5cf89b6df15674847cc6392e06b649baaaa315dc4d40ec87f4014f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function codexProfileEnv (cyclomatic 14, cognitive 13): codexProfileEnv has cyclomatic complexity 14 and cognitive complexity 13; 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":"packages/core/src/agents/codex/app-launch.ts"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7c848da219d1276751b9a172cd704076a1717820aa393f4873e9b25ce1a4bc6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseMediaTools (cyclomatic 14, cognitive 13): parseMediaTools has cyclomatic complexity 14 and cognitive complexity 13; 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":"packages/core/src/config/config.ts"},"region":{"startLine":1058}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e543e42aeba506c8473363c5c8853790632d9fd1b94cd4c98326f22023690c1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseBotGatewayHandoff (cyclomatic 14, cognitive 13): parseBotGatewayHandoff has cyclomatic complexity 14 and cognitive complexity 13; 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":"packages/core/src/config/config.ts"},"region":{"startLine":2389}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4bbdc532357eb7b3e33b3c5a67d916f76968fff483aaa0adf9bb043c9e33be7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function prepareCursorOpenAICompatChatBody (cyclomatic 14, cognitive 13): prepareCursorOpenAICompatChatBody has cyclomatic complexity 14 and cognitive complexity 13; 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":"packages/core/src/gateway/features/cursor-compat.ts"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"aec608bfe45d017adc736aa059032219439a96e508c37e223f07162d2be6ac50"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function combineStreamExperienceMetrics (cyclomatic 14, cognitive 13): combineStreamExperienceMetrics has cyclomatic complexity 14 and cognitive complexity 13; 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":"packages/core/src/observability/stream-experience.ts"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ca5e2333d7cbc22b6b74e866db31ecd026da9b7f01046e88bf0d92e1a8fd698"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseWindowsProxyServer (cyclomatic 14, cognitive 13): parseWindowsProxyServer has cyclomatic complexity 14 and cognitive complexity 13; 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":"packages/core/src/proxy/system-proxy.ts"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1ce3ba979a10effd48c3c562612170f580bd1cc4bebbf762bec7a3e74c7514b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function basicScriptError (cyclomatic 14, cognitive 13): basicScriptError has cyclomatic complexity 14 and cognitive complexity 13; 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":"packages/core/src/routing/route-script-runtime.ts"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"e10fc969dc9786b0afa93794bc5b5039df3bd5a81d709232ed7ce9c14c265d0f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function record (cyclomatic 14, cognitive 13): record has cyclomatic complexity 14 and cognitive complexity 13; 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":"packages/core/src/usage/store.ts"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7b03c7ff6983db2e7ba367b69817a0f355fd6f570af82a6a9924c9765ff8244"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function pngWithExportProcessing (cyclomatic 14, cognitive 13): pngWithExportProcessing has cyclomatic complexity 14 and cognitive complexity 13; 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":"packages/electron/src/main/ipc.ts"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a8fe03025112feb556dfe48a2134194e67f99feb8fc3a091fa5ca5d1b3cb42d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function OverviewActivityGrid (cyclomatic 14, cognitive 13): OverviewActivityGrid has cyclomatic complexity 14 and cognitive complexity 13; 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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":1565}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9fe89cda5b2752a59e8276e64c91ac4642c8bed07cec1a477d1ec25e141dd45"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function MainViewSwitch (cyclomatic 14, cognitive 13): MainViewSwitch has cyclomatic complexity 14 and cognitive complexity 13; 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":"packages/ui/src/pages/home/components/layout.tsx"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"04179746085fafa93e91621cd3b6e9ae9fe4b896c202095cf52e0d85897c849b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ProviderPresetCombobox (cyclomatic 14, cognitive 13): ProviderPresetCombobox has cyclomatic complexity 14 and cognitive complexity 13; 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":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":944}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbfc4ab24f965f922afe304f5fccc5a2f82bba3630074ac8874760fedfee8ffd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function AddRoutingRuleDialog (cyclomatic 14, cognitive 13): AddRoutingRuleDialog has cyclomatic complexity 14 and cognitive complexity 13; 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":"packages/ui/src/pages/home/components/routing.tsx"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"1676501cfa7c64028fc1e3eee3d6290ca88f15aff8145d6a64745ce442f3cac8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function FusionToolSelectControl (cyclomatic 14, cognitive 13): FusionToolSelectControl has cyclomatic complexity 14 and cognitive complexity 13; 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":"packages/ui/src/pages/home/components/virtual-models.tsx"},"region":{"startLine":1021}}}],"partialFingerprints":{"codehealthFindingId/v1":"c749db915d6180f5061682f706ea372a7b009c51a0a7d41984f49724ca5ef502"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createRoutingRuleDraftFromRule (cyclomatic 14, cognitive 13): createRoutingRuleDraftFromRule has cyclomatic complexity 14 and cognitive complexity 13; 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":"packages/ui/src/pages/home/shared/providers.ts"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f31501a0c27fa7b6857564a00591895e02e4051edab02e2eafbdc69659d93ce"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createMcpServerDraftFromConfig (cyclomatic 14, cognitive 13): createMcpServerDraftFromConfig has cyclomatic complexity 14 and cognitive complexity 13; 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":"packages/ui/src/pages/home/shared/virtual-models.ts"},"region":{"startLine":1000}}}],"partialFingerprints":{"codehealthFindingId/v1":"25b7a18e519508a3fad4497533f53b83f94b75ffacadc9af0e1318514e42e5c9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function UsageOverviewPanel (cyclomatic 14, cognitive 13): UsageOverviewPanel has cyclomatic complexity 14 and cognitive complexity 13; 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":"packages/ui/src/pages/tray/components/overview-panel.tsx"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"9adc23f5301ffd72c23fb29a7e1ea70ff282d63007a258e7017010dbc86df59a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeProviderAccountConfig (cyclomatic 14, cognitive 12): normalizeProviderAccountConfig has cyclomatic complexity 14 and cognitive complexity 12; 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":"packages/core/src/contracts/deep-link.ts"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4f05291243ecc281f12953c63aba547b6a100d122da9707296fb0f7021c8a35"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleContextArchiveMcpRequest (cyclomatic 14, cognitive 12): handleContextArchiveMcpRequest has cyclomatic complexity 14 and cognitive complexity 12; 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":"packages/core/src/gateway/context-archive.ts"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc8d0d89f79499b7d07799bdc2e91acd405c645808123a1a672c023e1dce8148"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function inferClientFromUserAgent (cyclomatic 14, cognitive 12): inferClientFromUserAgent has cyclomatic complexity 14 and cognitive complexity 12; 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":"packages/core/src/gateway/http/io.ts"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"af4331e3f2ca4505faaf9797c4a40677787396f90b618b4a282d1abbadcc49d5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function refreshCodexProbeAccessTokenUncached (cyclomatic 14, cognitive 12): refreshCodexProbeAccessTokenUncached has cyclomatic complexity 14 and cognitive complexity 12; 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":"packages/core/src/providers/probe.ts"},"region":{"startLine":1336}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a86582c91c078b8e056c5d0759e3424a389463a3ea2f0257e3353c446f7a2d5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parsePluginDependencyItem (cyclomatic 14, cognitive 12): parsePluginDependencyItem has cyclomatic complexity 14 and cognitive complexity 12; 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":"packages/core/src/web/management-server.ts"},"region":{"startLine":1309}}}],"partialFingerprints":{"codehealthFindingId/v1":"8751e86ff3e0c65f0268c438c146ca7801de75f03bc564423ed61fda4dbfc3ea"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function discoverRequestedDesignIndexAssets (cyclomatic 14, cognitive 12): discoverRequestedDesignIndexAssets has cyclomatic complexity 14 and cognitive complexity 12; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":3359}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e2ee5257cd468f541f2bcbb3a8345e872f546c2a3d35838c33422110d9843ef"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeProjectChat (cyclomatic 14, cognitive 12): normalizeProjectChat has cyclomatic complexity 14 and cognitive complexity 12; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":8234}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a525ebbc4db44429bcb63616a630f426d7b04ff914d8a572e56ebdc3b892255"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateCodexMediaArtifactUrl (cyclomatic 14, cognitive 11): validateCodexMediaArtifactUrl has cyclomatic complexity 14 and cognitive complexity 11; 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":"packages/core/src/agents/codex/media-preview-bridge.ts"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"9860c992a1bdaec1313f532d08375a7db9fbbe36abac244a8a2cf213efc5a318"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseGatewayPluginCoreGateway (cyclomatic 14, cognitive 11): parseGatewayPluginCoreGateway has cyclomatic complexity 14 and cognitive complexity 11; 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":"packages/core/src/config/config.ts"},"region":{"startLine":3457}}}],"partialFingerprints":{"codehealthFindingId/v1":"128008390bc9ef6282f1a13af7b583e722181778fa1bc65a2d17f3c64ae8a04d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeReasoningEffort (cyclomatic 14, cognitive 11): normalizeReasoningEffort has cyclomatic complexity 14 and cognitive complexity 11; 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":"packages/core/src/gateway/model-catalog.ts"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3f3749ca464f41e24d23d91488609fac4b6e920b11ffed53e484485e7fc6174"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeScriptFallback (cyclomatic 14, cognitive 11): normalizeScriptFallback has cyclomatic complexity 14 and cognitive complexity 11; 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":"packages/core/src/routing/route-script-result.ts"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ae89c0fdb627ca3155cb8e168f7c98b089f5665497138766e7bdb647f9b7a8e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function gatewayModelPresetsFromModelsPayload (cyclomatic 14, cognitive 11): gatewayModelPresetsFromModelsPayload has cyclomatic complexity 14 and cognitive complexity 11; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":12003}}}],"partialFingerprints":{"codehealthFindingId/v1":"511a8947bde26367c27dae56e037048353d0962bd2a7982d4a028abbb0d50247"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readSearchInput (cyclomatic 14, cognitive 11): readSearchInput has cyclomatic complexity 14 and cognitive complexity 11; 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":"packages/electron/src/main/electron-web-search-mcp.ts"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"e44827c932f77c4f9c9d634794186121f7bb6034af2e4094b5b62145da9b649f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function isZcodeModelProvider (cyclomatic 14, cognitive 10): isZcodeModelProvider has cyclomatic complexity 14 and cognitive complexity 10; 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":"packages/core/src/agents/local-providers/zcode.ts"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e4f8e63ad233fcb83df76c48b3124b32f2a35bc195660e29b9f7e46e4776114"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseRouterRuleRewrite (cyclomatic 14, cognitive 10): parseRouterRuleRewrite has cyclomatic complexity 14 and cognitive complexity 10; 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":"packages/core/src/config/config.ts"},"region":{"startLine":2150}}}],"partialFingerprints":{"codehealthFindingId/v1":"d938c2529a330cccd4b0b1e37d82213c832bcbe5db4165509417668596aa0ab1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function toCoreGatewayProvider (cyclomatic 14, cognitive 10): toCoreGatewayProvider has cyclomatic complexity 14 and cognitive complexity 10; 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":"packages/core/src/providers/runtime-topology.ts"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"0759fbd1d6342bcafc70b41dd21a64f8b1a8aed08a12229986301232b3886e8c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function routeHopDisplayName (cyclomatic 14, cognitive 10): routeHopDisplayName has cyclomatic complexity 14 and cognitive complexity 10; 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":"packages/ui/src/pages/home/components/network-logs.tsx"},"region":{"startLine":1240}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7ec3742102d70d779f1678d949e6d5143cea305f40960f8c8556c80b4b4e825"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeRouterRuleRewrite (cyclomatic 14, cognitive 10): normalizeRouterRuleRewrite has cyclomatic complexity 14 and cognitive complexity 10; 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":"packages/ui/src/pages/home/shared/routing.ts"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f608aa37c1fb9b4b3b60f779a5ef324672ba3f36c9f540ff1284f1e4a772ebe"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeCommentRecord (cyclomatic 14, cognitive 9): normalizeCommentRecord has cyclomatic complexity 14 and cognitive complexity 9; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":9551}}}],"partialFingerprints":{"codehealthFindingId/v1":"8475f41368c18594fe790af223ffc058669efae6e59bdc75451a687b0cc8b0d6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function forEachProtoField (cyclomatic 13, cognitive 27): forEachProtoField has cyclomatic complexity 13 and cognitive complexity 27; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":13867}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0c2d282a8f5640f29ff3aa72e12592fb19677b64d4ea44160ab25566a0da761"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function extractGatewayToolCalls (cyclomatic 13, cognitive 25): extractGatewayToolCalls has cyclomatic complexity 13 and cognitive complexity 25; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":12589}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca80952d32faebc7fb02af5178f845e65d7296e4b785cdbb524fd5fd68cd78a6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function kimiModelsForProvider (cyclomatic 13, cognitive 21): kimiModelsForProvider has cyclomatic complexity 13 and cognitive complexity 21; 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":"packages/core/src/agents/local-providers/kimi.ts"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9219b503326ad01851e0bf80982744241f0551a5364a7ad255731caf1323919"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function reasoningConfigFromMetadata (cyclomatic 13, cognitive 21): reasoningConfigFromMetadata has cyclomatic complexity 13 and cognitive complexity 21; 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":"packages/core/src/gateway/model-catalog.ts"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"6450aea27830f7da6b72880a6eff2f7563d0b6da8340f73cc7a1ab04f13ae5f9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getCertificateStatus (cyclomatic 13, cognitive 18): getCertificateStatus has cyclomatic complexity 13 and cognitive complexity 18; 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":"packages/core/src/proxy/service.ts"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"50588a730cb1d8c2c8337616627584b775800db185c0ab9a1d2ff3f99e446496"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readMappedDateString (cyclomatic 13, cognitive 17): readMappedDateString has cyclomatic complexity 13 and cognitive complexity 17; 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":"packages/core/src/providers/account-service.ts"},"region":{"startLine":2346}}}],"partialFingerprints":{"codehealthFindingId/v1":"22983fafd74b98eca73472ff388c405d846a3d6f0c6f183c828ec7ea3bd8295b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readOpenCodeCredential (cyclomatic 13, cognitive 16): readOpenCodeCredential has cyclomatic complexity 13 and cognitive complexity 16; 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":"packages/core/src/agents/local-providers/opencode.ts"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc885b8f76569af81734945661e9b55cdf69a07680f8d0096fa168c69f03a931"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeToolList (cyclomatic 13, cognitive 16): normalizeToolList has cyclomatic complexity 13 and cognitive complexity 16; 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":"packages/core/src/mcp/toolhub-mcp.ts"},"region":{"startLine":1904}}}],"partialFingerprints":{"codehealthFindingId/v1":"de98b58a9d1d3c55f376b42c3dd010d49e14f515aa968bf08446131a650235c6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readRawTraceDeliveryState (cyclomatic 13, cognitive 16): readRawTraceDeliveryState has cyclomatic complexity 13 and cognitive complexity 16; 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":"packages/core/src/observability/raw-trace-sync.ts"},"region":{"startLine":1091}}}],"partialFingerprints":{"codehealthFindingId/v1":"d95807dcf51861bd4af4e75a3cf21f36f75c508f06454d814ff019cfd2a42886"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolve (cyclomatic 13, cognitive 16): resolve has cyclomatic complexity 13 and cognitive complexity 16; 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":"packages/core/src/routing/model-registry.ts"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"aff3fc9ffc1519cd66ca96af3684828565d475eca7479b041b4bae3a66a53fb1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function roleOf (cyclomatic 13, cognitive 16): roleOf has cyclomatic complexity 13 and cognitive complexity 16; 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":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":2817}}}],"partialFingerprints":{"codehealthFindingId/v1":"3685841e3d1a1e7e6a4f0ea7b6e6e6ab32aa28f6822d69d4f8c3bc4561728e68"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function recommendedModelRank (cyclomatic 13, cognitive 16): recommendedModelRank has cyclomatic complexity 13 and cognitive complexity 16; 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":"packages/ui/src/pages/home/shared/providers.ts"},"region":{"startLine":2360}}}],"partialFingerprints":{"codehealthFindingId/v1":"2df30304eeca0b56cb599feabb824bb17c4338b1084613a5db6639f9bc6d42ca"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ingestOpenRouter (cyclomatic 13, cognitive 16): ingestOpenRouter has cyclomatic complexity 13 and cognitive complexity 16; 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":"scripts/generate-models-json.mjs"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed5ebf9da164f9b416c9005459cc02ef5056335a90928e4d662ff6b50832c497"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function testProviderAccountConnector (cyclomatic 13, cognitive 15): testProviderAccountConnector has cyclomatic complexity 13 and cognitive complexity 15; 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":"packages/core/src/providers/account-service.ts"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"375f044b4e547aba9b3b848609eeacca1257a2e900c7168d185bc24a2c907b1f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 15): (anonymous) has cyclomatic complexity 13 and cognitive complexity 15; 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":"packages/ui/src/pages/home/App.tsx"},"region":{"startLine":2091}}}],"partialFingerprints":{"codehealthFindingId/v1":"da371ebc55476cbeda1384d4e974f019e2c77d96e9ed32b0431bc95f5a0218ce"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveTools (cyclomatic 13, cognitive 14): resolveTools has cyclomatic complexity 13 and cognitive complexity 14; 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":"packages/core/src/mcp/toolhub-mcp.ts"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"077385f4dc3f14e1c20bf547a18bae2c2db11cf3adc209ad3957bddeeb50eeb8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mergeConnectorResults (cyclomatic 13, cognitive 14): mergeConnectorResults has cyclomatic complexity 13 and cognitive complexity 14; 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":"packages/core/src/providers/account-service.ts"},"region":{"startLine":899}}}],"partialFingerprints":{"codehealthFindingId/v1":"75069a2f8deb33869efec8d9690c673e013ec6472ca0fd447faf0cac15223b1f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 14): (anonymous) has cyclomatic complexity 13 and cognitive complexity 14; 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":"packages/core/src/providers/manifest-service.ts"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fad557c350c3590febd94e0bb55e83480c8970d7a18e828486ab903d35d102c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 14): (anonymous) has cyclomatic complexity 13 and cognitive complexity 14; 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":"packages/core/test/integration/mcp/local-ai-gateway-media-live.test.mjs"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"099bd65450aa6029ee04b3f447f73b9898fa3fd4175ee5148fa1344c550b228c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function writeDesignSyncJsonFiles (cyclomatic 13, cognitive 14): writeDesignSyncJsonFiles has cyclomatic complexity 13 and cognitive complexity 14; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":1210}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb0e4bb58970ba893635d77d24664a0f3f77d9c3fcd0aac420f6440ac2cc75a4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function collectAnthropicContentBlockStart (cyclomatic 13, cognitive 14): collectAnthropicContentBlockStart has cyclomatic complexity 13 and cognitive complexity 14; 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":"packages/ui/src/pages/home/shared/logs.ts"},"region":{"startLine":1042}}}],"partialFingerprints":{"codehealthFindingId/v1":"0654ef65e133aca385c7be6af9e2fb93d7b210f313df2eb314acb575ec70bcd7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleBinding (cyclomatic 13, cognitive 13): handleBinding has cyclomatic complexity 13 and cognitive complexity 13; 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":"packages/core/src/agents/codex/media-preview-bridge.ts"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ae8c30851f7b02c294370ff0d3455b56a2dafb74dadde80ea0463e0b0057085"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function attachAsset (cyclomatic 13, cognitive 13): attachAsset has cyclomatic complexity 13 and cognitive complexity 13; 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":"packages/core/src/agents/codex/media-preview-bridge.ts"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2a8354313a70d20eb110c49e508e40f7636987bb4c2ef445d996ffdf40070df"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseTomlValue (cyclomatic 13, cognitive 13): parseTomlValue has cyclomatic complexity 13 and cognitive complexity 13; 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":"packages/core/src/agents/local-providers/kimi.ts"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"d68265f661f0015af1aace28f64d1cb00fd63297271d565aa3b6e3a687d2b90c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function stopProfileFromCcr (cyclomatic 13, cognitive 13): stopProfileFromCcr has cyclomatic complexity 13 and cognitive complexity 13; 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":"packages/core/src/profiles/launch-service.ts"},"region":{"startLine":833}}}],"partialFingerprints":{"codehealthFindingId/v1":"c486383d023cba5cd737262cb2bba9bffc2c203aebb00e95461a106ba9b891f1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleRpcRequest (cyclomatic 13, cognitive 13): handleRpcRequest has cyclomatic complexity 13 and cognitive complexity 13; 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":"packages/core/src/web/management-server.ts"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"f01cbf9adb6a0bf0a82d618c3d0b00abd4cead924ba388a529c07dbed0860c84"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function claudeDesignProviderProtocols (cyclomatic 13, cognitive 13): claudeDesignProviderProtocols has cyclomatic complexity 13 and cognitive complexity 13; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":12371}}}],"partialFingerprints":{"codehealthFindingId/v1":"f742b0c6aaf008f3c05ea879c64699d65ee26e6da78b04e22aaacb6f41adac7c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function waitForConditionScript (cyclomatic 13, cognitive 13): waitForConditionScript has cyclomatic complexity 13 and cognitive complexity 13; 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":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":3105}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b76f29610f84555b2ba3ea5346f5725c14a89528971cd522f1e33170bcafefe"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleRequest (cyclomatic 13, cognitive 13): handleRequest has cyclomatic complexity 13 and cognitive complexity 13; 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":"packages/electron/src/main/chrome-login-import.ts"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aff60a9f9b8728ca54268713b9a53bb4a7ef8f446ef6076b1c6a457420c4c4c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readClaudeDesignRoutingConfig (cyclomatic 13, cognitive 13): readClaudeDesignRoutingConfig has cyclomatic complexity 13 and cognitive complexity 13; 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":"packages/ui/src/pages/home/shared/routing.ts"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcff92236451aaad6c9a924b4bb4bcb66de90c108be9859b07e06019d1d20db3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function singleGatewayRuntimeBlockers (cyclomatic 13, cognitive 12): singleGatewayRuntimeBlockers has cyclomatic complexity 13 and cognitive complexity 12; 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":"packages/core/src/gateway/application/gateway-service.ts"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"a931c1b734571e59a8e4874f3f1429fed03a9bfd5465c49ee90ba50c738c96bd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveConfiguredRouteDecision (cyclomatic 13, cognitive 12): resolveConfiguredRouteDecision has cyclomatic complexity 13 and cognitive complexity 12; 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":"packages/core/src/gateway/claude-code-router-plugin.ts"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf76937b8eaa5f4c575abe5b44d9d26bc409a55a1fbd39130260f21ad095daaf"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function transformAnthropicWebSearchProtocolResponseValue (cyclomatic 13, cognitive 12): transformAnthropicWebSearchProtocolResponseValue has cyclomatic complexity 13 and cognitive complexity 12; 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":"packages/core/src/gateway/features/hosted-web-search/response-transform.ts"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"1448628d0d057ad556711421afd2dbb8fd9a032e551d8e38346c57e28654db1f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function requestConversationItems (cyclomatic 13, cognitive 12): requestConversationItems has cyclomatic complexity 13 and cognitive complexity 12; 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":2536}}}],"partialFingerprints":{"codehealthFindingId/v1":"0621ff350a9d4dc35c9c56c9d060b0166a89271d6a358bb27b3b7a0fc48222ec"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getOpenRouterProviderCatalog (cyclomatic 13, cognitive 12): getOpenRouterProviderCatalog has cyclomatic complexity 13 and cognitive complexity 12; 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":"packages/core/src/providers/openrouter-provider-catalog.ts"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"861e7bc5c1d922718ba47088c292c0c9934f386bb50d71232945c29513f483b0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createRouterPlugin (cyclomatic 13, cognitive 12): createRouterPlugin has cyclomatic complexity 13 and cognitive complexity 12; 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":"packages/core/test/unit/gateway/router-builtins.test.mjs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"90546133d99f355ba5e7249655dba3b64ccd3a22671aede4da98334f8421d752"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function registerClaudeProductBrowserApp (cyclomatic 13, cognitive 12): registerClaudeProductBrowserApp has cyclomatic complexity 13 and cognitive complexity 12; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"a88ca3e306256eac3b71aba0dfa79a0707610ec913d8ee2371baa674cc6fa2a4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 12): (anonymous) has cyclomatic complexity 13 and cognitive complexity 12; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":13342}}}],"partialFingerprints":{"codehealthFindingId/v1":"643bbe918985366f541b9e6c0c1afb625f67e488f8878c2e1e7aebdca353a961"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function eventChannel (cyclomatic 13, cognitive 12): eventChannel has cyclomatic complexity 13 and cognitive complexity 12; 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":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":2155}}}],"partialFingerprints":{"codehealthFindingId/v1":"0597a3efd32d9de6acb39dfceb4aa329cdce017db908f9b821736d452054fead"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleRequest (cyclomatic 13, cognitive 12): handleRequest has cyclomatic complexity 13 and cognitive complexity 12; 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":"packages/electron/src/main/electron-web-search-mcp.ts"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"169e071f8f6b1c08933ddb51790760da5871e061d4f3821e464ccb67cb786349"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function BrowserChrome (cyclomatic 13, cognitive 12): BrowserChrome has cyclomatic complexity 13 and cognitive complexity 12; 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":"packages/ui/src/pages/browser/main.tsx"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b257353b7836c00a55126874c1af549a0436ef42de60e3d7f3708eaf714c821"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ProfileOpenDialog (cyclomatic 13, cognitive 12): ProfileOpenDialog has cyclomatic complexity 13 and cognitive complexity 12; 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":"packages/ui/src/pages/home/components/profiles.tsx"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa095295c687f178b5353f4ec90183205c4fd59dbb0fb70b7b636ca8e3c841b2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 12): (anonymous) has cyclomatic complexity 13 and cognitive complexity 12; 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":"packages/ui/src/pages/home/components/profiles.tsx"},"region":{"startLine":1473}}}],"partialFingerprints":{"codehealthFindingId/v1":"50171883020024512731c2a82129913d388487830d68bee1aa05f8cca54f6594"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function HandoffTargetPicker (cyclomatic 13, cognitive 12): HandoffTargetPicker has cyclomatic complexity 13 and cognitive complexity 12; 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":"packages/ui/src/pages/home/components/profiles.tsx"},"region":{"startLine":2129}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4edf530b10d990e86ac03f5abe833dcc959e9ea352116e4c298a7d5482ba6f1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ProviderAccountListCell (cyclomatic 13, cognitive 12): ProviderAccountListCell has cyclomatic complexity 13 and cognitive complexity 12; 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":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7842eea890fdec127cee6200d8241b4bb45ec1427517e1161bcc4e914e0c2b4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 12): (anonymous) has cyclomatic complexity 13 and cognitive complexity 12; 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":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":1666}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c5f9f013947f07d6e0cdccf61969a18aef2b6d5041328cc95b5316a49c8bd5a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeCursorToolChoice (cyclomatic 13, cognitive 11): normalizeCursorToolChoice has cyclomatic complexity 13 and cognitive complexity 11; 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":"packages/core/src/gateway/features/cursor-compat.ts"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"4262b5857afd893468fc35fedc01b1d1979d9e0ba4575d5cf2dde5906717045e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function inferUpstreamErrorPhase (cyclomatic 13, cognitive 11): inferUpstreamErrorPhase has cyclomatic complexity 13 and cognitive complexity 11; 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":"packages/core/src/gateway/http/io.ts"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7694f489467d7048ba84f7e01e46e8bc3a0c84b8c4e54b47a437b99a75a83dd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function writeRequestLog (cyclomatic 13, cognitive 11): writeRequestLog has cyclomatic complexity 13 and cognitive complexity 11; 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":"packages/core/src/gateway/request/pipeline.ts"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a396bae45ae4f4f975aa98b8928bf6fc28c6cc9d5101e2f8f6258bcc85024a5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function frame (cyclomatic 13, cognitive 11): frame has cyclomatic complexity 13 and cognitive complexity 11; 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":"packages/core/src/mcp/toolhub-mcp.ts"},"region":{"startLine":1180}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee6ac546a134cdeca36dc31cd3327d6927790fdcfbfc9e8a4022c40a5ae6f7fa"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parsePluginAppItem (cyclomatic 13, cognitive 11): parsePluginAppItem has cyclomatic complexity 13 and cognitive complexity 11; 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":"packages/core/src/web/management-server.ts"},"region":{"startLine":1217}}}],"partialFingerprints":{"codehealthFindingId/v1":"57de365fbc7b0136bda27444da40424d2e4d25ff45e8d3a05ed6ee1fb3a44c7d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function selectUsableDesignIndexAssets (cyclomatic 13, cognitive 11): selectUsableDesignIndexAssets has cyclomatic complexity 13 and cognitive complexity 11; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":3131}}}],"partialFingerprints":{"codehealthFindingId/v1":"1513e499f65a1458e1091d3901dac69acec41384ff7dc5f49d4636e4bb345b51"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function saveClaudeShipDeployment (cyclomatic 13, cognitive 11): saveClaudeShipDeployment has cyclomatic complexity 13 and cognitive complexity 11; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":5879}}}],"partialFingerprints":{"codehealthFindingId/v1":"2df99d4f2cfdff0edb1f4dcfef28adb2af384b20f0d8416e6c3118be486cdb13"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parsePluginAppItem (cyclomatic 13, cognitive 11): parsePluginAppItem has cyclomatic complexity 13 and cognitive complexity 11; 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":"packages/electron/src/main/ipc.ts"},"region":{"startLine":1095}}}],"partialFingerprints":{"codehealthFindingId/v1":"440f40cb413b6720156f25d2c4641f7e333ac6dbccbedb2df416952c6a80736f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function LogRouteHopDetails (cyclomatic 13, cognitive 11): LogRouteHopDetails has cyclomatic complexity 13 and cognitive complexity 11; 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":"packages/ui/src/pages/home/components/network-logs.tsx"},"region":{"startLine":1172}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe8170a789e804e5d14fa26697dd816092616353b8ffae241fe79d97978dbd9c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createProviderDraftFromDeepLinkPayload (cyclomatic 13, cognitive 11): createProviderDraftFromDeepLinkPayload has cyclomatic complexity 13 and cognitive complexity 11; 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":"packages/ui/src/pages/home/shared/providers.ts"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"e122de7e5129826060e2ad2cf995460ab4c5fb39a9046699272b5d6d0bdcba2a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function formatUpstreamErrorForLog (cyclomatic 13, cognitive 10): formatUpstreamErrorForLog has cyclomatic complexity 13 and cognitive complexity 10; 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":"packages/core/src/gateway/http/io.ts"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"527cabc968df3a76ebc955551121ce29e6920544bb8dcbe2825a0628cbf6cb53"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleJsonRpcRequest (cyclomatic 13, cognitive 10): handleJsonRpcRequest has cyclomatic complexity 13 and cognitive complexity 10; 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":"packages/core/src/mcp/network-capture-mcp.ts"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"37cecf9ea6005f9cc0658404f71b8e2059b01dae68fc15daf744f253778fa696"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseBotGatewayConversation (cyclomatic 13, cognitive 9): parseBotGatewayConversation has cyclomatic complexity 13 and cognitive complexity 9; 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":"packages/core/src/config/config.ts"},"region":{"startLine":2422}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0b17fb36552f1b8fe00886b94e3e9e073a185deaf9e22cf6d1fb1bb868f6157"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function toolHubMcpRuntimeConfig (cyclomatic 13, cognitive 9): toolHubMcpRuntimeConfig has cyclomatic complexity 13 and cognitive complexity 9; 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":"packages/core/src/mcp/toolhub-config.ts"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"760bbab4128a4c2e4fecb3e9ee08f94075ae541b009908222faebef957fac323"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function claudeShipScreenshotPayload (cyclomatic 13, cognitive 9): claudeShipScreenshotPayload has cyclomatic complexity 13 and cognitive complexity 9; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":6421}}}],"partialFingerprints":{"codehealthFindingId/v1":"807277eb1d87b57eca6992502fe35896c99f48efb4d2f7dfffb1921a79c35608"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function generatedFilesFromToolCalls (cyclomatic 13, cognitive 9): generatedFilesFromToolCalls has cyclomatic complexity 13 and cognitive complexity 9; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":11341}}}],"partialFingerprints":{"codehealthFindingId/v1":"e613e439e74d1d73fea19e0a7e911812867a223c7cc6dcfe3f4074419e2b1472"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updatePreset (cyclomatic 13, cognitive 9): updatePreset has cyclomatic complexity 13 and cognitive complexity 9; 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":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":2150}}}],"partialFingerprints":{"codehealthFindingId/v1":"d63fcaf0ea8c8f7d37dda2219cbaecc1074d00b0aa44212d0e7236d99066c03a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeRouterRuleCondition (cyclomatic 13, cognitive 9): normalizeRouterRuleCondition has cyclomatic complexity 13 and cognitive complexity 9; 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":"packages/ui/src/pages/home/shared/routing.ts"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fddd8ede88f0c555ee0854cac78d23a2b1a180e974904da718852031f8fa6b7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function catalogProviderTokenScore (cyclomatic 12, cognitive 25): catalogProviderTokenScore has cyclomatic complexity 12 and cognitive complexity 25; 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":"packages/core/src/providers/model-catalog.ts"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3831980d9e75146faaa7a6a45eee8df0603ba7480390956efa9a2bbba56f19c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function scanClaudeCodeKeychain (cyclomatic 12, cognitive 22): scanClaudeCodeKeychain has cyclomatic complexity 12 and cognitive complexity 22; 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":"packages/core/src/agents/local-providers/claude-code.ts"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"40f5bfbf76ba65f1ff33f68af4b8375b30f5c2106851ac860156c2f4ae2c76c3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ensureStarted (cyclomatic 12, cognitive 21): ensureStarted has cyclomatic complexity 12 and cognitive complexity 21; 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":"packages/core/src/gateway/application/gateway-service.ts"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ada8a5c6350c2d97935059d74aa6dec1c99e4773a04c4d2565c30c642f0e64a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function splitShellLike (cyclomatic 12, cognitive 21): splitShellLike has cyclomatic complexity 12 and cognitive complexity 21; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":7216}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dddb91142e2d023934345e9cea94ecfa775759da57f9cb341f1b78f8f2bda9e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function claudeDesignVirtualModelSelectors (cyclomatic 12, cognitive 21): claudeDesignVirtualModelSelectors has cyclomatic complexity 12 and cognitive complexity 21; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":12243}}}],"partialFingerprints":{"codehealthFindingId/v1":"353e13c8a04de2bb8f119acda468395fac4f3aea5f639e0a5dd726e20aea7bfa"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseCoreServerArgs (cyclomatic 12, cognitive 20): parseCoreServerArgs has cyclomatic complexity 12 and cognitive complexity 20; 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":"packages/core/src/entrypoints/server.ts"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"92979a816f6007d78d06a1cf51fc40e832c2ed1cbb7e0f4475f4280e0ec063e1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ensureGatewayConfigRunning (cyclomatic 12, cognitive 20): ensureGatewayConfigRunning has cyclomatic complexity 12 and cognitive complexity 20; 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":"packages/core/src/profiles/launch-service.ts"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"9855f87680568714d4dafff5d9c4d39b8accea386a04ad2a46549fbb7beec25b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseTomlPath (cyclomatic 12, cognitive 18): parseTomlPath has cyclomatic complexity 12 and cognitive complexity 18; 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":"packages/core/src/agents/local-providers/kimi.ts"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"93f36d83882209858491da5864ed9c418697101382f5e6fc611bd062f019e001"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function extractOpenAiResponsesUsage (cyclomatic 12, cognitive 18): extractOpenAiResponsesUsage has cyclomatic complexity 12 and cognitive complexity 18; 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":"packages/core/src/gateway/context-archive/protocol.ts"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"896d77c8d32d15731a8b1b6acb5661a37502b09ff5a4a4c9faa3042b2e4a4e24"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function findSessionIdInPayload (cyclomatic 12, cognitive 18): findSessionIdInPayload has cyclomatic complexity 12 and cognitive complexity 18; 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":2288}}}],"partialFingerprints":{"codehealthFindingId/v1":"f128e4f1948bc1af761651fbf45e17573b739b1050f1563c97516f2febaefc27"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function transformRequest (cyclomatic 12, cognitive 17): transformRequest has cyclomatic complexity 12 and cognitive complexity 17; 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":"packages/core/src/gateway/core-runtime/upstream-header-sanitizer.ts"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"314ad7d00fa655f18a34fb0a5e416362b6742fb74a51551b8636a6a7c67a8ec6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function executeWithAttempts (cyclomatic 12, cognitive 17): executeWithAttempts has cyclomatic complexity 12 and cognitive complexity 17; 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":"packages/core/src/media/service.ts"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"670b9cdd71e0fb2f4cc1c5a55344263b9efce27679993f9ffd956ef1e5542a2c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parsePluginAppsSettingsText (cyclomatic 12, cognitive 17): parsePluginAppsSettingsText has cyclomatic complexity 12 and cognitive complexity 17; 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":"packages/ui/src/pages/home/shared/extensions.ts"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bdacb3297ef990a86bc0974eefcde599017c13e3d244b1870aaa8c6e01e37a8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function imageInputToUrl (cyclomatic 12, cognitive 16): imageInputToUrl has cyclomatic complexity 12 and cognitive complexity 16; 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":"packages/core/src/mcp/fusion-vision-mcp.ts"},"region":{"startLine":895}}}],"partialFingerprints":{"codehealthFindingId/v1":"65ba2e0b4bc6abded616e1caf77700f71246dbce8e9f44e2f8858cd27a31fbdd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function restoreWindowsSystemProxy (cyclomatic 12, cognitive 16): restoreWindowsSystemProxy has cyclomatic complexity 12 and cognitive complexity 16; 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":"packages/core/src/proxy/system-proxy.ts"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cb8e05d2b2825862e3a5c990707b26e6f0969ff3b93d23f8d5e5d695eb5d940"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function appendTask (cyclomatic 12, cognitive 15): appendTask has cyclomatic complexity 12 and cognitive complexity 15; 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":"packages/core/src/gateway/context-archive/protocol.ts"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"a76b67be3941ef33742b6b3909c79cf348dfb7d90d99a0c14e60a6d4ba81acb7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildImageParts (cyclomatic 12, cognitive 15): buildImageParts has cyclomatic complexity 12 and cognitive complexity 15; 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":"packages/core/src/mcp/fusion-vision-mcp.ts"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdf173d485e67d31eb298c11d105ad19c1f2d9f916c034590cbefe8af28929ca"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function replayStoredBundles (cyclomatic 12, cognitive 15): replayStoredBundles has cyclomatic complexity 12 and cognitive complexity 15; 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":"packages/core/src/observability/raw-trace-sync.ts"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f4e6b4cd44b7a57a5a58f43b45bc25cea06356f20eb27bec4f7ff7dfa912033"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function discoverCachedDesignIndexAssets (cyclomatic 12, cognitive 15): discoverCachedDesignIndexAssets has cyclomatic complexity 12 and cognitive complexity 15; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":3386}}}],"partialFingerprints":{"codehealthFindingId/v1":"1153305a2728681ffdbf115abd5541816695bbabc12fa5c28e6ee33c634b78d9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function replaceClaudeCodeAutoCompactPrompt (cyclomatic 12, cognitive 14): replaceClaudeCodeAutoCompactPrompt has cyclomatic complexity 12 and cognitive complexity 14; 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":"packages/core/src/gateway/context-archive/protocol.ts"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4d72a3e1edd2fad9afa49a1013afcee83a0fabbe724fddf570b2eeb916af089"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveHttpJsonConnector (cyclomatic 12, cognitive 14): resolveHttpJsonConnector has cyclomatic complexity 12 and cognitive complexity 14; 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":"packages/core/src/providers/account-service.ts"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"7088c8ac29a7c32540dee04a1444a082dffa6221d4dfaf385c5f86a0d6e03ef5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyClaudeAppGateway (cyclomatic 12, cognitive 14): applyClaudeAppGateway has cyclomatic complexity 12 and cognitive complexity 14; 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":"packages/core/src/web/management-server.ts"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f7a121f2fa2676ce36242726f275fd160f0e9cf0d864d2895672462fe1245e0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function generatedFilesFromText (cyclomatic 12, cognitive 14): generatedFilesFromText has cyclomatic complexity 12 and cognitive complexity 14; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":11364}}}],"partialFingerprints":{"codehealthFindingId/v1":"9508382f7b1655d5279993d6f4502b09c66b959c8773a8494b3cff2ae0f52211"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function roleOf (cyclomatic 12, cognitive 14): roleOf has cyclomatic complexity 12 and cognitive complexity 14; 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":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":2931}}}],"partialFingerprints":{"codehealthFindingId/v1":"619deeef1c8cbc6f98a60b05aebf0b9d63ec9a9f815110803caa6dd46ff28bbd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 14): (anonymous) has cyclomatic complexity 12 and cognitive complexity 14; 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":"packages/electron/src/main/ipc.ts"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab6ac6069b3a0ee30b55ffd9c5a2d16ba954f8cfad40b9359ea102044ecf041b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveWeixinQrIntegrationId (cyclomatic 12, cognitive 13): resolveWeixinQrIntegrationId has cyclomatic complexity 12 and cognitive complexity 13; 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":"packages/core/src/agents/bot-gateway/qr-login-service.ts"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"952eac6799bdc7f368bc452c3ead7681ec367ef7f66088cc57822f3743402710"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function transformGeminiHostedWebSearchResponseValue (cyclomatic 12, cognitive 13): transformGeminiHostedWebSearchResponseValue has cyclomatic complexity 12 and cognitive complexity 13; 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":"packages/core/src/gateway/features/hosted-web-search/response-transform.ts"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"328c67963a09be949b39862975c73a98e8c60f646116716cc99f626b72fcb646"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeCacheStore (cyclomatic 12, cognitive 13): normalizeCacheStore has cyclomatic complexity 12 and cognitive complexity 13; 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":"packages/core/src/mcp/toolhub-mcp.ts"},"region":{"startLine":2772}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1bcce5a67e71e3d61b243d1fa9b47a111a34a1821d15326285cb6829539684f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildPluginProxyUpstreamUrl (cyclomatic 12, cognitive 13): buildPluginProxyUpstreamUrl has cyclomatic complexity 12 and cognitive complexity 13; 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":"packages/core/src/plugins/service.ts"},"region":{"startLine":1067}}}],"partialFingerprints":{"codehealthFindingId/v1":"aee15228c98b692960cb96b1b163c116375b272ae8f19baa2bf55e3e95456b11"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchJson (cyclomatic 12, cognitive 13): fetchJson has cyclomatic complexity 12 and cognitive complexity 13; 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":"packages/core/src/providers/account-service.ts"},"region":{"startLine":1972}}}],"partialFingerprints":{"codehealthFindingId/v1":"213a58ac61c79229f9a78d1a1e305d56c7111ac3b096dcaebb2d41c5435aef4d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function copyProjectFile (cyclomatic 12, cognitive 13): copyProjectFile has cyclomatic complexity 12 and cognitive complexity 13; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":8865}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a2c1e4bf711dac27779a5392298970f303f79d8d6ff41d097b2bcf3b64bdc75"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function calculateTrayBalanceProgress (cyclomatic 12, cognitive 13): calculateTrayBalanceProgress has cyclomatic complexity 12 and cognitive complexity 13; 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":"packages/electron/src/main/tray-controller.ts"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"99147fe863b44e2478fb6afda04424abdfd338068763dec7bef414e279d9589e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function trayBalanceMeterProgress (cyclomatic 12, cognitive 13): trayBalanceMeterProgress has cyclomatic complexity 12 and cognitive complexity 13; 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":"packages/ui/src/pages/home/components/settings.tsx"},"region":{"startLine":3424}}}],"partialFingerprints":{"codehealthFindingId/v1":"96fae39ec65af728e857decb9b9068dd2c595906f49b5c1d0e0216b57a2a4309"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function collectOpenAiResponseContentPart (cyclomatic 12, cognitive 13): collectOpenAiResponseContentPart has cyclomatic complexity 12 and cognitive complexity 13; 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":"packages/ui/src/pages/home/shared/logs.ts"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb4861b3081b2f60d0c3a4b6f2494ac72f4bd82dc6195223d7a375b8f69a97ac"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function findPosixExecutablePid (cyclomatic 12, cognitive 12): findPosixExecutablePid has cyclomatic complexity 12 and cognitive complexity 12; 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":"packages/core/src/agents/opencode/app-launch.ts"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce9e931c81b43df212dcc40223d9bd5e2f20fafa6eb7d13887c6ffe740d57b88"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleMediaArtifactRequest (cyclomatic 12, cognitive 12): handleMediaArtifactRequest has cyclomatic complexity 12 and cognitive complexity 12; 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":"packages/core/src/mcp/grok-media-mcp.ts"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"02cd68258728115c58ea03b9bb01afcb2700b435d331cfc247a933b14a527e6e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 12): (anonymous) has cyclomatic complexity 12 and cognitive complexity 12; 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":"packages/ui/src/pages/home/App.tsx"},"region":{"startLine":1396}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe55dfad5fb1b4955f9bf4cc4faab6b02aa9a4c31793c918a7703faea4438a10"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function startService (cyclomatic 12, cognitive 11): startService has cyclomatic complexity 12 and cognitive complexity 11; 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":"packages/cli/src/cli.ts"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"a197d57555fa828601803676e02fddd1c54b9e159919ad56e5a562523fa44a98"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseApiKeyConfig (cyclomatic 12, cognitive 11): parseApiKeyConfig has cyclomatic complexity 12 and cognitive complexity 11; 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":"packages/core/src/config/config.ts"},"region":{"startLine":4058}}}],"partialFingerprints":{"codehealthFindingId/v1":"17e36c2b3dbf7d593cb21c4cba847bd700dbf1651ca071cbc3e7dee898138478"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseConditionLiteral (cyclomatic 12, cognitive 11): parseConditionLiteral has cyclomatic complexity 12 and cognitive complexity 11; 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":"packages/core/src/gateway/claude-code-router-plugin.ts"},"region":{"startLine":1516}}}],"partialFingerprints":{"codehealthFindingId/v1":"713a082a8421134c7e0a0e7c54b1d2c1f5449ab1d4856023c09b2e72e24c85a5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 11): (anonymous) has cyclomatic complexity 12 and cognitive complexity 11; 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":"packages/core/src/gateway/core-runtime/config-compiler.ts"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"be19fc7081c6c9488b4fcd9ddf63bba5a3d97330682b68f4ca74619f6f5a6f3d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function prepareContextArchiveToolContinuationRequest (cyclomatic 12, cognitive 11): prepareContextArchiveToolContinuationRequest has cyclomatic complexity 12 and cognitive complexity 11; 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":"packages/core/src/gateway/features/context-archive-continuation.ts"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d54a2e1f10c754bbd1ad18fbac6c5fe02638e1b067fea2fbf57feb5567fd423"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeFusionWebSearchProfileToolName (cyclomatic 12, cognitive 11): normalizeFusionWebSearchProfileToolName has cyclomatic complexity 12 and cognitive complexity 11; 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":"packages/core/src/mcp/fusion-config.ts"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bd67308f20d6ca18a69a65de2d40be012d2f4d1a4f218fa2b22ac3bc928ed52"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleJsonRpcRequest (cyclomatic 12, cognitive 11): handleJsonRpcRequest has cyclomatic complexity 12 and cognitive complexity 11; 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":"packages/core/src/mcp/grok-media-mcp.ts"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e8daca51bb4f8c5e5f875b9c06e6a962d2509eba8a5627dbbda35b64d0c9358"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function providerProbeAuthRequest (cyclomatic 12, cognitive 11): providerProbeAuthRequest has cyclomatic complexity 12 and cognitive complexity 11; 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":"packages/core/src/providers/probe.ts"},"region":{"startLine":913}}}],"partialFingerprints":{"codehealthFindingId/v1":"5899646d96f13f2d91f9aa89080e56f822a7164659b06310778c9b9939f84852"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchGateway (cyclomatic 12, cognitive 11): fetchGateway has cyclomatic complexity 12 and cognitive complexity 11; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":12472}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cf964278846c9b01ad2fd1218fd39045edc9cf76c89a19ff5c498935603e084"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function toolResultBlockText (cyclomatic 12, cognitive 11): toolResultBlockText has cyclomatic complexity 12 and cognitive complexity 11; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":12733}}}],"partialFingerprints":{"codehealthFindingId/v1":"256f1f9009cf52104a9c132773afe77be82b5e7838687b3e9ab030330aea181f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function matchesAwaitFilter (cyclomatic 12, cognitive 11): matchesAwaitFilter has cyclomatic complexity 12 and cognitive complexity 11; 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":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":2245}}}],"partialFingerprints":{"codehealthFindingId/v1":"76adbeee749ed0ca3f0a95ffca6ce9a868b42b7d3e90591528fb54738f8ce45c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function trajectoryNodeListContent (cyclomatic 12, cognitive 11): trajectoryNodeListContent has cyclomatic complexity 12 and cognitive complexity 11; 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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":6066}}}],"partialFingerprints":{"codehealthFindingId/v1":"09c19775d0f4d5e9bad855f65a2266a1faba2e23c07ca7e24b592a887ab3cd58"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function trajectoryNodeBadgeClass (cyclomatic 12, cognitive 11): trajectoryNodeBadgeClass has cyclomatic complexity 12 and cognitive complexity 11; 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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":6108}}}],"partialFingerprints":{"codehealthFindingId/v1":"93052ab6e5b23935ae24fe84bfb10f46cec65307a24fba52358e8e5199271c70"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 11): (anonymous) has cyclomatic complexity 12 and cognitive complexity 11; 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":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":1481}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1680b2f28914a74f726fded4d54fa77cb9dbf42629efc735dd7430e4e1ccdcf"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeApiKeyConfig (cyclomatic 12, cognitive 11): normalizeApiKeyConfig has cyclomatic complexity 12 and cognitive complexity 11; 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":"packages/ui/src/pages/home/shared/api-keys.ts"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bcce111160a4884870672ed153280add097ef9c46ade8398aad4e002d9e9774"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeToolHubConfig (cyclomatic 12, cognitive 11): normalizeToolHubConfig has cyclomatic complexity 12 and cognitive complexity 11; 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":"packages/ui/src/pages/home/shared/config.ts"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"091414a54d29bd203ad49c7c0a0c55e97728515cb6bc2b8f342f0b2a0fff8da9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function providerBrowserConnectorFromDraft (cyclomatic 12, cognitive 11): providerBrowserConnectorFromDraft has cyclomatic complexity 12 and cognitive complexity 11; 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":"packages/ui/src/pages/home/shared/providers.ts"},"region":{"startLine":1382}}}],"partialFingerprints":{"codehealthFindingId/v1":"472f9b63bd68c2a5e9f90cb2f63089f0c7b24edec68f0ed6ce9bd54a9c7481fc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateMcpServerDraft (cyclomatic 12, cognitive 11): validateMcpServerDraft has cyclomatic complexity 12 and cognitive complexity 11; 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":"packages/ui/src/pages/home/shared/virtual-models.ts"},"region":{"startLine":1020}}}],"partialFingerprints":{"codehealthFindingId/v1":"29a4eceee1af34ccc8feafcc1f8fc024826c95b845aea380baf14a7182261597"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseObservability (cyclomatic 12, cognitive 10): parseObservability has cyclomatic complexity 12 and cognitive complexity 10; 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":"packages/core/src/config/config.ts"},"region":{"startLine":987}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2ed6d84c33b64c5790d7014e228692a6405b093fc1da6aff1922f4b06d1ba34"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function toStoredUsageEvent (cyclomatic 12, cognitive 10): toStoredUsageEvent has cyclomatic complexity 12 and cognitive complexity 10; 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":"packages/core/src/usage/store.ts"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1bbcb506ccb62c556eb492f9b01fa3f2f78a565b2b611b6727f3bbf904da80b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function serveClaudeShipFrontendHtml (cyclomatic 12, cognitive 10): serveClaudeShipFrontendHtml has cyclomatic complexity 12 and cognitive complexity 10; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":2604}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f67150719ce3a260480819718e93f44817a5b20f767b595b0b35581b3bc1a5b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function claudeShipEventEnvelope (cyclomatic 12, cognitive 10): claudeShipEventEnvelope has cyclomatic complexity 12 and cognitive complexity 10; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":6361}}}],"partialFingerprints":{"codehealthFindingId/v1":"42536c4ceec25810e32ae2e42d2a12ea9ffc2ece26d21f0c7c173804cd686bbd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function designRestFilesProjectId (cyclomatic 12, cognitive 10): designRestFilesProjectId has cyclomatic complexity 12 and cognitive complexity 10; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":8646}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c58361463a89f282483ff7cbe6103256216397d8b8b2f5473d17e1be55cf8e7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function isClaudeDesignStreamingRequest (cyclomatic 12, cognitive 10): isClaudeDesignStreamingRequest has cyclomatic complexity 12 and cognitive complexity 10; 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":"packages/electron/src/main/claude-design-window.ts"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"032107b51eec18135cefa4f29d7c9d07ec8733682094db6cadb2d0d0dc0516dd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parsePluginDeepLinkRequest (cyclomatic 12, cognitive 10): parsePluginDeepLinkRequest has cyclomatic complexity 12 and cognitive complexity 10; 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":"packages/electron/src/main/deep-link.ts"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"be9102aaaf02f6bf0aa55709b07ed9f78ab41723ed739661b9bded33c93d4459"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ProviderAccountSinglePanel (cyclomatic 12, cognitive 10): ProviderAccountSinglePanel has cyclomatic complexity 12 and cognitive complexity 10; 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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":2875}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c9a580caaca68844044bc711cb3db5f356bec4ddfffa8421169a811baad161b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveProviderDeepLinkIcon (cyclomatic 12, cognitive 10): resolveProviderDeepLinkIcon has cyclomatic complexity 12 and cognitive complexity 10; 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":"packages/ui/src/pages/home/shared/providers.ts"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"58317a5fed3c15bf3a6e7c3ddb5e4f07114a43c9a2a9548e8c71032dda4ad2ef"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 10): (anonymous) has cyclomatic complexity 12 and cognitive complexity 10; 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":"packages/ui/src/pages/home/shared/virtual-models.ts"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcd01f1e637c28ef28ce8f8bac72557f81d110960aa5e2bf773950ce41d9023b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function inferProviderProtocol (cyclomatic 12, cognitive 9): inferProviderProtocol has cyclomatic complexity 12 and cognitive complexity 9; 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":"packages/core/src/agents/codex/model-catalog.ts"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ddde8cb45acec17bb34abc593e1f46827886726e6c4cd069ceacb6c792734ce"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function startWebManagementServer (cyclomatic 12, cognitive 9): startWebManagementServer has cyclomatic complexity 12 and cognitive complexity 9; 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":"packages/core/src/web/management-server.ts"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"1980f196641b4de9e2b7877e0d12a37336119475e6d7d760b073339eee24942d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleDesignMcpRequest (cyclomatic 12, cognitive 9): handleDesignMcpRequest has cyclomatic complexity 12 and cognitive complexity 9; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":1365}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9dc64ccbfab44f9bf77ebea33c10cd6addd53f304f7a301eaeb91665eeffa97"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function maybeRequestNavigationHandoff (cyclomatic 12, cognitive 9): maybeRequestNavigationHandoff has cyclomatic complexity 12 and cognitive complexity 9; 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":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":2409}}}],"partialFingerprints":{"codehealthFindingId/v1":"64b119e2d198819057dd156d843c15941751501d17efd565dc2dac5e66842c7e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function geminiFragments (cyclomatic 11, cognitive 22): geminiFragments has cyclomatic complexity 11 and cognitive complexity 22; 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":"packages/core/src/observability/stream-experience.ts"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"1751f7d6695ec692c9db2f3b657f3a7ac49742c42f665ffe864ce70291251bd5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function removeCompactSignals (cyclomatic 11, cognitive 20): removeCompactSignals has cyclomatic complexity 11 and cognitive complexity 20; 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":"packages/core/src/gateway/context-archive/protocol.ts"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"b11b7d436ecc4cbe5431b67bb42e20e5eb37b48d3d5e5ba4c393cd8da074b68c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function run (cyclomatic 11, cognitive 19): run has cyclomatic complexity 11 and cognitive complexity 19; 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":"packages/core/src/agents/codex/media-preview-bridge.ts"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8489a118ff9665dd247e3e3b8a479e826a754e51237f12276a076dc92c09e5c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildModelCatalogIndex (cyclomatic 11, cognitive 19): buildModelCatalogIndex has cyclomatic complexity 11 and cognitive complexity 19; 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":"packages/core/src/gateway/model-catalog.ts"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"98967db784b16784d3fe3cebb42dadaf0991a3d0d90807728bbb44de17eee14c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function reconcileSourceBundles (cyclomatic 11, cognitive 19): reconcileSourceBundles has cyclomatic complexity 11 and cognitive complexity 19; 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":"packages/core/src/observability/raw-trace-sync.ts"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"320970c282cb86c5ee201d57d9e0a848cfd99b70937e54a21794169412ca0a50"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function claudeDesignProviderSelectorNames (cyclomatic 11, cognitive 18): claudeDesignProviderSelectorNames has cyclomatic complexity 11 and cognitive complexity 18; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":11842}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0987dc4bf94964e0db6008fd6336ee44cb852ab2df3738f92e361af7a28ddbd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function storedProjectMessageText (cyclomatic 11, cognitive 17): storedProjectMessageText has cyclomatic complexity 11 and cognitive complexity 17; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":11252}}}],"partialFingerprints":{"codehealthFindingId/v1":"777ab2b2de47657949403d7ae97f4f0c4e88ad2dbf06c471a2eca927a242d743"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sanitizeGatewayMessageContentBlocksForRequest (cyclomatic 11, cognitive 17): sanitizeGatewayMessageContentBlocksForRequest has cyclomatic complexity 11 and cognitive complexity 17; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":11560}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6c0c19cf8d732f185aa0c99194113e27efad81300a11b4237cd66ad59eba647"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function stripTomlComment (cyclomatic 11, cognitive 16): stripTomlComment has cyclomatic complexity 11 and cognitive complexity 16; 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":"packages/core/src/agents/local-providers/kimi.ts"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"926484afb6d036554d5e9cd984671f80d47d291f4b42484a1b199118d80931ae"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchModelsDevPrices (cyclomatic 11, cognitive 16): fetchModelsDevPrices has cyclomatic complexity 11 and cognitive complexity 16; 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":"packages/core/src/models/pricing-service.ts"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f61b0d6a13dd27a80d383b00d19c3afffb674b6b5aebf832208f129a7a9edfc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveOpenRouterDiscountRoutingTarget (cyclomatic 11, cognitive 16): resolveOpenRouterDiscountRoutingTarget has cyclomatic complexity 11 and cognitive complexity 16; 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":"packages/core/src/plugins/built-ins/openrouter-discount-provider-router.ts"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"aedfe9feb2651ec9b149f14b6d5c358fc5b52fb9cfcd937397a807956170666d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function discoverLocalDesignIndexAssets (cyclomatic 11, cognitive 16): discoverLocalDesignIndexAssets has cyclomatic complexity 11 and cognitive complexity 16; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":3416}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fb8a510279e6f4c7cdadbeb471e096ddcbe87880dbc6cbe642394bb1e82fef5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sanitizeStoredMessageDisplayContent (cyclomatic 11, cognitive 16): sanitizeStoredMessageDisplayContent has cyclomatic complexity 11 and cognitive complexity 16; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":13098}}}],"partialFingerprints":{"codehealthFindingId/v1":"371958ffd46336070d7d29286c97075f5c9a225f0388d228c8a9547a5ae33c75"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleKeyDown (cyclomatic 11, cognitive 16): handleKeyDown has cyclomatic complexity 11 and cognitive complexity 16; 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":"packages/ui/src/components/ui/dialog.tsx"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"02f2016e290de478ba1b99ceae7fea4c9c59035b950a08bdf6d3b9311280d13d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function migrateKnownGatewayPluginConfigs (cyclomatic 11, cognitive 15): migrateKnownGatewayPluginConfigs has cyclomatic complexity 11 and cognitive complexity 15; 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":"packages/core/src/config/config.ts"},"region":{"startLine":2699}}}],"partialFingerprints":{"codehealthFindingId/v1":"db69fb2f920ed8e4b28e45d91e5582fd7c177e57511e631aebaf0c92efeebd7f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function processPayload (cyclomatic 11, cognitive 15): processPayload has cyclomatic complexity 11 and cognitive complexity 15; 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":"packages/core/src/observability/stream-experience.ts"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c9491d3af1ed630693cd0c3d87b55d391514e787ad36641219e411864c69273"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 14): (anonymous) has cyclomatic complexity 11 and cognitive complexity 14; 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":"packages/core/src/agents/codex/app-net-responder.ts"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fe1ead99f46e4dc26ca773e252167be5bb0e1be176dfca01ca0fbf89c2c736b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function run (cyclomatic 11, cognitive 14): run has cyclomatic complexity 11 and cognitive complexity 14; 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":"packages/core/src/media/service.ts"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ec300c87576355a613997efaca520e1561bcf87c431801871ea000d7cb2e8b1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function recoverInterruptedJobs (cyclomatic 11, cognitive 14): recoverInterruptedJobs has cyclomatic complexity 11 and cognitive complexity 14; 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":"packages/core/src/media/service.ts"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ed24145aa030e6a243da4ab727b8238c7250130566314fc692cdb2e5e39576c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleBatchError (cyclomatic 11, cognitive 14): handleBatchError has cyclomatic complexity 11 and cognitive complexity 14; 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":"packages/core/src/observability/request-log-runtime.ts"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"83ccf2b0bb310d8dd32953c4609b1b734b862ec7cf3e17e4db0cd61a9484772d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function collectSessionToolResultsFromFullBodies (cyclomatic 11, cognitive 14): collectSessionToolResultsFromFullBodies has cyclomatic complexity 11 and cognitive complexity 14; 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":3600}}}],"partialFingerprints":{"codehealthFindingId/v1":"419ef8211c19dcbad1f8f443c23a5b1d48439417f40c4d7ae4531e77cb0ffeee"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function cleanupManagedClaudeCodeToolHubArtifacts (cyclomatic 11, cognitive 14): cleanupManagedClaudeCodeToolHubArtifacts has cyclomatic complexity 11 and cognitive complexity 14; 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":"packages/core/src/profiles/service.ts"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"74a02be8825e29a55762fbe8c35a8ceacf8cbcfcdcda3fc79417a17880634f3d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function restoreGlobalConfigFile (cyclomatic 11, cognitive 14): restoreGlobalConfigFile has cyclomatic complexity 11 and cognitive complexity 14; 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":"packages/core/src/profiles/service.ts"},"region":{"startLine":3839}}}],"partialFingerprints":{"codehealthFindingId/v1":"91937808f7e3eeb1d506d7527d9eab0ef2fc3d67f6dc691bf9fea827201321a5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function codexRequiredScopes (cyclomatic 11, cognitive 14): codexRequiredScopes has cyclomatic complexity 11 and cognitive complexity 14; 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":"packages/core/src/providers/probe.ts"},"region":{"startLine":1963}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe5d54dd88f1cb657ba14d1ab5e371779f9bb7d08042ad2f27f26e4c11bfcd39"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizedProviderCapabilities (cyclomatic 11, cognitive 14): normalizedProviderCapabilities has cyclomatic complexity 11 and cognitive complexity 14; 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":"packages/core/src/providers/runtime-topology.ts"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"998e98df86a9725c9b0c35815b9e4beb426aeca1d6ec1cd8019dcb13ab322567"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function providerAccountMeterLimit (cyclomatic 11, cognitive 14): providerAccountMeterLimit has cyclomatic complexity 11 and cognitive complexity 14; 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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":4270}}}],"partialFingerprints":{"codehealthFindingId/v1":"27a26f72466cf80e2f9e31204978183906b1f5509f060c7e618d31b1b85d9b4c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleSessionRequest (cyclomatic 11, cognitive 13): handleSessionRequest has cyclomatic complexity 11 and cognitive complexity 13; 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":"packages/core/src/gateway/remote-control-service.ts"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff9c4c34e84fa636aef771e94b108eef29d434c4d6219fedd6ba798687c6b914"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function collectGeminiCandidate (cyclomatic 11, cognitive 13): collectGeminiCandidate has cyclomatic complexity 11 and cognitive complexity 13; 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":"packages/ui/src/pages/home/shared/logs.ts"},"region":{"startLine":1222}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b6a5d12fd44557f4bb30c2852d349a7e79a5e2de2a1872a7bf5f43563089c15"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleMessage (cyclomatic 11, cognitive 12): handleMessage has cyclomatic complexity 11 and cognitive complexity 12; 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":"packages/core/src/agents/cdp-client.ts"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"011faa8387fbcfac34750bdedf6a7292c148cc1af942db176c9b124788612005"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function transformCodexPatchBridgeShellTool (cyclomatic 11, cognitive 12): transformCodexPatchBridgeShellTool has cyclomatic complexity 11 and cognitive complexity 12; 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":"packages/core/src/gateway/features/codex-patch-bridge.ts"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa70a4e801edfbb4fd488816f0b391d41a1c4dcb120120b85648250e6223a721"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function providerProbeTransformedJsonBody (cyclomatic 11, cognitive 12): providerProbeTransformedJsonBody has cyclomatic complexity 11 and cognitive complexity 12; 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":"packages/core/src/providers/probe.ts"},"region":{"startLine":1090}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cac241b7bd8de1eb2f6addc8d273a335a9e5556655ff03e06428b0a4f047d7e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readModelId (cyclomatic 11, cognitive 12): readModelId has cyclomatic complexity 11 and cognitive complexity 12; 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":"packages/core/src/providers/probe.ts"},"region":{"startLine":1635}}}],"partialFingerprints":{"codehealthFindingId/v1":"74072c41716d75019e662d704fdd0aa69088cb119bc72f5b32de8396d96ef56b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeClaudeDesignRouting (cyclomatic 11, cognitive 12): normalizeClaudeDesignRouting has cyclomatic complexity 11 and cognitive complexity 12; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":11743}}}],"partialFingerprints":{"codehealthFindingId/v1":"d602e78d1088f4d0da795fee8540fe82a28e804ec6c32d18876e84deafec72c9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function providerRawAccountTestConnector (cyclomatic 11, cognitive 12): providerRawAccountTestConnector has cyclomatic complexity 11 and cognitive complexity 12; 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":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":3317}}}],"partialFingerprints":{"codehealthFindingId/v1":"12a6bade3c28f1219fe8be64548165c2b0996a45fd29252b982006e134d34193"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 12): (anonymous) has cyclomatic complexity 11 and cognitive complexity 12; 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":"packages/ui/src/pages/home/components/update.tsx"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"f16cf4f3d3100be821923bba2639b9b531d7c4f82c4ce2545bd7476643e3bda5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function collectOpenAiDelta (cyclomatic 11, cognitive 12): collectOpenAiDelta has cyclomatic complexity 11 and cognitive complexity 12; 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":"packages/ui/src/pages/home/shared/logs.ts"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"177d947e60d41df6a4661e36a337a48db4390ac56b27d84daaa0ce435bda07f5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function previewFallback (cyclomatic 11, cognitive 11): previewFallback has cyclomatic complexity 11 and cognitive complexity 11; 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":"packages/core/src/agents/codex/media-preview-bridge.ts"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0b140cce5c6e3c9a12c8be6574c6315f0763094ca0ae98ce05a8048c51411b0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyResponsesSessionAffinity (cyclomatic 11, cognitive 11): applyResponsesSessionAffinity has cyclomatic complexity 11 and cognitive complexity 11; 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":"packages/core/src/gateway/core-runtime/responses-session-affinity.ts"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"5affa47e00c6193d73a62d263c8a390f0ba94a958b5c856c1e5cc6f8f5a62d76"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function transformCodexMultiAgentBridgeToolChoice (cyclomatic 11, cognitive 11): transformCodexMultiAgentBridgeToolChoice has cyclomatic complexity 11 and cognitive complexity 11; 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":"packages/core/src/gateway/features/codex-multi-agent-bridge.ts"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdf1554f53105b66bf23eb4bdb395a72d24a7cad1258e4f6d844694eabb032e8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function synthesizeWebSearchAnswer (cyclomatic 11, cognitive 11): synthesizeWebSearchAnswer has cyclomatic complexity 11 and cognitive complexity 11; 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":"packages/core/src/gateway/features/hosted-web-search/evidence.ts"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e9d3b43f0c715c007be14fbfc38d4c155a4f3bfa2960eec9f539c466767200b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function isManagedZcodeConfigContent (cyclomatic 11, cognitive 11): isManagedZcodeConfigContent has cyclomatic complexity 11 and cognitive complexity 11; 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":"packages/core/src/profiles/service.ts"},"region":{"startLine":4037}}}],"partialFingerprints":{"codehealthFindingId/v1":"ace63a3ea69e556f2f1d362363b2315d8ca61254913c130f3bea9cf961852fa9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function compactSnapshotResult (cyclomatic 11, cognitive 11): compactSnapshotResult has cyclomatic complexity 11 and cognitive complexity 11; 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":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":3261}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc048de8103ea5bb1323e81e1c3217e8a178e9441eccba047b4d115d22dff669"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mergeChanges (cyclomatic 11, cognitive 11): mergeChanges has cyclomatic complexity 11 and cognitive complexity 11; 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":"packages/ui/src/pages/home/shared/config-persistence.ts"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a3d3840dd3dfdd982780d883fd03e1e968bd3380ebf816e10443da0a86e58aa"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveTrayProviderIcon (cyclomatic 11, cognitive 11): resolveTrayProviderIcon has cyclomatic complexity 11 and cognitive complexity 11; 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":"packages/ui/src/pages/tray/shared.tsx"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"df1e69dc4014c0178e4bf2f2f24ec2068a743f738915d9ace0c780d54b7e7882"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function startBotGatewayQrLogin (cyclomatic 11, cognitive 10): startBotGatewayQrLogin has cyclomatic complexity 11 and cognitive complexity 10; 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":"packages/core/src/agents/bot-gateway/qr-login-service.ts"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"7606e2fb221230687c9b8ce9874627120ec55dd6df32031aebdcc3ab661e54e1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function kimiCandidate (cyclomatic 11, cognitive 10): kimiCandidate has cyclomatic complexity 11 and cognitive complexity 10; 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":"packages/core/src/agents/local-providers/kimi.ts"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c4e1cd189b34dd45805b8e0c6e58026d99dca4049cdcd6a54b5ef7476e36f7e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function importKimiProvider (cyclomatic 11, cognitive 10): importKimiProvider has cyclomatic complexity 11 and cognitive complexity 10; 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":"packages/core/src/agents/local-providers/kimi.ts"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"89584865adc09c719b97e497499d1cf2c1fd0e31930bbcf8e29675ecc501d0df"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function synchronizeLegacyCodexProfile (cyclomatic 11, cognitive 10): synchronizeLegacyCodexProfile has cyclomatic complexity 11 and cognitive complexity 10; 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":"packages/core/src/config/config.ts"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"4517ae2137786f2a7bf245655acba413beda7ccd30c4b1e2f53f04a60355d634"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function prepareCodexCompactCompatRequest (cyclomatic 11, cognitive 10): prepareCodexCompactCompatRequest has cyclomatic complexity 11 and cognitive complexity 10; 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":"packages/core/src/gateway/features/context-archive-continuation.ts"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0f4885c6a42641b96207407c15f9ff56f5464fa205d3de88c1c52e154964fcf"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handle (cyclomatic 11, cognitive 10): handle has cyclomatic complexity 11 and cognitive complexity 10; 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":"packages/core/src/observability/raw-trace-sync.ts"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"46b0b61a4a65298af4b3f972791302649823194997d700d33fb329b1bff76804"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function agentDisplayName (cyclomatic 11, cognitive 10): agentDisplayName has cyclomatic complexity 11 and cognitive complexity 10; 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":4227}}}],"partialFingerprints":{"codehealthFindingId/v1":"360cb2a7164f054926dc67aea45eae67358dbb88406694d949bec45080b55fb6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validUtf8PrefixLength (cyclomatic 11, cognitive 10): validUtf8PrefixLength has cyclomatic complexity 11 and cognitive complexity 10; 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":5542}}}],"partialFingerprints":{"codehealthFindingId/v1":"1945f9ca5b7b57f9bea6e2b8af051720be1cc5e1282e45ad648cf84c40bca709"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function withBoundedRawTraceBodyTexts (cyclomatic 11, cognitive 10): withBoundedRawTraceBodyTexts has cyclomatic complexity 11 and cognitive complexity 10; 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":5780}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecaf15e007533066a1e3ee768b68c10a7eb5f850fd0ffad1a4b2fd8d6e4f1ab7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeSettings (cyclomatic 11, cognitive 10): normalizeSettings has cyclomatic complexity 11 and cognitive complexity 10; 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":"packages/core/src/plugins/built-ins/openrouter-discount-provider-router.ts"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"91471c424f096efce161d73284ae518d0681c2f2d59d1b55ed6b6e9b462bdde1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleProxyRequest (cyclomatic 11, cognitive 10): handleProxyRequest has cyclomatic complexity 11 and cognitive complexity 10; 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":"packages/core/src/proxy/service.ts"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c24671fa1c3634647b43b8b5d0734c0876ffe10280fda18ff97cf87f44397f5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function restore (cyclomatic 11, cognitive 10): restore has cyclomatic complexity 11 and cognitive complexity 10; 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":"packages/core/src/proxy/system-proxy.ts"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c446b798003cb8db157c37299616e3edf33ac275e060939f09e131445004b35"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseRewritePath (cyclomatic 11, cognitive 10): parseRewritePath has cyclomatic complexity 11 and cognitive complexity 10; 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":"packages/core/src/routing/rewrite.ts"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"53717e0c38c605814fc50aad3d3679e9cbc7fc70840802af0c22c8b11717d004"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function recordInternalUsageEvent (cyclomatic 11, cognitive 10): recordInternalUsageEvent has cyclomatic complexity 11 and cognitive complexity 10; 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":"packages/core/src/usage/billing-sync.ts"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"1737e80a2ba84100b70cac7a7d79323d1c8e6134e88ea4f90ea1921ed3eb94a6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function activeProjectFilePath (cyclomatic 11, cognitive 10): activeProjectFilePath has cyclomatic complexity 11 and cognitive complexity 10; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":4866}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a1a09d7d31fb26c16d3ac459427ad7f4bf6253dec7bf0a196f4065d4e34ff4c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function guessContentType (cyclomatic 11, cognitive 10): guessContentType has cyclomatic complexity 11 and cognitive complexity 10; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":16666}}}],"partialFingerprints":{"codehealthFindingId/v1":"51c3ba581119d77efb57e23e4a5504cf526f9848c43460b0656ac64dcab607cd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buttonVariants (cyclomatic 11, cognitive 10): buttonVariants has cyclomatic complexity 11 and cognitive complexity 10; 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":"packages/ui/src/components/ui/button.tsx"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f66e5ecf0bb73fbcdc310b46e79af716ebf7f4e580f52990591e80dd1460cb2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function TokenMixOverviewWidget (cyclomatic 11, cognitive 10): TokenMixOverviewWidget has cyclomatic complexity 11 and cognitive complexity 10; 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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":1723}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bfe660eae3e89141ddfca2b00f497869463d8a15f229436357ea71c9a6b827e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ModelDistributionOverviewWidget (cyclomatic 11, cognitive 10): ModelDistributionOverviewWidget has cyclomatic complexity 11 and cognitive complexity 10; 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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":1809}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e914b8a1a70856aca8b03c4ff099b855d38157e64760566af6f672e8cab8026"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function AgentSessionDetailCard (cyclomatic 11, cognitive 10): AgentSessionDetailCard has cyclomatic complexity 11 and cognitive complexity 10; 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":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":4626}}}],"partialFingerprints":{"codehealthFindingId/v1":"e402546fffee8236d8d9d582564344a7ba45e46278d8dc4f1aaac3e8f3a4fb69"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 10): (anonymous) has cyclomatic complexity 11 and cognitive complexity 10; 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":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"3059b0502a0173ad3afe80d5a0a4710e5e17153e7edddf8766d86a4a3c8f02d7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function pluginConfigPatchFromSettingsDraft (cyclomatic 11, cognitive 10): pluginConfigPatchFromSettingsDraft has cyclomatic complexity 11 and cognitive complexity 10; 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":"packages/ui/src/pages/home/shared/extensions.ts"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"0270e3dbf44669eab684ada30c5437174be7ce2caf80cd4da5b8ba64ba3a874b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function providerPluginCapability (cyclomatic 11, cognitive 10): providerPluginCapability has cyclomatic complexity 11 and cognitive complexity 10; 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":"packages/ui/src/pages/home/shared/extensions.ts"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e50c52ceed89dcae30d380e0fce6c44920a89f6ce17787c20460807bfc83584"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeProfileRoutingConfig (cyclomatic 11, cognitive 10): normalizeProfileRoutingConfig has cyclomatic complexity 11 and cognitive complexity 10; 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":"packages/ui/src/pages/home/shared/profiles.ts"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"46a5c123dddb3e3845bac58d5316a24629d20bc779b47a9fdd07d53088668fa7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function agentKindLabel (cyclomatic 11, cognitive 10): agentKindLabel has cyclomatic complexity 11 and cognitive complexity 10; 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":"packages/ui/src/pages/home/shared/usage.ts"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"af02d745a5fcd1a9b4c157d25efdbc265519e71696d97328f86dc4c7311969f0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function rewriteUrlBase (cyclomatic 11, cognitive 9): rewriteUrlBase has cyclomatic complexity 11 and cognitive complexity 9; 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":"packages/core/src/gateway/core-runtime/upstream-header-sanitizer.ts"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9992fb7003ae316e7b1be32fd7d57bfd7bc080b0c8671a835f7661c157717ed"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function formatGatewayAttempt (cyclomatic 11, cognitive 9): formatGatewayAttempt has cyclomatic complexity 11 and cognitive complexity 9; 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":"packages/core/src/media/executors.ts"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"65d71196427cb9a67005092f8ee4ef772a8036f213aa57ec5b1a201bc87c791e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parsePluginApp (cyclomatic 11, cognitive 9): parsePluginApp has cyclomatic complexity 11 and cognitive complexity 9; 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":"packages/core/src/plugins/marketplace.ts"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"78b440b6da4108f4cd256075f57a88b8c915d52a7f33f1993752a5f343dc4d34"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyZcodeProfile (cyclomatic 11, cognitive 9): applyZcodeProfile has cyclomatic complexity 11 and cognitive complexity 9; 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":"packages/core/src/profiles/service.ts"},"region":{"startLine":831}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b3d88352009bbb6ceb70c383e5d3d062a2aa2fd8b689b5993d2404018c6c894"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function disabledProfileStatus (cyclomatic 11, cognitive 9): disabledProfileStatus has cyclomatic complexity 11 and cognitive complexity 9; 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":"packages/core/src/profiles/service.ts"},"region":{"startLine":3434}}}],"partialFingerprints":{"codehealthFindingId/v1":"4443dad771e7e5912e65dc0fb5bf971f34c8a5251f183a7ea9cb9423ae916fe2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveProviderAccountSnapshot (cyclomatic 11, cognitive 9): resolveProviderAccountSnapshot has cyclomatic complexity 11 and cognitive complexity 9; 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":"packages/core/src/providers/account-service.ts"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7585a691e0fdc7a7dd9ae0fc236faeee4184d9ecb1caa37c7c71169942135fe"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveResponseProviderProtocol (cyclomatic 11, cognitive 9): resolveResponseProviderProtocol has cyclomatic complexity 11 and cognitive complexity 9; 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":"packages/core/src/providers/runtime-topology.ts"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"166a6e57121230907ecc3ae7af1f54bc847a776e1501ae9203e139da3fbce1cb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createCloudflarePagesDeployment (cyclomatic 11, cognitive 9): createCloudflarePagesDeployment has cyclomatic complexity 11 and cognitive complexity 9; 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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":5633}}}],"partialFingerprints":{"codehealthFindingId/v1":"8995e942da80c73c8cea7c83e896c5f4e7386810817238db347e8d9e1cb11986"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeWaitUntil (cyclomatic 11, cognitive 9): normalizeWaitUntil has cyclomatic complexity 11 and cognitive complexity 9; 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":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":2100}}}],"partialFingerprints":{"codehealthFindingId/v1":"17e22297a732004071167e1a67b0efe5fcd5b6f5135ea818980ba32c7ba09649"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeProxyUpstreamConfig (cyclomatic 11, cognitive 9): normalizeProxyUpstreamConfig has cyclomatic complexity 11 and cognitive complexity 9; 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":"packages/ui/src/pages/home/shared/config.ts"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fd705020ef068243d495b983d952ffb99d899155fccc101da0a3300fc8d9bae"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function extensionListItem (cyclomatic 11, cognitive 9): extensionListItem has cyclomatic complexity 11 and cognitive complexity 9; 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":"packages/ui/src/pages/home/shared/extensions.ts"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cf31fe9da9c4dbff62f3be0db2dc1cbab61f2997cd53e6aef5e6eb7f5afde23"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function formatAnthropicContentBlock (cyclomatic 11, cognitive 9): formatAnthropicContentBlock has cyclomatic complexity 11 and cognitive complexity 9; 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":"packages/ui/src/pages/home/shared/logs.ts"},"region":{"startLine":1126}}}],"partialFingerprints":{"codehealthFindingId/v1":"7841719309b14f72d823659c95a9f6c073a396d0ed8374e836bd0ca991f73491"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function formatProviderAccountMeterValue (cyclomatic 11, cognitive 9): formatProviderAccountMeterValue has cyclomatic complexity 11 and cognitive complexity 9; 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":"packages/ui/src/pages/home/shared/provider-accounts.ts"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdec78758fa03451013762f1080b3cd51e69bad0d3753ffaaacae0cf6eab6d45"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function formatAccountMeterValue (cyclomatic 11, cognitive 9): formatAccountMeterValue has cyclomatic complexity 11 and cognitive complexity 9; 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":"packages/ui/src/pages/tray/shared.tsx"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b6147ec6a32dfdf8d72f27f174dbbf34e01e608f5e02aefcdbb038f71baf570"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/electron/bundled-plugins/claude-design/index.cjs: 15598 lines of code: packages/electron/bundled-plugins/claude-design/index.cjs has 15598 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d38f2ab30ae2e306303fdf55b27075e74f73024184ab6a1ad38b73ea884e677e"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/agents/codex/cli-middleware-runtime.ts: 6922 lines of code: packages/core/src/agents/codex/cli-middleware-runtime.ts has 6922 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/codex/cli-middleware-runtime.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a149c0f80f3634466f9b0426ea1de78ca1c194357ddc4f32346802cd024a2bf"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/observability/request-log-store.ts: 6113 lines of code: packages/core/src/observability/request-log-store.ts has 6113 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d98ebcffc75b24b9370bf25cc1a7e1aac82ab745fd0f495ee48f032174cb4f16"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ui/src/pages/home/components/dashboard.tsx: 6045 lines of code: packages/ui/src/pages/home/components/dashboard.tsx has 6045 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/dashboard.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd094b22944994e52072c7a00889272547f1382ca5653bf7b4588828b7a9d326"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ui/src/pages/home/components/providers.tsx: 4874 lines of code: packages/ui/src/pages/home/components/providers.tsx has 4874 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fef1524d63a58504565c5cc45fbdcf587820c670ec4ed4ef247a865edda75d5f"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/profiles/service.ts: 3964 lines of code: packages/core/src/profiles/service.ts has 3964 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/service.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"499c3b3e1608efb85e3a34f17ea86712a1ff5431401946a96ce4b179149573b3"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/config/config.ts: 3954 lines of code: packages/core/src/config/config.ts has 3954 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fa638c67e7ab9cef341b46210e85c2aa812922e9cdc72927dbcc30d3e75825c"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ui/src/pages/home/App.tsx: 3382 lines of code: packages/ui/src/pages/home/App.tsx has 3382 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/App.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c664e619c6fa82ad44a4a92a8ec43f77b0ff773a7334de05f5de616bfb770a3"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/electron/src/main/browser-automation-mcp.ts: 3340 lines of code: packages/electron/src/main/browser-automation-mcp.ts has 3340 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"98b39aabbd7a216a78b5d1249e482f8644d0a9e8d9e396cbf3b30e29b7e541c7"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ui/src/pages/home/components/settings.tsx: 3284 lines of code: packages/ui/src/pages/home/components/settings.tsx has 3284 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/settings.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"16863446f9c97f245d8ed337e12b916f2ab13b0f65d38128ca9fc91f806355a2"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/mcp/toolhub-mcp.ts: 2712 lines of code: packages/core/src/mcp/toolhub-mcp.ts has 2712 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/mcp/toolhub-mcp.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"989b6f952df9c351ddc4a045c16e748d85be5ca23c8bccb8cf603d55aa15398a"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ui/src/pages/home/components/network-logs.tsx: 2666 lines of code: packages/ui/src/pages/home/components/network-logs.tsx has 2666 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/network-logs.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ea1cc3def3164df63d172b835aa68e57e56530573324bbaed2abd0437092edf"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ui/src/pages/home/shared/i18n.tsx: 2556 lines of code: packages/ui/src/pages/home/shared/i18n.tsx has 2556 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/i18n.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1798087a99d3ee48765f3922364ae0af9cce7979858766fafcc9d9575fc9d12e"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/providers/account-service.ts: 2456 lines of code: packages/core/src/providers/account-service.ts has 2456 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/providers/account-service.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fff45f7b74926de5b6509214db21936a0f0846cb313366bd73c4eea9cfb4cbff"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/contracts/app.ts: 2361 lines of code: packages/core/src/contracts/app.ts has 2361 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/contracts/app.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ea03382f63b12ea138a1cf2c60318b0b183729dc6c12cfa0c3030ead149b0db"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ui/src/pages/home/shared/providers.ts: 2286 lines of code: packages/ui/src/pages/home/shared/providers.ts has 2286 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/providers.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d51614100091ce0614e65ab89454e8a1d6086b1dded6933ad74924c7581985b"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ui/src/pages/home/components/profiles.tsx: 2205 lines of code: packages/ui/src/pages/home/components/profiles.tsx has 2205 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/profiles.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"228223fa132bafaeaf079f69fbef574565dedaa332e1c2ab377f3aca980366a9"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/profiles/launch-service.ts: 1982 lines of code: packages/core/src/profiles/launch-service.ts has 1982 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/launch-service.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fb3598d63e93d4d8121a023f9c8f507fbf4c8b2ea416b4735c68719469f03ee"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/providers/probe.ts: 1951 lines of code: packages/core/src/providers/probe.ts has 1951 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/providers/probe.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7b3ddd5c3fa64e0cf5dd24cde6fc68452f7aa5266a188409fb5128310ad59d2"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/observability/raw-trace-sync.ts: 1742 lines of code: packages/core/src/observability/raw-trace-sync.ts has 1742 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/raw-trace-sync.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff75953d92f0369eeec2f458b0945c7aa2fcd8ec8e29298d2cdea43b8d0a4176"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/proxy/service.ts: 1730 lines of code: packages/core/src/proxy/service.ts has 1730 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/proxy/service.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcae5fe7366021aeebd3105d9176ff1fefbd8c8283ce3cde373e509a3637c8d1"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ui/src/pages/home/shared/profiles.ts: 1721 lines of code: packages/ui/src/pages/home/shared/profiles.ts has 1721 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/profiles.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a2f4f5fc3d88a8586b2491abfabae90e2fdebc58b3aa51a42e25a683549cf57"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/gateway/claude-code-router-plugin.ts: 1583 lines of code: packages/core/src/gateway/claude-code-router-plugin.ts has 1583 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/claude-code-router-plugin.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dd2f9860e456654858e0178469877298128a5a9d318b0ea425649a3dc8289e6"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/web/management-server.ts: 1461 lines of code: packages/core/src/web/management-server.ts has 1461 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/web/management-server.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"11eb5f2104f7eda66d8551a5bf9862d35486239ac7cc91f53478738bac3e6986"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/electron/src/main/ipc.ts: 1441 lines of code: packages/electron/src/main/ipc.ts has 1441 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/src/main/ipc.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"978a853887a96b2b6ff9bb03862a2c8f09d343429464eef471b34e16fca0d37d"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ui/src/pages/home/components/virtual-models.tsx: 1338 lines of code: packages/ui/src/pages/home/components/virtual-models.tsx has 1338 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/virtual-models.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8454564f11982019f6a1ea779577197273b3d6cdfa291f1f837f31dcc8539195"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/gateway/core-runtime/router-plugin.ts: 1317 lines of code: packages/core/src/gateway/core-runtime/router-plugin.ts has 1317 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/core-runtime/router-plugin.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2116489dfdf3f8a17133fdae92052d11e024403d4e37a1396ade5efd69bed905"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/gateway/request/pipeline.ts: 1293 lines of code: packages/core/src/gateway/request/pipeline.ts has 1293 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/request/pipeline.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b44da7aa170be70cd77092e48a6ac19d463ee41966184c1ee552553b89cda63"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/usage/store.ts: 1287 lines of code: packages/core/src/usage/store.ts has 1287 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/usage/store.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea20fe82f32bd4e6f23fea9896796df669a374b25a22f722d9a1e9dba4332b19"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ui/src/pages/home/shared/logs.ts: 1235 lines of code: packages/ui/src/pages/home/shared/logs.ts has 1235 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/logs.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"578b8f7641290d679310aef4afdff93db6d3e090aeb66b75434c82a181fe4d7d"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/plugins/service.ts: 1231 lines of code: packages/core/src/plugins/service.ts has 1231 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/plugins/service.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a15948d481bec728194152c195a6ff3bb2dcc99c7837df8c8894f14a3c8ff61"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/electron/src/main/electron-web-search-mcp.ts: 1212 lines of code: packages/electron/src/main/electron-web-search-mcp.ts has 1212 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/src/main/electron-web-search-mcp.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"be61b217a853fc8dd8ac38e942ceac4007a8ce2cf451e7f78ec1488ead78ca20"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/plugins/built-ins/openrouter-discount-provider-router.ts: 1163 lines of code: packages/core/src/plugins/built-ins/openrouter-discount-provider-router.ts has 1163 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/plugins/built-ins/openrouter-discount-provider-router.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"34bd5aadd726b1d04b22967c1e87e316a31043e90dc22e6ca1e39a83d0e612b3"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/mcp/fusion-vision-mcp.ts: 1161 lines of code: packages/core/src/mcp/fusion-vision-mcp.ts has 1161 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/mcp/fusion-vision-mcp.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d055a67972ed8cee92cb8416f8e8ad8e79e70e58d7e406c76a1b9d21730a5f4"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ui/src/pages/home/shared/virtual-models.ts: 1150 lines of code: packages/ui/src/pages/home/shared/virtual-models.ts has 1150 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/virtual-models.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"16a47195d1fedd983ff7e87f759969355f41cb16c5080a145876f8200a43bfec"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/gateway/upstream/executor.ts: 1147 lines of code: packages/core/src/gateway/upstream/executor.ts has 1147 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/upstream/executor.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c17ca9fbb594ff0b1f72a03c7022e35a1fd42598cc1b4c61dda1116ca807d34"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/observability/request-log-runtime.ts: 1146 lines of code: packages/core/src/observability/request-log-runtime.ts has 1146 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-runtime.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f4d10aab7554ca8d06bbdccf89122e9255abdbdc88f8adb54b09688e657a2a1"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/agents/codex/app-launch.ts: 1126 lines of code: packages/core/src/agents/codex/app-launch.ts has 1126 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/codex/app-launch.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1bd82d9ba753b81f6615c4e68a0af15fa90dd323732538738a6dada58c3f7b3"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/gateway/features/hosted-web-search/response-transform.ts: 1059 lines of code: packages/core/src/gateway/features/hosted-web-search/response-transform.ts has 1059 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/features/hosted-web-search/response-transform.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"02c39fa20ea9584080a5f8c5de2a2868752e5ab612145a21a21574b15d9d251f"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/cli/src/cli.ts: 1006 lines of code: packages/cli/src/cli.ts has 1006 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/cli/src/cli.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fada477f5074224786bbe21c54c9c4277bd0e71f716780866947473d38386b14"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/electron/src/main/built-in-browser.ts: 984 lines of code: packages/electron/src/main/built-in-browser.ts has 984 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/src/main/built-in-browser.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b43a388caaaa5d3bef0feeb3294c65ea08c15b1812924701342ee184b5b599c"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/proxy/system-proxy.ts: 910 lines of code: packages/core/src/proxy/system-proxy.ts has 910 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/proxy/system-proxy.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2507300c25133099ec8db6a94e72ec745344322f05d8c16efd74b4760eba6e20"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/gateway/core-runtime/supervisor.ts: 884 lines of code: packages/core/src/gateway/core-runtime/supervisor.ts has 884 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/core-runtime/supervisor.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"95db8559f0c0c8f6e62f43471f24b3e4644ce07e293eb330cb60fdc05d2afc27"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ui/src/pages/tray/shared.tsx: 880 lines of code: packages/ui/src/pages/tray/shared.tsx has 880 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/tray/shared.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee03488255f2ed6d5da989cbec602f289b819a3a041b9a0efe6f87e336f642dd"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/gateway/features/model-discovery.ts: 858 lines of code: packages/core/src/gateway/features/model-discovery.ts has 858 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/features/model-discovery.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"af25088eb4adbff9b0e023efe667c2c52c1fe55bbc6074e54b418a2952973abf"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/agents/local-providers/grok.ts: 853 lines of code: packages/core/src/agents/local-providers/grok.ts has 853 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/local-providers/grok.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"66ed76515f08195c2b76abfee8aaf17c7e6a45c6c973178a79b413b283ca024b"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/agents/local-providers/codex.ts: 829 lines of code: packages/core/src/agents/local-providers/codex.ts has 829 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/local-providers/codex.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3044b43bc6ac84f9c61dc6075f283fd9a1ad5a10bdf46c826c0bbd6572b6894a"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/gateway/core-runtime/config-compiler.ts: 818 lines of code: packages/core/src/gateway/core-runtime/config-compiler.ts has 818 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/core-runtime/config-compiler.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"077924c069105111348b92ecb486f045ba04783508aac29156f304eea76d98e8"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/contracts/deep-link.ts: 812 lines of code: packages/core/src/contracts/deep-link.ts has 812 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/contracts/deep-link.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe51637da97eab8ee6c11f89e1289d0014016ec9071ee5ecea622055979762da"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/config/config-repository.ts: 807 lines of code: packages/core/src/config/config-repository.ts has 807 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config-repository.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c904bae8f37bf1df275972a3e988b55ea9c77794abf9025778eadd267bfa575b"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/gateway/context-archive/protocol.ts: 797 lines of code: packages/core/src/gateway/context-archive/protocol.ts has 797 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/context-archive/protocol.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"69e8eb037cc574d3d20c9fec92f08d4276bb82e5f901f67a177d9c4e35248dd2"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/agents/codex/model-catalog.ts: 793 lines of code: packages/core/src/agents/codex/model-catalog.ts has 793 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/codex/model-catalog.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b06f9be3971cb389d238104e92b1530c300f4561d65d89981f6472ad89843ae7"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/gateway/application/gateway-service.ts: 780 lines of code: packages/core/src/gateway/application/gateway-service.ts has 780 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/application/gateway-service.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ab21a17c209c644f0a0e21eb4d1d3f1871190ad560a2ce96c0ff322016daabb"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ui/src/pages/home/components/share-cards.tsx: 778 lines of code: packages/ui/src/pages/home/components/share-cards.tsx has 778 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/share-cards.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d31727c59c574ceb737b773f2660d78afd1918886a2817dc70e05706ff42d3bd"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/gateway/context-archive.ts: 773 lines of code: packages/core/src/gateway/context-archive.ts has 773 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/context-archive.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1638c1ebb043c67d62829995ddef401fa278cb5f0f22ca6b054b96164f7e5eb1"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/electron/src/main/tray-controller.ts: 772 lines of code: packages/electron/src/main/tray-controller.ts has 772 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/src/main/tray-controller.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7932cabdbce32fe455ec7b03dcac8ca235530843989e215715fc59fa5db3472"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/agents/local-providers/kimi.ts: 731 lines of code: packages/core/src/agents/local-providers/kimi.ts has 731 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/local-providers/kimi.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ce742b40cb8c76fca6e777fffd6848077e8c3570f8a60a029cab6beddc9193e"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/gateway/features/hosted-web-search/discovery.ts: 722 lines of code: packages/core/src/gateway/features/hosted-web-search/discovery.ts has 722 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/features/hosted-web-search/discovery.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a58e05c5ab6b837345eb2c73e925ae802f43431a3907585258e3ce4296682709"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/mcp/fusion-config.ts: 718 lines of code: packages/core/src/mcp/fusion-config.ts has 718 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/mcp/fusion-config.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e266a7bdb42849c1c2762f43ea59e72b76ac9c58c13b18c0da18905477277eff"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ui/src/pages/home/components/routing.tsx: 716 lines of code: packages/ui/src/pages/home/components/routing.tsx has 716 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/routing.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e10a9d692caa61f7cb757c4161ac6eefb84e9c998eb086267c31b62cefd0fa29"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/media/service.ts: 715 lines of code: packages/core/src/media/service.ts has 715 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/media/service.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f389f96f0e74cb1f9aadb6fa2f6bdb30089f89332205d97ea25968318d66b4c"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/electron/src/main/claude-design-window.ts: 711 lines of code: packages/electron/src/main/claude-design-window.ts has 711 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/src/main/claude-design-window.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"90353609cf39e3bfb4e9055896977dd76646cd23672e1a8cb32107e533bfbe4d"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ui/src/pages/browser/main.tsx: 700 lines of code: packages/ui/src/pages/browser/main.tsx has 700 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/browser/main.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a138c94077bee1ccb132a7f129d5db740b3f62494f03138858e0e3c0a002f4f"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/providers/model-catalog.ts: 688 lines of code: packages/core/src/providers/model-catalog.ts has 688 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/providers/model-catalog.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"59b5213c0bebc5970200ccbf97921c0ee27aa52d6957e3049a78aff05d70cf6f"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/gateway/features/context-archive-continuation.ts: 681 lines of code: packages/core/src/gateway/features/context-archive-continuation.ts has 681 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/features/context-archive-continuation.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a214aebe3e615e4fc7afbd5324337c3a1a980d0f86347e5a50dbf58dd746a4f3"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/agents/codex/media-preview-bridge.ts: 676 lines of code: packages/core/src/agents/codex/media-preview-bridge.ts has 676 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/codex/media-preview-bridge.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"57b0d1777440380dc2a2b22e88fa91a58b9bd29ceabaf8b0daf8b4812ce00a08"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/electron/src/main/windows.ts: 665 lines of code: packages/electron/src/main/windows.ts has 665 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/src/main/windows.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad077c445358b18a18e307482f72e927313b9971b2130e6958c96042d3dfca25"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ui/src/pages/tray/components/widgets.tsx: 654 lines of code: packages/ui/src/pages/tray/components/widgets.tsx has 654 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/tray/components/widgets.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d446ef0504d6aedd4b25d71718b3f7eda18f35cdc953705043eb9d89f453008d"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/agents/local-providers/opencode.ts: 645 lines of code: packages/core/src/agents/local-providers/opencode.ts has 645 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/local-providers/opencode.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d9e0a4568a9df81a2fd92b5a4129da201e73b3c611e621bb74c73246826a948"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ui/src/pages/home/shared/extensions.ts: 643 lines of code: packages/ui/src/pages/home/shared/extensions.ts has 643 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/extensions.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"482af443d994cc2926bfc22b632c53d53c5e2e9612bff30d7e0dbb7cc6b25619"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/providers/model-auto-refresh.ts: 642 lines of code: packages/core/src/providers/model-auto-refresh.ts has 642 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/providers/model-auto-refresh.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3d8fd43c40803445b57f7fe57ecad28da628fec9b4d31446645e5afa8d072db"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ui/src/pages/home/shared/routing.ts: 603 lines of code: packages/ui/src/pages/home/shared/routing.ts has 603 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/routing.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1816400f038a2f6ee2f63a935b7092f2a93b5e8ca850b46f2372d62af87c25a4"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/plugins/marketplace.ts: 600 lines of code: packages/core/src/plugins/marketplace.ts has 600 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/plugins/marketplace.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ac8caa2d28d4fbc6e4ce5c9d7f1a40ddf1b955c3836770832fffaee4b67b7c1"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ui/src/pages/home/shared/common.ts: 573 lines of code: packages/ui/src/pages/home/shared/common.ts has 573 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/common.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7a20310932a7277f524c8a89fac67e3b6eb495086116050dbd07fbe77809eeb"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ui/src/pages/home/shared/external.tsx: 568 lines of code: packages/ui/src/pages/home/shared/external.tsx has 568 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/external.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec2493baabd3e2bc0a44fea24b4bf44bae1652a49381018b9f4372a5e2a7394b"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ui/src/pages/home/shared/controls.tsx: 567 lines of code: packages/ui/src/pages/home/shared/controls.tsx has 567 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/controls.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5018bed23d6ca340e8cc3a44f49a0dc07989b8fb41db354fbd43699ee0c7fc36"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/gateway/remote-control-service.ts: 561 lines of code: packages/core/src/gateway/remote-control-service.ts has 561 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/remote-control-service.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"68716827013ff1e4d95cbcee14a4f17f5c45c7a9b6bf576c6f49c2773cbc577f"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/mcp/tool-discovery.ts: 538 lines of code: packages/core/src/mcp/tool-discovery.ts has 538 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/mcp/tool-discovery.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cda2502ce48a44109d4401233c9b38b36d1960a099effd7096bf861f88ef7168"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/electron/src/main/chrome-login-import.ts: 534 lines of code: packages/electron/src/main/chrome-login-import.ts has 534 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/src/main/chrome-login-import.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2128dabc21d3dbc16a67538e8ebfd9f3acc9d14976df3b201357f12b93a932b"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/observability/stream-experience.ts: 527 lines of code: packages/core/src/observability/stream-experience.ts has 527 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/stream-experience.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7f4609ba09c5366a6925f573c827adbdb7d2a1ae9f9c972c1347954d56f5bb2"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/models/pricing-service.ts: 508 lines of code: packages/core/src/models/pricing-service.ts has 508 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/models/pricing-service.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6398d753cc52026fe25bf8bd56583282710722348a4d62b4fc6f1f5164b9d1f0"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/agents/bot-gateway/qr-login-service.ts: 501 lines of code: packages/core/src/agents/bot-gateway/qr-login-service.ts has 501 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/bot-gateway/qr-login-service.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a20fc3dc7966d66a2c33bc8e29612d18ca25ba876263c023dc475ff05f32089"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/agents/claude-app/gateway-service.ts: 490 lines of code: packages/core/src/agents/claude-app/gateway-service.ts has 490 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/claude-app/gateway-service.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e4fc80a70c05c100ed354c1fbed7278e1181edefc2e01a548ce95d39c183dad"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/gateway/features/hosted-web-search/evidence.ts: 481 lines of code: packages/core/src/gateway/features/hosted-web-search/evidence.ts has 481 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/features/hosted-web-search/evidence.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4df27d7df525b303dd078515616a8b6f3e83f3e4d32cecd60fc7d3cd7efc977c"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/providers/runtime-topology.ts: 471 lines of code: packages/core/src/providers/runtime-topology.ts has 471 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/providers/runtime-topology.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"23fa250cfd6a001de75e518e5a93575dad694bdf473290acb54b630255454962"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/gateway/model-catalog.ts: 448 lines of code: packages/core/src/gateway/model-catalog.ts has 448 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/model-catalog.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"32222e9046b05830fe6ed1d9bfa7f47c2275c4a915142da1a5543ac1668d2a52"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ui/src/pages/home/components/layout.tsx: 446 lines of code: packages/ui/src/pages/home/components/layout.tsx has 446 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/layout.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a5f637c94033da8e611b316ce07ee59f22a984b694e2ecf812105e147500a5d"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ui/src/pages/home/components/extensions.tsx: 442 lines of code: packages/ui/src/pages/home/components/extensions.tsx has 442 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/extensions.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2956653007f3892bedbc34a1ee1d46df98110ef7dd0ad039f898c8c3a286b61"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ui/src/pages/home/shared/types.ts: 438 lines of code: packages/ui/src/pages/home/shared/types.ts has 438 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/types.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d7a1f4f7b405b9a445e068cd820032c24277aaa0c6d8f7444c49f07c79c9229"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/gateway/features/codex-patch-bridge.ts: 437 lines of code: packages/core/src/gateway/features/codex-patch-bridge.ts has 437 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/features/codex-patch-bridge.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2172a0795d55550fc7d6f49c9330714c97edcbb4fd7a98168b345d05ce39c79f"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/agents/local-providers/claude-code.ts: 415 lines of code: packages/core/src/agents/local-providers/claude-code.ts has 415 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/local-providers/claude-code.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"88eccd76c8b4b0de046eff2d731b2e31390a08cad50ba5ed94b84c0522e4c81b"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/gateway/core-runtime/local-agent-auth-provider-hook.ts: 414 lines of code: packages/core/src/gateway/core-runtime/local-agent-auth-provider-hook.ts has 414 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/core-runtime/local-agent-auth-provider-hook.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2690472813de0f58c4bbc991b4fc7d00725d69f5c19018874d008ad293ccce7"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ui/src/pages/home/shared/options.ts: 413 lines of code: packages/ui/src/pages/home/shared/options.ts has 413 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/options.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0feff624677a10c5023f61f8ae9f9900f3b50e08e24afa1f2f44a61356ed893"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ui/src/pages/home/components/model-selector.tsx: 407 lines of code: packages/ui/src/pages/home/components/model-selector.tsx has 407 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/model-selector.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a85d2cca4a12954ec58c926a8076a107df7a79fe6c86b9fc61e22dcf35e1ae6"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/core/src/profiles/launch-core.ts: 405 lines of code: packages/core/src/profiles/launch-core.ts has 405 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/launch-core.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"45b8ef4faff93e82f034ae2228da054ac3bb43016fa5e0eb4e7386424b0f8f4a"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ui/src/pages/home/components/onboarding.tsx: 404 lines of code: packages/ui/src/pages/home/components/onboarding.tsx has 404 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/onboarding.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b67621332ba71dff0292465e9679c0f1edd55ec368127c87d5ab977012a252d"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ui/src/pages/home/components/api-keys.tsx: 401 lines of code: packages/ui/src/pages/home/components/api-keys.tsx has 401 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/api-keys.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f59613176585ecf6616d72f6eeeff791270f686135c8d7429fd6a054d5cb38e"}},{"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":"packages/ui/src/pages/home/App.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"90a95b3f4b26bae0c716dd7ec0bafa5eecf8813f236d3913a248823f5a1b684d"}},{"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":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a47df9096b3a764acbfed95e3c177197a31ead72938f53b42c10df21b4ea42fd"}},{"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":"packages/ui/src/pages/home/components/settings.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"67155eef78b10943079352626f4208d5a2e421a83cf2e1416dde8c735c24c18f"}},{"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":"packages/core/src/mcp/toolhub-mcp.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"778de54d66c5b81fc3a828ecd3f6d76a355229cfcedfdabe319a848c4a12037e"}},{"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":"packages/electron/src/main/ipc.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"22858db1736e690f73a61f363ce5f52006a0bf50ef0c21b59006a37c01c93ab1"}},{"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":"packages/electron/src/main/electron-web-search-mcp.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"59bea8b197f71e354b1e9284f731f7d6c880a0a559c965541cf88f1759fe305c"}},{"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":"packages/core/src/mcp/fusion-vision-mcp.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a1dfc46a50439e40a299af6de7b59e7709fd605ac88acc2723bddf715909cbf"}},{"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":"packages/cli/src/cli.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbe1ac5c5537ec1d35ec6639da665058449aace1e2861c4ea56220fe261bb4c8"}},{"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":"packages/electron/src/main/built-in-browser.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"001f901b6aa9f1bfce124f8c23af82c404efef21d2c195ae91be41e863ea2546"}},{"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":"packages/electron/src/main/tray-controller.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"841b8a76e6b7d0ebf91737923c5b17d0ddfbda10e0b23eea8646135d27c4a5c9"}},{"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":"packages/ui/src/pages/browser/main.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"217a200fea4cd95170212eacabd2b246bbb91ff33d39ab65700feb1fd2a2fe84"}},{"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":"packages/electron/src/main/windows.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"91623f10c375bf13d9b71812ae99e672c4b630ad516067a0581e0a443dca4960"}},{"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":"packages/electron/src/main/chrome-login-import.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba4b6c6c48ec90d3aa9ff76b62efd85f2c4faa74d7ef710146e273b883d9b8ef"}},{"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":"packages/electron/src/main/deep-link.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"af3c5797ac959ff166907868249cbdc96e1285e99aac1d966651a23bc555962f"}},{"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":"packages/core/src/routing/route-script-worker.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0889ac5bf6c25c767599f584b8209f3e8162b7a9e7d50164545fa268f17287d"}},{"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":"packages/electron/src/main/update-service.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ef7fa4e5046238a4ac9bd550802f6c457b74f1ff496f320ddf6559deccf028b"}},{"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":"packages/electron/src/main/main-app.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cf1e8634df1a783975d423126afc2e04caa5156fd32f13625b512e04cad3bfb"}},{"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":"packages/core/src/observability/request-log-worker.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"af1c12c6e44518de930d274abf0a9ca37afca867f15dba0919bce82b9e392d31"}},{"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":"cdn/public/ccr-provider-buttons.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"009975a13273aa14aab2ec9e735900557873547e661b48f788731176ad7aaaa7"}},{"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":"extension/chrome/background.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ba42affa70bcd28e461c13f294bba8e8f51b28671b89e29b0b85e41e2b3c786"}},{"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":"packages/core/src/mcp/fusion-tool-fallback-mcp.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"23de229c3e49d2d56cef343901f7f9a12810dd0f319a3485495e785ac518d023"}},{"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":"packages/electron/src/main/preload.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3057565e4dd3832df1bf85af94e9217120c02cb01071bea3ccdf9500061b684a"}},{"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":"packages/core/src/mcp/media-tools-proxy-mcp.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bc7857293aad0f6ee78f2f42b6b7e432ff6b4395d002ccc9b112c8fd74ec9fb"}},{"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":"packages/electron/src/main/app-menu.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"17164b245f0533f5eb8c9f32ca9d71bb7ac742a1173bde159a625eb1312a7c5b"}},{"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":"packages/core/src/mcp/browser-web-search-proxy-mcp.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0677b22f30b32d011425029ac7e28fecc696c1a679c2fc09b08633069ee8bd7b"}},{"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":"packages/core/src/entrypoints/server.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c327fef43e7ee7d6462cb5d39ed1086d4eb33e78218761cce8a0884c25eafe71"}},{"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":"packages/electron/src/main/bot-gateway-qr-window-service.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"91b2ebcba03c1379041a5c1bbabc475778c292bbeb3216290214613cde12dac3"}},{"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":"packages/core/src/gateway/core-runtime/gateway-bootstrap.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"880d5be2ac2f30c131967b35d135eb815910bc94140ae5f7fa6300d7afeda4e8"}},{"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":"packages/ui/src/pages/home/shared/log-body.worker.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"60406c75807c7cc3c77134ccd4040ebfe846511f157cd516216a8030e5157c41"}},{"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":"packages/electron/src/main/main.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8be70de4db95388ca359d68dba7de12c9176fff57ab32d991d3fb72309aaccc"}},{"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":"packages/ui/src/pages/home/components/dialog-stack.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b14e98986bb67448350dc88b33945bb82651e24ced10be01d89650fef64420ec"}},{"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":"extension/chrome/confirm.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"930232d7544e229bd4b9d954bedb7886047f9b4f46bd92433e7af3f147737fba"}},{"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":"packages/ui/src/lib/baseui-provider.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"51965c3a61878dd66e0eeede345b2cee3f44c4f749adad2b4723d326eaca1af3"}},{"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":"packages/electron/src/main/browser-preload.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"76ec6897999d620e8bccb8260166fb51a53897828acd6de8e8c991c297c5f94c"}},{"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":"packages/ui/src/pages/home/main.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f8eafa425890a01bda4f660f6e417d434f48db09704a4ed45186a7dd9b90751"}},{"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":"packages/ui/src/pages/tray/main.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6672d952c37ab3cc2206a4eb1ca59ba542f7df2e1823d1c51ea5a5b12b6a20d7"}},{"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":"packages/electron/bundled-plugins/claude-ship/index.cjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0fb51a4fa5947e0a7e799db00ac9769726eaf94ff0e50d574cc3cb9aa1592b7"}},{"ruleId":"R6","level":"warning","message":{"text":"No lint script: test \u2713 \u00B7 lint \u2717 \u00B7 typecheck \u2713 \u2014 read from this repository\u0027s package.json scripts and corroborated against its CI workflows. A script counts when its name or command matches the step: \u0060test\u0060 for the suite, \u0060lint\u0060 or \u0060prettier\u0060 for linting, \u0060typecheck\u0060/\u0060type-check\u0060/\u0060tsc\u0060 for type checking. \u2717 therefore means no script or CI step under those names was found, NOT that the step is absent from your pipeline \u2014 a task invoked by a runner this check does not read, or named something else entirely, is not seen and is worth confirming before acting on a cross. A \u2713 means the wiring is DECLARED \u2014 a script or CI step under those names exists. It is not a statement that the step passes, or that it runs at all: nothing here installs a dependency or executes a suite."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"bc8e67e81453cf5399dd04786d18b232180426b135169175fee670bdd83ccb03"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~1264 LoC): no import path from any entry point (22 application, 10 tooling, 182 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":"packages/core/src/mcp/fusion-vision-mcp.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8965bb68e0964d8ca4c2a564d0154e830fc14444a902be87fb477635a9cbad1"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~395 LoC): no import path from any entry point (22 application, 10 tooling, 182 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":"packages/core/src/routing/route-script-worker.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"17e283142a4a03d84199bcfa12bb7a97755f50ab517f2614e6816ed805bef684"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~308 LoC): no import path from any entry point (22 application, 10 tooling, 182 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":"packages/core/src/observability/request-log-worker.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"06e204a465e87c96322b8c70b734e133040f85c48ad03416d72bf242b38aa952"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~308 LoC): no import path from any entry point (22 application, 10 tooling, 182 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":"packages/electron/bundled-plugins/new-api-account/index.cjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ce05a63778bfe602314d202386bb89344c0d1eb3d868529b2a35e5457d71502"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~238 LoC): no import path from any entry point (22 application, 10 tooling, 182 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":"packages/core/src/mcp/fusion-tool-fallback-mcp.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"75eb94d7729ee0126bfb4e94e2a88cbbd602207152c0e247343528fc2a3bc1e4"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~214 LoC): no import path from any entry point (22 application, 10 tooling, 182 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":"packages/electron/src/main/preload.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f94ece19711c0ad87e4a542f231f104c14326e821be91e0bb291585d8c632526"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~205 LoC): no import path from any entry point (22 application, 10 tooling, 182 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":"packages/core/src/mcp/media-tools-proxy-mcp.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eb7504c514e5daf12fb428b931d70bf965173e1f18f9b3ec8a03d00fcfe5e98"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~188 LoC): no import path from any entry point (22 application, 10 tooling, 182 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":"packages/ui/src/web-client-bridge.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"505da5860c8f368031026c8a84b215e0daf9bbd2e149772f46b6563977ab28d6"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~146 LoC): no import path from any entry point (22 application, 10 tooling, 182 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":"packages/core/src/mcp/browser-web-search-proxy-mcp.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e8dba1abc6cc3fe1c90bbb634707fecd418332ae8f90f19d2a06a184ab66ee4"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~115 LoC): no import path from any entry point (22 application, 10 tooling, 182 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":"packages/core/src/gateway/core-runtime/gateway-bootstrap.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f543242ece3914c2d2216596afcd42d4842123e49c645cbd232cc6b7f28be4a3"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~99 LoC): no import path from any entry point (22 application, 10 tooling, 182 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":"packages/ui/src/pages/home/shared/log-body.worker.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"80c0df1ed94798d884517a3b1ef13bd9c324136e177e7a76ce66d0c2fa609596"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~22 LoC): no import path from any entry point (22 application, 10 tooling, 182 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":"packages/electron/src/main/browser-preload.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"91892ff68d0b107793f23d0e1b7b61218035b1b4f5b5e5f651ece5ba2ecbfa99"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~1 LoC): no import path from any entry point (22 application, 10 tooling, 182 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":"packages/core/src/proxy/undici-proxy-agent.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"84d0f1301699d25a9098a0bb57a4a8a28e89b1b8521820ebe46e42c9a587ac03"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027findInstalledZcodeAppExecutable\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/codex/app-launch.ts"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"63153030751f6e19bf58b75848230f5a33ba055d51805cb66e768255c8db7c23"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027zcodeModelCatalogJson\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/zcode/model-catalog.ts"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f782bc2de1acd0a18248a6b4d33dcb7ed86bb2bcd35231133ade67c94447791"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027GROK_MEDIA_MCP_SERVER_NAME\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/contracts/app.ts"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"b106ea12854d3b78e62cb2b6611abc6da9778c77685991f73e593d06ddddbb2d"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027providerDeepLinkHost\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/contracts/deep-link.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"a38ac38ee01da4f612acc70569faf9df27d8566083e539bb8dca58d886c70021"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027CcrLiveTokenRateConfigMessage\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/core-runtime/router-plugin-contract.ts"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb1e8e0a02cd38fb24a67e2ce3b4dcb33595e0e46d2f3462b3906c738863e8cb"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027CcrLiveTokenRateSnapshotMessage\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/core-runtime/router-plugin-contract.ts"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc20d4b9b4f25f59c5cf563ab0a894d82b5678d9fedf1dfdf022e2cfae3d0282"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027CcrRouterPluginRouteResponse\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/core-runtime/router-plugin-contract.ts"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"5420e5cd2f8e4160213600bb5f4a8e7a42c3db9e9b02c085d28cdb1f551c6360"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027decodeCcrRouteFallbackHeader\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/core-runtime/router-plugin-contract.ts"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"8172a13fa26972979c41ea445be04cacc794b81889f16950a65deb4f1fa294b6"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027DEFAULT_RETRY_AFTER_MS\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/internal/clock.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"df63c1a752cbd480046511143d8e22160cf86ced205d8ad00924e6388d7433ba"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027apiKeyLimitCounterRetentionWindows\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/internal/shared.ts"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"084e040ce94a1cc07d9e11fce2487ac22323123ec93491874b7f6b5976f71909"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027privateDirMode\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/internal/shared.ts"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fd07b2f7f02d011c5396541937768f9c59bb42defd451e3506bbd8114fd6752"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027privateFileMode\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/internal/shared.ts"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"a253ffd432d8570edfe646c3600c14862b9cd36411e120d1a23ec1960fa2dd94"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027claudeCodeEffectiveMaxInputTokens\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/model-catalog.ts"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"474e134e290c534d8026d1721619c6ae237b35b839137f2d48732a43636a937e"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027modelCatalogReasoningEffortConfig\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/model-catalog.ts"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d256d7a53f721d27e83ad0ac5d1f3c23ec80781cab59974435bf862d5989cfb"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027broadcastWindowsEnvironmentChanged\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/platform/windows-system.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0cff6d4d1547b4a148efc552c31f049db1696ebb07ea20509a156cd9b512e49"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027ProfileModelAllowlistConfig\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/model-allowlist.ts"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"39e3fd90e00709ca26af281b56f4b55f1f440f8c6505d5acea0887f1b80e50ce"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027readProxyCertificateSerialNumber\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/proxy/certificates.ts"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"177810fed8f941a71812077f7e7ba0f0198ec68cf2482c70f044e47fabcccedd"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027isSafeRouteReadPath\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/routing/rewrite.ts"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"67f5fcc194235056361de9ab8e6ad9753bb5f4a69343762db209f3f537ae55a9"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027formatJson\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/ui/src/pages/home/shared/index.tsx, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/ui/src/pages/home/shared/index.tsx in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/common.ts"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"32c2608d9f67419126b2de8ef0eb86f28babf783f9fa0dc32a46595df2daaac1"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027metricToneStroke\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/ui/src/pages/home/shared/index.tsx, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/ui/src/pages/home/shared/index.tsx in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/common.ts"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a9ae4ad729e4e78b728633ccf378ae8e5cbf0717bc613c199ab77b5a7643b8c"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027MetricCard\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/ui/src/pages/home/shared/index.tsx, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/ui/src/pages/home/shared/index.tsx in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/controls.tsx"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0d9f81aa27ceb5fe85836a24a44a12da556a342e20c20c5d4e15e45668bad5c"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027systemStatusIconClass\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/ui/src/pages/home/shared/index.tsx, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/ui/src/pages/home/shared/index.tsx in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/controls.tsx"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"50c44ee68d0d2cbbe48ccfdf9e033cf634a922cf846ef71b107dfc66b1172d47"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027systemStatusSegmentClass\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/ui/src/pages/home/shared/index.tsx, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/ui/src/pages/home/shared/index.tsx in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/controls.tsx"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2a6282fd930b13f8600ae1366b34ca703bd005a5f768d898a0d94967b71a59b"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027pluginRuntimeSurfacesEnabled\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/ui/src/pages/home/shared/index.tsx, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/ui/src/pages/home/shared/index.tsx in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/extensions.ts"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"7660a5528231733392122c3a53cdf86b4d9da243eee7098b6b95ca15eea2e39c"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027providerSelectOptions\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/ui/src/pages/home/shared/index.tsx, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/ui/src/pages/home/shared/index.tsx in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/extensions.ts"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"1183162d0a3430ba7fa399249135f4f95acbd3f683d5543386b5181bb3a96a51"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027uniqueExtensionKey\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/ui/src/pages/home/shared/index.tsx, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/ui/src/pages/home/shared/index.tsx in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/extensions.ts"},"region":{"startLine":700}}}],"partialFingerprints":{"codehealthFindingId/v1":"d74e554f4f29356ee970c9b2d6df165e527814a73c4e83c9a4e3e9fa49074c00"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027stringListValue\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/ui/src/pages/home/shared/index.tsx, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/ui/src/pages/home/shared/index.tsx in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/extensions.ts"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"2401236a8e688f4c54855f0999b200e9aafafb32f688a927991ded2ee61c8925"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027logBodyKey\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/ui/src/pages/home/shared/index.tsx, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/ui/src/pages/home/shared/index.tsx in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/logs.ts"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"238e5d3288ef54a21ebc4129aa8003abe40f0b1967c64da11faddbc5a5bb03b5"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027jsonContainerEntries\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/ui/src/pages/home/shared/index.tsx, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/ui/src/pages/home/shared/index.tsx in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/logs.ts"},"region":{"startLine":1356}}}],"partialFingerprints":{"codehealthFindingId/v1":"22be93e9c8593566b8a128b22cb7a05ecd5f567679a1e6c45927d0d49b1deb63"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027createInitialLogJsonExpandedPaths\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/ui/src/pages/home/shared/index.tsx, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/ui/src/pages/home/shared/index.tsx in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/logs.ts"},"region":{"startLine":1363}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b0ba95b88d4ec527ade44d82c15d58363fd20394f5596b8032722af060540d6"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027jsonContainerSummary\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/ui/src/pages/home/shared/index.tsx, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/ui/src/pages/home/shared/index.tsx in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/logs.ts"},"region":{"startLine":1371}}}],"partialFingerprints":{"codehealthFindingId/v1":"83b48d06504610cd1a5cfac366ccd33deb9f65af19dcb7a607bec24a645138db"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027gatewayEndpointFromConfig\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/ui/src/pages/home/shared/index.tsx, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/ui/src/pages/home/shared/index.tsx in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/profiles.ts"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cc17692abe111539aed6a952f238b798b7815a7e02dc6f5a8b1570ce0cb65f5"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027providerAccountMeterValidityProgress\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/ui/src/pages/home/shared/index.tsx, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/ui/src/pages/home/shared/index.tsx in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/provider-accounts.ts"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"5895002a891cf156f7db80b9fbd6dc1994d98f276befe04bbb338aa168cc0b8e"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027providerAccountBadgeVariant\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/ui/src/pages/home/shared/index.tsx, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/ui/src/pages/home/shared/index.tsx in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/provider-accounts.ts"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5686749e7e57f6a80fc94edac0f51c802f5f81f8a13a01817faa4710eeaa534"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027routerRuleRewriteFromRule\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/ui/src/pages/home/shared/index.tsx, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/ui/src/pages/home/shared/index.tsx in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/providers.ts"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ab4182a77c117f17416f36ecbde46125fc8469e9ead85a58f524d88b1da5b41"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027routerRuleMatchesQuery\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/ui/src/pages/home/shared/index.tsx, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/ui/src/pages/home/shared/index.tsx in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/providers.ts"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"315dcbb870a9439b99c6897bd1457bd1ed90bf85ac70251206fddea72bc8a042"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027resolveProviderDeepLinkIcon\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/ui/src/pages/home/shared/index.tsx, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/ui/src/pages/home/shared/index.tsx in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/providers.ts"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"288e80df827a645744939c54b744cf2d30d3ca5e27545ca4beb869d6de41248f"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027providerCredentialImportExample\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/ui/src/pages/home/shared/index.tsx, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/ui/src/pages/home/shared/index.tsx in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/providers.ts"},"region":{"startLine":1027}}}],"partialFingerprints":{"codehealthFindingId/v1":"77a1aae0564b6d2a23621b06d8fb1558b079c2c289780c6ff58f27c570a5e4d5"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027splitModelTagInput\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/ui/src/pages/home/shared/index.tsx, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/ui/src/pages/home/shared/index.tsx in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/providers.ts"},"region":{"startLine":2404}}}],"partialFingerprints":{"codehealthFindingId/v1":"01efb3211b32b897ac18a54f63b701f21549e5f9fcbddc062d7540049f1a6152"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027formatProxyTargets\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/ui/src/pages/home/shared/index.tsx, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/ui/src/pages/home/shared/index.tsx in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/routing.ts"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d37cac9f3c90fbcf9dd4bda0124bb84b52f34c77b28bb52055224561fd153d6"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027parseProxyTargetsText\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/ui/src/pages/home/shared/index.tsx, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/ui/src/pages/home/shared/index.tsx in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/routing.ts"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"5113615e3086b5e060a91a7d0f53dc7aa276a88ab51224a5dab2df95af2ac8a4"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027buildPluginRoutingRows\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/ui/src/pages/home/shared/index.tsx, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/ui/src/pages/home/shared/index.tsx in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/routing.ts"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e8ce2a6dd3342dfffaa72db5aa0a7515006c21147bd7b12d727a69bad2d1a69"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027buildPluginRoutingConfigItems\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/ui/src/pages/home/shared/index.tsx, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/ui/src/pages/home/shared/index.tsx in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/routing.ts"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a5238c8539e3f1432dee5c5d268f7575d7391b90e617173596f7ac3f0718a63"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027proxyRestartMessage\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/ui/src/pages/home/shared/index.tsx, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/ui/src/pages/home/shared/index.tsx in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/services.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"f089031c1a0e4d2f513dded325c11daa0c2d85b4643bb29cffc73cf86baf229e"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027endpointDetails\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/ui/src/pages/home/shared/index.tsx, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/ui/src/pages/home/shared/index.tsx in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/services.tsx"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5ef332b3266a8126a3331bca0d0ba3c0659ddfe154184c3fe200a973ed6409c"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027StatusBadge\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/ui/src/pages/home/shared/index.tsx, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/ui/src/pages/home/shared/index.tsx in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/services.tsx"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"91dd5a5e39546f8c95e9191b81702f06656e31e90f692e9b7bf2203cc5e6dddd"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027certificateStatusLabel\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/ui/src/pages/home/shared/index.tsx, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/ui/src/pages/home/shared/index.tsx in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/services.tsx"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"11e6668a9c8ac51c34693e0b14ff9ad1d5f0a4add577df4780b87878c942ec5d"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027certificateStatusVariant\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/ui/src/pages/home/shared/index.tsx, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/ui/src/pages/home/shared/index.tsx in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/services.tsx"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"762845b38dd67355381ddb1365b657558da5ad10d7a74f496b41ea416522b99a"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027formatProxyCertificateInstallMessage\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/ui/src/pages/home/shared/index.tsx, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/ui/src/pages/home/shared/index.tsx in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/services.tsx"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eee7994f73c48eb03f69ba65a8fa376d9bc41efe6f018c9c67ce934737b1aef"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027proxyCertificateTrustSteps\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/ui/src/pages/home/shared/index.tsx, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/ui/src/pages/home/shared/index.tsx in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/services.tsx"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec52588b5f7b06b676a205a38cb97fe787b1bba78098fbacac392cf6d9cc4616"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027TrayComponentOptionGroup\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/ui/src/pages/home/shared/index.tsx, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/ui/src/pages/home/shared/index.tsx in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/types.ts"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6b853d3e58391ee6e1a87c3a408742e487e831a49aa22e467e3f64838a4599a"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027TrayModuleOption\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/ui/src/pages/home/shared/index.tsx, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/ui/src/pages/home/shared/index.tsx in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/types.ts"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f086b3ec818685591b7e8661a886d98a6a60031a585fdd8375dd85cc0813c3b"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027ProviderConnectivityCheckModelResult\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/ui/src/pages/home/shared/index.tsx, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/ui/src/pages/home/shared/index.tsx in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/types.ts"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"153674cf740c1a19988d8455fa63ec0cac4c5f5c52037a0a6547be855fc3a59e"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027ServerActionBusy\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/ui/src/pages/home/shared/index.tsx, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/ui/src/pages/home/shared/index.tsx in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/types.ts"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"25433861624904cf959a28964d2326c4fcb3d09b34000f7dc9e19f0c232d0f68"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027virtualModelMatchModeLabel\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/ui/src/pages/home/shared/index.tsx, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/ui/src/pages/home/shared/index.tsx in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/virtual-models.ts"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c57cd6feda3684dbee7de923592b12484742211fe7f0dece89293489ac54262"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027virtualModelMatchFromDraft\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/ui/src/pages/home/shared/index.tsx, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/ui/src/pages/home/shared/index.tsx in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/virtual-models.ts"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"78647b027e307629a13433b5220ed4c69999c3e4f63767d34753b88e51ac1f7d"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027selectedFusionToolName\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/ui/src/pages/home/shared/index.tsx, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/ui/src/pages/home/shared/index.tsx in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/virtual-models.ts"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cae97a68fbe09f783b9507e16554f3ed5a4f1a481131005f7e0de0ea91a1e19"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027selectedFusionToolNameFromProfile\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/ui/src/pages/home/shared/index.tsx, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/ui/src/pages/home/shared/index.tsx in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/virtual-models.ts"},"region":{"startLine":855}}}],"partialFingerprints":{"codehealthFindingId/v1":"30c787ded975916d378ced6fd2a6cc5e7a8d8619e153c30258583cb44e86e9c5"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027createMcpToolOptions\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/ui/src/pages/home/shared/index.tsx, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/ui/src/pages/home/shared/index.tsx in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/virtual-models.ts"},"region":{"startLine":951}}}],"partialFingerprints":{"codehealthFindingId/v1":"738bc3dc92e5322be7d470aebbf97b0f534cf051899e47b36f1de105c5104042"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027parseKeyValueText\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/ui/src/pages/home/shared/index.tsx, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/ui/src/pages/home/shared/index.tsx in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/virtual-models.ts"},"region":{"startLine":1186}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a89c03611cd420fe079759d1e6a6f0d6cec593f6fa2b7f68ce542f522574ee8"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027formatKeyValueText\u0027: Nothing ultimately consumes this binding: its only referrer is the re-export in packages/ui/src/pages/home/shared/index.tsx, whose re-exported name has no consumer either. Removing it is therefore not a one-file change \u2014 drop the re-export line in packages/ui/src/pages/home/shared/index.tsx in the same commit, or the barrel will import a name that no longer exists."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/virtual-models.ts"},"region":{"startLine":1219}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9a1da0863f75b8f2a513cf71d726664e034a047fb9f7b48cd4595a3de3af86c"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027trayMascotIconUrls\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/tray/shared.tsx"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"510bcce2185b0558d0228b138ae01179e550f573bf3eb0200781f7824560d396"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027isTrayMascotIconPreference\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/tray/shared.tsx"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"66fc5b36a0e3420c12b6b4e12d2b0fe10dc4ec97f3cfdbe71cf37bbe2889d5a0"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027accountStatusClass\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/tray/shared.tsx"},"region":{"startLine":928}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e2696f08dd8028fe8b54b942ddb31d4e4434c3cccee56be774a81479d9c04f1"}},{"ruleId":"R7","level":"note","message":{"text":"Unused module-local declaration \u0027DESIGN_SYSTEM_COLLECTION\u0027: This top-level declaration is not exported and its name occurs nowhere else in its module \u2014 not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"4851a8bb161a18df254bec108563898d5415ca9aea79cf4342283d67c213779f"}},{"ruleId":"R7","level":"note","message":{"text":"Unused module-local declaration \u0027isDesignEntryScriptBuffer\u0027: This top-level declaration is not exported and its name occurs nowhere else in its module \u2014 not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":3663}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8159ab6b805612bfa651b2747a8e9b368b0301049b7686ac7bbf88d13cd4cbe"}},{"ruleId":"R7","level":"note","message":{"text":"Unused module-local declaration \u0027normalizeDesignAssetPath\u0027: This top-level declaration is not exported and its name occurs nowhere else in its module \u2014 not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":3742}}}],"partialFingerprints":{"codehealthFindingId/v1":"acc558cbddc9c9c5c8130df46da68add6ed1013f3ae5c990006abfa63b7dc548"}},{"ruleId":"R7","level":"note","message":{"text":"Unused module-local declaration \u0027renderClaudeShipPublicHtml\u0027: This top-level declaration is not exported and its name occurs nowhere else in its module \u2014 not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":5505}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c5d040d9995f013d429b39537a93c4eb6745ebf7fd305eb623c5f4d558e7791"}},{"ruleId":"R7","level":"note","message":{"text":"Unused module-local declaration \u0027claudeShipSourceReadme\u0027: This top-level declaration is not exported and its name occurs nowhere else in its module \u2014 not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":6559}}}],"partialFingerprints":{"codehealthFindingId/v1":"279277550cf5b3b22887b30c6d146ef2ea20ad4d05aaa4925cbf43d660ebe0c7"}},{"ruleId":"R7","level":"note","message":{"text":"Unused module-local declaration \u0027claudeDesignGatewayModelPresets\u0027: This top-level declaration is not exported and its name occurs nowhere else in its module \u2014 not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":12167}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7541eea3e0f036aaeb4044d756cf9911656e0547f5f58ef11f6e3b820db69ea"}},{"ruleId":"R7","level":"note","message":{"text":"Unused module-local declaration \u0027encodeCreateProjectName\u0027: This top-level declaration is not exported and its name occurs nowhere else in its module \u2014 not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":13553}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae3891729e0ca670528dd7e098cd99634d21a27f4c1e279368841d5488f051ca"}},{"ruleId":"R8","level":"error","message":{"text":"Unlisted import \u0027proxy-agent\u0027: Imported but not declared in any reachable package.json \u2014 installs work only by hoisting accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"36f66af99c58cf6e1ed664dee4e438eb74c2bc3fc6ff818c4eb12ebbbd44f969"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027pm2\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":"2466f07c5d2aa0f5af88047809088fdef6b5a28def3b4ffd09dcfa535b1bc175"}},{"ruleId":"R9","level":"error","message":{"text":"Import cycle (3 files): packages/core/src/agents/local-providers/codex.ts \u2192 packages/core/src/proxy/system-proxy-fetch.ts \u2192 packages/core/src/config/config.ts \u2192 packages/core/src/agents/local-providers/codex.ts (one verified cycle inside a mutually-dependent group of 4 files)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/local-providers/codex.ts"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c11cc53e8aa24adebcdce25274ad7d575a8ce7a70a73e862cde30a8b2bee0b8"}},{"ruleId":"R9","level":"error","message":{"text":"Import cycle (2 files): packages/ui/src/pages/home/shared/api-keys.ts \u2192 packages/ui/src/pages/home/shared/common.ts \u2192 packages/ui/src/pages/home/shared/api-keys.ts"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/api-keys.ts"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"676dd163cea8fd7d4b80979dbdc77018f263a10334c84960fb10239e9d25a5f9"}},{"ruleId":"R9","level":"error","message":{"text":"Import cycle (2 files): packages/ui/src/pages/home/shared/extensions.ts \u2192 packages/ui/src/pages/home/shared/routing.ts \u2192 packages/ui/src/pages/home/shared/extensions.ts (one verified cycle inside a mutually-dependent group of 5 files)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/extensions.ts"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ef31f601166a5d3fca36e4265001b91d533abb02cc6f1373fa094fae0ea435a"}},{"ruleId":"S1","level":"warning","message":{"text":"Weak hash algorithm: MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything \u2014 a signature, an integrity or tamper check, a credential, or any value an attacker can influence \u2014 that is a real weakness: use SHA-256\u002B (\u0060createHash(\u0022sha256\u0022)\u0060) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead \u2014 a non-cryptographic hash such as xxhash or murmurhash says it in code \u2014 since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"build/dev.mjs"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"2156c332f7f2a6e5deac1f202a4ef33d05ce230132b82d619abd9c6dbe1ee67e"}},{"ruleId":"S1","level":"warning","message":{"text":"Weak hash algorithm: MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything \u2014 a signature, an integrity or tamper check, a credential, or any value an attacker can influence \u2014 that is a real weakness: use SHA-256\u002B (\u0060createHash(\u0022sha256\u0022)\u0060) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead \u2014 a non-cryptographic hash such as xxhash or murmurhash says it in code \u2014 since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"build/dev.mjs"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"d162d5958ca3f6554628e95aa70bb54ca1413cc3637e621f8b726810777ff64d"}},{"ruleId":"S1","level":"warning","message":{"text":"Weak hash algorithm: MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything \u2014 a signature, an integrity or tamper check, a credential, or any value an attacker can influence \u2014 that is a real weakness: use SHA-256\u002B (\u0060createHash(\u0022sha256\u0022)\u0060) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead \u2014 a non-cryptographic hash such as xxhash or murmurhash says it in code \u2014 since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":5672}}}],"partialFingerprints":{"codehealthFindingId/v1":"99eda96247a466873fdbada5a94d7c50171d4c3da4b61e4f375173eb73a04db1"}},{"ruleId":"S1","level":"warning","message":{"text":"Weak hash algorithm: MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything \u2014 a signature, an integrity or tamper check, a credential, or any value an attacker can influence \u2014 that is a real weakness: use SHA-256\u002B (\u0060createHash(\u0022sha256\u0022)\u0060) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead \u2014 a non-cryptographic hash such as xxhash or murmurhash says it in code \u2014 since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":5818}}}],"partialFingerprints":{"codehealthFindingId/v1":"b37a555cd1d00fe953b0b09e2d8b0e488d8fbf386cfb58d4d4afb2904431ed64"}},{"ruleId":"S1","level":"note","message":{"text":"No app-layer HTTPS enforcement detected: \u0060server.listen(\u2026)\u0060 serves plain HTTP on a network address, and nothing in its package enforces HTTPS: no TLS served (\u0060https.createServer\u0060, Fastify \u0060https\u0060, Nest \u0060httpsOptions\u0060), no redirect of plain requests to \u0060https://\u0060, no \u0060Strict-Transport-Security\u0060 (helmet sends it by default), and no TLS-terminating proxy configuration committed beside it \u2014 so a browser may talk to it in clear text. (\u22122.0 on this card.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/application/gateway-service.ts"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"bded67efda23c2d687a94ac32e55c537fc463c1ded6fc60498cdb27f1e6339b9"}},{"ruleId":"S1","level":"note","message":{"text":"No app-layer HTTPS enforcement detected: \u0060server.listen(\u2026)\u0060 serves plain HTTP on a network address, and nothing in its package enforces HTTPS: no TLS served (\u0060https.createServer\u0060, Fastify \u0060https\u0060, Nest \u0060httpsOptions\u0060), no redirect of plain requests to \u0060https://\u0060, no \u0060Strict-Transport-Security\u0060 (helmet sends it by default), and no TLS-terminating proxy configuration committed beside it \u2014 so a browser may talk to it in clear text. (\u22122.0 on this card.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/plugins/backend-service.ts"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c2f01f1ae50beef2230dd48ea18039b09e6e270f4724a3e6be145ea94030ad5"}},{"ruleId":"S1","level":"note","message":{"text":"No app-layer HTTPS enforcement detected: \u0060server.listen(\u2026)\u0060 serves plain HTTP on a network address, and nothing in its package enforces HTTPS: no TLS served (\u0060https.createServer\u0060, Fastify \u0060https\u0060, Nest \u0060httpsOptions\u0060), no redirect of plain requests to \u0060https://\u0060, no \u0060Strict-Transport-Security\u0060 (helmet sends it by default), and no TLS-terminating proxy configuration committed beside it \u2014 so a browser may talk to it in clear text. (\u22122.0 on this card.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/web/management-server.ts"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"b683b80cb99829bd8b93ed56341611c4808305fb95dc8b9f3813c0fb92c9e8b4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!Number.isInteger(part) || part \u003C 0 || part \u003E 255\u0060 appears character-identically in 2 files \u2014 packages/core/src/gateway/core-runtime/supervisor.ts, packages/core/src/providers/manifest-service.ts. 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":"packages/core/src/gateway/core-runtime/supervisor.ts"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"f47db3fa9064992f72f2c00d5b1a20d2e79458de64531b354355851dfaf177a0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!Number.isInteger(port) || port \u003C= 0 || port \u003E 65535\u0060 appears character-identically in 2 files \u2014 packages/cli/src/cli.ts, packages/core/src/entrypoints/server.ts. 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":"packages/cli/src/cli.ts"},"region":{"startLine":1031}}}],"partialFingerprints":{"codehealthFindingId/v1":"38af6e55b841264c244082f58ad44f24e921e44721225dd06540f198b582eb44"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!attribution.provider || !attribution.model\u0060 appears character-identically in 2 files \u2014 packages/core/src/agents/claude-app/gateway-routes.ts, packages/core/src/gateway/features/model-discovery.ts. 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":"packages/core/src/agents/claude-app/gateway-routes.ts"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0fa6556f96a9c6488d76b539bd6c9ef4a4a4638720b711626f20489cf8dc447"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!body || (!body.text \u0026\u0026 body.sizeBytes === 0)\u0060 appears character-identically in 3 files \u2014 packages/ui/src/pages/home/components/network-logs.tsx, packages/ui/src/pages/home/shared/log-body-worker-protocol.ts, packages/ui/src/pages/home/shared/logs.ts. 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":"packages/ui/src/pages/home/components/network-logs.tsx"},"region":{"startLine":1771}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7578a2e6738bece4a52862c49d6e49a983136dfd86df98df1d4b63f64b1e39e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!body.job || body.job.status !== \u0022pending\u0022\u0060 appears character-identically in 2 files \u2014 extension/chrome/background.js, extension/chrome/popup.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":"extension/chrome/background.js"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"f979c5aab9db80ee514020a10e9c0cb5cbd1281ee7aa0a755b2898ea76007543"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!candidate || checked.includes(candidate)\u0060 appears character-identically in 3 files \u2014 packages/core/src/agents/claude-app/launch.ts, packages/core/src/agents/codex/app-launch.ts, packages/core/src/agents/opencode/app-launch.ts. 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":"packages/core/src/agents/claude-app/launch.ts"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"5448044b1478c46d29f026469b9b4a88b0f497de601ccb4ad308f2c4f378b923"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!config || !shouldRecordRequestLogs(config)\u0060 appears character-identically in 2 files \u2014 packages/core/src/gateway/request/pipeline.ts, packages/core/src/observability/raw-trace-sync.ts. 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":"packages/core/src/gateway/request/pipeline.ts"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5747b198bd2ab03fab5a24e1c0ba4d9a9551c58426394bd0b47d88a60a950b1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!connector.endpoint?.trim() \u0026\u0026 !connector.endpoints?.length \u0026\u0026 !connector.headers \u0026\u0026 !connector.id\u0060 appears character-identically in 2 files \u2014 packages/core/src/agents/local-providers/codex.ts, packages/core/src/agents/local-providers/grok.ts. 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":"packages/core/src/agents/local-providers/codex.ts"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c872586768096369c3f6c501ff9d1f6b657e5351729e746017a2c0c266d26b7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!isGatewayProviderEnabled(provider) || !providerName || !Array.isArray(provider.models)\u0060 appears character-identically in 4 files \u2014 packages/core/src/agents/codex/model-catalog.ts, packages/core/src/contracts/app.ts, packages/core/src/gateway/claude-code-router-plugin.ts, packages/core/src/gateway/features/model-discovery.ts. 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":"packages/core/src/agents/codex/model-catalog.ts"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0363918a5c802c9efb4c142d904b22e25827ceb4b1a925737167e23e8d9122c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!isRecord(message) || message.role !== \u0022user\u0022\u0060 appears character-identically in 2 files \u2014 packages/core/src/gateway/claude-code-router-plugin.ts, packages/core/src/observability/request-log-store.ts. 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":"packages/core/src/gateway/claude-code-router-plugin.ts"},"region":{"startLine":1159}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3f466cd722040c354281162c03d9fe9dea29a3313f4eeac1f9d906b95c4b78c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!isRecord(params) || typeof params.name !== \u0022string\u0022\u0060 appears character-identically in 5 files \u2014 packages/core/src/mcp/fusion-vision-mcp.ts, packages/core/src/mcp/grok-media-mcp.ts, packages/core/src/mcp/network-capture-mcp.ts, packages/electron/src/main/browser-automation-mcp.ts. 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":"packages/core/src/mcp/fusion-vision-mcp.ts"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7d2b35b29e3fa524ec29e4c0a77da63fe334dd7cf29b9a142fb38b86b102ab1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!isRecord(payload) || !Array.isArray(payload.data)\u0060 appears character-identically in 2 files \u2014 packages/core/src/models/pricing-service.ts, scripts/generate-models-json.mjs. 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":"packages/core/src/models/pricing-service.ts"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"293f87d1ca4618c24b53726b7473ff41a6855849b068f3d494c08ba20e84c7f3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!isRecord(plugin) || plugin.enabled !== false\u0060 appears character-identically in 2 files \u2014 packages/core/src/gateway/core-runtime/config-compiler.ts, packages/core/src/providers/model-auto-refresh.ts. 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":"packages/core/src/gateway/core-runtime/config-compiler.ts"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"7edc76e978cbe547a6013bb17a0f1ad5a51ac187265174b38d9f9107b442cbae"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!isRecord(profile) || profile.enabled === false\u0060 appears character-identically in 2 files \u2014 packages/core/src/gateway/features/hosted-web-search/discovery.ts, packages/core/src/mcp/fusion-config.ts. 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":"packages/core/src/gateway/features/hosted-web-search/discovery.ts"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"82785ab626b34eca2697f997d98adae08011532ad67e63a081a8257ac79c5cc5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!isRecord(provider) || !isRecord(provider.models)\u0060 appears character-identically in 2 files \u2014 packages/core/src/models/pricing-service.ts, scripts/generate-models-json.mjs. 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":"packages/core/src/models/pricing-service.ts"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc0b2d895a168c695e292e9d18c161359fe1af1df17f4cd546684d620234eeef"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!isRecord(provider) || !isRecord(provider.options)\u0060 appears character-identically in 2 files \u2014 packages/core/src/agents/kilo/profile-config.ts, packages/core/src/agents/opencode/profile-config.ts. 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":"packages/core/src/agents/kilo/profile-config.ts"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"7af693a67da490eb72969e1ad50de98db37b7373a626eb8934dd4f95534f0aeb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!key || key === \u0022__proto__\u0022 || key === \u0022constructor\u0022 || key === \u0022prototype\u0022\u0060 appears character-identically in 2 files \u2014 packages/core/src/profiles/service.ts, packages/ui/src/pages/home/shared/profiles.ts. 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":"packages/core/src/profiles/service.ts"},"region":{"startLine":1312}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6b1e3ee7d4fa0d50b51b5ac4b0a5c5c667ba0a6ec06cd2937a7f93d1c6e6ba1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!key.trim() || isWebhookRelatedBotGatewayKey(key)\u0060 appears character-identically in 3 files \u2014 packages/core/src/agents/bot-gateway/env.ts, packages/core/src/agents/bot-gateway/qr-login-service.ts, packages/ui/src/pages/home/shared/profiles.ts. 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":"packages/core/src/agents/bot-gateway/env.ts"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac91fe4072d3c278f0d3f5149b4994001782d02fc469d5d2208662a19ee46757"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!manualResetMeter || meters.includes(manualResetMeter) || meters.length \u003C maxCount\u0060 appears character-identically in 2 files \u2014 packages/ui/src/pages/home/shared/provider-accounts.ts, packages/ui/src/pages/tray/shared.tsx. 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":"packages/ui/src/pages/home/shared/provider-accounts.ts"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d26cb6d543fd806a624ce2ff6e6e81804175f0074ed12d9c28a1ad27e14c0c6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!meter.limit || meter.limit \u003C= 0 || meter.remaining === undefined\u0060 appears character-identically in 2 files \u2014 packages/ui/src/pages/home/shared/provider-accounts.ts, packages/ui/src/pages/tray/shared.tsx. 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":"packages/ui/src/pages/home/shared/provider-accounts.ts"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e2afcdd726d0512ac175d9cff59d0dc940d28474b549fd91fa7b87bd00d7bfe"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!modelName || modelName.toLowerCase().includes(\u0022gpt\u0022)\u0060 appears character-identically in 2 files \u2014 packages/core/src/gateway/features/codex-multi-agent-bridge.ts, packages/core/src/gateway/features/codex-patch-bridge.ts. 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":"packages/core/src/gateway/features/codex-multi-agent-bridge.ts"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"f47ad284e6ec56d6431d11c4e0d02421496b1ed656f23faf011db61c15811bb3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!normalized || normalized === \u0022default\u0022 || normalized === \u0022auto\u0022 || normalized === \u0022webhook\u0022 || normalized === \u0022webhook_secret\u0022 || normalize\u2026\u0060 appears character-identically in 2 files \u2014 packages/core/src/agents/bot-gateway/env.ts, packages/ui/src/pages/home/shared/profiles.ts. 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":"packages/core/src/agents/bot-gateway/env.ts"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"34c6ed4b5006d49a7886a3c0c1f777babd821ea19277bf3b4d8e828362feaa42"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!normalized || normalized === \u0022off\u0022 || normalized === \u0022disabled\u0022\u0060 appears character-identically in 3 files \u2014 packages/core/src/agents/bot-gateway/env.ts, packages/core/src/agents/bot-gateway/qr-login-service.ts, packages/ui/src/pages/home/shared/profiles.ts. 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":"packages/core/src/agents/bot-gateway/env.ts"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"648bbfe4599049e56dc1775966ad9f5adcf93e1d245b10dd843c3a475db1d21b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!normalizedPrefix || !selectedModelLower.startsWith(normalizedPrefix.toLowerCase())\u0060 appears character-identically in 2 files \u2014 packages/core/src/agents/codex/model-catalog.ts, packages/core/src/gateway/features/model-discovery.ts. 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":"packages/core/src/agents/codex/model-catalog.ts"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"689d7c4b316c1a2584bb9f8fd5c96021c21524bcd12efa0ae050f779b7f04850"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!normalizedSuffix || !selectedModelLower.endsWith(normalizedSuffix.toLowerCase())\u0060 appears character-identically in 2 files \u2014 packages/core/src/agents/codex/model-catalog.ts, packages/core/src/gateway/features/model-discovery.ts. 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":"packages/core/src/agents/codex/model-catalog.ts"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f649787412c047b88552b5c33ad6fbe3a70a0b4f921a5bfbdebc0bede18c03f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!open || typeof document === \u0022undefined\u0022\u0060 appears character-identically in 2 files \u2014 packages/ui/src/components/ui/popover.tsx, packages/ui/src/components/ui/tooltip.tsx. 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":"packages/ui/src/components/ui/popover.tsx"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e91c47b5033556b1ed562db4de355628a98c6392c957d5b7641317d68709491"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!parsed || typeof parsed !== \u0022object\u0022 || Array.isArray(parsed)\u0060 appears character-identically in 2 files \u2014 packages/core/src/contracts/deep-link.ts, packages/core/src/gateway/context-archive/store.ts. 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":"packages/core/src/contracts/deep-link.ts"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"05370553eb6f63f43fe62f006cd55a5b6699454d75992a5b1793767a0d6bd009"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!result || !allowedLocalStorageOrigin(result.origin, origin)\u0060 appears character-identically in 2 files \u2014 extension/chrome/background.js, extension/chrome/popup.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":"extension/chrome/background.js"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b3d30d40c81548335eca077d800086db6d68f7ed3724db0c8ab452675b56a7a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!rootRef.current?.contains(target) \u0026\u0026 !panelRef.current?.contains(target)\u0060 appears character-identically in 4 files \u2014 packages/ui/src/pages/home/components/model-selector.tsx, packages/ui/src/pages/home/components/profiles.tsx, packages/ui/src/pages/home/components/providers.tsx, packages/ui/src/pages/home/components/virtual-models.tsx. 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":"packages/ui/src/pages/home/components/model-selector.tsx"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"6605c5dddc2ca0f46e95948c94ab2b2d921cf61afcdf1bdc18aaa67ce981e35b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!upstreamProxy?.http \u0026\u0026 !upstreamProxy?.https\u0060 appears character-identically in 2 files \u2014 packages/core/src/proxy/service.ts, packages/core/src/proxy/system-proxy.ts. 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":"packages/core/src/proxy/service.ts"},"region":{"startLine":1393}}}],"partialFingerprints":{"codehealthFindingId/v1":"270a9b65a0d7540a1eef56436e18d1e634274c5417e774bc74f99b95de2f6c09"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!value || typeof value !== \u0022object\u0022 || Array.isArray(value)\u0060 appears character-identically in 4 files \u2014 packages/core/src/agents/bot-gateway/env.ts, packages/core/src/agents/bot-gateway/qr-login-service.ts, packages/core/src/gateway/core-runtime/router-plugin-contract.ts, packages/core/src/web/management-server.ts. 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":"packages/core/src/agents/bot-gateway/env.ts"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"745b945f5f3f6127d4117985702e8f2ccc2c4f925f05a78967f358dde8f780db"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!window.isDestroyed() \u0026\u0026 !window.webContents.isDestroyed()\u0060 appears character-identically in 2 files \u2014 packages/electron/src/main/app-menu.ts, packages/electron/src/main/tray-controller.ts. 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":"packages/electron/src/main/app-menu.ts"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"110fe6586f8e37c91a894ddf2497e748044bc10c4b056f2d99e18a50137c08fc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(method || \u0022GET\u0022).toUpperCase() === \u0022POST\u0022 \u0026\u0026 requestProtocolForPath(path) === \u0022openai_responses\u0022 \u0026\u0026 isCodexUserAgent(headers)\u0060 appears character-identically in 2 files \u2014 packages/core/src/gateway/features/codex-multi-agent-bridge.ts, packages/core/src/gateway/features/codex-patch-bridge.ts. 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":"packages/core/src/gateway/features/codex-multi-agent-bridge.ts"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3cedf4a61790581c2df4c4f89b522e287cd3ed403e951c10c8e9e99f75dda1a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(trimmed.startsWith(\u0022\\\u0022\u0022) \u0026\u0026 trimmed.endsWith(\u0022\\\u0022\u0022)) || (trimmed.startsWith(\u0022\u0027\u0022) \u0026\u0026 trimmed.endsWith(\u0022\u0027\u0022))\u0060 appears character-identically in 2 files \u2014 packages/core/src/gateway/claude-code-router-plugin.ts, packages/core/src/routing/rewrite.ts. 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":"packages/core/src/gateway/claude-code-router-plugin.ts"},"region":{"startLine":1525}}}],"partialFingerprints":{"codehealthFindingId/v1":"1071db452a92d091306a0383e055d3787758ba48fb57ed57cde9de0d017674ad"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060/^(localhost|127\\.0\\.0\\.1|\\[::1\\])(?::\\d\u002B)?(?:\\/|$)/i.test(trimmed) || trimmed.includes(\u0022.\u0022)\u0060 appears character-identically in 2 files \u2014 packages/electron/src/main/browser-automation-mcp.ts, packages/electron/src/main/built-in-browser.ts. 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":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":2037}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a293a861a5499a8dff9009954e60e3c433795db14a8d7e501b33a3e7bf76156"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060/^\\d{1,3}(?:\\.\\d{1,3}){3}$/.test(value) || value.includes(\u0022:\u0022)\u0060 appears character-identically in 2 files \u2014 extension/chrome/background.js, extension/chrome/popup.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":"extension/chrome/background.js"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c5675a4eb064646556a53e51742a1664299803ea5a95e4297e0a575a9151df4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060/^https?:\\/\\//i.test(trimmed) || trimmed === \u0022about:blank\u0022\u0060 appears character-identically in 2 files \u2014 packages/core/src/web/management-server.ts, packages/electron/src/main/built-in-browser.ts. 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":"packages/core/src/web/management-server.ts"},"region":{"startLine":1405}}}],"partialFingerprints":{"codehealthFindingId/v1":"e365240f5768464955636a88a4f26f82885d561d8079f046d4fa7a8bf9234579"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Array.isArray(expected) \u0026\u0026 Array.isArray(actual)\u0060 appears character-identically in 2 files \u2014 packages/core/src/gateway/claude-code-router-plugin.ts, packages/core/src/routing/rewrite.ts. 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":"packages/core/src/gateway/claude-code-router-plugin.ts"},"region":{"startLine":1576}}}],"partialFingerprints":{"codehealthFindingId/v1":"24a8b9d42f86d01a483ab70d50119ef04e278052c6727ea595cf9213a51e8272"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Boolean(value) \u0026\u0026 typeof value === \u0022object\u0022 \u0026\u0026 !Array.isArray(value)\u0060 appears character-identically in 10 files \u2014 packages/core/src/agents/claude-app/gateway-service.ts, packages/core/src/agents/kilo/profile-config.ts, packages/core/src/agents/opencode/profile-config.ts, packages/core/src/gateway/context-archive.ts. 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":"packages/core/src/agents/claude-app/gateway-service.ts"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aef21d6e9688bc6847f52932ad5b5326a98af66a298561abeff90ff62a069d3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Number.isFinite(numeric) \u0026\u0026 numeric \u003E= min \u0026\u0026 numeric \u003C= max\u0060 appears character-identically in 2 files \u2014 packages/ui/src/pages/home/components/profiles.tsx, packages/ui/src/pages/home/shared/profiles.ts. 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":"packages/ui/src/pages/home/components/profiles.tsx"},"region":{"startLine":1872}}}],"partialFingerprints":{"codehealthFindingId/v1":"d61986ffa3fdec0199aeca175715a22dc950d5e51acd99b3850d65c9a68f8919"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Number.isFinite(seconds) \u0026\u0026 seconds \u003E= 0\u0060 appears character-identically in 2 files \u2014 packages/core/src/gateway/upstream/retry-policy.ts, packages/core/src/mcp/fusion-vision-mcp.ts. 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":"packages/core/src/gateway/upstream/retry-policy.ts"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"35d71e7f3fc74be1a1688b605e3f7697e825bb09cb6e7aba2980d7a2bb964dd1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Number.isFinite(value) \u0026\u0026 Number(value) \u003E 0\u0060 appears character-identically in 2 files \u2014 packages/core/src/observability/raw-trace-sync.ts, packages/core/src/observability/request-log-runtime.ts. 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":"packages/core/src/observability/raw-trace-sync.ts"},"region":{"startLine":1430}}}],"partialFingerprints":{"codehealthFindingId/v1":"f027df8dc9861151c419745a6fb7d7e743d80974c74cd0fb192c891dc9b0e855"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Number.isFinite(value) \u0026\u0026 value \u0026\u0026 value \u003E 0\u0060 appears character-identically in 2 files \u2014 packages/ui/src/pages/home/shared/usage.ts, packages/ui/src/pages/tray/shared.tsx. 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":"packages/ui/src/pages/home/shared/usage.ts"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"a27953e7de4a954f288b2fe6b31d2bcdb400560ace6b964c9e82f7629d2143a9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060actual.protocol === requested.protocol \u0026\u0026 actual.hostname === requested.hostname \u0026\u0026 actual.port === requested.port\u0060 appears character-identically in 2 files \u2014 extension/chrome/background.js, extension/chrome/popup.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":"extension/chrome/background.js"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d4007f26d3cdd5f6a711bd0834b0d85ab8ba40b43367e448d51fad2245d621b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060agent === \u0022grok\u0022 || agent === \u0022kimi\u0022 || agent === \u0022pi\u0022\u0060 appears character-identically in 2 files \u2014 packages/ui/src/pages/home/components/profiles.tsx, packages/ui/src/pages/home/shared/profiles.ts. 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":"packages/ui/src/pages/home/components/profiles.tsx"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"9161aff50fbce682117900275b304f26b95a1609d989b35140944991874c2f7a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060auth?.accessToken \u0026\u0026 !grokAccessTokenExpired(auth)\u0060 appears character-identically in 2 files \u2014 packages/core/src/gateway/core-runtime/local-agent-auth-provider-hook.ts, packages/core/src/providers/account-service.ts. 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":"packages/core/src/gateway/core-runtime/local-agent-auth-provider-hook.ts"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"28ce8d689860794dd1f939c8701cff627544eea733bfe1afcf7c10e700884f27"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060auth?.accessToken \u0026\u0026 !kimiAccessTokenExpired(auth)\u0060 appears character-identically in 3 files \u2014 packages/core/src/agents/local-providers/kimi.ts, packages/core/src/gateway/core-runtime/local-agent-auth-provider-hook.ts, packages/core/src/providers/account-service.ts. 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":"packages/core/src/agents/local-providers/kimi.ts"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"07f934e66388913fda874bfbc6b2771c8e5624f0c1d1709747e60cdc3b1e0dd9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060baseUrl.includes(\u0022cli-chat-proxy.grok.com\u0022) || name.includes(\u0022grok\u0022)\u0060 appears character-identically in 2 files \u2014 packages/core/src/agents/local-providers/grok.ts, packages/ui/src/pages/home/shared/providers.ts. 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":"packages/core/src/agents/local-providers/grok.ts"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"35f49373d91d25fbeff82ff5ffc0c33f905e9979936c6eb1cffea1adb9b16907"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060body.web_search_options !== undefined || body.webSearchOptions !== undefined\u0060 appears character-identically in 2 files \u2014 packages/core/src/gateway/features/hosted-web-search/discovery.ts, packages/core/src/plugins/built-ins/openrouter-discount-provider-router.ts. 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":"packages/core/src/gateway/features/hosted-web-search/discovery.ts"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"137e2297e033335f7a5de568c071b97aac4d2d305de71e0ed4c255bff6c52726"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060buffer.length \u003E= 3 \u0026\u0026 buffer[0] === 0xff \u0026\u0026 buffer[1] === 0xd8 \u0026\u0026 buffer[2] === 0xff\u0060 appears character-identically in 2 files \u2014 packages/core/src/mcp/fusion-vision-mcp.ts, packages/core/src/providers/icons.ts. 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":"packages/core/src/mcp/fusion-vision-mcp.ts"},"region":{"startLine":998}}}],"partialFingerprints":{"codehealthFindingId/v1":"764f164cb7ffc0001629c055f9f0c0ed2dc7a535abb4656c5a1779a0cd0b0a36"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060cached?.accessToken \u0026\u0026 cached.expiresAtMs \u003E now \u002B 60_000\u0060 appears character-identically in 2 files \u2014 packages/core/src/providers/account-service.ts, packages/core/src/providers/probe.ts. 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":"packages/core/src/providers/account-service.ts"},"region":{"startLine":1670}}}],"partialFingerprints":{"codehealthFindingId/v1":"100bbe8426c69ae79a0840656d4c511317cd1b1047e115fdf3e6cb82c8dc7ace"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060changed \u0026\u0026 Object.keys(child).length === 0\u0060 appears character-identically in 2 files \u2014 packages/core/src/profiles/service.ts, packages/ui/src/pages/home/components/profiles.tsx. 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":"packages/core/src/profiles/service.ts"},"region":{"startLine":1464}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7538c198996e32fda1bc90febd7635c436e7008de9067d3cb0f63bf24170c94"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060commaIndex \u003E 0 \u0026\u0026 commaIndex \u003C trimmed.length - 1\u0060 appears character-identically in 7 files \u2014 packages/core/src/agents/claude-code/environment.ts, packages/core/src/agents/codex/model-catalog.ts, packages/core/src/agents/kilo/profile-config.ts, packages/core/src/agents/opencode/profile-config.ts. 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":"packages/core/src/agents/claude-code/environment.ts"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"7797c53f4e66b9aa036e7bd86a909f88d7e7b8182dad697e2faa1866f7282146"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060config.gateway.host === \u00220.0.0.0\u0022 || config.gateway.host === \u0022::\u0022\u0060 appears character-identically in 5 files \u2014 packages/core/src/agents/codex/app-launch.ts, packages/core/src/agents/kilo/profile-config.ts, packages/core/src/agents/opencode/profile-config.ts, packages/core/src/agents/pi/profile-config.ts. 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":"packages/core/src/agents/codex/app-launch.ts"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6e26e639ee2d9779b105ed2bf00f94f6b0e2a7d02a5eb377cd95f97fcccf4f3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060config.gateway?.host || config.HOST || \u0022127.0.0.1\u0022\u0060 appears character-identically in 4 files \u2014 packages/core/src/web/management-server.ts, packages/electron/src/main/built-in-browser.ts, packages/electron/src/main/claude-design-window.ts, packages/electron/src/main/deep-link.ts. 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":"packages/core/src/web/management-server.ts"},"region":{"startLine":1409}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cc69d65ca197701962c909b01874689cfed8e3b07314c2339d0c93143b9d274"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060config.gateway?.port || config.PORT || 3456\u0060 appears character-identically in 3 files \u2014 packages/core/src/web/management-server.ts, packages/electron/src/main/built-in-browser.ts, packages/electron/src/main/deep-link.ts. 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":"packages/core/src/web/management-server.ts"},"region":{"startLine":1410}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b164711cb44d00de310531a6d37bd00770779962cf8f19d44d05c051ae20e1f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060config.proxy.enabled \u0026\u0026 config.proxy.systemProxy\u0060 appears character-identically in 3 files \u2014 packages/core/src/proxy/system-proxy-fetch.ts, packages/core/src/web/management-server.ts, packages/electron/src/main/main-app.ts. 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":"packages/core/src/proxy/system-proxy-fetch.ts"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f5a04334069c1318d0ec19761d2f0ec5b5a51c5c4694c8ee7cc6fd0bc360658"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060configuredScope || codexOauthDefaultScope\u0060 appears character-identically in 2 files \u2014 packages/core/src/providers/account-service.ts, packages/core/src/providers/probe.ts. 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":"packages/core/src/providers/account-service.ts"},"region":{"startLine":1725}}}],"partialFingerprints":{"codehealthFindingId/v1":"044636c362f2bed4faa1d9923680e76001cb2dcd19ca2b8284f5071c1267d0a7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060contextArchiveConfig \u0026\u0026 contextArchiveMcpEnabled(contextArchiveConfig)\u0060 appears character-identically in 2 files \u2014 packages/core/src/gateway/features/model-discovery.ts, packages/core/src/profiles/service.ts. 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":"packages/core/src/gateway/features/model-discovery.ts"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"5428bbfb030d5fb5cc84146bffa96d3adcdd6500acd4799c0a76d0b722b385d6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060cookies.length === 0 \u0026\u0026 localStorageEntries.length === 0\u0060 appears character-identically in 2 files \u2014 extension/chrome/background.js, extension/chrome/popup.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":"extension/chrome/background.js"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba24002dfea2e9e326ed6eb291be0fd8bfc91dc8713626eae6313f4d2e8eae59"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060credential.api_key || credential.apiKey || credential.apikey || \u0022\u0022\u0060 appears character-identically in 4 files \u2014 packages/core/src/providers/account-service.ts, packages/core/src/providers/model-auto-refresh.ts, packages/core/src/providers/runtime-topology.ts, packages/ui/src/pages/home/shared/providers.ts. 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":"packages/core/src/providers/account-service.ts"},"region":{"startLine":2151}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd37ad235b7504becb44e490d5613fbbd5fbe77ac0e0e0aced9a989f7dd31130"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060credential.enabled !== false \u0026\u0026 Boolean(providerCredentialApiKey(credential))\u0060 appears character-identically in 2 files \u2014 packages/core/src/providers/account-service.ts, packages/core/src/providers/runtime-topology.ts. 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":"packages/core/src/providers/account-service.ts"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"843b7c7a7ed10998da224d6435302d9fc534326d9b9b6facef65382ee729ee93"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060credential.name?.trim() || credential.label?.trim()\u0060 appears character-identically in 2 files \u2014 packages/core/src/providers/account-service.ts, packages/core/src/providers/runtime-topology.ts. 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":"packages/core/src/providers/account-service.ts"},"region":{"startLine":2146}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad42e96c2305d55a14b6c4efd98a0c78caad224a6058811ca8f1fafcbfc11d50"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060credentials === \u0022include\u0022 || credentials === \u0022omit\u0022 || credentials === \u0022same-origin\u0022\u0060 appears character-identically in 3 files \u2014 packages/core/src/providers/account-service.ts, packages/core/src/providers/account-webcontent.ts, packages/ui/src/pages/home/shared/providers.ts. 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":"packages/core/src/providers/account-service.ts"},"region":{"startLine":2109}}}],"partialFingerprints":{"codehealthFindingId/v1":"baf07ab1664c819bfa3dc3b9c6cb5b397b72618122bed3e6f3641ff26bad2954"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060domain === \u0022localhost\u0022 || isIpAddress(domain)\u0060 appears character-identically in 2 files \u2014 extension/chrome/background.js, extension/chrome/popup.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":"extension/chrome/background.js"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"c59aa955adbc2d3d9337ed04bce4ddc5d14375a26d0cacf895f514dfab7e3638"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060draft.agent === \u0022claude-code\u0022 \u0026\u0026 !isClaudeSettingsDraftValid(draft.claudeSettingsText)\u0060 appears character-identically in 2 files \u2014 packages/ui/src/pages/home/components/profiles.tsx, packages/ui/src/pages/home/shared/profiles.ts. 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":"packages/ui/src/pages/home/components/profiles.tsx"},"region":{"startLine":1864}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eb1e9db38d92880ef9da589bd50bb357ac0fe4c4466210c67f117580036e80a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060draft.agent === \u0022claude-code\u0022 || draft.agent === \u0022codex\u0022\u0060 appears character-identically in 2 files \u2014 packages/ui/src/pages/home/components/profiles.tsx, packages/ui/src/pages/home/shared/profiles.ts. 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":"packages/ui/src/pages/home/components/profiles.tsx"},"region":{"startLine":1004}}}],"partialFingerprints":{"codehealthFindingId/v1":"225ec5ec6eebb81a2ad1ad5d19f54fb4133b6399c53343dbc0c2502363ce2f41"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060draft.availableModels.length \u003E 0 \u0026\u0026 !draft.model.trim()\u0060 appears character-identically in 2 files \u2014 packages/ui/src/pages/home/components/profiles.tsx, packages/ui/src/pages/home/shared/profiles.ts. 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":"packages/ui/src/pages/home/components/profiles.tsx"},"region":{"startLine":1847}}}],"partialFingerprints":{"codehealthFindingId/v1":"26ad41fcf0c827aa1eabfbf0852900b209aadacba5ccd019683b130260e20342"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060effectiveAt !== undefined \u0026\u0026 expiresAt !== undefined \u0026\u0026 effectiveAt \u003C= now \u0026\u0026 now \u003C expiresAt\u0060 appears character-identically in 2 files \u2014 packages/ui/src/pages/home/shared/provider-accounts.ts, packages/ui/src/pages/tray/shared.tsx. 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":"packages/ui/src/pages/home/shared/provider-accounts.ts"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf3b4a9cdf1ba90831aaf7beafbc1bffadf58f4ea701c48c3de291b5f740d3dc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060entry \u0026\u0026 Object.keys(entry.items).length \u003E 0\u0060 appears character-identically in 2 files \u2014 extension/chrome/background.js, extension/chrome/popup.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":"extension/chrome/background.js"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"a502ba13d1394ea73243c00ddf27a8aea9fed09ca54d3a620c726090b46fc667"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060error instanceof Error \u0026\u0026 error.name === \u0022AbortError\u0022\u0060 appears character-identically in 4 files \u2014 packages/core/src/agents/local-providers/grok.ts, packages/core/src/agents/local-providers/kimi.ts, packages/core/src/providers/account-service.ts, packages/core/src/providers/probe.ts. 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":"packages/core/src/agents/local-providers/grok.ts"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"632bbfcb152e2e1ac4f0207a66df5c48c50d124e8e096bc4c66b8c33a002181e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060event.key === \u0022ArrowDown\u0022 || event.key === \u0022Enter\u0022 || event.key === \u0022 \u0022\u0060 appears character-identically in 3 files \u2014 packages/ui/src/pages/home/components/profiles.tsx, packages/ui/src/pages/home/components/providers.tsx, packages/ui/src/pages/home/components/virtual-models.tsx. 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":"packages/ui/src/pages/home/components/profiles.tsx"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5942cd2e215a10cbb553d4f6dab1354ce85e15cde49c6f1b2f42a3010922f6d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060existsSync(file) \u0026\u0026 statSync(file).isFile()\u0060 appears character-identically in 2 files \u2014 packages/core/src/agents/opencode/app-launch.ts, packages/core/src/web/management-server.ts. 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":"packages/core/src/agents/opencode/app-launch.ts"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ca95eb32f773753262bb17e1bc39cdbf60a9abb3043a0a5c7aca61a4ae3d8b9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060existsSync(originalBackup) || existsSync(originalMissing)\u0060 appears character-identically in 4 files \u2014 packages/core/src/agents/kilo/profile-config.ts, packages/core/src/agents/opencode/profile-config.ts, packages/core/src/agents/zcode/profile-config.ts, packages/core/src/profiles/service.ts. 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":"packages/core/src/agents/kilo/profile-config.ts"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"9370a643735d58f5a34914c116a1893e3e87394173507d5e7ddd01fecfdd3251"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060expiresAtMs !== undefined \u0026\u0026 expiresAtMs \u003C= Date.now() \u002B 60_000\u0060 appears character-identically in 2 files \u2014 packages/core/src/agents/local-providers/grok.ts, packages/core/src/providers/account-service.ts. 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":"packages/core/src/agents/local-providers/grok.ts"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c803a0729e9118f223fe63dfede9540e640cdb940eb0c7bc032614414842b34"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060file \u0026\u0026 !/\\.(?:cjs|js|mjs)$/i.test(file)\u0060 appears character-identically in 2 files \u2014 packages/core/src/routing/config-compiler.ts, packages/core/src/routing/route-script-runtime.ts. 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":"packages/core/src/routing/config-compiler.ts"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"962b4dfbcc73aa0aa4143e4fcfff85af8c4d6542e69afbf44a2c23d3b9908d89"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060file.startsWith(\u0022~/\u0022) || file.startsWith(\u0022~\\\\\u0022)\u0060 appears character-identically in 2 files \u2014 packages/core/src/routing/route-script-runtime.ts, packages/core/src/routing/route-script-worker.ts. 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":"packages/core/src/routing/route-script-runtime.ts"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"326de6791714af9fdcea7202d54252ff2469cf05024691f0c06b345c251125c9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060gateway \u0026\u0026 stringValue(gateway.host) \u0026\u0026 Number.isFinite(gateway.port)\u0060 appears character-identically in 2 files \u2014 packages/core/src/mcp/grok-media-config.ts, packages/core/src/mcp/toolhub-config.ts. 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":"packages/core/src/mcp/grok-media-config.ts"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"89d4062ecc040498f25d43dbd92783b77d7e9e7385235e2cf455ffff3fd5e550"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060headerTemplates \u0026\u0026 Object.keys(headerTemplates).length \u003E 0\u0060 appears character-identically in 3 files \u2014 packages/core/src/providers/account-service.ts, packages/core/src/providers/account-webcontent.ts, packages/ui/src/pages/home/shared/providers.ts. 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":"packages/core/src/providers/account-service.ts"},"region":{"startLine":2107}}}],"partialFingerprints":{"codehealthFindingId/v1":"1771eee420786c88324edfd1f3d10f3a0f3c806f159d88ff6cbff9e0541eb455"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060headers[\u0022x-target-provider\u0022] || headers[\u0022x-gateway-target-provider\u0022]\u0060 appears character-identically in 2 files \u2014 packages/core/src/gateway/upstream/executor.ts, packages/core/src/routing/rewrite.ts. 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":"packages/core/src/gateway/upstream/executor.ts"},"region":{"startLine":1007}}}],"partialFingerprints":{"codehealthFindingId/v1":"21fd1870f3387bdb6b7b8669e138d6dba5057d0d76482a6fbff68bf35b55b0f0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060health.status === undefined \u0026\u0026 root?.status === undefined\u0060 appears character-identically in 2 files \u2014 packages/core/src/gateway/existing-gateway-probe.ts, packages/core/src/profiles/launch-service.ts. 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":"packages/core/src/gateway/existing-gateway-probe.ts"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"2818da9331644cb1185ff3a4ef0aeea381c0174d3366d80228a62cea22d12b6a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060host === \u0022\u0022 || host === \u00220.0.0.0\u0022 || host === \u0022::\u0022 || host === \u0022::0\u0022\u0060 appears character-identically in 2 files \u2014 packages/core/src/gateway/core-runtime/supervisor.ts, packages/core/src/web/management-server.ts. 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":"packages/core/src/gateway/core-runtime/supervisor.ts"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d3e327479aef5894f564c5deb03ba92a4d1c14ae54412ecd2f1abd036691789"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060host.includes(\u0022:\u0022) \u0026\u0026 !host.startsWith(\u0022[\u0022)\u0060 appears character-identically in 16 files \u2014 packages/core/src/agents/claude-app/gateway-service.ts, packages/core/src/agents/codex/app-launch.ts, packages/core/src/agents/kilo/profile-config.ts, packages/core/src/agents/opencode/profile-config.ts. 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":"packages/core/src/agents/claude-app/gateway-service.ts"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"57f5e7029ed77dfa9b2aa523dd8356e4ad97dc67e7cfb141bc18f8ba86db7c58"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060input.bodyCapturePolicy === \u0022errors\u0022 || input.bodyCapturePolicy === \u0022none\u0022\u0060 appears character-identically in 2 files \u2014 packages/core/src/observability/request-log-runtime.ts, packages/core/src/observability/request-log-store.ts. 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":"packages/core/src/observability/request-log-runtime.ts"},"region":{"startLine":1003}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b89e483930bb0da9d251741b5de695352f61e6fd4bd4b4ee441a3da656bb75b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060input.routedModel || stringValue(parsedBody.model)\u0060 appears character-identically in 2 files \u2014 packages/core/src/gateway/features/codex-multi-agent-bridge.ts, packages/core/src/gateway/features/codex-patch-bridge.ts. 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":"packages/core/src/gateway/features/codex-multi-agent-bridge.ts"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"b58881120339e9ff857d3fa6e8dec1051f72dc14d5be956da3eb76433a5842a9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060inputDetails?.cached_tokens !== undefined || inputDetails?.cache_creation_tokens !== undefined || usage.cached_tokens !== undefined || usage\u2026\u0060 appears character-identically in 2 files \u2014 packages/core/src/observability/request-log-store.ts, packages/core/src/usage/store.ts. 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":6397}}}],"partialFingerprints":{"codehealthFindingId/v1":"9add044805e2940e96a76ce00543c4ba06ca6033952832a0e792768ccbcc3319"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isEnvName(key) \u0026\u0026 typeof value === \u0022string\u0022\u0060 appears character-identically in 2 files \u2014 packages/core/src/agents/claude-app/launch.ts, packages/core/src/profiles/launch-service.ts. 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":"packages/core/src/agents/claude-app/launch.ts"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c5f81924fdcd67c8d4258cac7b4995aaa81c235fab9f8ebfc887be4db40aea3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isRecord(error) \u0026\u0026 typeof error.message === \u0022string\u0022\u0060 appears character-identically in 3 files \u2014 packages/core/src/gateway/existing-gateway-probe.ts, packages/core/src/mcp/fusion-vision-mcp.ts, packages/core/src/routing/route-script-worker.ts. 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":"packages/core/src/gateway/existing-gateway-probe.ts"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3dfd7fc292e6e98ac23ffc05a9a6ca91a4152d0869e6870fe4cee726afa544d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isRecord(params) \u0026\u0026 typeof params.name === \u0022string\u0022\u0060 appears character-identically in 2 files \u2014 packages/core/src/mcp/fusion-tool-fallback-mcp.ts, packages/core/src/mcp/toolhub-mcp.ts. 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":"packages/core/src/mcp/fusion-tool-fallback-mcp.ts"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"c95b1f211e4831915e0b81b109e1e2f1debc3d7811f3fc231a07a1621ff1d82b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isRecord(payload) \u0026\u0026 Array.isArray(payload.models)\u0060 appears character-identically in 2 files \u2014 packages/core/src/gateway/model-catalog.ts, packages/core/src/providers/model-catalog.ts. 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":"packages/core/src/gateway/model-catalog.ts"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"9803398127579d14e53f68c9142ae8e7cb3e510431e85db62cb24a732069bf69"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isRecord(raw) \u0026\u0026 Array.isArray(raw.items)\u0060 appears character-identically in 2 files \u2014 packages/core/src/gateway/features/hosted-web-search/discovery.ts, packages/core/src/mcp/fusion-vision-mcp.ts. 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":"packages/core/src/gateway/features/hosted-web-search/discovery.ts"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"06eb96c1b0a3e3061285ed3e4b4f4f6329300dc01c4390d9b1a670b6fa795638"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isRecord(raw) \u0026\u0026 Array.isArray(raw.organic)\u0060 appears character-identically in 2 files \u2014 packages/core/src/gateway/features/hosted-web-search/discovery.ts, packages/core/src/mcp/fusion-vision-mcp.ts. 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":"packages/core/src/gateway/features/hosted-web-search/discovery.ts"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7374234ac7c69a5d861f891b07b756f012b3e4b5409c70a35f5644c91498e93"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isRecord(raw) \u0026\u0026 Array.isArray(raw.organic_results)\u0060 appears character-identically in 2 files \u2014 packages/core/src/gateway/features/hosted-web-search/discovery.ts, packages/core/src/mcp/fusion-vision-mcp.ts. 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":"packages/core/src/gateway/features/hosted-web-search/discovery.ts"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a3edaca178787c6d096b64454ba517a61c4533a78c885bcdbceb64a3efbcb0c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isRecord(raw) \u0026\u0026 Array.isArray(raw.results)\u0060 appears character-identically in 2 files \u2014 packages/core/src/gateway/features/hosted-web-search/discovery.ts, packages/core/src/mcp/fusion-vision-mcp.ts. 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":"packages/core/src/gateway/features/hosted-web-search/discovery.ts"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d9af62ebe87451a7c0ae8cb1254807d092b3c4a52bdf5d7d555028ffd4263a2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isRecord(raw) \u0026\u0026 isRecord(raw.web) \u0026\u0026 Array.isArray(raw.web.results)\u0060 appears character-identically in 2 files \u2014 packages/core/src/gateway/features/hosted-web-search/discovery.ts, packages/core/src/mcp/fusion-vision-mcp.ts. 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":"packages/core/src/gateway/features/hosted-web-search/discovery.ts"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"31625ae83f5c0ab892509c06dc85d5bc634f2eb722d16fbf3ff7a110308f7cd2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isRecord(raw) \u0026\u0026 isRecord(raw.webPages) \u0026\u0026 Array.isArray(raw.webPages.value)\u0060 appears character-identically in 2 files \u2014 packages/core/src/gateway/features/hosted-web-search/discovery.ts, packages/core/src/mcp/fusion-vision-mcp.ts. 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":"packages/core/src/gateway/features/hosted-web-search/discovery.ts"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"49549be81a14b1673a8b330addb89a9e7e23d615e53b3669da2cde24c4eb0f15"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isRecord(value) \u0026\u0026 Array.isArray(value.tools)\u0060 appears character-identically in 2 files \u2014 packages/core/src/mcp/tool-discovery.ts, packages/core/src/mcp/toolhub-mcp.ts. 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":"packages/core/src/mcp/tool-discovery.ts"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ef0046c09cc1d1ca82d14bf27e0f131b1cb61fd605d65a1e16463b5531ae6f3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isRecord(value.response) \u0026\u0026 Array.isArray(value.response.output)\u0060 appears character-identically in 2 files \u2014 packages/core/src/gateway/features/codex-multi-agent-bridge.ts, packages/core/src/gateway/features/codex-patch-bridge.ts. 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":"packages/core/src/gateway/features/codex-multi-agent-bridge.ts"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"9beab0fc3061c3c5c7299fcc4980406ad044af0df51ae083db0166173727a0cb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060knownGatewayPluginDefaultApps(pluginId) || []\u0060 appears character-identically in 2 files \u2014 packages/electron/src/main/deep-link.ts, packages/electron/src/main/plugin-app-url.ts. 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":"packages/electron/src/main/deep-link.ts"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1f2faa4c330b21d9d569cba0a76b84e944c8ea346a3a3d3ebb2d622a3714a82"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lastUnauthorized?.status === 401 || lastUnauthorized?.status === 403\u0060 appears character-identically in 2 files \u2014 packages/core/src/gateway/existing-gateway-probe.ts, packages/core/src/profiles/launch-service.ts. 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":"packages/core/src/gateway/existing-gateway-probe.ts"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3575fdd1bc9a2a1b5521fd91fa8052cc4acb124bf95b984cbd5eb173b435274"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060latest?.refreshToken \u0026\u0026 latest.accessToken \u0026\u0026 latest.refreshToken !== auth.refreshToken\u0060 appears character-identically in 2 files \u2014 packages/core/src/agents/local-providers/grok.ts, packages/core/src/agents/local-providers/kimi.ts. 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":"packages/core/src/agents/local-providers/grok.ts"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"41caf231c9db1ae71ecb8954670edf8d1b5d99ce500522ada2d06a03809b4f30"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060leftBuffer.length === rightBuffer.length \u0026\u0026 timingSafeEqual(leftBuffer, rightBuffer)\u0060 appears character-identically in 3 files \u2014 packages/core/src/gateway/auth/api-key-authorizer.ts, packages/core/src/gateway/context-archive.ts, packages/core/src/gateway/core-runtime/router-plugin.ts. 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":"packages/core/src/gateway/auth/api-key-authorizer.ts"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"16a995a44f0a34d159cd873ff1e181f28c4151a827dcfe43b29fcdf3ac75fbf9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060line.slice(\u0022event:\u0022.length).trim() || \u0022message\u0022\u0060 appears character-identically in 2 files \u2014 packages/core/src/mcp/tool-discovery.ts, packages/core/src/mcp/toolhub-mcp.ts. 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":"packages/core/src/mcp/tool-discovery.ts"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"60293211fbf14801c55492a2b74033a97291ba89049f65aa09244286a792b6de"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060message.id === undefined || message.id === null\u0060 appears character-identically in 2 files \u2014 packages/core/src/mcp/tool-discovery.ts, packages/core/src/mcp/toolhub-mcp.ts. 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":"packages/core/src/mcp/tool-discovery.ts"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"f11597a9dc4d07cc46a5abfdc3c85dca3ef6a033e25b7176d8b83bef4349f366"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060model \u0026\u0026 displayName \u0026\u0026 model !== displayName \u0026\u0026 modelIds.has(model)\u0060 appears character-identically in 3 files \u2014 packages/core/src/agents/local-providers/shared.ts, packages/ui/src/pages/home/shared/profiles.ts, packages/ui/src/pages/home/shared/providers.ts. 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":"packages/core/src/agents/local-providers/shared.ts"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"5947554127c41dc3932709c1fd52c6454ba0eebb28beb4d3cbafb55813fa06fc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060model \u0026\u0026 modelIds.has(model) \u0026\u0026 metadata \u0026\u0026 typeof metadata === \u0022object\u0022\u0060 appears character-identically in 2 files \u2014 packages/core/src/agents/local-providers/shared.ts, packages/ui/src/pages/home/shared/providers.ts. 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":"packages/core/src/agents/local-providers/shared.ts"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"aebe68caae50712cdc61d5d1348a3b0e493486018f2c6281cfd8ba3582420d3a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060modelToAuthorize \u0026\u0026 !isModelAllowedForProfile(config, profile, modelToAuthorize)\u0060 appears character-identically in 2 files \u2014 packages/core/src/gateway/core-runtime/router-plugin.ts, packages/core/src/gateway/request/pipeline.ts. 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":"packages/core/src/gateway/core-runtime/router-plugin.ts"},"region":{"startLine":1028}}}],"partialFingerprints":{"codehealthFindingId/v1":"9042beae3718aca9289315752ce9eda6bf8c392c44d2153585e18c5815849d66"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060models.status === 401 || models.status === 403\u0060 appears character-identically in 2 files \u2014 packages/core/src/gateway/existing-gateway-probe.ts, packages/core/src/profiles/launch-service.ts. 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":"packages/core/src/gateway/existing-gateway-probe.ts"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"c52ee9cf9778bf3ed9b67b3a2b8e5745ed43abfdbba0b245e2822894cc1802dd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060normalizeClientModel(profile.model) || defaultClientModel(config)\u0060 appears character-identically in 4 files \u2014 packages/core/src/agents/kilo/profile-config.ts, packages/core/src/agents/opencode/profile-config.ts, packages/core/src/agents/zcode/profile-config.ts, packages/core/src/profiles/service.ts. 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":"packages/core/src/agents/kilo/profile-config.ts"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"32aedcc42a0b4fd8514ba920b58d094f515dbfcf4c630dd4c23f32f3d556f635"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060normalizeRouteSelector(value)?.trim() || \u0022\u0022\u0060 appears character-identically in 2 files \u2014 packages/core/src/agents/zcode/profile-config.ts, packages/core/src/profiles/service.ts. 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":"packages/core/src/agents/zcode/profile-config.ts"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"70b9f337c7ea41eeb9f5f4e92cef85738c4619df3c7ba0d6a763f4849c6d903e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060normalized === \u0022*\u0022 || normalized === \u0022all\u0022\u0060 appears character-identically in 3 files \u2014 packages/core/src/plugins/marketplace.ts, packages/core/src/web/management-server.ts, packages/ui/src/pages/home/shared/extensions.ts. 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":"packages/core/src/plugins/marketplace.ts"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d9fba52471281ce9041caeb6fd170b2677432f55778d7b51e1090a12a5d1d8e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060normalized === \u0022anthropic\u0022 || normalized === \u0022anthropic_messages\u0022\u0060 appears character-identically in 2 files \u2014 packages/core/src/agents/codex/model-catalog.ts, packages/core/src/providers/runtime-topology.ts. 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":"packages/core/src/agents/codex/model-catalog.ts"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fedfa1f22ebd84607628d0f2e4fdebcf281b7b96211a59617f572d2577ec17e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060normalized === \u0022bottoken\u0022 || normalized === \u0022token\u0022\u0060 appears character-identically in 2 files \u2014 packages/core/src/agents/bot-gateway/env.ts, packages/ui/src/pages/home/shared/profiles.ts. 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":"packages/core/src/agents/bot-gateway/env.ts"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ebf3b9bad5dcc2ca97dd86107ada15ff99265ad91028a3d2d2817eef5986e5a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060normalized === \u0022gemini\u0022 || normalized === \u0022gemini_generate_content\u0022\u0060 appears character-identically in 2 files \u2014 packages/core/src/agents/codex/model-catalog.ts, packages/core/src/providers/runtime-topology.ts. 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":"packages/core/src/agents/codex/model-catalog.ts"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb813b5b68be9c8cfa77791ddcbab158fab8885bc943eeb4eb18b85210228976"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060normalized === \u0022gemini_interactions\u0022 || normalized === \u0022gemini-interactions\u0022 || normalized === \u0022google_interactions\u0022 || normalized === \u0022goog\u2026\u0060 appears character-identically in 2 files \u2014 packages/core/src/agents/codex/model-catalog.ts, packages/core/src/providers/runtime-topology.ts. 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":"packages/core/src/agents/codex/model-catalog.ts"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d5321083536166e0b4b322d050b64d5269a62fcea4ef3dca4dddd77bf493f4f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060normalized === \u0022oauth\u0022 || normalized === \u0022oauth_2\u0022\u0060 appears character-identically in 2 files \u2014 packages/core/src/agents/bot-gateway/env.ts, packages/ui/src/pages/home/shared/profiles.ts. 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":"packages/core/src/agents/bot-gateway/env.ts"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7462665181533e2ecfa477a8a7279f7cf90315091cedbad6e083d5dd0841aa2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060normalized === \u0022openai\u0022 || normalized === \u0022openai_responses\u0022\u0060 appears character-identically in 2 files \u2014 packages/core/src/agents/codex/model-catalog.ts, packages/core/src/providers/runtime-topology.ts. 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":"packages/core/src/agents/codex/model-catalog.ts"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"6866b37af10a2b4b8b9ae53119c34725bc38b952166300460d03c8aa619b4594"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060normalized === \u0022openai_chat\u0022 || normalized === \u0022openai_chat_completions\u0022\u0060 appears character-identically in 2 files \u2014 packages/core/src/agents/codex/model-catalog.ts, packages/core/src/providers/runtime-topology.ts. 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":"packages/core/src/agents/codex/model-catalog.ts"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ca2344f7e417591a15cc34c477eb20337b83098c8be205093d1e7cfc7554616"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060normalized.includes(\u0022@anthropic-ai/claude-code\u0022) || normalized.includes(\u0022claude-code\u0022) || normalized.includes(\u0022claude code\u0022)\u0060 appears character-identically in 2 files \u2014 packages/core/src/gateway/http/io.ts, packages/core/src/proxy/service.ts. 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":"packages/core/src/gateway/http/io.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b9bf23f784426d9c7fa833e223623ace1b82687c399e2682ac4e0f25f048ea8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060normalized.includes(\u0022safari\u0022) \u0026\u0026 !normalized.includes(\u0022chrome\u0022)\u0060 appears character-identically in 2 files \u2014 packages/core/src/gateway/http/io.ts, packages/core/src/proxy/service.ts. 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":"packages/core/src/gateway/http/io.ts"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"d855df26319c59b0801448d9ea7a60672666e6a09b12b22880fb6ec8105be49a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060normalized.includes(\u0022webhook\u0022) || normalized === \u0022sendmode\u0022\u0060 appears character-identically in 3 files \u2014 packages/core/src/agents/bot-gateway/env.ts, packages/core/src/agents/bot-gateway/qr-login-service.ts, packages/ui/src/pages/home/shared/profiles.ts. 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":"packages/core/src/agents/bot-gateway/env.ts"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"372265ad936dab440fe3d2d8612858619578e53f3e83a03d0ef39d8fc1edee12"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060normalizedHost.endsWith(suffix) \u0026\u0026 normalizedHost !== suffix.slice(1)\u0060 appears character-identically in 2 files \u2014 packages/core/src/plugins/service.ts, packages/core/src/proxy/service.ts. 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":"packages/core/src/plugins/service.ts"},"region":{"startLine":1160}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d9eb361a4215d1d22a61c2b2a00a5f27c45c688bd3d97686dfae0206b21519b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060options.apiKey || firstConfiguredApiKey(config)\u0060 appears character-identically in 2 files \u2014 packages/core/src/mcp/grok-media-config.ts, packages/core/src/mcp/toolhub-config.ts. 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":"packages/core/src/mcp/grok-media-config.ts"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"16f83d77a0fe25439b718fabd75e6aca3430e8592c3fbdc5aff5f97e65e8d1fd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060options.backup === false || previous === undefined\u0060 appears character-identically in 3 files \u2014 packages/core/src/agents/kilo/profile-config.ts, packages/core/src/agents/opencode/profile-config.ts, packages/core/src/agents/zcode/profile-config.ts. 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":"packages/core/src/agents/kilo/profile-config.ts"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"a00c36ef38885da7f39cc2cf0c291afcc0fbb7df270dca4d308d20340e7f09e3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060parsed \u0026\u0026 typeof parsed === \u0022object\u0022 \u0026\u0026 !Array.isArray(parsed)\u0060 appears character-identically in 3 files \u2014 packages/core/src/gateway/context-archive/store.ts, packages/core/src/web/management-server.ts, scripts/generate-claude-code-config-options.mjs. 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":"packages/core/src/gateway/context-archive/store.ts"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"15f538a54eb55e57069c88e289ccc3dac17c92bb69ab141b8951cde0bc955fea"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060path.isAbsolute(plan.command) \u0026\u0026 !existsSync(plan.command)\u0060 appears character-identically in 3 files \u2014 packages/cli/src/cli.ts, packages/core/src/agents/codex/app-launch.ts, packages/core/src/profiles/launch-service.ts. 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":"packages/cli/src/cli.ts"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"164f47136a3bff8ef3f22400cefbcea07bda5f1b9a4c2cc4207a45d7ba32cf3f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060pluginId === CLAUDE_DESIGN_PLUGIN_ID || pluginId === CLAUDE_SHIP_PLUGIN_ID\u0060 appears character-identically in 2 files \u2014 packages/core/src/plugins/service.ts, packages/electron/src/main/deep-link.ts. 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":"packages/core/src/plugins/service.ts"},"region":{"startLine":1315}}}],"partialFingerprints":{"codehealthFindingId/v1":"317bb03894d4757119eb63fc354aff67264b006330a3fe9ff2c612e5f51b8dbc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060process.env.CCR_INTERNAL_HOME_DIR?.trim() || process.env.HOME?.trim() || process.env.USERPROFILE?.trim() || os.homedir()\u0060 appears character-identically in 3 files \u2014 packages/core/src/agents/local-providers/codex.ts, packages/core/src/agents/local-providers/grok.ts, packages/core/src/agents/local-providers/zcode.ts. 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":"packages/core/src/agents/local-providers/codex.ts"},"region":{"startLine":855}}}],"partialFingerprints":{"codehealthFindingId/v1":"98da9825f465859b6c2629198347456e7cc578ede5b1867d210420c91521689e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060process.platform === \u0022darwin\u0022 || process.platform === \u0022win32\u0022\u0060 appears character-identically in 3 files \u2014 packages/core/src/proxy/service.ts, packages/core/src/proxy/system-proxy.ts, packages/electron/src/main/tray-controller.ts. 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":"packages/core/src/proxy/service.ts"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b59eb93d102c68e8627bc8d656d46b64161e9f3221b27cef902388a78caa68d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060process.platform === \u0022win32\u0022 || !existsSync(file)\u0060 appears character-identically in 7 files \u2014 packages/core/src/agents/kilo/profile-config.ts, packages/core/src/agents/opencode/profile-config.ts, packages/core/src/agents/pi/profile-config.ts, packages/core/src/config/config-repository.ts. 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":"packages/core/src/agents/kilo/profile-config.ts"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e177592e4b122e0eea26ac95041e5745a8387d9d489c22b10f3c77d8e3de8a7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060profile.agent === \u0022grok\u0022 || profile.agent === \u0022kimi\u0022 || profile.agent === \u0022pi\u0022 || profile.agent === \u0022kilo\u0022\u0060 appears character-identically in 2 files \u2014 packages/core/src/profiles/launch-core.ts, packages/ui/src/pages/home/shared/profiles.ts. 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":"packages/core/src/profiles/launch-core.ts"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"543bffe2a68219c0ddff67e094882ae623ca9dc6a5714b86be9ffffe27dacca2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060profile.agent === \u0022workbuddy\u0022 || profile.agent === \u0022zcode\u0022\u0060 appears character-identically in 2 files \u2014 packages/core/src/profiles/service.ts, packages/ui/src/pages/home/shared/profiles.ts. 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":"packages/core/src/profiles/service.ts"},"region":{"startLine":2703}}}],"partialFingerprints":{"codehealthFindingId/v1":"53774b820cac066d1eb4964fa69e4e566abf6df6f5e9d1170f6be566382a588f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060profile.agent === \u0022workbuddy\u0022 || profile.agent === \u0022zcode\u0022 || profile.agent === \u0022claude-design\u0022\u0060 appears character-identically in 2 files \u2014 packages/core/src/profiles/launch-core.ts, packages/ui/src/pages/home/shared/profiles.ts. 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":"packages/core/src/profiles/launch-core.ts"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed05a17ba4d7b2af9d6eb73468a4825ccfb505bfc3279c0c2e60d8f984175843"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060profile.configFile || defaultCodexConfigFile(profile.agent)\u0060 appears character-identically in 2 files \u2014 packages/core/src/profiles/launch-core.ts, packages/core/src/profiles/service.ts. 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":"packages/core/src/profiles/launch-core.ts"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"20b7ca6c7c8e998c63a693445488f40773f8648139ef8e73b3b9c496f25f1ff9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060profile.enabled !== false \u0026\u0026 profile.materialization?.enabled !== false \u0026\u0026 profile.materialization?.includeInGatewayModels !== false\u0060 appears character-identically in 4 files \u2014 packages/core/src/agents/codex/model-catalog.ts, packages/core/src/contracts/app.ts, packages/core/src/gateway/features/model-discovery.ts, packages/ui/src/pages/home/shared/providers.ts. 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":"packages/core/src/agents/codex/model-catalog.ts"},"region":{"startLine":807}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1661323483308a961d1acffc5a4bd265ae0b6c73879c026aba5857c039bcc5f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060profile.enabled \u0026\u0026 profileApiKeyId(profile) === apiKeyId\u0060 appears character-identically in 2 files \u2014 packages/core/src/gateway/application/gateway-service.ts, packages/core/src/profiles/model-allowlist.ts. 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":"packages/core/src/gateway/application/gateway-service.ts"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"12d128a5c52d3523edb928eaf2a317eb79eb94b5807daceafca8ba4e069bf96a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060profile.id || profile.name || profile.agent\u0060 appears character-identically in 4 files \u2014 packages/core/src/gateway/context-archive.ts, packages/core/src/profiles/api-key.ts, packages/core/src/profiles/launch-core.ts, packages/core/src/profiles/service.ts. 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":"packages/core/src/gateway/context-archive.ts"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"49fa6f321734116b637b8a77b85973194b40bbd94c9687dd5a8a7a18950cbcba"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060profile.providerName?.trim() || \u0022Claude Code Router\u0022\u0060 appears character-identically in 5 files \u2014 packages/core/src/agents/kilo/profile-config.ts, packages/core/src/agents/opencode/profile-config.ts, packages/core/src/agents/zcode/profile-config.ts, packages/core/src/profiles/service.ts. 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":"packages/core/src/agents/kilo/profile-config.ts"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"541355b3f3b1fd837fd7edaa530f2e5bde5fc591e8d406838b36745f2c6055c3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060profile.scope === \u0022ccr\u0022 || profile.scope === \u0022custom\u0022\u0060 appears character-identically in 3 files \u2014 packages/core/src/agents/kilo/profile-config.ts, packages/core/src/agents/opencode/profile-config.ts, packages/core/src/agents/pi/profile-config.ts. 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":"packages/core/src/agents/kilo/profile-config.ts"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b5fbc1c75b52e86a3d4b232cee05ea752ecbd7d055951921a29173efe3b4d74"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060profile.settingsFile || \u0022~/.claude/settings.json\u0022\u0060 appears character-identically in 2 files \u2014 packages/core/src/profiles/launch-core.ts, packages/core/src/profiles/service.ts. 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":"packages/core/src/profiles/launch-core.ts"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"3265a0e7982f85f5ec3d5485e8c0908188008b3e539f5ddc655f2ffc22dbc22c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060protocol === \u0022gemini_generate_content\u0022 || protocol === \u0022gemini_interactions\u0022\u0060 appears character-identically in 4 files \u2014 packages/core/src/agents/local-providers/opencode.ts, packages/core/src/observability/stream-experience.ts, packages/core/src/providers/probe.ts, packages/core/src/providers/url.ts. 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":"packages/core/src/agents/local-providers/opencode.ts"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7a22babd31c9f02b9e645b049c1c07d7c26a7c2120db24fb5c504baf447f468"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060protocol === \u0022openai_responses\u0022 || protocol === \u0022openai_chat_completions\u0022\u0060 appears character-identically in 2 files \u2014 packages/core/src/providers/probe.ts, packages/core/src/providers/url.ts. 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":"packages/core/src/providers/probe.ts"},"region":{"startLine":1791}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc6c5c6ef500ebf68f7c11ea0b2487c4139bc3c1e8fbb47dedc02194858920a9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060provider.api_base_url || provider.baseUrl || provider.baseurl || \u0022\u0022\u0060 appears character-identically in 5 files \u2014 packages/core/src/agents/codex/model-catalog.ts, packages/core/src/agents/local-providers/codex.ts, packages/core/src/profiles/service.ts, packages/core/src/providers/account-service.ts. 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":"packages/core/src/agents/codex/model-catalog.ts"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a95894cd53f278c2cb71a39979cc24aebfb359654c9aa9ccf8c0bca86968c92"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060provider.api_base_url || provider.baseurl || provider.baseUrl || \u0022\u0022\u0060 appears character-identically in 3 files \u2014 packages/core/src/agents/local-providers/grok.ts, packages/core/src/gateway/core-runtime/config-compiler.ts, packages/ui/src/pages/home/shared/providers.ts. 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":"packages/core/src/agents/local-providers/grok.ts"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b4640baedf1a678898396603997edb91aaa9d8898858579cb150d670744d80b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060provider.api_key || provider.apiKey || provider.apikey || \u0022\u0022\u0060 appears character-identically in 7 files \u2014 packages/core/src/agents/codex/model-catalog.ts, packages/core/src/agents/local-providers/codex.ts, packages/core/src/agents/local-providers/grok.ts, packages/core/src/gateway/core-runtime/config-compiler.ts. 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":"packages/core/src/agents/codex/model-catalog.ts"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"b08724ec1e9800e795319fb0f3215b9a3c34c53f7ece1d623367e8bed5422bda"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060provider.baseurl || provider.baseUrl || provider.api_base_url\u0060 appears character-identically in 2 files \u2014 packages/core/src/providers/runtime-topology.ts, packages/core/src/routing/model-registry.ts. 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":"packages/core/src/providers/runtime-topology.ts"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"d38a3c1d5828720897bafebf413070cbfa14e02a4736a65b118985095dda5a01"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060provider.baseurl || provider.baseUrl || provider.api_base_url || \u0022\u0022\u0060 appears character-identically in 2 files \u2014 packages/core/src/gateway/model-catalog.ts, packages/core/src/media/models.ts. 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":"packages/core/src/gateway/model-catalog.ts"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bf911d8b9f055ab405e6f919972e69c07062d358ac9bb292ec008192547ef97"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060readString(auth.chatgpt_account_id) || readString(auth.account_id) || readString(auth.accountId)\u0060 appears character-identically in 2 files \u2014 packages/core/src/agents/local-providers/codex.ts, packages/core/src/providers/account-service.ts. 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":"packages/core/src/agents/local-providers/codex.ts"},"region":{"startLine":864}}}],"partialFingerprints":{"codehealthFindingId/v1":"b88fc859f6caa465ddb4d274e889050f837adc134d31541ccc11de58817dd379"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060readString(codexOauth.clientId) || codexOauthClientId\u0060 appears character-identically in 2 files \u2014 packages/core/src/providers/account-service.ts, packages/core/src/providers/probe.ts. 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":"packages/core/src/providers/account-service.ts"},"region":{"startLine":1660}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c1cc7d917e54b43bef47bdcf74f5b6eb3c2562b7153cd0ebf9836cd65d6524d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060readString(codexOauth.tokenEndpoint) || readString(process.env.CODEX_REFRESH_TOKEN_URL_OVERRIDE) || codexOauthTokenEndpoint\u0060 appears character-identically in 2 files \u2014 packages/core/src/providers/account-service.ts, packages/core/src/providers/probe.ts. 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":"packages/core/src/providers/account-service.ts"},"region":{"startLine":1657}}}],"partialFingerprints":{"codehealthFindingId/v1":"249721e989c1fdd94fed1f125bdd1ceba87db148f7be8601d5e875d0a0407d54"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060readString(model.id) || readString(model.canonical_slug)\u0060 appears character-identically in 2 files \u2014 packages/core/src/models/pricing-service.ts, scripts/generate-models-json.mjs. 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":"packages/core/src/models/pricing-service.ts"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cc3531bde78f1d8f88c2ed6ecec5dd72e0749ed40e3c5fafa8f0e52ce2066c6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060readString(payload.error.message) || readString(payload.error.type)\u0060 appears character-identically in 2 files \u2014 packages/core/src/providers/account-service.ts, packages/electron/src/main/provider-account-webcontent.ts. 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":"packages/core/src/providers/account-service.ts"},"region":{"startLine":2048}}}],"partialFingerprints":{"codehealthFindingId/v1":"c22927978c86e42847ca948830b2bb5a8205b60dc939831ed47dd8ad6e20c007"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060readString(payload.message) || readString(payload.detail)\u0060 appears character-identically in 2 files \u2014 packages/core/src/providers/account-service.ts, packages/electron/src/main/provider-account-webcontent.ts. 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":"packages/core/src/providers/account-service.ts"},"region":{"startLine":2043}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bfe7bfeef76016ec526fa5630c829bcbf2ecf55cae741424b7325043ceb89a1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060readString(payload?.access_token) || readString(payload?.accessToken)\u0060 appears character-identically in 3 files \u2014 packages/core/src/agents/local-providers/grok.ts, packages/core/src/agents/local-providers/kimi.ts, packages/core/src/providers/account-service.ts. 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":"packages/core/src/agents/local-providers/grok.ts"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a7b1eb6dbbff5f40dea04fbf4270b9076fe353210fa34d75ee98a1bbc1e70b4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060readString(payload?.error_description) || readString(payload?.error) || readString(payload?.message) || readableResponseSnippet(text)\u0060 appears character-identically in 2 files \u2014 packages/core/src/agents/local-providers/grok.ts, packages/core/src/providers/account-service.ts. 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":"packages/core/src/agents/local-providers/grok.ts"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"78a01458c1f853b75697f8896169cce1165cda150626dd2262ccad90dc41eae1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060readString(payload?.refresh_token) || readString(payload?.refreshToken) || refreshToken\u0060 appears character-identically in 2 files \u2014 packages/core/src/agents/local-providers/grok.ts, packages/core/src/providers/account-service.ts. 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":"packages/core/src/agents/local-providers/grok.ts"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"b06bb205a7c1f3e73bf61e6eeca819ffb5131dcba10ada7821849ab6676071e0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060readString(plugin.providerName) || readString(plugin.provider)\u0060 appears character-identically in 2 files \u2014 packages/core/src/providers/account-service.ts, packages/core/src/providers/model-auto-refresh.ts. 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":"packages/core/src/providers/account-service.ts"},"region":{"startLine":1527}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd0131c00d5de98a44bb908640d42d4948a0db34d20900c6063bed3b02dccc5d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060readString(record.refresh_token) || readString(record.refreshToken)\u0060 appears character-identically in 2 files \u2014 packages/core/src/agents/local-providers/grok.ts, packages/core/src/agents/local-providers/kimi.ts. 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":"packages/core/src/agents/local-providers/grok.ts"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"005bd40c3b30723a91f3b511bf03219bd69992c951582d57757d84c38165b004"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060refreshIntervalMs \u0026\u0026 refreshIntervalMs \u003E 0\u0060 appears character-identically in 2 files \u2014 packages/core/src/contracts/deep-link.ts, packages/ui/src/pages/home/shared/providers.ts. 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":"packages/core/src/contracts/deep-link.ts"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"b315d7524c1efeafbc83f8c84f4c42896cfd0adc743efd66dca33c9d5123e31f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060relative === \u0022\u0022 || (!relative.startsWith(\u0022..\u0022) \u0026\u0026 !path.isAbsolute(relative))\u0060 appears character-identically in 2 files \u2014 packages/core/src/media/service.ts, packages/core/src/media/storage.ts. 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":"packages/core/src/media/service.ts"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"547ed5da1f390035d5919f0f8474c95741ede2408dd9b90dfbb7ed16a02f4ed1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060relative === \u0022\u0022 || (Boolean(relative) \u0026\u0026 !relative.startsWith(\u0022..\u0022) \u0026\u0026 !path.isAbsolute(relative))\u0060 appears character-identically in 2 files \u2014 packages/core/src/gateway/claude-code-router-plugin.ts, packages/core/src/plugins/service.ts. 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":"packages/core/src/gateway/claude-code-router-plugin.ts"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"b42c47b11e75757582fc3f790e0ba861b6c0e3268129480d2ee66d8716505ac4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060remaining !== undefined \u0026\u0026 used !== undefined\u0060 appears character-identically in 2 files \u2014 packages/core/src/providers/account-service.ts, packages/electron/bundled-plugins/new-api-account/index.cjs. 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":"packages/core/src/providers/account-service.ts"},"region":{"startLine":1131}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8ea896d1df45a22308652503bc4f03ab3c06ceb742e363f6dc62ee8f3e2eb8f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060request.id === undefined \u0026\u0026 request.method?.startsWith(\u0022notifications/\u0022)\u0060 appears character-identically in 8 files \u2014 packages/core/src/mcp/fusion-tool-fallback-mcp.ts, packages/core/src/mcp/fusion-vision-mcp.ts, packages/core/src/mcp/grok-media-mcp.ts, packages/core/src/mcp/media-tools-proxy-mcp.ts. 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":"packages/core/src/mcp/fusion-tool-fallback-mcp.ts"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"7466369dfd4f05ca28158e2a6180a92cdccf14b5b17d3eee2e0f3f95abe03dfb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060request.jsonrpc !== \u00222.0\u0022 || !request.method\u0060 appears character-identically in 8 files \u2014 packages/core/src/mcp/fusion-tool-fallback-mcp.ts, packages/core/src/mcp/fusion-vision-mcp.ts, packages/core/src/mcp/grok-media-mcp.ts, packages/core/src/mcp/media-tools-proxy-mcp.ts. 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":"packages/core/src/mcp/fusion-tool-fallback-mcp.ts"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0a17ba928ba0ee2a33a6bf47a697e0d4dad4b0a221c7957cb630ba99e0171cd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060request.method !== \u0022GET\u0022 \u0026\u0026 request.method !== \u0022HEAD\u0022\u0060 appears character-identically in 2 files \u2014 packages/core/src/mcp/grok-media-mcp.ts, packages/core/src/web/management-server.ts. 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":"packages/core/src/mcp/grok-media-mcp.ts"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"89842c855e53160017c4fe0818c77debaa1c9019377d2618be6469cd056f68c1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060response.status === 401 || response.status === 403\u0060 appears character-identically in 2 files \u2014 packages/core/src/agents/local-providers/grok.ts, packages/core/src/agents/local-providers/kimi.ts. 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":"packages/core/src/agents/local-providers/grok.ts"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bd23f14bb77dd530ab66fb51a473a3cc268af823410d801115833f5ae205937"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060retryAfterMs !== undefined \u0026\u0026 retryAfterMs \u003E 0\u0060 appears character-identically in 2 files \u2014 packages/core/src/gateway/upstream/retry-policy.ts, packages/core/src/mcp/fusion-vision-mcp.ts. 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":"packages/core/src/gateway/upstream/retry-policy.ts"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"f47e4e07b1b7868d31a6f3c587166141e260002cf7d99bfaf33c00d4cef8bfa0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060rule.enabled \u0026\u0026 rule.type === \u0022script\u0022 \u0026\u0026 rule.script\u0060 appears character-identically in 2 files \u2014 packages/core/src/gateway/core-runtime/router-plugin.ts, packages/core/src/routing/route-script-runtime.ts. 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":"packages/core/src/gateway/core-runtime/router-plugin.ts"},"region":{"startLine":1254}}}],"partialFingerprints":{"codehealthFindingId/v1":"96c9737409691d7dee9959304514d30238cb0904aa878d962cc3ddc3e7f364c8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060sanitizeCodexProviderId(profile.id || profile.name || providerId) || \u0022codex\u0022\u0060 appears character-identically in 2 files \u2014 packages/core/src/profiles/launch-core.ts, packages/core/src/profiles/service.ts. 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":"packages/core/src/profiles/launch-core.ts"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"e50f08b5e16f7c7cdc70d1bc42ccaa0e8c7a4a04f575681e0ef3e0c0b637c244"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060sanitizeCodexProviderId(profile.providerId || \u0022\u0022) || \u0022claude-code-router\u0022\u0060 appears character-identically in 3 files \u2014 packages/core/src/agents/codex/app-launch.ts, packages/core/src/profiles/launch-core.ts, packages/core/src/profiles/service.ts. 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":"packages/core/src/agents/codex/app-launch.ts"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"4497eca34f822e81c5e8ea317c1739c7c853bcf7b56319b623469ee6322c75fa"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060sanitizeProfilePathSegment(profile.id || profile.name || \u0022default\u0022) || \u0022default\u0022\u0060 appears character-identically in 2 files \u2014 packages/core/src/agents/claude-app/launch.ts, packages/core/src/agents/codex/app-launch.ts. 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":"packages/core/src/agents/claude-app/launch.ts"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d66634d43e8aa64d21fc9ab571c8f21c5fa13ec3212f20c6465a6c0e1fc1a4a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060sanitizeProfilePathSegment(profile.id || profile.name || profile.agent) || \u0022claude-code\u0022\u0060 appears character-identically in 2 files \u2014 packages/core/src/profiles/launch-service.ts, packages/core/src/profiles/service.ts. 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":"packages/core/src/profiles/launch-service.ts"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6e61513dbc781a594260f1cb0681a7a2b9b689edeea06d80c9760e974b9fb48"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060sanitizeProviderId(profile.providerId || \u0022\u0022) || \u0022claude-code-router\u0022\u0060 appears character-identically in 3 files \u2014 packages/core/src/agents/kilo/profile-config.ts, packages/core/src/agents/opencode/profile-config.ts, packages/core/src/agents/pi/profile-config.ts. 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":"packages/core/src/agents/kilo/profile-config.ts"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"107901fcd2b74cc7b70adf1d79cfb71fa44b2bbd60cb548f9b52d9ba7048b32f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060section === \u0022header\u0022 || section === \u0022headers\u0022\u0060 appears character-identically in 2 files \u2014 packages/core/src/gateway/claude-code-router-plugin.ts, packages/core/src/routing/rewrite.ts. 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":"packages/core/src/gateway/claude-code-router-plugin.ts"},"region":{"startLine":1461}}}],"partialFingerprints":{"codehealthFindingId/v1":"c63059da710efc6c4a9a0ef1bbc3563ca6c356c8309746d81305b87801586cf8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060separator \u003C= 0 || separator \u003E= trimmed.length - 1\u0060 appears character-identically in 3 files \u2014 packages/core/src/agents/claude-app/gateway-routes.ts, packages/core/src/observability/request-log-store.ts, packages/core/src/usage/store.ts. 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":"packages/core/src/agents/claude-app/gateway-routes.ts"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd34843dee32396173433f858f0211cb9bb2da92485eaa3e6fc158a6fe354b56"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060slashIndex \u003C= 0 || slashIndex \u003E= normalized.length - 1\u0060 appears character-identically in 2 files \u2014 packages/core/src/agents/codex/model-catalog.ts, packages/ui/src/pages/home/components/settings.tsx. 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":"packages/core/src/agents/codex/model-catalog.ts"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"eee211528832080d700e5f93ab542f08c04f5d8f9fbb8ebdfc95841979377521"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060slashIndex \u003E 0 \u0026\u0026 slashIndex \u003C trimmed.length - 1\u0060 appears character-identically in 2 files \u2014 packages/core/src/mcp/fusion-config.ts, packages/ui/src/pages/home/shared/profiles.ts. 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":"packages/core/src/mcp/fusion-config.ts"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bbdf7f92e3417a5a1b03a250b03103d1c974933e628af9c2db886d4c25eae19"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060status === \u0022critical\u0022 || status === \u0022error\u0022\u0060 appears character-identically in 3 files \u2014 packages/ui/src/pages/home/shared/provider-accounts.ts, packages/ui/src/pages/tray/components/account-panel.tsx, packages/ui/src/pages/tray/shared.tsx. 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":"packages/ui/src/pages/home/shared/provider-accounts.ts"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"6944fb8fdc099b5bb55ceb261f8720d426fbd289296b940b3f08a5c505064e31"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060status.lastError || \u0022CCR gateway did not start.\u0022\u0060 appears character-identically in 2 files \u2014 packages/core/src/web/management-server.ts, packages/electron/src/main/deep-link.ts. 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":"packages/core/src/web/management-server.ts"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"78ef9d95b46050c47b225575c903ed16b6d3b1b6ee48a3c6adefceccd6723bb9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060target.type !== \u0022page\u0022 || !target.webSocketDebuggerUrl\u0060 appears character-identically in 2 files \u2014 packages/core/src/agents/claude-app/cdp.ts, packages/core/src/agents/codex/media-preview-bridge.ts. 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":"packages/core/src/agents/claude-app/cdp.ts"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc555a667cbe7fc08601e95325b0fe45cfd0a22b529c961284ff82f34e493c64"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060text.includes(\u0022manual_reset\u0022) || text.includes(\u0022manual reset\u0022) || text.includes(\u0022manual-reset\u0022)\u0060 appears character-identically in 3 files \u2014 packages/core/src/agents/local-providers/codex.ts, packages/ui/src/pages/home/shared/provider-accounts.ts, packages/ui/src/pages/tray/shared.tsx. 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":"packages/core/src/agents/local-providers/codex.ts"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"3071eaac58ad1832fc1cd8890b18152fe01e324d938fa8cfd7cf68ce0b862197"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.status.endpoint || \u0022http://127.0.0.1\u0022\u0060 appears character-identically in 2 files \u2014 packages/core/src/gateway/http/request-handler.ts, packages/core/src/gateway/request/pipeline.ts. 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":"packages/core/src/gateway/http/request-handler.ts"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc2edf7373a1234c779e9a22a294120c240d1b9ec9be811fa9099d46462e05e9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.window \u0026\u0026 !this.window.isDestroyed()\u0060 appears character-identically in 2 files \u2014 packages/electron/src/main/built-in-browser.ts, packages/electron/src/main/electron-web-search-mcp.ts. 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":"packages/electron/src/main/built-in-browser.ts"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d2ea164e20fa8a8b98f5a6088d4409d45980110dba6d268d0f033b05d32400a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060trimmed.includes(\u0022:\u0022) \u0026\u0026 !trimmed.startsWith(\u0022[\u0022)\u0060 appears character-identically in 2 files \u2014 packages/electron/src/main/claude-design-window.ts, packages/electron/src/main/deep-link.ts. 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":"packages/electron/src/main/claude-design-window.ts"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"3944fda455001a5e913f89a05f6b6115c6b8f776ee745049580c77cb8c672ee8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060trimmed.startsWith(\u0022event:\u0022) || trimmed.startsWith(\u0022data:\u0022)\u0060 appears character-identically in 2 files \u2014 packages/core/src/mcp/tool-discovery.ts, packages/core/src/observability/request-log-store.ts. 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":"packages/core/src/mcp/tool-discovery.ts"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"fafac5117ea95633670ce2b08f2bb3a385553d7d1b89a001bc9235623a069976"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060trimmed.startsWith(\u0022~/\u0022) || trimmed.startsWith(\u0022~\\\\\u0022)\u0060 appears character-identically in 12 files \u2014 packages/core/src/agents/bot-gateway/env.ts, packages/core/src/agents/claude-app/launch.ts, packages/core/src/agents/codex/app-launch.ts, packages/core/src/agents/kilo/profile-config.ts. 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":"packages/core/src/agents/bot-gateway/env.ts"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a233792e1e894778dc74b1618554f008bb7ba1a7f193b8d951687b80c4259dd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof error === \u0022object\u0022 \u0026\u0026 error !== null \u0026\u0026 \u0022code\u0022 in error\u0060 appears character-identically in 5 files \u2014 packages/cli/src/cli.ts, packages/core/src/observability/raw-trace-sync.ts, packages/core/src/observability/request-log-runtime.ts, packages/core/src/observability/request-log-worker.ts. 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":"packages/cli/src/cli.ts"},"region":{"startLine":921}}}],"partialFingerprints":{"codehealthFindingId/v1":"137bcd8cb9cf63291d984843d1c49b2db83b2c4573f958326e2b990109e1343a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof item !== \u0022string\u0022 || !item.trim()\u0060 appears character-identically in 2 files \u2014 packages/core/src/media/service.ts, packages/core/src/providers/probe.ts. 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":"packages/core/src/media/service.ts"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d7301ffe8c129fcb8e96949f9b8a287bd3e6c37e674f9b40abc5dd3645f2d6c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof item === \u0022string\u0022 \u0026\u0026 isAllPluginSurfacesKey(item)\u0060 appears character-identically in 2 files \u2014 packages/core/src/plugins/marketplace.ts, packages/core/src/web/management-server.ts. 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":"packages/core/src/plugins/marketplace.ts"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdb6dbdf0f5a7481fdf07b78c5c438342f694c7a847c4326b5c7a9d36041ee1f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof parsed === \u0022object\u0022 \u0026\u0026 parsed !== null \u0026\u0026 !Array.isArray(parsed)\u0060 appears character-identically in 4 files \u2014 packages/core/src/gateway/auth/api-key-authorizer.ts, packages/core/src/gateway/http/error-detail.ts, packages/core/src/gateway/http/io.ts, packages/core/src/gateway/remote-control-service.ts. 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":"packages/core/src/gateway/auth/api-key-authorizer.ts"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcca7ab88255e8d71a93c4ffac9073b6a4a3b75abc6e6098d93a25fe0d2f9624"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof source.$schema === \u0022string\u0022 \u0026\u0026 source.$schema.trim()\u0060 appears character-identically in 3 files \u2014 packages/core/src/agents/kilo/profile-config.ts, packages/core/src/agents/opencode/profile-config.ts, packages/core/src/agents/zcode/profile-config.ts. 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":"packages/core/src/agents/kilo/profile-config.ts"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"db6759d428cac256a21893baa2ada9025b452854ca7d8509091ff81d794e6883"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof value !== \u0022number\u0022 || !Number.isFinite(value)\u0060 appears character-identically in 2 files \u2014 packages/core/src/mcp/toolhub-mcp.ts, packages/ui/src/pages/home/components/update.tsx. 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":"packages/core/src/mcp/toolhub-mcp.ts"},"region":{"startLine":2189}}}],"partialFingerprints":{"codehealthFindingId/v1":"1446404920c1ce6de779bc20bf1257687ec90bd1c723a4f3b0ece2564b11fa53"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof value !== \u0022string\u0022 || !value.trim()\u0060 appears character-identically in 5 files \u2014 packages/core/src/gateway/claude-code-router-plugin.ts, packages/core/src/mcp/tool-discovery.ts, packages/core/src/media/service.ts, packages/core/src/observability/request-log-store.ts. 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":"packages/core/src/gateway/claude-code-router-plugin.ts"},"region":{"startLine":1597}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aedc1a5a53e1daedc4cfb494b406df359eabb1d0f067f4adc211f2b1dab58d1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof value === \u0022number\u0022 \u0026\u0026 Number.isFinite(value)\u0060 appears character-identically in 19 files \u2014 packages/core/src/agents/local-providers/codex.ts, packages/core/src/agents/local-providers/opencode.ts, packages/core/src/gateway/claude-code-router-plugin.ts, packages/core/src/mcp/fusion-vision-mcp.ts. 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":"packages/core/src/agents/local-providers/codex.ts"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a2e67d91e5fd34793e3830435fbafe297f07c96993ade2350925165d0cc24ce"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof value === \u0022number\u0022 \u0026\u0026 Number.isFinite(value) \u0026\u0026 value \u003E 0\u0060 appears character-identically in 4 files \u2014 packages/core/src/agents/local-providers/codex.ts, packages/core/src/agents/zcode/profile-config.ts, packages/core/src/mcp/toolhub-config.ts, packages/core/src/profiles/service.ts. 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":"packages/core/src/agents/local-providers/codex.ts"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"19bce9b09e632752d2a6811be91d2ed14dccf1e8c95951ca28977078849e91f3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof value === \u0022number\u0022 || typeof value === \u0022boolean\u0022\u0060 appears character-identically in 4 files \u2014 packages/core/src/gateway/http/error-detail.ts, packages/core/src/observability/route-trace.ts, packages/core/src/routing/token-estimator.ts, packages/ui/src/pages/home/components/profiles.tsx. 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":"packages/core/src/gateway/http/error-detail.ts"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"789c11043c74850d64eef7cc34ee0afa7c8fb6159e49665748a8345d7ec56cf7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof value === \u0022object\u0022 \u0026\u0026 value !== null \u0026\u0026 !Array.isArray(value)\u0060 appears character-identically in 50 files \u2014 packages/cli/src/cli.ts, packages/core/src/agents/bot-gateway/handoff-scan-service.ts, packages/core/src/agents/claude-app/launch.ts, packages/core/src/agents/codex/app-launch.ts. 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":"packages/cli/src/cli.ts"},"region":{"startLine":872}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1223959dd609a4a426d0107bc92ec02e19d425a5120bf8aa80d78da692f8d50"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof value === \u0022string\u0022 \u0026\u0026 [\u0022account\u0022, \u0022activity\u0022, \u0022header\u0022, \u0022model-share\u0022, \u0022rings\u0022, \u0022source-tabs\u0022, \u0022stats\u0022, \u0022token-flow\u0022, \u0022token-mix\u0022].in\u2026\u0060 appears character-identically in 2 files \u2014 packages/ui/src/pages/home/shared/common.ts, packages/ui/src/pages/tray/shared.tsx. 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":"packages/ui/src/pages/home/shared/common.ts"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"a32bb09efd8324090fb15c8395b5baede3d313e1245663194af747e05d574cd0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof value === \u0022string\u0022 \u0026\u0026 value.trim()\u0060 appears character-identically in 49 files \u2014 packages/core/src/agents/bot-gateway/handoff-scan-service.ts, packages/core/src/agents/codex/app-launch.ts, packages/core/src/agents/local-providers/grok.ts, packages/core/src/agents/local-providers/kimi.ts. 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":"packages/core/src/agents/bot-gateway/handoff-scan-service.ts"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"261d1bcd8ba13fbb66b8baf6f6ef88766f642b44d37d8f16f743f500e2648a46"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof value.id === \u0022string\u0022 \u0026\u0026 value.id.trim()\u0060 appears character-identically in 2 files \u2014 packages/ui/src/pages/home/shared/profiles.ts, packages/ui/src/pages/tray/shared.tsx. 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":"packages/ui/src/pages/home/shared/profiles.ts"},"region":{"startLine":1600}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e2e83d34baac5a14e6183fbda563cdc130374cb84bbe7543844b4efc243f5ed"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060updatedTabId === tabId \u0026\u0026 changeInfo.status === \u0022complete\u0022\u0060 appears character-identically in 2 files \u2014 extension/chrome/background.js, extension/chrome/popup.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":"extension/chrome/background.js"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"139f893a10cdf17340e53f069a521c4f57ca8f1fc7fb812f18441ba934d789b4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060url.pathname.replace(/\\/api\\/v1\\/?$/i, \u0022\u0022) || \u0022/\u0022\u0060 appears character-identically in 2 files \u2014 packages/core/src/plugins/built-ins/openrouter-discount-provider-router.ts, packages/core/src/providers/openrouter-provider-catalog.ts. 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":"packages/core/src/plugins/built-ins/openrouter-discount-provider-router.ts"},"region":{"startLine":1104}}}],"partialFingerprints":{"codehealthFindingId/v1":"47080eb6d50efe8dea195b73075567b443f2b757aaa3eef6ed30314a228cd0bb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060url.protocol !== \u0022http:\u0022 \u0026\u0026 url.protocol !== \u0022https:\u0022\u0060 appears character-identically in 5 files \u2014 packages/core/src/agents/claude-app/cdp.ts, packages/core/src/providers/account-service.ts, packages/core/src/providers/account-webcontent.ts, packages/electron/src/main/claude-design-window.ts. 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":"packages/core/src/agents/claude-app/cdp.ts"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dde52fc17e91f6d7bc6831518fe012b28926ecfb172f6b61f0e7ad1e1bfa07c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060url.protocol === \u0022http:\u0022 || url.protocol === \u0022https:\u0022\u0060 appears character-identically in 6 files \u2014 packages/core/src/proxy/system-proxy-fetch.ts, packages/core/src/web/management-server.ts, packages/electron/src/main/bot-gateway-qr-window-service.ts, packages/electron/src/main/built-in-browser.ts. 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":"packages/core/src/proxy/system-proxy-fetch.ts"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"8271a2fee2fa60edba7ee898815997eb311b4a67d35d4e07ed6ce7bf5462e5cf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060usage.cache_read_input_tokens !== undefined || usage.cache_creation_input_tokens !== undefined\u0060 appears character-identically in 2 files \u2014 packages/core/src/observability/request-log-store.ts, packages/core/src/usage/store.ts. 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":6394}}}],"partialFingerprints":{"codehealthFindingId/v1":"249f648d88d4c7b8fa0123b2b00a2f158a32a38eb3a58b120be43055042667cd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060value !== null \u0026\u0026 typeof value === \u0022object\u0022 \u0026\u0026 !Array.isArray(value)\u0060 appears character-identically in 2 files \u2014 packages/ui/src/pages/home/shared/config-persistence.ts, packages/ui/src/pages/home/shared/provider-references.ts. 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":"packages/ui/src/pages/home/shared/config-persistence.ts"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9ff597ab9c17d0e69bc9dd053ce42b4c206ff05d22eb58bbbd320cc341552cd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060value !== undefined \u0026\u0026 Number.isFinite(value) \u0026\u0026 value \u003E 0\u0060 appears character-identically in 6 files \u2014 packages/core/src/agents/claude-app/gateway-routes.ts, packages/core/src/agents/codex/model-catalog.ts, packages/core/src/agents/opencode/profile-config.ts, packages/core/src/agents/pi/profile-config.ts. 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":"packages/core/src/agents/claude-app/gateway-routes.ts"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca6d9e50cd55c22e9922971cd234520674f090f2596707d08a485b8d55be67ca"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060value \u0026\u0026 typeof value === \u0022object\u0022 \u0026\u0026 !Array.isArray(value)\u0060 appears character-identically in 6 files \u2014 packages/core/src/agents/bot-gateway/qr-login-service.ts, packages/core/src/agents/local-providers/kimi.ts, packages/core/src/config/config-repository.ts, packages/core/src/mcp/browser-web-search-proxy-mcp.ts. 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":"packages/core/src/agents/bot-gateway/qr-login-service.ts"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c25fbe71bb9a8c16e6928c060fea7256676276a9d91360c605135435de66e80"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060value .trim() .toLowerCase() .replace(/[^a-z0-9_.-]\u002B/g, \u0022-\u0022) .replace(/^-\u002B|-\u002B$/g, \u0022\u0022) || \u0022provider\u0022\u0060 appears character-identically in 3 files \u2014 packages/core/src/gateway/core-runtime/config-compiler.ts, packages/ui/src/pages/home/App.tsx, packages/ui/src/pages/home/shared/providers.ts. 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":"packages/core/src/gateway/core-runtime/config-compiler.ts"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"37df004c8294d97f20dedb73710f5eda37e7c272aa32871af3a46c2fb5e66fab"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060value === \u0022claude-code\u0022 || value === \u0022codex\u0022 || value === \u0022grok\u0022 || value === \u0022kimi\u0022 || value === \u0022kilo\u0022 || value === \u0022opencode\u0022 || value ==\u2026\u0060 appears character-identically in 2 files \u2014 packages/core/src/observability/request-log-store.ts, packages/ui/src/pages/home/shared/usage.ts. 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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":4220}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ae4aa464fe8f55b6132d57fec04f2847c9b24a15cfe90e7ea04825ef180b5fc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060value === \u0022cli\u0022 || value === \u0022claude-code\u0022\u0060 appears character-identically in 2 files \u2014 packages/core/src/agents/codex/app-launch.ts, packages/core/src/profiles/service.ts. 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":"packages/core/src/agents/codex/app-launch.ts"},"region":{"startLine":1186}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2a5bb12bca2e8b5206b90623026e118c0da90b01d0d75fdb0b6ea7fef1fcba2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060value === \u0022cyan\u0022 || value === \u0022orange\u0022 || value === \u0022violet\u0022\u0060 appears character-identically in 2 files \u2014 packages/ui/src/pages/home/components/settings.tsx, packages/ui/src/pages/tray/shared.tsx. 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":"packages/ui/src/pages/home/components/settings.tsx"},"region":{"startLine":3450}}}],"partialFingerprints":{"codehealthFindingId/v1":"f40942187e28f7073769b6f1b57835ad0c1420bdb166bff8a8b2338d49c014a7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060value === \u0022en\u0022 || value === \u0022zh\u0022 || value === \u0022system\u0022\u0060 appears character-identically in 2 files \u2014 packages/ui/src/pages/home/shared/common.ts, packages/ui/src/pages/tray/shared.tsx. 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":"packages/ui/src/pages/home/shared/common.ts"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"79916d065dd9750e63d32a73a31970b64f72b5786c4a2f26c70fa2a652660360"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060value === \u0022violet\u0022 || value === \u0022orange\u0022 || value === \u0022cyan\u0022 || value === \u0022progress\u0022 || value === \u0022random\u0022\u0060 appears character-identically in 2 files \u2014 packages/electron/src/main/tray-controller.ts, packages/ui/src/pages/tray/shared.tsx. 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":"packages/electron/src/main/tray-controller.ts"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7590d6d2190bf75598786ddf1a6cd323dba1257b481ed6d61074b0996038a42"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060value === null || typeof value === \u0022string\u0022 || typeof value === \u0022boolean\u0022\u0060 appears character-identically in 2 files \u2014 packages/core/src/profiles/service.ts, packages/ui/src/pages/home/shared/profiles.ts. 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":"packages/core/src/profiles/service.ts"},"region":{"startLine":1324}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc89cf1aed690dd61047090101e0dbf2c93046c01b6ce0a38127c39a5d543cde"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060value.replace(/[^a-zA-Z0-9._-]\u002B/g, \u0022-\u0022).replace(/^-\u002B|-\u002B$/g, \u0022\u0022) || \u0022plugin\u0022\u0060 appears character-identically in 2 files \u2014 packages/core/src/plugins/marketplace.ts, packages/core/src/plugins/service.ts. 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":"packages/core/src/plugins/marketplace.ts"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c6b1a82976b88552d81d4b0f62fe1c5babdf89cdcd7ddefd6bb190ec49d61a0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060value?.toLowerCase().replace(/^@/, \u0022\u0022).replace(/[^a-z0-9._-]\u002B/g, \u0022-\u0022).replace(/^-\u002B|-\u002B$/g, \u0022\u0022) || \u0022\u0022\u0060 appears character-identically in 2 files \u2014 packages/core/src/plugins/marketplace.ts, packages/core/src/web/management-server.ts. 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":"packages/core/src/plugins/marketplace.ts"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"a58a9576f73058fb928ddb5c7bb51cd85b0ef6820f197be61691e2d7cfc5020c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060variant === \u0022donut\u0022 || variant === \u0022pie\u0022\u0060 appears character-identically in 2 files \u2014 packages/ui/src/pages/home/components/settings.tsx, packages/ui/src/pages/tray/components/widgets.tsx. 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":"packages/ui/src/pages/home/components/settings.tsx"},"region":{"startLine":3171}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d949174ab9a78168926886d5feaaf007e043faa8e3611fda886520446124dd4"}},{"ruleId":"X14","level":"warning","message":{"text":"IP classification is bypassable through an IPv4-in-IPv6 embedding: This function unwraps IPv4-MAPPED IPv6 (\u0060::ffff:\u0060, line 308) and then rejects \u006010.0.0.0/8\u0060 on its IPv4 path \u2014 but the IPv6 decision at line 305 classifies the address as written, and IPv4 reaches IPv6 through three MORE embeddings this function never mentions: IPv4-compatible (\u0060::a.b.c.d\u0060), 6to4 (\u00602002::/16\u0060) and NAT64 (\u006064:ff9b::/96\u0060). So \u0060::10.0.0.1\u0060, \u00602002:0a00:0001::\u0060 and \u006064:ff9b::10.0.0.0\u0060 all name a host inside \u006010.0.0.0/8\u0060 \u2014 the range this same function declares non-public \u2014 and all reach the IPv6 decision un-unwrapped, taking the opposite verdict. Unwrap every embedding to its IPv4 form before classifying, or reject any IPv6 address carrying an embedded IPv4 outright."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/media/executors.ts"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c010af4144385c43289cff70dbd339f0901f19121f69a315055a79e968727f6"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060interpolateRawAppConfigEnvVars\u0060 is exported, takes a document from its caller (line 4179) and hands it to \u0060interpolateEnvVars\u0060, which calls itself at line 4192 (\u0060interpolateEnvVars\u0060) with a piece of \u0060value\u0060 (and at line 4198) \u2014 and nowhere in \u0060interpolateEnvVars\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: \u0060JSON.parse\u0060 accepts any depth, so a 100,000-byte body \u2014 inside Express\u0027s default 100kb limit \u2014 parses to 50,000 levels, and a walk like this one throws \u0060RangeError: Maximum call stack size exceeded\u0060 long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any \u0060try\u0060 \u2014 an event handler, a timer, a promise nobody awaits \u2014 takes the Node process down with every other request in flight. Thread a depth argument through \u0060interpolateEnvVars\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config.ts"},"region":{"startLine":4192}}}],"partialFingerprints":{"codehealthFindingId/v1":"64a7e327785bdb2decbe04c27eb84db56cf85e8760f26f37dfcfc38904bceed2"}},{"ruleId":"X2","level":"note","message":{"text":"Not all async functions that make a request accept an AbortSignal: Only 29/37 async functions that make a cancellable request (fetch, axios, ky, ofetch, got, undici, node:http) accept an AbortSignal or pass one on, so a request keeps running after whatever wanted it has given up \u2014 a page navigated away from, an unmounted component, a timed-out job. Take a \u0060signal\u0060 (or an options object that carries one) and hand it to the request; where nothing could ever cancel the call, omitting it is a deliberate choice \u2014 judge against how the function is used."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"bd89d014f84408f7063269aa5892ba3df7c9af3e981ecfb0752c5731bc62d406"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: rpc: \u0060rpc\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/web-client-bridge.ts"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fe09dc0eadd9e1fe4db0f31a32535a9dcc0d6138447c6d92a3712f092a8bf77"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: routeClaudeDesignFetchRequest: \u0060routeClaudeDesignFetchRequest\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/src/main/claude-design-window.ts"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"269748bd27666a1ef99be6a5e1655021020653aa6ef4fc4f607c04a6a5157df8"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: fetchManifestText: \u0060fetchManifestText\u0060 awaits \u0060https.request(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060https.request(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/providers/manifest-service.ts"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8209b8972b7f996bc2e086ea821b29778d2297a21d6153b11639ceae60e5f5a"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: post: \u0060post\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/mcp/toolhub-mcp.ts"},"region":{"startLine":1073}}}],"partialFingerprints":{"codehealthFindingId/v1":"0925e98db7191f3e058e931eb25de7eb8321689593d3196dd7717c43047d656c"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: fetchImportJob: \u0060fetchImportJob\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"extension/chrome/background.js"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8d1877fff38b71d78aa2c23042d6ff73c8e5e98ee2aa1edf23443e7f3575677"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: submitLoginState: \u0060submitLoginState\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"extension/chrome/background.js"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"45c54fd920c73ca42d1c7af1205b174435b63ab4b363b2b69ed946eac264cf51"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: fetchImportJob: \u0060fetchImportJob\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"extension/chrome/popup.js"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3ff9e426af03caf1fdb01e3ed946e2a3244ca12ffdac3a105dc96e03f4d0f63"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: submitCookies: \u0060submitCookies\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"extension/chrome/popup.js"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d3fe08d220125013c5367c62b16d70d9fa8cb81adb30a612eea9319dd876751"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060escapeHtml(basePath)\u0060 is text this program did not author, and it is written into the start of a URL attribute, where it chooses the scheme through markup this function returns with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. HTML encoding does not help here \u2014 a \u0060javascript:\u0060 URL contains nothing it changes; allow only http(s) or a relative path."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":6021}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dd73e529be0e3b53fbcd6142b3f475190db69874c4333db36d41446aecdc122"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060escapeHtmlAttribute(href)\u0060 is text this program did not author, and it is written into the start of a URL attribute, where it chooses the scheme through markup this function returns with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. HTML encoding does not help here \u2014 a \u0060javascript:\u0060 URL contains nothing it changes; allow only http(s) or a relative path."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":14937}}}],"partialFingerprints":{"codehealthFindingId/v1":"4732b362581e05d9cc9be60f550bf52506b0a29874c2951f8b038c12f3905613"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060escapeHtmlAttribute(normalizedStylePath)\u0060 is text this program did not author, and it is written into the start of a URL attribute, where it chooses the scheme through markup this function returns with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. HTML encoding does not help here \u2014 a \u0060javascript:\u0060 URL contains nothing it changes; allow only http(s) or a relative path."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":14941}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c14a41d37462ccdeec4f1e5f94686f27627a1025f0469aeab596ac6d9b7bc3d"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060escapeHtmlAttribute(normalizedScriptPath)\u0060 is text this program did not author, and it is written into the start of a URL attribute, where it chooses the scheme through markup this function returns with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. HTML encoding does not help here \u2014 a \u0060javascript:\u0060 URL contains nothing it changes; allow only http(s) or a relative path."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":14974}}}],"partialFingerprints":{"codehealthFindingId/v1":"38689cb492f9ca425815e111aee60127b2c1115398f3c3dcf0bbcbdfa61549b0"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060escapeHtmlAttribute(href)\u0060 is text this program did not author, and it is written into the start of a URL attribute, where it chooses the scheme through markup this function returns with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. HTML encoding does not help here \u2014 a \u0060javascript:\u0060 URL contains nothing it changes; allow only http(s) or a relative path."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":14994}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fa557367cd379602e15a86b3bcab80c3b3f916b80139858ca4480d63a9052a0"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060escapeJsonForScript(me)\u0060 is text this program did not author, and it is written into a script or style context through markup this function returns with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. A script or style context needs its own escaping (or a JSON serialiser that escapes \u0060\u003C\u0060); better, pass the value through a data attribute."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":15122}}}],"partialFingerprints":{"codehealthFindingId/v1":"516e1d5a744325a3efebb9676f501d786a3291a0d5b1db95f3bf0336e5eaf0d0"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060escapeJsonForScript(defaultModelId)\u0060 is text this program did not author, and it is written into a script or style context through markup this function returns with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. A script or style context needs its own escaping (or a JSON serialiser that escapes \u0060\u003C\u0060); better, pass the value through a data attribute."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":16197}}}],"partialFingerprints":{"codehealthFindingId/v1":"25741c4609a7112b020318ee936c7a62d2bf91e309ad2d0ef9f60e9553d3dffb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/web-client-bridge.ts"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0bb54779e94180e842bde9191dd6981a369af0a929dabcedce8d0ec02de40e4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/App.tsx"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"140dbbacde7cfafe6380272979b0dce3b06b8509099df4f0244fe6fe1a2849bd"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/App.tsx"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"22ac6772bf8f4a2bcbd82247fee90a1696d0658f626f1a3327bf908becf224be"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/api-keys.ts"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"c64624dabaccd4b30f87639aa382ad642d67a3a0a2a63d4306b24173fdbc1a22"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/common.ts"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc1011de04cbe08af83fd42e113ce96d3efbfccc5a6e01928498012075d95a45"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/polling.ts"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"632145076868769a10405cac2ff031ce158a2e790b3b8420ae6016fe7d4837f1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/shared/controls.tsx"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"60a065ef056099cee3d33e444d4ff9adb78f9c1f54545f6fcb99dcf0d20b18d5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/profiles.tsx"},"region":{"startLine":1901}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffe440cb6f7961967c7a2cef729802edef2995067afead3336cdcc85014617b9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":2137}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eccc02fff175e877172f7e263b5a7c71efd250f8345f6d61bf7c47f11861332"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":2315}}}],"partialFingerprints":{"codehealthFindingId/v1":"58472296ccc9e40970b2ffec8322b957701c158696c4ca4c51d6e9c9726a909f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/src/main/claude-design-window.ts"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbaea380cd20688c9326a2cbc1acc76142ec78bf7e7a9398a726ca35607d99e0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/src/main/claude-design-window.ts"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9ac14eea0aee73ca2f5a81d996ba1bc2ada16a59fddb8c5cbf54ff4e467b10e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/src/main/claude-design-window.ts"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"db277a97ebdb2f04b4ffc88149de3cc592040cb324b33ecf12ba3a7e04ea6a1a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/src/main/claude-design-window.ts"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"62fb2cb15750ae22000063a71f7256d71ffd358898df321befca69576640a9c3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/src/main/deep-link.ts"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"8438160863753f7c23323023f130d4cfd16c6a278c82a956607f790279c21646"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/src/main/deep-link.ts"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f885ed34659b5dbe705d3e36a58ac68e8c0ebb6d422dbcb240ae5482eddd89d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/src/main/ipc.ts"},"region":{"startLine":1525}}}],"partialFingerprints":{"codehealthFindingId/v1":"d499422ec5d64ce07ef0e253db4a363af5817886ca4c2de5104173ed682c729f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/src/main/main-app.ts"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2e4fc73a658006221a9ae55f4cc690c7ad994d7ea56aab3abaef42f2bca8edb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/src/main/main.ts"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d7d8890a42ff2cd1a6e018fe981d2a60937b190dcd4818b00642d6fb1e391fe"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/src/main/provider-account-webcontent.ts"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"73f24337f8031b6ecedb439a71ee571a2eab22de6a6e89fb3db2a0c343b8a944"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":2931}}}],"partialFingerprints":{"codehealthFindingId/v1":"db00295eb704a2eba40caa975a4d231d30c99a76b3e8d215de915de33f2906bb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":3436}}}],"partialFingerprints":{"codehealthFindingId/v1":"d59e21539d33e01fe0184c0d617c5e838230b737116fdc47ca6ab8abe9dc21b0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":3476}}}],"partialFingerprints":{"codehealthFindingId/v1":"765ece27b4e333dd3a54d46af08416ceafd77a473d9a37be042eaae0e712cc04"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":3549}}}],"partialFingerprints":{"codehealthFindingId/v1":"99c113b17be9c81eb5de37a32f5fbee0f66cc553488b01d3e2f34006731337fc"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":3565}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b03836e176448bd85071fbd89fc0c964cf533a081dacac7c6325a400269bec8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":7156}}}],"partialFingerprints":{"codehealthFindingId/v1":"272d94ab093ed4e9a755344146f3d2614d527846af30b9fae21d9af56f2ab6b8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":10452}}}],"partialFingerprints":{"codehealthFindingId/v1":"6af21386d900e800a4eee963127244fa99902a1862b83cc31cb4461d5541ae0d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/web/management-server.ts"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c3b311b84e8a0a6412dc8713b77a286f4993136d704868723302e6e5a2b37c7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/web/management-server.ts"},"region":{"startLine":1372}}}],"partialFingerprints":{"codehealthFindingId/v1":"872519c9a71170d16d87c4dc7dd1d15af7bbbd2a4d31535e26eafddc0d573af8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/routing/rewrite.ts"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d084969c947f7f258bbea7bea593d6a4836f63fb6cf912f22b6291eb54325e2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/providers/icons.ts"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"404ee3c2c0e289a69183134ee63ef51497567562472df2c99885595e931fcecf"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/providers/icons.ts"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"36d8906813c04f4569b00d591fec174b8f9b807a4814966ff6baa82c394246fa"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/providers/icons.ts"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0164167646ff3e8627d2500c4c6355da7fb6b6aad6aeccff80524b494667809"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/providers/probe.ts"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"83286a1291a4c580b59a1bd1bfc6336ee51179b8b57db2e4b7424d7c67122c72"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/launch-service.ts"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5eee8357f527e3f6a28439e972ac29e94a8ceb106c973b5a0e53b9b884d2c75"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/launch-service.ts"},"region":{"startLine":1211}}}],"partialFingerprints":{"codehealthFindingId/v1":"1be62477e34f704d8c8d6ee29d29ad49d52515987992d0bcf85eba69f574764e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/launch-service.ts"},"region":{"startLine":1579}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f41ad4af5301a5693f0b5220447e6dd0080ffe199a1b5e99182906b7be9c893"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/launch-service.ts"},"region":{"startLine":1598}}}],"partialFingerprints":{"codehealthFindingId/v1":"11f3af21235653aaa12745747199c2029a9e25c6e34457ab2755ac3864f71403"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/launch-service.ts"},"region":{"startLine":1613}}}],"partialFingerprints":{"codehealthFindingId/v1":"dedf03f6cc5f604c686345c02a7d4096408dc7f75863f5b64ae4eacc2dd1b2cc"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/launch-service.ts"},"region":{"startLine":2088}}}],"partialFingerprints":{"codehealthFindingId/v1":"a06e5c5f1dd8d2138ab70ac57f4b6c9b1f7968de33ba538e1420769a170d5698"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/service.ts"},"region":{"startLine":2361}}}],"partialFingerprints":{"codehealthFindingId/v1":"c16485ef608748fc972f069d648beebe97cac9b16edd7796f70c49dc814deb91"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/service.ts"},"region":{"startLine":3294}}}],"partialFingerprints":{"codehealthFindingId/v1":"49f2e2b5027e2c20b1e303d213b5a5c7277cba67884e56b28b45e233a8dae0e8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/profiles/service.ts"},"region":{"startLine":3943}}}],"partialFingerprints":{"codehealthFindingId/v1":"99167df1f9da3ddc7b16813ab4671468ada4c5f42836e61fce7cc7726cfd2f43"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-admission-store.ts"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"2495aa85e25e7bcee223452ea66d029b468f98c3b7809bbb66741e080bf1e3cd"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-runtime.ts"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"8848e8097696102eaee4038d8c00878f0c8e6ef5a5e2d1609d2e5a224e546505"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/request-log-runtime.ts"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cce397877c92c7f58d1d5f94f5b367cf60c4051e3081db12fdd7a59284a7423"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/observability/stream-experience.ts"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec360e98cf68996d58fdc20294d3e0a8e13b560044d2f0901eaa843640066626"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/media/executors.ts"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbcae045ba1893531e3e72828a19b3deda039ab73ec9a2b20b86fa579907f884"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/media/service.ts"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"80789761ed95d85677865e8e952e73ba392ce0ab4ae4064022b31ebd282e1cad"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/mcp/browser-web-search-proxy-mcp.ts"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa8816ccca86caab850931452d24c97f34a461227c2279c32189501c4fc36792"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/mcp/media-tools-proxy-mcp.ts"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ab37031cc1baa1277266cefc3c807ea4e2148426b3bb1eca72c82d00a5dc022"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/mcp/toolhub-mcp.ts"},"region":{"startLine":1100}}}],"partialFingerprints":{"codehealthFindingId/v1":"08aace7306059da48530b9c18e8d01c5d5c409671994d3b20d6c5ac6368dce1d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/mcp/toolhub-mcp.ts"},"region":{"startLine":1386}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf49196c632366ebad0764a3209a744cf15587e214bd7ea17711b3915e30a149"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/mcp/toolhub-mcp.ts"},"region":{"startLine":1943}}}],"partialFingerprints":{"codehealthFindingId/v1":"93ede1e7e199f8a1835fca1689883b5b70af3fe6332a8d51af652a8f051a3ac0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/upstream/executor.ts"},"region":{"startLine":1200}}}],"partialFingerprints":{"codehealthFindingId/v1":"721e527e466ee9b6bb2450c01f6f101f57e7fbfda27b83c3bc44b1c77732dac2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/http/error-detail.ts"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"521aa16537cc8134b9ae7a940e0813cd14a5cdae7f841ad5209851ac822fe8a1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/features/cursor-compat.ts"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"5424bef57b6515c32097a3ae8a62b69855adf5ec5ea4689e62a35f4649da4228"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/core-runtime/supervisor.ts"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b6f28caec66cc854be0d52124841877c4f599e68225f2fdf5c4539192b32d55"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/core-runtime/supervisor.ts"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"436bfe6e62a544697372aca47ac020b4758784c62c9202a74d281de7fa854f5c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/core-runtime/supervisor.ts"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"b386d7ca3040aa6149b9533b1ebfde1b4e15fffaaf8429ed28a20188eb314559"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/core-runtime/supervisor.ts"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"658c4bdc5d54f0dd04ef0f9c55cbe1537a1f00e8b5a6b21a9107ad32387913a4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/core-runtime/upstream-header-sanitizer.ts"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab313237d431e48d26d5c49d691d0a0b9a08ad8fbeae9fe37601538c8c305253"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/core-runtime/upstream-header-sanitizer.ts"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"feed53df00f5dbcceb820bdf59976daa31d1658cf1f2e1374210ddcc7daac56c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/context-archive/protocol.ts"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"72c436d70789bf3e9453e721e4be8428b0b9fa8574d9a508381c60fdede2a49f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/context-archive/protocol.ts"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"694d24601627545f279d36c607d1f25548f9c7bcbf2d561c5adbdd924d485b1e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/context-archive/store.ts"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee1a3e4bbdbbf049614f32c547d02b9966956ff2c6f0dab46fecf3a591f1f2a1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/gateway/application/gateway-service.ts"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3ab2246ac44428ffca3fc05c768326fabc92624385938c28803fa9a7049814c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config-repository.ts"},"region":{"startLine":825}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa8db37d7413d1364700be985efbed37828753d75755409dd8280db331e20e68"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/config/config-repository.ts"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"33c946fedeeb185e5aabbd0108555cdc663c716fd30c60bd87ec854f77b26b5a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/cdp-client.ts"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"047e213c8b14786a8198d14685fce9b273aef8736a50731d99e0dbf9f8bc7cb3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/cdp-client.ts"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"891d175e7ba2a394615906011758ab62f107dfd4c0c81031cef8963f4c8d8a91"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/cdp-client.ts"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bd74fd2d445cd9cb1e3270ffb2104c0fcc970af29c2596096f98174ede49d3d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/pi/profile-config.ts"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d2b36041f9fad599ffcc66ec27bb72141253ff19d5bd0f846b165c3dec10db0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/pi/profile-config.ts"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9e2de3d2581a5ac8be2e23e9273557d51e634aed9c4e6d2d5c706caead68b3e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/opencode/profile-config.ts"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"55b8b227bc2a8debdca9f4cbf41f038ab0e315d301871721eb0fbf889728dfcd"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/local-providers/grok.ts"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"6285bbbc019fb0be673ae3bacc79bbbfb2346e238f1bda8749e45bcb2e3f529e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/local-providers/grok.ts"},"region":{"startLine":876}}}],"partialFingerprints":{"codehealthFindingId/v1":"8babc35b800f72e940a788ce0cf39cc1ca74d3b043969db78c37130092649662"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/local-providers/kimi.ts"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"616474c73e7784a85f15866743246234e4fb0978e6b7f2dbafe01ab0b46c63be"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/local-providers/kimi.ts"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba74ad1a400189deade39244d05d14e0c9b710a47c0a6054705e619da3c54fe9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/local-providers/kimi.ts"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1f6364ad2431c1b01139010eda824e0c2bda863ece1a5c21922acbc67e271cd"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/local-providers/kimi.ts"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"87331e1b1e9f788f60afce03d510375610ef90c6360f114c748d58bbba994657"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/local-providers/kimi.ts"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad86f92f992947bd9a0b4bece048aba01917efdb84c1c927856e61de4852f0ce"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/kilo/profile-config.ts"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"aff95a388e69af5db9c6af6fed47d834e2b6b2cccacecf4b7633d8ba3f147392"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/codex/app-launch.ts"},"region":{"startLine":1015}}}],"partialFingerprints":{"codehealthFindingId/v1":"64716fd893636d9123531a91b2c9ec6898e133718c419450bbc3f32f3b4e73b0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/codex/app-net-responder.ts"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"636387a5ade39e9f37b63bc3affd8c60fd95b24215b5145ba28916e0b91dd600"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/codex/media-preview-bridge.ts"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ad0a21326afed998c3567056b7a79aed5e532d77b890bef62ce939681909a71"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/codex/media-preview-bridge.ts"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"91bfe7270d220a3f27513270dbaaf26037db888cabc731895ccaf997ee7771d2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/codex/media-preview-bridge.ts"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaa93c38732853e4e1af8b09b81f1be766d2c01415e6a1d48d8dc3618d874a8f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/claude-app/gateway-service.ts"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed6e246f94ecef899c5cb52d40a76ab35776f6976165c03920a76ed9950f73ea"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/claude-app/gateway-service.ts"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"2126e78449b6e3cb1f37b4ae9f79bee156db0f9dd76db8d2af37d4ad7f3a23b3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/claude-app/gateway-service.ts"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"56fdc98b06dbe38da9170c9f8190804396dfbf22a02d0c1140f774218275453d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/claude-app/vm-storage.ts"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dc9dfdcfa73c0893eeebf61fd23986819825b971450293abe59971d98a5f67d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/claude-app/vm-storage.ts"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"d81c6298830ffecbb65cda2de58d1e93c73d2acde4045e2c8ba9a5e09214d368"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/bot-gateway/handoff-scan-service.ts"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"caf5c9c5806e394ad4305637b2e05f5ff94f4153498a0a68551ca5464c62d489"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/core/src/agents/bot-gateway/qr-login-service.ts"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"48f85c9c90d5de0272a807aa6de55004824921c6e180009d33a7995241c6b397"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/cli/src/cli.ts"},"region":{"startLine":750}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4a27e5c7bbd6655f6dc83b1d53a5c0b4a31d981d5e5d1fafbd206c635df805e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/cli/src/cli.ts"},"region":{"startLine":788}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2131121b72a6c91437de2d05eeea60c004d7190a142166a25d1093983e00ac6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/cli/src/cli.ts"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"79cf365222effb81723a010928ebea7fa91f4c5fb3e423e96c4b827f521d19c3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/cli/src/cli.ts"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"27131a34b93ebc9caef985e7caeace881d3e17a6ba87523cf59d403a6018733b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/cli/src/cli.ts"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"cffa2204e925f2c2c4f0811bcdda8fa64ffa682812d9046b9da8c7614dc67832"}},{"ruleId":"X5","level":"note","message":{"text":"Strict null checking is not enabled everywhere the repository type-checks: 5/7 of this repository\u0027s type-checking configuration(s) turn on strict null checking (\u0060\u0022strict\u0022: true\u0060, or \u0060\u0022strictNullChecks\u0022: true\u0060). A configuration that states neither is counted as OFF, because off is tsc\u0027s own default; a solution-style one whose \u0060\u0022files\u0022\u0060 is empty and whose \u0060\u0022references\u0022\u0060 point at other projects is in neither number, because it checks no source itself. Where it is off, \u0060string\u0060 admits \u0060null\u0060 and \u0060undefined\u0060: passing a value that is null compiles silently and throws on the first property access."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8870f9ff7b17c2e14c5ba3bc13137b94673aad0b9498438c572dabb049852943"}},{"ruleId":"X5","level":"note","message":{"text":"Null assertions (\u0060!\u0060) override strict null checking: ~0.1 \u0060!\u0060 null assertions per 1k TypeScript source lines \u2014 23 assertion(s) across the 169989 source line(s) of the 317 TypeScript file(s) read, which is the only code the operator asserts anything in (a \u0060!\u0060 in a \u0060.js\u0060 file is not this operator and was not counted, and one in a file whose null checking is off silences nothing). Densest: packages/core/src/media/service.ts (4), docs/src/docs-structure.ts (3), docs/src/pages/search-index-[locale].json.ts (2). Each one tells the compiler to trust the author about null, suppressing the very diagnostic \u0060strictNullChecks\u0060 exists to produce. Many are correct: each is a claim the checker could not verify, and it is wrong only where the value can in fact be missing, so review the densest places first."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"1d83a7c69636a6290f63000d5c19b2073be1fa772f51977532af9ca6f745fc2a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060normalizeImportUrl\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":"extension/chrome/background.js"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"af4bde4961ea2f5327ab740f48565c75910c3404b08d9a51066b9eefa7f495d2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060normalizeImportUrl\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":"extension/chrome/popup.js"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"3902ad47ab4b0b012e9eedc5900cbbdcd5252f814d8e497eb8b8379da84408f6"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060activeProfileGatewayLeaseCount\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":"packages/cli/src/cli.ts"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"5db8d3949b061983b9abf3a772fab7e954f2cab315929111a12c536e7d74ad42"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060serviceAuthToken\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":"packages/cli/src/cli.ts"},"region":{"startLine":1009}}}],"partialFingerprints":{"codehealthFindingId/v1":"b20f896fc790c3e0e319a4d9c1d6600eed525a66f4dea4a86c876f76ea67dadb"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060resolveBotGatewaySdkModule\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":"packages/core/src/agents/bot-gateway/env.ts"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"10f615ecd1bbaec64ef3ebf3db38146e83607e2c4c350fe666d8baeabc7751ce"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060normalizeClaudeAppDesignUrl\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":"packages/core/src/agents/claude-app/cdp.ts"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"b271a3fb9cc6bae0c96df80cce2686043b0578bdb99c9e5c511d98433daa50a1"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readDirEntries\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":"packages/core/src/agents/claude-app/vm-storage.ts"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"86f8220005a0ec4401e513c2781ed13910afcb64c248041c6a0395c8abb92c81"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readJsoncObject\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":"packages/core/src/agents/kilo/profile-config.ts"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbe05ef471f4ee953d6a1250c63cb8d78a38c51df72affc94dcac2dc2f3e1379"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060discoverClaudeCodeKeychainItems\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":"packages/core/src/agents/local-providers/claude-code.ts"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"e42551d5521e8b912f47103360b4e01cfd4b0b8cd7670c7f556975933a837869"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readKimiConfiguredProviders\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":"packages/core/src/agents/local-providers/kimi.ts"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"2727e572dbb67119861b5768e9ed85ce5f096f30d4ff37b08ec328b915141212"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readJsoncObject\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":"packages/core/src/agents/opencode/profile-config.ts"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c5f66af4bc88b9480663fba250a4f96fac404f54cf9a5e8984316bfa0653632"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readJsonObject\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":"packages/core/src/agents/zcode/profile-config.ts"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfe4d789add09716288139527c53cac9c6e2f12c99379f8b0aa98036cc4a7807"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060parseClaudeCodeWifTokenRequestBody\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":"packages/core/src/gateway/auth/api-key-authorizer.ts"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffea717eafba78cee47503cde9c8042d3f9439435152f34f10a859b9696fb9c5"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readJsonObjectBody\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":"packages/core/src/gateway/core-runtime/router-plugin.ts"},"region":{"startLine":1217}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1872ed42789be310ba5442224496b7498e337f48f64430b1d1d281d0bfd449e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060parseFunctionCallArguments\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":"packages/core/src/gateway/features/context-archive-continuation.ts"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"662b464d2af87262196f50381d17af280430f6a690cbb5ff7c5ac4a4b6c73347"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readFallbackTools\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":"packages/core/src/mcp/fusion-tool-fallback-mcp.ts"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"81786ae52aeb573ab0b0a60b080b3f6351bf0a19ef4f09ad2a63dc7e94eb846a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readJsonStringArrayEnv\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":"packages/core/src/mcp/fusion-vision-mcp.ts"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"28d586e0a922cef8c8bfaa91749b2b1d1f09b0690bf31c83c375dbcfd99be046"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readTools\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":"packages/core/src/mcp/media-tools-proxy-mcp.ts"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f68c8babbd9500c2e9520bff2ec976b717d94944591320f2a063d8b7fe5a6bc"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readBackendServers\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":"packages/core/src/mcp/toolhub-mcp.ts"},"region":{"startLine":1847}}}],"partialFingerprints":{"codehealthFindingId/v1":"707534b307a750dff7b392bbec53a607537c0078aaf88c53276ff24a3ec9a05e"}},{"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":"packages/core/src/mcp/toolhub-mcp.ts"},"region":{"startLine":2171}}}],"partialFingerprints":{"codehealthFindingId/v1":"afda963b4b2a7c11a79e674da8ff8b8d18ba876daa7d50de846b1ee27484663b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060urlHost\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":"packages/core/src/media/models.ts"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"571e19e70301a415d6a3d4bac532d8c8b768a4d8078f56e183ac1d19db1ecdd9"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060rawTraceUsageBodyText\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":"packages/core/src/observability/raw-trace-sync.ts"},"region":{"startLine":1566}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a5d221b7ddfc0f6cd695dc2e110c6640d93f09e5d59a1e28967e28d89300310"}},{"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":"packages/core/src/observability/request-log-runtime.ts"},"region":{"startLine":1136}}}],"partialFingerprints":{"codehealthFindingId/v1":"44a31723eb613b125fca14a8e8a82fcfaafba423d9a9e8f1751b540af54f6efb"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060rawTraceBodyText\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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":1781}}}],"partialFingerprints":{"codehealthFindingId/v1":"648c465692c74844973f86cbe0c4154aee431dba7e7fbf4ae7129218d3b4f08a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060stringifyForSearch\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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":4383}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c15109559076902b6491fc1b3d8d5c9de56a05ce68748dd15cd885a49e6c3a6"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060parseHeaderJson\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":"packages/core/src/observability/request-log-store.ts"},"region":{"startLine":5316}}}],"partialFingerprints":{"codehealthFindingId/v1":"60f84b435273ef92da34c5256b3027ef39f948d036e85b94ad184386e1442c05"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060processPayload\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":"packages/core/src/observability/stream-experience.ts"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa45baa27265b82952795c5d1ce3eb8d40dd493d59722409f4a4805bc1d5dded"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readDirectoryEntries\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":"packages/core/src/platform/windows-app-discovery.ts"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5cde0f6aa3266a942aee6dcb348a7f0a5c3471543deba83c3cf288526216714"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060openRouterApiRoot\u0060 swallows every exception into \u0060return \u0022https://openrouter.ai\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":"packages/core/src/plugins/built-ins/openrouter-discount-provider-router.ts"},"region":{"startLine":1108}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca3f2457cda380224e4e780b99080583589813ac6a4bc565e53c11522f9baaeb"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readBackupFiles\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":"packages/core/src/profiles/launch-service.ts"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdc43d980b6489e29beb374f157529b6a4b709839e74704c8699817b6c0d8699"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readFirstLineToken\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":"packages/core/src/profiles/launch-service.ts"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"56077e67019961205220f772a0d3c9a2339d660e3bc09f3e5ddfd8e4b0991135"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readClaudeCodeLegacyApiKeyHelperToken\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":"packages/core/src/profiles/launch-service.ts"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"20b7f56be275b8459cf4a2fc353a6c163618d57d1fb2e4ec2708a7e6e9a447f1"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readClaudeCodeSettingsEnv\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":"packages/core/src/profiles/launch-service.ts"},"region":{"startLine":1531}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbfb564865149adeeb0255013f92f3b389e17b21f690886e4e8dc0f01fbb7f6d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060managedClaudeCodeGeneratedFiles\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":"packages/core/src/profiles/service.ts"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"2582fd4b662cc34638a1b19c949f98bc8f976bb1faf96593053345d4c5c14a68"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readClaudeModelDiscoveryFingerprintState\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":"packages/core/src/profiles/service.ts"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aaf78406dcf89e712cc76b9748b943bbea89f7a6b0aa507df7f4f67e98ecf37"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readJsonObject\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":"packages/core/src/profiles/service.ts"},"region":{"startLine":3099}}}],"partialFingerprints":{"codehealthFindingId/v1":"040c15a9fcd02d364c80b11eb16c9b2d14f8c37603a0f13f9147a98f79650833"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060cleanupGeneratedBinBackups\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":"packages/core/src/profiles/service.ts"},"region":{"startLine":3281}}}],"partialFingerprints":{"codehealthFindingId/v1":"81e8421e1ee269b00936bc5180806815f00330288b093d9de010a42b61a42d1c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060cleanupInactiveOpenCodeWrappers\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":"packages/core/src/profiles/service.ts"},"region":{"startLine":3309}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b710a91d26692fdb2c397d2d53f0563c86213ed80ab861f396a6ae4cfa154cd"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060cleanupInactiveKiloWrappers\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":"packages/core/src/profiles/service.ts"},"region":{"startLine":3332}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb13ba3a8576d1c2b59da502d139dc3da9950d5545e272927ee3a9afa0fd636f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060cleanupInactiveClaudeCodeGeneratedFiles\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":"packages/core/src/profiles/service.ts"},"region":{"startLine":3359}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb92091ce33895b16d90231f7f816d2f735562c6a6cbf6a5fa1e1be3ee7d85d6"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readGlobalProfileTakeoverMarker\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":"packages/core/src/profiles/service.ts"},"region":{"startLine":3715}}}],"partialFingerprints":{"codehealthFindingId/v1":"740c82cfc5c4b18e51ea824a50ca2de2e937121bb7f5cd487bee500c512fd138"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060backupFiles\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":"packages/core/src/profiles/service.ts"},"region":{"startLine":3917}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bbe121c482c4b71e70a1b5f62888556e22ae7fdd3de7debf8f5df9ffe35a368"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060providerIconSiteUrls\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":"packages/core/src/providers/icons.ts"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a930752fa7228eb42a300a1a57fe5cae1769fe43a8bd0aaa6c417c2bea7babc"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060providerIconSourceUrls\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":"packages/core/src/providers/icons.ts"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe362dfa5f08f797830b10e86f452312b95037c49e9c97c466ecbd8ccd70ad4f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060providerApiHost\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":"packages/core/src/providers/model-catalog.ts"},"region":{"startLine":702}}}],"partialFingerprints":{"codehealthFindingId/v1":"08cc7e2b939407a4e0ece55b32c007e67fc688b0d7b1cea59f9527b550cf8860"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060openRouterApiRoot\u0060 swallows every exception into \u0060return \u0022https://openrouter.ai\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":"packages/core/src/providers/openrouter-provider-catalog.ts"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8a4aa4d886eba9ea74ca39627ba59a507541efeb2ee54f1f105b353357f2b7f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060uniqueExistingDirectories\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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":3498}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c2522a1b9c3fb4c94b6a8e31cfe26bc61bba6524aacb0a47359a34acd21481a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060localAssetDirExists\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":"packages/electron/bundled-plugins/claude-design/index.cjs"},"region":{"startLine":3524}}}],"partialFingerprints":{"codehealthFindingId/v1":"163c67b8eea3027cd411cc6e85c0a78394a6b566df16c3c7fb72504ef66b3d5e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060persistedGatewayAuthKey\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":"packages/electron/src/main/claude-design-window.ts"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"61701b84e8fd76a7630ffcdcce20e467627991e1af40bbf42970a335dcc86ce0"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060normalizeHttpUrl\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":"packages/electron/src/main/claude-design-window.ts"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"2392d1e7a37e389215b39e01db9239d20c1e2f11f6ff77bdc0bef2ec23d1d3b5"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060titleFromUrl\u0060 swallows every exception into \u0060return \u0022New Tab\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":"packages/electron/src/main/built-in-browser.ts"},"region":{"startLine":1044}}}],"partialFingerprints":{"codehealthFindingId/v1":"70f74f56c4888f7e4398b9e6612fed83c81e152ff0cdddaf56ad318582619a7a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060snapshotScript.uniqueIdSelector\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":"packages/electron/src/main/browser-automation-mcp.ts"},"region":{"startLine":2725}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffc0c71fce43593dcc9fad9ee5382fc3e0bbdd76df76879069df20e697749ca6"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060normalizeHttpUrl\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":"packages/electron/src/main/plugin-app-url.ts"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"1782c3e082fce3b642dbcea3e1da0405e5c5643c40fa14ad7818c06d22543526"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060activeTabDomain\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":"packages/ui/src/pages/browser/main.tsx"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8569267b682c89d5031d89bc596a321101bb35c147efa07775f40a1ff5a9d53"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060networkQueryRows\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":"packages/ui/src/pages/home/shared/network.ts"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"43056a03b1a8a9d874a35d06f87d74686c011fc9b2604a472adfa6177ac0693a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readLanguagePreference\u0060 swallows every exception into \u0060return \u0022system\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":"packages/ui/src/pages/home/shared/common.ts"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"7017a39234ff3371bca151d795d0fcfe1f34adc41ed553aa21145243c0c6901d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060resolveProviderDeepLinkIcon\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":"packages/ui/src/pages/home/shared/providers.ts"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ab8621b7a0f531841ee7e49e9e0b0b84c0357b64da8ae92e43a4bebe8311e7e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060inferProviderNameFromBaseUrl\u0060 swallows every exception into \u0060return \u0022provider\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":"packages/ui/src/pages/home/shared/providers.ts"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cade6d36f09775f50ac9a97a0baa70af9822827d4bd6767e014c7e1f86e5add"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060browserImportDomainCandidates\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":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":3379}}}],"partialFingerprints":{"codehealthFindingId/v1":"1605c7c936514cac210cf46dbc6281d0bf424e16683b673c724ebe3f34b1e694"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060browserEndpointOrigin\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":"packages/ui/src/pages/home/components/providers.tsx"},"region":{"startLine":3388}}}],"partialFingerprints":{"codehealthFindingId/v1":"2566899cb6ff9cb44e10234d4fda3b1cd67540756f7d4d404e611ce6777dfc63"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060claudeSettingsDraftObject\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":"packages/ui/src/pages/home/components/profiles.tsx"},"region":{"startLine":1613}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e3aebbd1a76a88feea2a704afa769ecc01f2787d30bfbc5cc223ca54a2a143a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060appPathFromDroppedText\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":"packages/ui/src/pages/home/components/profiles.tsx"},"region":{"startLine":1924}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6e702633d25fbe333acfee0b77148fe286e7b44c07ed9ed5511204cce8dfac3"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readLanguagePreference\u0060 swallows every exception into \u0060return \u0022system\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":"packages/ui/src/pages/tray/shared.tsx"},"region":{"startLine":964}}}],"partialFingerprints":{"codehealthFindingId/v1":"993cdb2dbefd3f739f52e286e241f4b1b39e866f9bbb1e0f152442d216537422"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readWebAuthTokenFromUrl\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":"packages/ui/src/web-client-bridge.ts"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"857a2151e50bb3cd895a31137857701d127958281b85ef731bf5a6683242aa33"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readStoredWebAuthToken\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":"packages/ui/src/web-client-bridge.ts"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"81c4e8afc47c81a01ecb57524ded1812aec7eef41b3c725151e259052f590328"}}],"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-1333","guid":"11a336ce-63de-c45c-845e-29ca1e8df13d","name":"CWE-1333","shortDescription":{"text":"CWE-1333"},"helpUri":"https://cwe.mitre.org/data/definitions/1333.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-1385","guid":"87d1dc95-a344-ec57-810a-d06d36e42c1c","name":"CWE-1385","shortDescription":{"text":"CWE-1385"},"helpUri":"https://cwe.mitre.org/data/definitions/1385.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-20","guid":"0a612236-7785-3553-b517-eabea925caa3","name":"Improper Input Validation","shortDescription":{"text":"Improper Input Validation"},"helpUri":"https://cwe.mitre.org/data/definitions/20.html"},{"id":"CWE-209","guid":"da28ecd2-f5c1-7852-ac41-a93b2d668c73","name":"Generation of Error Message Containing Sensitive Information","shortDescription":{"text":"Generation of Error Message Containing Sensitive Information"},"helpUri":"https://cwe.mitre.org/data/definitions/209.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-319","guid":"7af97476-9f0d-4458-9163-3d2043918a1a","name":"Cleartext Transmission of Sensitive Information","shortDescription":{"text":"Cleartext Transmission of Sensitive Information"},"helpUri":"https://cwe.mitre.org/data/definitions/319.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.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":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"Insufficiently Protected Credentials","shortDescription":{"text":"Insufficiently Protected Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/522.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":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"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":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"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":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A04:2025","guid":"6a9f5bfd-1a56-6453-beec-a7eff0ba3007","name":"Cryptographic Failures","shortDescription":{"text":"Cryptographic Failures"},"helpUri":"https://top10.owasp.org/2025/A04_2025-Cryptographic_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"},{"id":"A10:2025","guid":"9ca3ab55-ca61-fd5e-b9ab-3dad2efa59d0","name":"Mishandling of Exceptional Conditions","shortDescription":{"text":"Mishandling of Exceptional Conditions"},"helpUri":"https://top10.owasp.org/2025/A10_2025-Mishandling_of_Exceptional_Conditions/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"},{"id":"CICD-SEC-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"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":145,"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."]}]}