{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D9","name":"Test Distribution","shortDescription":{"text":"Test Distribution"},"helpUri":"https://codehealth.canine.dev/dimensions/D9"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"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":"D23","name":"Boundary Type-Coupling","shortDescription":{"text":"Boundary Type-Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D23"},{"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":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","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-1059"],"owasp":"A02: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":"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":"AC7","name":"A11y enforcement","shortDescription":{"text":"A11y enforcement"},"helpUri":"https://codehealth.canine.dev/dimensions/AC7"},{"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":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"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":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"R1","name":"Type Safety","shortDescription":{"text":"Type Safety"},"helpUri":"https://codehealth.canine.dev/dimensions/R1"},{"id":"R10","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/R10"},{"id":"R11","name":"Import Boundaries","shortDescription":{"text":"Import Boundaries"},"helpUri":"https://codehealth.canine.dev/dimensions/R11"},{"id":"R2","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/R2"},{"id":"R3","name":"Large Files","shortDescription":{"text":"Large Files"},"helpUri":"https://codehealth.canine.dev/dimensions/R3"},{"id":"R4","name":"Test Coverage","shortDescription":{"text":"Test Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/R4"},{"id":"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":"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":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"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":"generate-models.loadModelsDevData (cyclomatic 225): generate-models.loadModelsDevData has cyclomatic complexity 225 (threshold 15). Of this number, 224 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/scripts/generate-models.ts"},"region":{"startLine":1821}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccca83cd8dd1cce76608a112dcbe36b9fa428620ce0e769320bcea89280a2f52"}},{"ruleId":"D1","level":"warning","message":{"text":"index.createMcpExtension (cyclomatic 221): index.createMcpExtension has cyclomatic complexity 221 (threshold 15). Most of this is not in the body itself: 1 of the 221 points is its own statement and the rest belongs to 63 function literals inside it that branch (lines 501, 810, 1283, \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/coding-agent/src/extensions/mcp/index.ts"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c247f254b0590f7d96015d11a4795bed96042d06d3fe2966905ad13743e1eb2"}},{"ruleId":"D1","level":"warning","message":{"text":"keys.matchesKey (cyclomatic 166): keys.matchesKey has cyclomatic complexity 166 (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/tui/src/keys.ts"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"07c6ff3db7c6bce1e7a414e0450cb059158d2a3fd7387eb8dbe98455d60d8744"}},{"ruleId":"D1","level":"warning","message":{"text":"args.parseArgs (cyclomatic 111): args.parseArgs has cyclomatic complexity 111 (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/coding-agent/src/cli/args.ts"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aa6d3562f058c451afae249f1e78023888dba409d0f55da138c6b3b21451944"}},{"ruleId":"D1","level":"warning","message":{"text":"generate-models.generateModels (cyclomatic 105): generate-models.generateModels has cyclomatic complexity 105 (threshold 15). Of this number, 94 points are the body\u0027s own statements and 11 belong to 6 function items 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/ai/scripts/generate-models.ts"},"region":{"startLine":2782}}}],"partialFingerprints":{"codehealthFindingId/v1":"21e00286d8bdd72ea5286c6e3b35a3a6bb15ef8ddc3b0cb4a5b5436f54cb5d8f"}},{"ruleId":"D1","level":"warning","message":{"text":"events.translate (cyclomatic 92): events.translate has cyclomatic complexity 92 (threshold 15). Of this number, 90 points are the body\u0027s own statements and 2 belong to 2 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/harness/events.ts"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7564fe106422676c89d203ebfba1abb34c52f32d97b5a9538c804668c71574f"}},{"ruleId":"D1","level":"warning","message":{"text":"openai-completions.stream (cyclomatic 89): openai-completions.stream has cyclomatic complexity 89 (threshold 15). Most of this is not in the body itself: 1 of the 89 points is its own statement and the rest belongs to 6 function literals inside it that branch (lines 318, 485, 421, \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/ai/src/api/openai-completions.ts"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"96ac4be431b6ebcb9491eed8fdae927ab75d0ea46c6b87cf6e5c446a0b102846"}},{"ruleId":"D1","level":"warning","message":{"text":"generate-models.applyThinkingLevelMetadata (cyclomatic 86): generate-models.applyThinkingLevelMetadata has cyclomatic complexity 86 (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/ai/scripts/generate-models.ts"},"region":{"startLine":1063}}}],"partialFingerprints":{"codehealthFindingId/v1":"715a05add68d00c12e1e41f3b714278baea79dd02dc825910116d50e234fc3a2"}},{"ruleId":"D1","level":"warning","message":{"text":"InteractiveMode.handleEvent (cyclomatic 84): InteractiveMode.handleEvent has cyclomatic complexity 84 (threshold 15). Of this number, 82 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":3363}}}],"partialFingerprints":{"codehealthFindingId/v1":"804d0d864f5f8cfbdf8c590600a974eb7d493e9dc7427ce50b35637a46f79ee8"}},{"ruleId":"D1","level":"warning","message":{"text":"JsonlStorage.recover (cyclomatic 84): JsonlStorage.recover has cyclomatic complexity 84 (threshold 15). Of this number, 80 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/durable/src/storage/jsonl/storage.ts"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"204bd99aff57ffb0427c102f6ff7216a7ea62a0381ade1b7020adafcc23d9242"}},{"ruleId":"D1","level":"warning","message":{"text":"openai-completions.buildParams (cyclomatic 82): openai-completions.buildParams has cyclomatic complexity 82 (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/ai/src/api/openai-completions.ts"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4f1fe314d51de836ee2f6fc9ef51a072435c20421133407bb1f5848febe2c5f"}},{"ruleId":"D1","level":"warning","message":{"text":"main.main (cyclomatic 81): main.main has cyclomatic complexity 81 (threshold 15). Of this number, 66 points are the body\u0027s own statements and 15 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/coding-agent/src/main.ts"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"882977a77f26f8b47e09555a9baa7d318429c30383e9bce745924a0e1e43a4c2"}},{"ruleId":"D1","level":"warning","message":{"text":"Editor.handleInput (cyclomatic 80): Editor.handleInput 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/tui/src/components/editor.ts"},"region":{"startLine":696}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6fdc8eedd5f28f22db56561bd72b407d00fb7818eee00a842edf40cce522e45"}},{"ruleId":"D1","level":"warning","message":{"text":"anthropic-messages.stream (cyclomatic 79): anthropic-messages.stream has cyclomatic complexity 79 (threshold 15). Most of this is not in the body itself: 1 of the 79 points is its own statement and the rest belongs to 3 function literals inside it that branch (lines 584, 699, 716). 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/ai/src/api/anthropic-messages.ts"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"fee94038f06789d3404f61b3bfc81c504c4846cdb8045a3bc2ad2ad192fe1296"}},{"ruleId":"D1","level":"warning","message":{"text":"LatexParser.parseCommand (cyclomatic 73): LatexParser.parseCommand has cyclomatic complexity 73 (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/tui/src/latex.ts"},"region":{"startLine":1014}}}],"partialFingerprints":{"codehealthFindingId/v1":"62448a79e96a819670c58093e5ad2c166641ce00beceee0515ec31a3f9231e1b"}},{"ruleId":"D1","level":"warning","message":{"text":"renderToolCall (cyclomatic 72): renderToolCall has cyclomatic complexity 72 (threshold 15). Of this number, 59 points are the body\u0027s own statements and 13 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/coding-agent/src/core/export-html/template.js"},"region":{"startLine":1006}}}],"partialFingerprints":{"codehealthFindingId/v1":"9308789d32d5028c992b31bd920907426fc48aea29161eab5a853004d65dd6d5"}},{"ruleId":"D1","level":"warning","message":{"text":"TuiMainScreen.doRender (cyclomatic 69): TuiMainScreen.doRender has cyclomatic complexity 69 (threshold 15). Of this number, 60 points are the body\u0027s own statements and 9 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/tui/src/tui-main-screen.ts"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc3b66cb65191326eb97ff1dd9da9788dec5624f7ec94326a75ae6ee247251fb"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsSelectorComponent.constructor (cyclomatic 68): SettingsSelectorComponent.constructor has cyclomatic complexity 68 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 50 belong to 7 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/components/settings-selector.ts"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"f113e11744fa1671b1e988ba7b178149822ef740f58f3ef6c5f9b3488f0e8a95"}},{"ruleId":"D1","level":"warning","message":{"text":"package-manager-cli.parsePackageCommand (cyclomatic 66): package-manager-cli.parsePackageCommand has cyclomatic complexity 66 (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/coding-agent/src/package-manager-cli.ts"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"24e2e2b5a3b664994aeb77846bd6c2a664a77e987d1a337884f8d9dab4ba1b59"}},{"ruleId":"D1","level":"warning","message":{"text":"NodeExecutionEnv.exec (cyclomatic 64): NodeExecutionEnv.exec has cyclomatic complexity 64 (threshold 15). Most of this is not in the body itself: 10 of the 64 points are its own statements and the rest belongs to 14 function literals inside it that branch (lines 843, 872, 703, \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/durable/src/env/node.ts"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ee278b2ffb4132c01bb8a6598968313a5f3a6d880b85ca1bdda37c0f0e49de5"}},{"ruleId":"D1","level":"warning","message":{"text":"generate-models.detectOpenAICompletionsCompat (cyclomatic 63): generate-models.detectOpenAICompletionsCompat has cyclomatic complexity 63 (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/ai/scripts/generate-models.ts"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ad88d54d4c1c3ef916175c44a910c77fa7aeb04138cd0f235965ddbe062b8c1"}},{"ruleId":"D1","level":"warning","message":{"text":"keys.parseKey (cyclomatic 62): keys.parseKey has cyclomatic complexity 62 (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/tui/src/keys.ts"},"region":{"startLine":1292}}}],"partialFingerprints":{"codehealthFindingId/v1":"065a4cf3f3e81ba294b95970c3cfd1128919451989f542773b378166a1912cad"}},{"ruleId":"D1","level":"warning","message":{"text":"bedrock-converse-stream.stream (cyclomatic 60): bedrock-converse-stream.stream has cyclomatic complexity 60 (threshold 15). Most of this is not in the body itself: 1 of the 60 points is its own statement and the rest belongs to one function literal inside it that branches (line 141). 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/ai/src/api/bedrock-converse-stream.ts"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0ededd98f182c4828342c9a6c0e77b01683d91d820b6c3450b66e8a7f754098"}},{"ruleId":"D1","level":"warning","message":{"text":"openai-completions.convertMessages (cyclomatic 60): openai-completions.convertMessages has cyclomatic complexity 60 (threshold 15). Of this number, 52 points are the body\u0027s own statements and 8 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/ai/src/api/openai-completions.ts"},"region":{"startLine":1178}}}],"partialFingerprints":{"codehealthFindingId/v1":"29ee3e81f1f9d8552102191d311ec7d839605de370728dbb018cc41991114786"}},{"ruleId":"D1","level":"warning","message":{"text":"openai-completions.detectCompat (cyclomatic 59): openai-completions.detectCompat has cyclomatic complexity 59 (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/ai/src/api/openai-completions.ts"},"region":{"startLine":1587}}}],"partialFingerprints":{"codehealthFindingId/v1":"f35cc1ef44b28ca09755379c43bcaf3aa078ae04dae07a575630b0e1499c915a"}},{"ruleId":"D1","level":"warning","message":{"text":"openai-responses-shared.convertResponsesMessages (cyclomatic 58): openai-responses-shared.convertResponsesMessages has cyclomatic complexity 58 (threshold 15). Of this number, 45 points are the body\u0027s own statements and 13 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/ai/src/api/openai-responses-shared.ts"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"007bcb863860dacde25e08b034f2790067eaaac71628d61da4a67e28c5f4f920"}},{"ruleId":"D1","level":"warning","message":{"text":"package-manager-cli.handlePackageCommand (cyclomatic 57): package-manager-cli.handlePackageCommand has cyclomatic complexity 57 (threshold 15). Of this number, 54 points are the body\u0027s own statements and 3 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/coding-agent/src/package-manager-cli.ts"},"region":{"startLine":900}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbe569eb55a5f79dcd399e5d2187c3b73eb8362bc65a9d256d83f03864f2c300"}},{"ruleId":"D1","level":"warning","message":{"text":"sdk.createAgentSession (cyclomatic 56): sdk.createAgentSession has cyclomatic complexity 56 (threshold 15). Of this number, 36 points are the body\u0027s own statements and 20 belong to 12 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/coding-agent/src/core/sdk.ts"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"590b7db7319e9694c00263d41ecfc8db65a83d13ad78d32ded060b5f7e0e1779"}},{"ruleId":"D1","level":"warning","message":{"text":"template.renderEntry (cyclomatic 55): template.renderEntry 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/coding-agent/src/core/export-html/template.js"},"region":{"startLine":1288}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cacb34612cabf8b0448130392fc07471ea4b6671f5c428558ef25acd21b23ad"}},{"ruleId":"D1","level":"warning","message":{"text":"openai-responses-shared.processResponsesStream (cyclomatic 54): openai-responses-shared.processResponsesStream has cyclomatic complexity 54 (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 shape REPEATS in the file: one other method here (openai-responses-shared.processResponsesStream::finalizeResponse) 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/ai/src/api/openai-responses-shared.ts"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c8f3388eea24a255257e138ff586015df877f727bfecd875f1a05e2f98fe99a"}},{"ruleId":"D1","level":"warning","message":{"text":"openai-codex-responses.stream (cyclomatic 54): openai-codex-responses.stream has cyclomatic complexity 54 (threshold 15). Most of this is not in the body itself: 1 of the 54 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 250, 330). 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/ai/src/api/openai-codex-responses.ts"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f28ace8a532c488e4f2f693ec91e83a998ecd24823f9785fd07acf4b299034b"}},{"ruleId":"D1","level":"warning","message":{"text":"TuiAltScreen.doRender (cyclomatic 53): TuiAltScreen.doRender has cyclomatic complexity 53 (threshold 15). Of this number, 47 points are the body\u0027s own statements and 6 belong to 3 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/tui/src/tui-alt-screen.ts"},"region":{"startLine":1691}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cb08dc4b66384ac68d26e7dc93eb0b52c10747495947b935792325a8a562f95"}},{"ruleId":"D1","level":"warning","message":{"text":"easter-egg-3d.parseScreen (cyclomatic 52): easter-egg-3d.parseScreen has cyclomatic complexity 52 (threshold 15). Most of this is not in the body itself: 1 of the 52 points is its own statement and the rest belongs to 3 function literals inside it that branch (lines 323, 317, 364). 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/coding-agent/src/modes/interactive/components/easter-egg-3d.ts"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b8163669d4a22dbb7b4c09122dfef54a2114f332894a70e6d41b834c1766d44"}},{"ruleId":"D1","level":"warning","message":{"text":"Markdown.renderToken (cyclomatic 52): Markdown.renderToken has cyclomatic complexity 52 (threshold 15). Of this number, 51 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/tui/src/components/markdown.ts"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"a398b139eb02bc7710470e207d050f0a843aee5f4fdb5dc75407055fa05bb9d8"}},{"ruleId":"D1","level":"warning","message":{"text":"anthropic-messages.convertMessages (cyclomatic 50): anthropic-messages.convertMessages has cyclomatic complexity 50 (threshold 15). Of this number, 48 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/src/api/anthropic-messages.ts"},"region":{"startLine":1351}}}],"partialFingerprints":{"codehealthFindingId/v1":"9450272ea777c1e91258a645b8334d694423cea6db065fe6b8bb0e135bb21e74"}},{"ruleId":"D1","level":"warning","message":{"text":"rpc-mode.runRpcMode::handleCommand (cyclomatic 50): rpc-mode.runRpcMode::handleCommand has cyclomatic complexity 50 (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/coding-agent/src/modes/rpc/rpc-mode.ts"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfaedb551cadb3fc80d211f5e93bcfb70ce9ce54c0c716c9fa8398cf220e2d47"}},{"ruleId":"D1","level":"warning","message":{"text":"grep.createGrepToolDefinition.execute (cyclomatic 47): grep.createGrepToolDefinition.execute has cyclomatic complexity 47 (threshold 15). Most of this is not in the body itself: 1 of the 47 points is its own statement and the rest belongs to 10 function literals inside it that branch (lines 247, 117, 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/coding-agent/src/core/tools/grep.ts"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"67c5073952fe71eb8630d0a11d742e792dcae001f0fdb288578b16779bbdcde5"}},{"ruleId":"D1","level":"warning","message":{"text":"index.llamaExtension (cyclomatic 47): index.llamaExtension has cyclomatic complexity 47 (threshold 15). Most of this is not in the body itself: 1 of the 47 points is its own statement and the rest belongs to 10 function items inside it that branch (loadModel, a function literal at line 192, downloadModel, \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/coding-agent/src/extensions/llama/index.ts"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f54e1b33023e81d2b8393d693d8c89bced2f62274ed1509cc0d8aa9b0f88cb8"}},{"ruleId":"D1","level":"warning","message":{"text":"pi_env::exec::run (cyclomatic 47): pi_env::exec::run has cyclomatic complexity 47 (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/env/daemon/src/exec.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4a6e28290f296beb577f4999ae931bb7c88128694f0098209643eed5a5b45d6"}},{"ruleId":"D1","level":"warning","message":{"text":"google-generative-ai.stream (cyclomatic 46): google-generative-ai.stream has cyclomatic complexity 46 (threshold 15). Most of this is not in the body itself: 1 of the 46 points is its own statement and the rest belongs to one function literal inside it that branches (line 67). 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/ai/src/api/google-generative-ai.ts"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"06bf2f55fd825617cce46a268241c3dde32cee4ad9e2e13fcdbae7df93d5b658"}},{"ruleId":"D1","level":"warning","message":{"text":"google-vertex.stream (cyclomatic 46): google-vertex.stream has cyclomatic complexity 46 (threshold 15). Most of this is not in the body itself: 1 of the 46 points is its own statement and the rest belongs to one function literal inside it that branches (line 76). 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/ai/src/api/google-vertex.ts"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bf30a185d1d9dfedf43409ada6d360f9390ea24200980459ab328af6cdaac56"}},{"ruleId":"D1","level":"warning","message":{"text":"index.assertValidWireOp (cyclomatic 45): index.assertValidWireOp has cyclomatic complexity 45 (threshold 15). Of this number, 41 points are the body\u0027s own statements and 4 belong 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/src/delta/index.ts"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"3160cad3fd467326800b82989ca4134b31087543e1cc7d4b9c9ad5343c1ec3e3"}},{"ruleId":"D1","level":"warning","message":{"text":"TreeList.handleInput (cyclomatic 44): TreeList.handleInput has cyclomatic complexity 44 (threshold 15). Of this number, 41 points are the body\u0027s own statements and 3 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/coding-agent/src/modes/interactive/components/tree-selector.ts"},"region":{"startLine":997}}}],"partialFingerprints":{"codehealthFindingId/v1":"2171553aaa63e40af4f692b8faa707b1a9b1298ebdb8548d257c71e5cbdf5ed5"}},{"ruleId":"D1","level":"warning","message":{"text":"TuiAltScreen.handleViewportInput (cyclomatic 44): TuiAltScreen.handleViewportInput 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/tui/src/tui-alt-screen.ts"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a2142167967ecde157073419dfbeec27b9b429daff4695eddae7977b183ec41"}},{"ruleId":"D1","level":"warning","message":{"text":"anthropic-messages.buildParams (cyclomatic 43): anthropic-messages.buildParams has cyclomatic complexity 43 (threshold 15). Of this number, 39 points are the body\u0027s own statements and 4 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/ai/src/api/anthropic-messages.ts"},"region":{"startLine":1155}}}],"partialFingerprints":{"codehealthFindingId/v1":"069c5b18bf45da54106a3da4fd5f33c96c8d7ce4655afc5d3e595ca85734c679"}},{"ruleId":"D1","level":"warning","message":{"text":"mcp-servers.validateMcpServerConfig (cyclomatic 42): mcp-servers.validateMcpServerConfig has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/mcp-servers.ts"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"03355eef3ae72094ea4d08b0fd9ae5e11fb7688eaaae6e56a47c1cbad0af18c5"}},{"ruleId":"D1","level":"warning","message":{"text":"AnsiCodeTracker.process (cyclomatic 42): AnsiCodeTracker.process has cyclomatic complexity 42 (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/tui/src/utils.ts"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5cc1893024e41789c04a7cbf590c9e19164062ecad772907dad3d84ae6cfe16"}},{"ruleId":"D1","level":"warning","message":{"text":"vm.startVm (cyclomatic 41): vm.startVm has cyclomatic complexity 41 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 20 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/codemode/src/runtime/vm.ts"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"714b7fdfa31b58463417749a2a202d298b4bd0e559786397b6939cbedf3f0953"}},{"ruleId":"D1","level":"warning","message":{"text":"TaskScheduler.#observe (cyclomatic 41): TaskScheduler.#observe 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/durable/src/harness/scheduler.ts"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"059c9d9665fe032af7b4383c63dd0e2d410cdb53bb9adc23cb33901670b85ff5"}},{"ruleId":"D1","level":"warning","message":{"text":"find.createFindToolDefinition.execute (cyclomatic 40): find.createFindToolDefinition.execute has cyclomatic complexity 40 (threshold 15). Most of this is not in the body itself: 1 of the 40 points is its own statement and the rest belongs to 7 function literals inside it that branch (lines 109, 244, 88, \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/coding-agent/src/core/tools/find.ts"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"9343a9e10c3368fa1c3f50f5de1172b6f7a736061ad9043102c8e7203f0609ca"}},{"ruleId":"D1","level":"warning","message":{"text":"session-context-stats.scanSessions (cyclomatic 40): session-context-stats.scanSessions 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":"scripts/session-context-stats.mjs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"20ce99c28d36adfcb601c2ddf64c95510a162cd8f7b39fed8bde88216ecf636a"}},{"ruleId":"D1","level":"warning","message":{"text":"google-shared.convertMessages (cyclomatic 39): google-shared.convertMessages has cyclomatic complexity 39 (threshold 15). Of this number, 37 points are the body\u0027s own statements and 2 belong to 2 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/src/api/google-shared.ts"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"c790b860923f525b41b502bcf24a655b2589538017c92b0022b37fbe30d3e9bd"}},{"ruleId":"D1","level":"warning","message":{"text":"mcp-servers.validateOAuth (cyclomatic 39): mcp-servers.validateOAuth 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/coding-agent/src/core/mcp-servers.ts"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ea2792014e7d056fb28dabf4e5c8442a7b2a3de91bc47e72a50fecf933ae83a"}},{"ruleId":"D1","level":"warning","message":{"text":"TaskScheduler.#runtime (cyclomatic 39): TaskScheduler.#runtime has cyclomatic complexity 39 (threshold 15). Most of this is not in the body itself: 1 of the 39 points is its own statement and the rest belongs to 18 function items inside it that branch (a function literal at line 2277, a function literal at line 2114, a function literal at line 2211, \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/durable/src/harness/scheduler.ts"},"region":{"startLine":2102}}}],"partialFingerprints":{"codehealthFindingId/v1":"da3f4741bdc5137aa7b283fd90fe4e979ed7b79e5451d17de5297f064d6a2257"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteExecutionEnv.exec (cyclomatic 39): RemoteExecutionEnv.exec has cyclomatic complexity 39 (threshold 15). Of this number, 30 points are the body\u0027s own statements and 9 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/env/src/remote-env.ts"},"region":{"startLine":852}}}],"partialFingerprints":{"codehealthFindingId/v1":"d32b31051e7994a3ce4248d6cb4f54486bb12ff99c043e4ba00210bb3726118e"}},{"ruleId":"D1","level":"warning","message":{"text":"CombinedAutocompleteProvider.getFileSuggestions (cyclomatic 39): CombinedAutocompleteProvider.getFileSuggestions has cyclomatic complexity 39 (threshold 15). Of this number, 35 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/tui/src/autocomplete.ts"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"94131bad8a823528f84eca8580727544c87b317cae5743453575f49e157172ee"}},{"ruleId":"D1","level":"warning","message":{"text":"EasterEgg3dAnimation.render (cyclomatic 38): EasterEgg3dAnimation.render has cyclomatic complexity 38 (threshold 15). Of this number, 28 points are the body\u0027s own statements and 10 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/coding-agent/src/modes/interactive/components/easter-egg-3d.ts"},"region":{"startLine":950}}}],"partialFingerprints":{"codehealthFindingId/v1":"351be6e12bd637e3e2748bcb408e7d5b69bbf9798d4bd1dc45174d168057357f"}},{"ruleId":"D1","level":"warning","message":{"text":"Transaction.#assemble (cyclomatic 38): Transaction.#assemble has cyclomatic complexity 38 (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/durable/src/session/transaction.ts"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0e6760fa6cc8cae9047f167ac9f91bef91e74eebe0f00ffa0b35352da0bf5e7"}},{"ruleId":"D1","level":"warning","message":{"text":"harness.runPiCodingAgent (cyclomatic 38): harness.runPiCodingAgent has cyclomatic complexity 38 (threshold 15). Of this number, 35 points are the body\u0027s own statements and 3 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/evals/src/harness.ts"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b10d3efcb5ab18ba72aa049198ecaa70510d7fc4b4113c07ca6c9cffe730611"}},{"ruleId":"D1","level":"warning","message":{"text":"profile-coding-agent-node.main (cyclomatic 38): profile-coding-agent-node.main has cyclomatic complexity 38 (threshold 15). Of this number, 37 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":"scripts/profile-coding-agent-node.mjs"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"99696689bd5862954bb94cf7d0ce49560d10ccf3025466734aeed1ee271fdf9b"}},{"ruleId":"D1","level":"warning","message":{"text":"mistral-conversations.consumeChatStream (cyclomatic 37): mistral-conversations.consumeChatStream has cyclomatic complexity 37 (threshold 15). Of this number, 34 points are the body\u0027s own statements and 3 belong 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/src/api/mistral-conversations.ts"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ab03a9ca5a8526470dc26058558c76da7a6ba198cf27f60a985eda08504b48a"}},{"ruleId":"D1","level":"warning","message":{"text":"provider-composer.composeModelProvider (cyclomatic 37): provider-composer.composeModelProvider has cyclomatic complexity 37 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 21 belong to 8 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/coding-agent/src/core/provider-composer.ts"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"09f5a174426e9b525ca64c3aeace94d96b925859b0814c923fe927ac45fd4d96"}},{"ruleId":"D1","level":"warning","message":{"text":"DefaultResourceLoader.reload (cyclomatic 37): DefaultResourceLoader.reload has cyclomatic complexity 37 (threshold 15). Of this number, 34 points are the body\u0027s own statements and 3 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/coding-agent/src/core/resource-loader.ts"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"90cc4bf721eabb8cc65736e7fe3c1042dd2cfd18d7ab2694bee097704194b6ae"}},{"ruleId":"D1","level":"warning","message":{"text":"utils.truncateToWidth (cyclomatic 37): utils.truncateToWidth has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/tui/src/utils.ts"},"region":{"startLine":1121}}}],"partialFingerprints":{"codehealthFindingId/v1":"a39dc96d342cceb761134788752dfe286cedb603adca773122b8557cbf342a60"}},{"ruleId":"D1","level":"warning","message":{"text":"transform-messages.transformMessages (cyclomatic 36): transform-messages.transformMessages has cyclomatic complexity 36 (threshold 15). Most of this is not in the body itself: 10 of the 36 points are its own statements and the rest belongs to 4 function items inside it that branch (a function literal at line 127, a function literal at line 104, closePendingToolCalls, \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/ai/src/api/transform-messages.ts"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"84eaef24d3c2a3d108c4a9c271ceed7771e837406e6943d41faa19f4a34211f1"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentSession._checkCompaction (cyclomatic 36): AgentSession._checkCompaction has cyclomatic complexity 36 (threshold 15). Of this number, 35 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/coding-agent/src/core/agent-session.ts"},"region":{"startLine":3011}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9fe925c938b28fcaeee4fb13089f4228ae5dbe4f4e951be6c43cb596006132c"}},{"ruleId":"D1","level":"warning","message":{"text":"Markdown.renderTable (cyclomatic 36): Markdown.renderTable has cyclomatic complexity 36 (threshold 15). Of this number, 30 points are the body\u0027s own statements and 6 belong to 6 function literals inside it that branch. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/tui/src/components/markdown.ts"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffbf62276c56e4014df7460e08bcec91fb6a1fc4d7f7da2ce6a7149be536af4a"}},{"ruleId":"D1","level":"warning","message":{"text":"bedrock-converse-stream.convertMessages (cyclomatic 35): bedrock-converse-stream.convertMessages 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/ai/src/api/bedrock-converse-stream.ts"},"region":{"startLine":983}}}],"partialFingerprints":{"codehealthFindingId/v1":"db1d68b84569722ce750d19d5b4539c9a29f87f401aab6133a6086c992c25ca5"}},{"ruleId":"D1","level":"warning","message":{"text":"system-theme.generateSystemThemeColors (cyclomatic 35): system-theme.generateSystemThemeColors has cyclomatic complexity 35 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 17 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/coding-agent/src/modes/interactive/theme/system-theme.ts"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"00360c689541c37a75526c3c0bc2ae96a41e43d7cbbda23f9e67863413062686"}},{"ruleId":"D1","level":"warning","message":{"text":"FooterComponent.render (cyclomatic 35): FooterComponent.render has cyclomatic complexity 35 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/components/footer.ts"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"56cd5956949b7bb33e0f078fccacdb7c780116c4f08bcd3bc7b18292ca0f4495"}},{"ruleId":"D1","level":"warning","message":{"text":"generate-coding-agent-install-lock.validateGeneratedFiles (cyclomatic 35): generate-coding-agent-install-lock.validateGeneratedFiles 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":"scripts/generate-coding-agent-install-lock.mjs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"307a5dd06fa5f402a9788553e58ed0faf8a1de2d3bf545d91af344535d34ba59"}},{"ruleId":"D1","level":"warning","message":{"text":"tracker.emitOperations (cyclomatic 34): tracker.emitOperations has cyclomatic complexity 34 (threshold 15). Of this number, 33 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/chord/src/delta/tracker.ts"},"region":{"startLine":1649}}}],"partialFingerprints":{"codehealthFindingId/v1":"d62e7c34f3746b3d203e737c19de9d0f43024ecaccee391e02ba3266d0abe85f"}},{"ruleId":"D1","level":"warning","message":{"text":"Input.handleInput (cyclomatic 34): Input.handleInput has cyclomatic complexity 34 (threshold 15). Of this number, 31 points are the body\u0027s own statements and 3 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/tui/src/components/input.ts"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5f756520485b021a6f4020c778cf0844f262107a959a5352172fe3affaf45c0"}},{"ruleId":"D1","level":"warning","message":{"text":"execute.checkClassifierContext (cyclomatic 33): execute.checkClassifierContext has cyclomatic complexity 33 (threshold 15). Of this number, 29 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/coding-agent/src/extensions/codemode/execute.ts"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"e55114f820fab87af80aa657cbb9849200849efe28480e76093bcebdbba44227"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.add (cyclomatic 33): cli.add has cyclomatic complexity 33 (threshold 15). Of this number, 31 points are the body\u0027s own statements and 2 belong to 2 function items inside it that branch. To reduce it, split the body: 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/coding-agent/src/extensions/mcp/cli.ts"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"b14840f228764e706e13818ad9c30c4f216b64fca7174926b328b66f494550d9"}},{"ruleId":"D1","level":"warning","message":{"text":"CodemodeCall.execute (cyclomatic 33): CodemodeCall.execute has cyclomatic complexity 33 (threshold 15). Of this number, 26 points are the body\u0027s own statements and 7 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/durable/src/codemode/codemode.ts"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"f46e25213159ef3158bc0c7158e4aa57da7d93b56e99bc6b61d59fe494f68a0d"}},{"ruleId":"D1","level":"warning","message":{"text":"Markdown.renderInlineTokens (cyclomatic 33): Markdown.renderInlineTokens 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/tui/src/components/markdown.ts"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd5c19ee958aa798f40b9b3a54b7cc326edda7d8d7cdfe32fd16bc58390ee730"}},{"ruleId":"D1","level":"warning","message":{"text":"declarations.toType (cyclomatic 32): declarations.toType has cyclomatic complexity 32 (threshold 15). Of this number, 31 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/codemode/src/declarations.ts"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7dc6d95ea2763796cb4b8c538255e42ef10f79b538efa782e5ca9e85e5e9a50"}},{"ruleId":"D1","level":"warning","message":{"text":"TreeList.applyFilter (cyclomatic 32): TreeList.applyFilter has cyclomatic complexity 32 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 15 belong to one function literal inside it that branches. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/components/tree-selector.ts"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"8041e71718615b8719c7797d3a56dd7465da0cc709aff8f03e8ec5028604b8dd"}},{"ruleId":"D1","level":"warning","message":{"text":"edit-tool-stats.printHumanReport (cyclomatic 32): edit-tool-stats.printHumanReport has cyclomatic complexity 32 (threshold 15). Of this number, 29 points are the body\u0027s own statements and 3 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/edit-tool-stats.mjs"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0acefd730f6535285f5ecd4738a8e3c55f4869376938a457e8bb1abe3592838"}},{"ruleId":"D1","level":"warning","message":{"text":"validation.coercePrimitiveByType (cyclomatic 31): validation.coercePrimitiveByType has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/src/utils/validation.ts"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"41672a817078aa3599b610374a768fb2448e2c12d841bbb16239d1ac8d091ae1"}},{"ruleId":"D1","level":"warning","message":{"text":"clipboard.copyToClipboard (cyclomatic 31): clipboard.copyToClipboard has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/utils/clipboard.ts"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"702374d5cb791e8ccf8fec2581f31b7dbabc5f9a4dc9976f61038189a7bf4eb8"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentSession.navigateTree (cyclomatic 31): AgentSession.navigateTree has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/agent-session.ts"},"region":{"startLine":4024}}}],"partialFingerprints":{"codehealthFindingId/v1":"47a1a8caecf556f7094206ad7f2c203cd4f14a2f8c541f72c2e2d24f1ff510c2"}},{"ruleId":"D1","level":"warning","message":{"text":"TaskScheduler.#reserve (cyclomatic 31): TaskScheduler.#reserve has cyclomatic complexity 31 (threshold 15). Most of this is not in the body itself: 6 of the 31 points are its own statements and the rest belongs to one function literal inside it that branches (line 1488). 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/durable/src/harness/scheduler.ts"},"region":{"startLine":1483}}}],"partialFingerprints":{"codehealthFindingId/v1":"f70ae6f1a4f1e19bbdd9968486b56f19a74f2c7d8b35eaa39f6dd1f38d2169b0"}},{"ruleId":"D1","level":"warning","message":{"text":"submissions.admitSubmission (cyclomatic 31): submissions.admitSubmission has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/harness/submissions.ts"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"35fc3712c5e73e3612ba94471aee8450c5089ea9cf0268b3113f84a15c330b30"}},{"ruleId":"D1","level":"warning","message":{"text":"NodeFileWatcher.#reconcileWatchers (cyclomatic 31): NodeFileWatcher.#reconcileWatchers has cyclomatic complexity 31 (threshold 15). Of this number, 28 points are the body\u0027s own statements and 3 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own 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/durable/src/env/node-watch.ts"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e039704eb79a386b31d30760cad22558700646bfdd82e95480881007a22a082"}},{"ruleId":"D1","level":"warning","message":{"text":"model-data.validateModelValue (cyclomatic 30): model-data.validateModelValue 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/ai/scripts/model-data.ts"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e5cb3abeaa9a1835168b4c1c55784d0fa95f8fa2215f2069feed5b40ef901c6"}},{"ruleId":"D1","level":"warning","message":{"text":"Connection.#dispatch (cyclomatic 30): Connection.#dispatch has cyclomatic complexity 30 (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/chord/src/connection.ts"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7b3b67d1aee606f83e7f037ca541e37beae9d6addbe415047ca80e822c06c2b"}},{"ruleId":"D1","level":"warning","message":{"text":"ansi-to-html.applySgrCode (cyclomatic 30): ansi-to-html.applySgrCode 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/coding-agent/src/core/export-html/ansi-to-html.ts"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddbc303722d1b364c27acf425360c6649d0e603aa3c246afb8ea06cacbc338fd"}},{"ruleId":"D1","level":"warning","message":{"text":"execute.executeCodemode (cyclomatic 30): execute.executeCodemode has cyclomatic complexity 30 (threshold 15). Of this number, 24 points are the body\u0027s own statements and 6 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/coding-agent/src/extensions/codemode/execute.ts"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac6797fc30cbceb90488ab7cc0786ab79a9b7e865999e3173ab3cc47642e5b7d"}},{"ruleId":"D1","level":"warning","message":{"text":"BlockRaster.render (cyclomatic 30): BlockRaster.render 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/coding-agent/src/modes/interactive/components/easter-egg-3d.ts"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ae244f30dee1fe8973c9eda49484f4c3918d506270a2e5c157771390f6bf073"}},{"ruleId":"D1","level":"warning","message":{"text":"InteractiveMode.showLoadedResources (cyclomatic 30): InteractiveMode.showLoadedResources has cyclomatic complexity 30 (threshold 15). Of this number, 27 points are the body\u0027s own statements and 3 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. This is NOT this file\u0027s highest cyclomatic complexity: InteractiveMode.setupEditorSubmitHandler (cyclomatic 50) 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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":1774}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1ba449c504071ef7bfd76bc6f4277da74517599f88bdbdeea378a7ef9a1eb86"}},{"ruleId":"D1","level":"warning","message":{"text":"terminal-image.detectCapabilitiesFromEnvironment (cyclomatic 30): terminal-image.detectCapabilitiesFromEnvironment 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/tui/src/terminal-image.ts"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"69c31d1d328d546d9351cc5eca0cf39cdd0e3b534c4491b5bf80f25415b5718a"}},{"ruleId":"D1","level":"warning","message":{"text":"edit-tool-stats.scanSessions (cyclomatic 30): edit-tool-stats.scanSessions 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":"scripts/edit-tool-stats.mjs"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae203feb0348734038ff548e2680a822e6a81c6df6e4376b1cc5caccb28276c2"}},{"ruleId":"D1","level":"warning","message":{"text":"models.createProvider (cyclomatic 29): models.createProvider has cyclomatic complexity 29 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 13 belong to 8 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/ai/src/models.ts"},"region":{"startLine":1077}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab7a162d9c227a60e2718e8cbbd55509ce34a8435a183a40667e7c7c030745c9"}},{"ruleId":"D1","level":"warning","message":{"text":"constrained-sampling.makeJsonSchemaNodeStrict (cyclomatic 29): constrained-sampling.makeJsonSchemaNodeStrict 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/ai/src/api/constrained-sampling.ts"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ffb6eb5d2d63f6321477431a1fada7d830c51fb7448a61a423df803d7bb6521"}},{"ruleId":"D1","level":"warning","message":{"text":"model-data.validateModelDataDirectory (cyclomatic 29): model-data.validateModelDataDirectory has cyclomatic complexity 29 (threshold 15). Of this number, 28 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/ai/scripts/model-data.ts"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"f341487fa4fd28602da236e1d1a2a7871034bbd36c349f9397a02204ee94dd06"}},{"ruleId":"D1","level":"warning","message":{"text":"ScopedModelsSelectorComponent.handleInput (cyclomatic 29): ScopedModelsSelectorComponent.handleInput 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/coding-agent/src/modes/interactive/components/scoped-models-selector.ts"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"6999a1cf192f9088eab1bb036a97acd571763e779363b418d53482028f0d591c"}},{"ruleId":"D1","level":"warning","message":{"text":"TreeList.render (cyclomatic 29): TreeList.render 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/coding-agent/src/modes/interactive/components/tree-selector.ts"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"0046348a22b6d7d6744cffc1875f807faa8b038ef4f7556ce85fa464e3756a8e"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentSession._handleAgentEvent (cyclomatic 29): AgentSession._handleAgentEvent 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/coding-agent/src/core/agent-session.ts"},"region":{"startLine":1103}}}],"partialFingerprints":{"codehealthFindingId/v1":"4049db96bbcdd56725ba0cd5bfbf211075a7d09c9cdbdce2fa6221c5698f3315"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.list (cyclomatic 29): cli.list has cyclomatic complexity 29 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 9 belong to 3 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/extensions/mcp/cli.ts"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"8430e365cc6669f73502036a9053b7fdf36988cc0d2f5fd842de79f8ac219cc9"}},{"ruleId":"D1","level":"warning","message":{"text":"NodeFileWatcher.#scan (cyclomatic 29): NodeFileWatcher.#scan has cyclomatic complexity 29 (threshold 15). Most of this is not in the body itself: 10 of the 29 points are its own statements and the rest belongs to 3 function items inside it that branch (scanDirectory, record, countDirectory). 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/durable/src/env/node-watch.ts"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"140c7fde91b4b6b76c3674d8886309cc29755ebbc28c5005b8848c8fddb23ec5"}},{"ruleId":"D1","level":"warning","message":{"text":"TuiBase.showOverlay (cyclomatic 29): TuiBase.showOverlay has cyclomatic complexity 29 (threshold 15). Most of this is not in the body itself: 4 of the 29 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 812, 785, 770, \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/tui/src/tui.ts"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"b793bfba49a30c5903eb5e967809368d3c87592aa2688e1f1602783e42455336"}},{"ruleId":"D1","level":"warning","message":{"text":"TuiAltScreen.handleSelectionMouseEvent (cyclomatic 29): TuiAltScreen.handleSelectionMouseEvent 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/tui/src/tui-alt-screen.ts"},"region":{"startLine":1333}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6b65a8ec1d78e225014afa9d098e9496ab84832f75f4efe2901aa6ae3c0fb7c"}},{"ruleId":"D1","level":"warning","message":{"text":"Server::dispatch (cyclomatic 29): Server::dispatch has cyclomatic complexity 29 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/env/daemon/src/main.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"e18dff569a37fd1469212a1d4f5836f8f000f7970b330c88500df0eef9f0ed46"}},{"ruleId":"D1","level":"warning","message":{"text":"index.decoder.decode (cyclomatic 28): index.decoder.decode has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/src/delta/index.ts"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a87e8274c62d9e1ff54027cede8192a707420004596b7ccfe9efbaa6c4ff8b7"}},{"ruleId":"D1","level":"warning","message":{"text":"schema.fits (cyclomatic 28): schema.fits 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/chord/src/schema.ts"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"d21db9c6e762c5c22144b8bc572df5e5fd727ae20433d8c7f59f220e829b4f74"}},{"ruleId":"D1","level":"warning","message":{"text":"credential-print.resolveCredentialForPrint (cyclomatic 28): credential-print.resolveCredentialForPrint has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/cli/credential-print.ts"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b9c30d4b43581edf9c8ed4d45d4aabf141755c01a956b03a1874aa9408a7618"}},{"ruleId":"D1","level":"warning","message":{"text":"AssistantMessageComponent.updateContent (cyclomatic 28): AssistantMessageComponent.updateContent has cyclomatic complexity 28 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 9 belong to 3 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/components/assistant-message.ts"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c15885011324d932c64a68ae5d3af8d2d9c291a45d0e1e26df659d21561de58"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolExecutionComponent.updateDisplay (cyclomatic 28): ToolExecutionComponent.updateDisplay has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/components/tool-execution.ts"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5c57cc2b106f848bd0a2cd40ddc8df5fca0f52a394d03bee2f3b9bd30b108c0"}},{"ruleId":"D1","level":"warning","message":{"text":"InteractiveMode.showSettingsSelector (cyclomatic 28): InteractiveMode.showSettingsSelector has cyclomatic complexity 28 (threshold 15). Most of this is not in the body itself: 1 of the 28 points is its own statement and the rest belongs to 12 function literals inside it that branch (lines 4902, 5074, 4957, \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. This is NOT this file\u0027s highest cyclomatic complexity: InteractiveMode.setupEditorSubmitHandler (cyclomatic 50) 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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":4901}}}],"partialFingerprints":{"codehealthFindingId/v1":"03cb58f772bde4aadb3b31c1c3bc36829cb10cce4553186f6368e0f7ab57f2ae"}},{"ruleId":"D1","level":"warning","message":{"text":"template.getTreeNodeDisplayHtml (cyclomatic 28): template.getTreeNodeDisplayHtml has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/export-html/template.js"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"f709c2e1f9e5ab51b3eec711755afe74acbbf602195d4ffd0e478c918018d2fe"}},{"ruleId":"D1","level":"warning","message":{"text":"storage.validateMainOperation (cyclomatic 28): storage.validateMainOperation has cyclomatic complexity 28 (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/durable/src/storage/jsonl/storage.ts"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"b64ea30e8e2273562c50dcfed68e612e10d52a2f1e34098e4959f7987f453471"}},{"ruleId":"D1","level":"warning","message":{"text":"read.readText (cyclomatic 28): read.readText has cyclomatic complexity 28 (threshold 15). 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: 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/durable/src/tools/read.ts"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"60c9177f3775c749f97a4aac272ebb9a79b1f9e1aa1ebc7ccee1241fe781838c"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.parseEvalCli (cyclomatic 28): cli.parseEvalCli has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/evals/src/cli.ts"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"b69b7ad2b39bf15dbf2818e1aedd441433ee9e8723fd343f1c55f423ee02c543"}},{"ruleId":"D1","level":"warning","message":{"text":"keys.formatParsedKey (cyclomatic 28): keys.formatParsedKey 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/tui/src/keys.ts"},"region":{"startLine":1253}}}],"partialFingerprints":{"codehealthFindingId/v1":"a253b4de1c2776f396d87fbd9e133ab4fddd95fe102d667a7502cc893ac0d5b2"}},{"ruleId":"D1","level":"warning","message":{"text":"latex.renderLayout (cyclomatic 28): latex.renderLayout has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/tui/src/latex.ts"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddf0ca89cdd3a3a7b9b96b2e38a1dd44ba42fc03855e0c347943bf39921167ff"}},{"ruleId":"D1","level":"warning","message":{"text":"TuiAltScreen.refreshSearch (cyclomatic 28): TuiAltScreen.refreshSearch has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/tui/src/tui-alt-screen.ts"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab129aff0151a54991a89b128d4c8e4994959cfbfc8a409f7e636a2c51815752"}},{"ruleId":"D1","level":"warning","message":{"text":"session-transcripts.main (cyclomatic 28): session-transcripts.main 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":"scripts/session-transcripts.ts"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"75e7328d5bccc2c6eed6d88c6abb1bd474ad81b9e44bf32663df0ff31ee6502f"}},{"ruleId":"D1","level":"warning","message":{"text":"agent-loop.runLoop (cyclomatic 27): agent-loop.runLoop 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/agent/src/agent-loop.ts"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3d93edfb8ff33238b1d01701e25d27d91070167c55d275e7df482e5c9ce63a7"}},{"ruleId":"D1","level":"warning","message":{"text":"mistral-conversations.toChatMessages (cyclomatic 27): mistral-conversations.toChatMessages has cyclomatic complexity 27 (threshold 15). Of this number, 24 points are the body\u0027s own statements and 3 belong to 3 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/src/api/mistral-conversations.ts"},"region":{"startLine":780}}}],"partialFingerprints":{"codehealthFindingId/v1":"8565b64c33932dcd327153d370a44567f669de5053196fd0298da99754e07359"}},{"ruleId":"D1","level":"warning","message":{"text":"generate-models.processGoogleModels (cyclomatic 27): generate-models.processGoogleModels 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/ai/scripts/generate-models.ts"},"region":{"startLine":1612}}}],"partialFingerprints":{"codehealthFindingId/v1":"afcc539689441404cc28aaf6c74bc5c35446a09007a2ce42dc08e6647b59453b"}},{"ruleId":"D1","level":"warning","message":{"text":"declarations.constraintTags (cyclomatic 27): declarations.constraintTags has cyclomatic complexity 27 (threshold 15). Of this number, 23 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/codemode/src/declarations.ts"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd0399e975226a76e3427efb08b8f2c664df6b709959bcd89be1e83253c5f02c"}},{"ruleId":"D1","level":"warning","message":{"text":"TreeList.flattenTree (cyclomatic 27): TreeList.flattenTree has cyclomatic complexity 27 (threshold 15). Of this number, 25 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own 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/coding-agent/src/modes/interactive/components/tree-selector.ts"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"eff51f912b88eadbcd1383aae7f01c1556a3542edc8f3f7139775bcb17503d3f"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.runMcpCommand (cyclomatic 27): cli.runMcpCommand 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/coding-agent/src/extensions/mcp/cli.ts"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c8ec43de984aa3c6784056e46e9811cf5d1bb2dfe63b083592fdc85727e677c"}},{"ruleId":"D1","level":"warning","message":{"text":"flow.runFlow (cyclomatic 27): flow.runFlow has cyclomatic complexity 27 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mcp/src/oauth/flow.ts"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5ad3fb9eba9a80caa1ee6d49d3ed212812d5916fb62f219f663136b39ae1d30"}},{"ruleId":"D1","level":"warning","message":{"text":"TuiAltScreen.handleMouseEvent (cyclomatic 27): TuiAltScreen.handleMouseEvent 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/tui/src/tui-alt-screen.ts"},"region":{"startLine":913}}}],"partialFingerprints":{"codehealthFindingId/v1":"c78be4c5eb3de8c0a7593ab395ab529b48bf21a1c3ac5915897b27929761b8f2"}},{"ruleId":"D1","level":"warning","message":{"text":"ObjectImpl.call (cyclomatic 26): ObjectImpl.call has cyclomatic complexity 26 (threshold 15). Of this number, 25 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/src/object.ts"},"region":{"startLine":1555}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e0c4900345b98e71c5db513691fb37cedfc2061f838c60bf627da7b9d69e8ad"}},{"ruleId":"D1","level":"warning","message":{"text":"bash.createShellToolDefinition.execute (cyclomatic 26): bash.createShellToolDefinition.execute has cyclomatic complexity 26 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 13 belong to 6 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/tools/bash.ts"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"01801b8cd1b66a1ba380c9c7bef4d1298265b7cb3bb49b13db988f2b86039883"}},{"ruleId":"D1","level":"warning","message":{"text":"TreeList.formatToolCall (cyclomatic 26): TreeList.formatToolCall has cyclomatic complexity 26 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 4 belong to one function item 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/coding-agent/src/modes/interactive/components/tree-selector.ts"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"59dcf3e833fce985a6a2522d1c58137f041433d9c6626de087e377f00a0e0da0"}},{"ruleId":"D1","level":"warning","message":{"text":"InteractiveMode.showModelsSelector (cyclomatic 26): InteractiveMode.showModelsSelector has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 2 of the 26 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 5450, updateSessionModels, a function literal at line 5434, \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. This is NOT this file\u0027s highest cyclomatic complexity: InteractiveMode.setupEditorSubmitHandler (cyclomatic 50) 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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":5374}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cefed80336f82c879de72ea2019113d5f209bb84ed60d86ad5a84bea52047b9"}},{"ruleId":"D1","level":"warning","message":{"text":"loader.createExtensionAPI (cyclomatic 26): loader.createExtensionAPI has cyclomatic complexity 26 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 4 belong to 2 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/loader.ts"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7c19a6e74bc2c8591121fcdb2c9da09024ab10991b20c12e67fc39aa661849b"}},{"ruleId":"D1","level":"warning","message":{"text":"main.buildSessionOptions (cyclomatic 26): main.buildSessionOptions 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/coding-agent/src/main.ts"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"a493abd730569395f9699625af71af0e8553aa378448076460b8965c0a2678d7"}},{"ruleId":"D1","level":"warning","message":{"text":"template.computeStats (cyclomatic 26): template.computeStats 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/coding-agent/src/core/export-html/template.js"},"region":{"startLine":1456}}}],"partialFingerprints":{"codehealthFindingId/v1":"34ce2ac9dd1ec458ad9a2ff175c6f3c50d273d9838049624465888f5c4bb7f06"}},{"ruleId":"D1","level":"warning","message":{"text":"env-conformance.createEnvConformance (cyclomatic 26): env-conformance.createEnvConformance 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 12 function items inside it that branch (a function literal at line 257, a function literal at line 341, a function literal at line 160, \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/durable/src/testing/env-conformance.ts"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ddff61bc126033c96390cf941c23fb16c489d6d28db478068ff3b1a66db56cd"}},{"ruleId":"D1","level":"warning","message":{"text":"ReadOnlyAuthStorage.load (cyclomatic 25): ReadOnlyAuthStorage.load 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/coding-agent/src/core/auth-storage.ts"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"69802b208d58cf1e8feedce3be75eb0b881bec0982a7688a2e4fa519f1ee7eb2"}},{"ruleId":"D1","level":"warning","message":{"text":"management-http.fetchWithRetry (cyclomatic 25): management-http.fetchWithRetry has cyclomatic complexity 25 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/utils/management-http.ts"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"d169fd5153022d63381a77bd166b6ecc0ec23533297247bfd079f48dec12036c"}},{"ruleId":"D1","level":"warning","message":{"text":"json.check (cyclomatic 25): json.check 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/chord/src/json.ts"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"5da0fa3ea6835c9eebb2550eb9c13b50c93ce68cf8f801c16867f767adaf69ec"}},{"ruleId":"D1","level":"warning","message":{"text":"index.assertValidOp (cyclomatic 25): index.assertValidOp 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/chord/src/delta/index.ts"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"2166b89eb8360eb2734f6b6129c10dce488344f6728dae2240dddc657f548b11"}},{"ruleId":"D1","level":"warning","message":{"text":"contract.coverage (cyclomatic 25): contract.coverage 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/chord/src/contract.ts"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3f5b5ee8d69846449eaabf59733482bcd0d21481470443eeb13e6e67da384f6"}},{"ruleId":"D1","level":"warning","message":{"text":"git.parseGitUrl (cyclomatic 25): git.parseGitUrl 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/coding-agent/src/utils/git.ts"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ef6c9f82b3538006f428d3e4ec56e24911da15b4e8781d87163425f506434a7"}},{"ruleId":"D1","level":"warning","message":{"text":"compaction.findProjectedCutPoint (cyclomatic 25): compaction.findProjectedCutPoint has cyclomatic complexity 25 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 5 belong to 4 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/compaction/compaction.ts"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"b32ab8b2fe3dfb3e66a25a206ab251fb5b20a797a1ba4116b223c600626c875c"}},{"ruleId":"D1","level":"warning","message":{"text":"InteractiveMode.run (cyclomatic 25): InteractiveMode.run has cyclomatic complexity 25 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 5 belong to 4 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: InteractiveMode.setupEditorSubmitHandler (cyclomatic 50) 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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":1148}}}],"partialFingerprints":{"codehealthFindingId/v1":"84e3bf7499db73ba0167b6bfbed74d4e04697f58d79fb848bfb100891e1a9ed2"}},{"ruleId":"D1","level":"warning","message":{"text":"TaskScheduler.wake (cyclomatic 25): TaskScheduler.wake 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/durable/src/harness/scheduler.ts"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2b9acdcb0b6387918e7e13f9581fc4844b7498cdaa7f5b5edbc1ab9f5a47224"}},{"ruleId":"D1","level":"warning","message":{"text":"TaskScheduler.#reconcile (cyclomatic 25): TaskScheduler.#reconcile has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 4 of the 25 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 802, 808). 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/durable/src/harness/scheduler.ts"},"region":{"startLine":793}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1cc7a67a6d0a3ca0f6395b55e91f194a191b25297fdbedc8294b14b21c04efa"}},{"ruleId":"D1","level":"warning","message":{"text":"generation.classify (cyclomatic 25): generation.classify has cyclomatic complexity 25 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 5 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/harness/generation.ts"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"07b0a580c6d554b915c90d43d130c8707048e3c78541eb46cb849724e3e35129"}},{"ruleId":"D1","level":"warning","message":{"text":"models.checkClassifierContext (cyclomatic 25): models.checkClassifierContext has cyclomatic complexity 25 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 5 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/durable/src/codemode/models.ts"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"364568473c75c3a6ad1cb382e9de0e1ad48637d1201b3ab0975b9ee4d4cf5067"}},{"ruleId":"D1","level":"warning","message":{"text":"CombinedAutocompleteProvider.getSuggestions (cyclomatic 25): CombinedAutocompleteProvider.getSuggestions has cyclomatic complexity 25 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 10 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/tui/src/autocomplete.ts"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"79a33a59d394c47d33adf1ee827578fb494984567a61bafd7401296904d096c8"}},{"ruleId":"D1","level":"warning","message":{"text":"profile-coding-agent-node.runRpcBenchmarkRun (cyclomatic 25): profile-coding-agent-node.runRpcBenchmarkRun has cyclomatic complexity 25 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 9 belong to 2 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/profile-coding-agent-node.mjs"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"db3b35e4a87ea6e9f128216abf4e260854b9334c70afcdae27d96fa63b8722ee"}},{"ruleId":"D1","level":"warning","message":{"text":"FileWatcher::reconcile (cyclomatic 25): FileWatcher::reconcile 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/env/daemon/src/watch.rs"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"03aacadff9aea7b018b3fd02a720915af634fdde8b1967f04468bb8893e35295"}},{"ruleId":"D1","level":"warning","message":{"text":"index.applyOps (cyclomatic 24): index.applyOps has cyclomatic complexity 24 (threshold 15). Of this number, 23 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/src/delta/index.ts"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"f64e79029b86afa210ffa02e92791312a6fdad09e4475cb087547dcbe22db7c7"}},{"ruleId":"D1","level":"warning","message":{"text":"schema.objectFits (cyclomatic 24): schema.objectFits 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/chord/src/schema.ts"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"33a9d8f7e0aae613062ef62db2b4d0707f90f3d82c5de7c46f78d9bf8765e633"}},{"ruleId":"D1","level":"warning","message":{"text":"TreeList.getEntryDisplayText (cyclomatic 24): TreeList.getEntryDisplayText 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/coding-agent/src/modes/interactive/components/tree-selector.ts"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0a7bba20ad29f0d842271307549c9a6a2aaa80f49d4cf710f1da6b08d51d1df"}},{"ruleId":"D1","level":"warning","message":{"text":"profile-coding-agent-node.parseArgs (cyclomatic 24): profile-coding-agent-node.parseArgs 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":"scripts/profile-coding-agent-node.mjs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"b17489cee57fdf64a8ad479f495bd3ed6697a2ead81b0d192adc7f6040854ad6"}},{"ruleId":"D1","level":"warning","message":{"text":"publish-model-catalog.validateBundle (cyclomatic 24): publish-model-catalog.validateBundle 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":"scripts/publish-model-catalog.mjs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"05a875a3eedd3f84a867c16571cb6c4dd93bdad2914325a35b5b6f92b1f1ddd5"}},{"ruleId":"D1","level":"warning","message":{"text":"read-tool-stats.scanSessions (cyclomatic 24): read-tool-stats.scanSessions 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":"scripts/read-tool-stats.mjs"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"50fe11dec033ac7f2577a302dd147cf0b08c9a1a37152095194f0f871c9c672c"}},{"ruleId":"D1","level":"warning","message":{"text":"pi_env::pty::run (cyclomatic 24): pi_env::pty::run 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/env/daemon/src/pty.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c964702db61188392b1ee4b3a54b1b295011199de03d23ae4bd0c3cc30bbb34"}},{"ruleId":"D1","level":"warning","message":{"text":"proxy.streamProxy (cyclomatic 23): proxy.streamProxy has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 1 of the 23 points is its own statement and the rest belongs to 3 function literals inside it that branch (lines 113, 180, 135). 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/agent/src/proxy.ts"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a34c3ddd5ee04bc555b8ec4fa97cb98130767a40035ac370859abfd798cbc5d"}},{"ruleId":"D1","level":"warning","message":{"text":"session-manager.buildSessionInfo (cyclomatic 23): session-manager.buildSessionInfo 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/coding-agent/src/core/session-manager.ts"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"004f4b082a5194b1f1a62928003f26a3abea11f628f37cf214376201fcadf176"}},{"ruleId":"D1","level":"warning","message":{"text":"json.copy (cyclomatic 23): json.copy 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/chord/src/json.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"23f49ea4a0835225db969358f3ea6cc56744e22f7df2390c26a944177ca7e214"}},{"ruleId":"D1","level":"warning","message":{"text":"diff.diffArrayRegion (cyclomatic 23): diff.diffArrayRegion has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/src/delta/diff.ts"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ceafa360cad228df09e7d8d1b7f6fecdaed9864def062023a84c7dabebe1597"}},{"ruleId":"D1","level":"warning","message":{"text":"Reload.#publish (cyclomatic 23): Reload.#publish 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/chord/src/reload.ts"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"4df043ca5a06ab2ff6cd4480da8f7334b56353075bdf04e24a966698b2ccdc8f"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsManager.migrateSettings (cyclomatic 23): SettingsManager.migrateSettings 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/coding-agent/src/core/settings-manager.ts"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e64f76da6b6185e30b1519d343eb8386bd2109adaeb4336dbe962d851378164"}},{"ruleId":"D1","level":"warning","message":{"text":"package-manager.collectSkillEntries (cyclomatic 23): package-manager.collectSkillEntries 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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b4c11127403e2d5c35d1520658011816c82935e6e384eab0889bedf336bddd8"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionList.handleInput (cyclomatic 23): SessionList.handleInput has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/components/session-selector.ts"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"6141ed765a4ed0022d98f0a3504809e00c3971a86e1621f3b38fb8cfb6cdf0ef"}},{"ruleId":"D1","level":"warning","message":{"text":"print-mode.runPrintMode (cyclomatic 23): print-mode.runPrintMode has cyclomatic complexity 23 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 7 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/coding-agent/src/modes/print-mode.ts"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeab8cf198dca53e74c9657faf1d94c0d6466232451207c08063772caa1cbd92"}},{"ruleId":"D1","level":"warning","message":{"text":"main.createSessionManager (cyclomatic 23): main.createSessionManager 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/coding-agent/src/main.ts"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff3820b1dcde82e41866843c4d70a6d2974864d553b3f43e96a0a291e6a36655"}},{"ruleId":"D1","level":"warning","message":{"text":"MemoryStorage.applyPreparedCommit (cyclomatic 23): MemoryStorage.applyPreparedCommit 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/durable/src/storage/memory.ts"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a479644dfaa430a6cab52831bd3112b1b655c2307a91325ad49d03fe31cdd88"}},{"ruleId":"D1","level":"warning","message":{"text":"streamable-http.consumeSseStream (cyclomatic 23): streamable-http.consumeSseStream has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 6 of the 23 points are its own statements and the rest belongs to 2 function items inside it that branch (processLine, dispatch). 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/mcp/src/transports/streamable-http.ts"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"af5dc7b2f1b70955eff783bf7892a864ba4e4818251ab7b19296c3d29920fca5"}},{"ruleId":"D1","level":"warning","message":{"text":"utils.extractSegments (cyclomatic 23): utils.extractSegments 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/tui/src/utils.ts"},"region":{"startLine":1326}}}],"partialFingerprints":{"codehealthFindingId/v1":"659b11ca95ff70a2e3f1dbf20132ac439969d0fede03ddfdf99800366d6fbee0"}},{"ruleId":"D1","level":"warning","message":{"text":"TuiBase.setFocusInternal (cyclomatic 23): TuiBase.setFocusInternal has cyclomatic complexity 23 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 2 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/tui/src/tui.ts"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"101a6296cb51139d1ab409c56cf909970ca6fb5f60b0b9e9626ffdb63411d019"}},{"ruleId":"D1","level":"warning","message":{"text":"editor.wordWrapLine (cyclomatic 23): editor.wordWrapLine 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/tui/src/components/editor.ts"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc73b9e11e396ef943cda7b29a7e192d0f1b8f227df3861ec068cd865c9636ea"}},{"ruleId":"D1","level":"warning","message":{"text":"LatexParser.parseScripts (cyclomatic 23): LatexParser.parseScripts has cyclomatic complexity 23 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 6 belong to 3 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/tui/src/latex.ts"},"region":{"startLine":949}}}],"partialFingerprints":{"codehealthFindingId/v1":"a54bd738a19f110aa1484ff2fee5701987211a5e563d3b6a10d1531afb5444fc"}},{"ruleId":"D1","level":"warning","message":{"text":"LatexParser.parseEnvironment (cyclomatic 23): LatexParser.parseEnvironment has cyclomatic complexity 23 (threshold 15). Of this number, 22 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/tui/src/latex.ts"},"region":{"startLine":1331}}}],"partialFingerprints":{"codehealthFindingId/v1":"0050f6cf8e178379e81853b12db3ec044aa49101ab57fe7f864853b9698ab398"}},{"ruleId":"D1","level":"warning","message":{"text":"proxy.processProxyEvent (cyclomatic 22): proxy.processProxyEvent 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/agent/src/proxy.ts"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4f7eca6868a22182f3b6fdbab4d368a59876fd593189763b01b79c39fd6f136"}},{"ruleId":"D1","level":"warning","message":{"text":"openai-codex-responses.parseWebSocket (cyclomatic 22): openai-codex-responses.parseWebSocket has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 7 of the 22 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 1343, onClose, a function literal at line 1409, \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/ai/src/api/openai-codex-responses.ts"},"region":{"startLine":1324}}}],"partialFingerprints":{"codehealthFindingId/v1":"29469d53bc026da37bdd81276fe51a3f3557bda59941650467b7e8ae69ffb653"}},{"ruleId":"D1","level":"warning","message":{"text":"openai-responses.buildParams (cyclomatic 22): openai-responses.buildParams 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/ai/src/api/openai-responses.ts"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"544d593e690c393419eb323982a846afe13ebf036775146de4fcd37f9943822b"}},{"ruleId":"D1","level":"warning","message":{"text":"openrouter-catalog.buildOpenRouterCatalog (cyclomatic 22): openrouter-catalog.buildOpenRouterCatalog 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/ai/scripts/openrouter-catalog.ts"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa3311a5874558b4a61c14ea39004993ddbf02aed1f06f5b5a3b53571ed358cf"}},{"ruleId":"D1","level":"warning","message":{"text":"openrouter.personalizeOpenRouterCatalog (cyclomatic 22): openrouter.personalizeOpenRouterCatalog has cyclomatic complexity 22 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 6 belong to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/src/providers/openrouter.ts"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"2032cba5dfc86706f5dcfd8a632c6c9a5795d0039d706a6e9aecd6d05da2c2de"}},{"ruleId":"D1","level":"warning","message":{"text":"skills.loadSkillsFromDirInternal (cyclomatic 22): skills.loadSkillsFromDirInternal 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/coding-agent/src/core/skills.ts"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"70b94ddb5481e5292b624b7dcad44685908c07b74af255d908d8a13c9b01c559"}},{"ruleId":"D1","level":"warning","message":{"text":"edit-diff.generateDiffString (cyclomatic 22): edit-diff.generateDiffString 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/coding-agent/src/core/tools/edit-diff.ts"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"874f76737451a46e2f9e93461a4fe766408e3ab94a6ea63136c5237eac384b18"}},{"ruleId":"D1","level":"warning","message":{"text":"read.createReadToolDefinition.execute (cyclomatic 22): read.createReadToolDefinition.execute has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 1 of the 22 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 122, 110). 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/coding-agent/src/core/tools/read.ts"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"78e1a4ac66e749b0b0a845176dc0787692cf4038180302217e810947a0ea129b"}},{"ruleId":"D1","level":"warning","message":{"text":"config.readConfigFile (cyclomatic 22): config.readConfigFile 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/coding-agent/src/extensions/mcp/config.ts"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"492c4bde10095c017b741b46024cdd72e665d783361df3299a11af9511aca853"}},{"ruleId":"D1","level":"warning","message":{"text":"InteractiveMode.renderSessionItems (cyclomatic 22): InteractiveMode.renderSessionItems 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. This is NOT this file\u0027s highest cyclomatic complexity: InteractiveMode.setupEditorSubmitHandler (cyclomatic 50) 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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":3969}}}],"partialFingerprints":{"codehealthFindingId/v1":"152f2451f23135547e07f1148923e151c8c230742d8b91180f2a4f2047f47c33"}},{"ruleId":"D1","level":"warning","message":{"text":"InteractiveMode.showLoginAuthTypeSelector (cyclomatic 22): InteractiveMode.showLoginAuthTypeSelector has cyclomatic complexity 22 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 7 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. This is NOT this file\u0027s highest cyclomatic complexity: InteractiveMode.setupEditorSubmitHandler (cyclomatic 50) 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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":5881}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f62550c1af911ca4e0ae08cb2bacb5bbcc6de93dbb51ab1ae247f75901fdd11"}},{"ruleId":"D1","level":"warning","message":{"text":"InteractiveMode.completeProviderAuthentication (cyclomatic 22): InteractiveMode.completeProviderAuthentication has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 6 of the 22 points are its own statements and the rest belongs to 3 function items inside it that branch (finishAuthentication, a function literal at line 6136, a function literal at line 6150). 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. This is NOT this file\u0027s highest cyclomatic complexity: InteractiveMode.setupEditorSubmitHandler (cyclomatic 50) 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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":6062}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7da03855bc74f9a989751ccadb0b12857abac8f480c75cc1b979af92fc88912"}},{"ruleId":"D1","level":"warning","message":{"text":"provider.createLlamaProvider (cyclomatic 22): provider.createLlamaProvider has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 1 of the 22 points is its own statement and the rest belongs to 7 function literals inside it that branch (lines 231, 189, 211, \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/coding-agent/src/extensions/llama/provider.ts"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"977c359a00c1f55b2c7babbd613e308a2e86de519f3434bb0887b7bf2a4c4565"}},{"ruleId":"D1","level":"warning","message":{"text":"template.formatToolCall (cyclomatic 22): template.formatToolCall 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/coding-agent/src/core/export-html/template.js"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c376c8598414afd3fb53328ac63a8cfb63ecc22b6baea23d74c22fbd206b8bd"}},{"ruleId":"D1","level":"warning","message":{"text":"IndexedDbStorage.prepareDocumentActions (cyclomatic 22): IndexedDbStorage.prepareDocumentActions 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/durable/src/storage/indexeddb.ts"},"region":{"startLine":965}}}],"partialFingerprints":{"codehealthFindingId/v1":"881d13238d65b40f51bb2e943557f26d83cf7444cac4fa27f3fa444871431cdd"}},{"ruleId":"D1","level":"warning","message":{"text":"SqliteStorage.prepareDocumentActions (cyclomatic 22): SqliteStorage.prepareDocumentActions 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/durable/src/storage/sqlite/storage.ts"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed5c58fa560fbee0d4dd406d369884f1bf29a5dac467197b0e9c4b0572c03d91"}},{"ruleId":"D1","level":"warning","message":{"text":"edit-diff.generateDiffString (cyclomatic 22): edit-diff.generateDiffString 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/durable/src/tools/edit-diff.ts"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3602e423b33af075367b4b9a0460e29d93f964b9e0f20f5d64317deba7da6c5"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteExecutionEnv.#readFile (cyclomatic 22): RemoteExecutionEnv.#readFile has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 1 of the 22 points is its own statement and the rest belongs to one function literal inside it that branches (line 454). 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/env/src/remote-env.ts"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"be94ebf59f4ba19b7e988089a12b88cc57ac7780df9151c6afa3889cc4647107"}},{"ruleId":"D1","level":"warning","message":{"text":"StdinBuffer.process (cyclomatic 22): StdinBuffer.process 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/tui/src/stdin-buffer.ts"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"2730bcdba442f37c614d6ae17779d6651689b6116a373d1546f4c99d69267825"}},{"ruleId":"D1","level":"warning","message":{"text":"TuiBase.handleTerminalInput (cyclomatic 22): TuiBase.handleTerminalInput 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/tui/src/tui.ts"},"region":{"startLine":1081}}}],"partialFingerprints":{"codehealthFindingId/v1":"16f5354c958389fe1e978dfabb7d20f9ed6f1b8612dafa587ed737620d6a3bac"}},{"ruleId":"D1","level":"warning","message":{"text":"LatexParser.parseSequence (cyclomatic 22): LatexParser.parseSequence 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/tui/src/latex.ts"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e658e17d92ac046d8d983628fd4f672cb815e0c1d6eb8bdbd4699e9adc7ee6f"}},{"ruleId":"D1","level":"warning","message":{"text":"ui.html.card (cyclomatic 22): ui.html.card has cyclomatic complexity 22 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 4 belong to 3 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/issues/ui.html"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"9be1e67192d06edf2c6225128cc482ee4c213e11e8187c1fa23f148b706dbb69"}},{"ruleId":"D1","level":"warning","message":{"text":"agent-loop.streamAssistantResponse (cyclomatic 21): agent-loop.streamAssistantResponse 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/agent/src/agent-loop.ts"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf1004121db39b54e22af0af7845f2fbefa26141d6eaa391b4c47ba938f77fa3"}},{"ruleId":"D1","level":"warning","message":{"text":"generate-models.applyOpenAICompletionsTranscriptMetadata (cyclomatic 21): generate-models.applyOpenAICompletionsTranscriptMetadata 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/ai/scripts/generate-models.ts"},"region":{"startLine":932}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b97ad5e40ee3bd8e103276a7876f6e550f5e469d83c8dd6f9105062b9cc9fc7"}},{"ruleId":"D1","level":"warning","message":{"text":"DefaultPackageManager.resolvePackageSources (cyclomatic 21): DefaultPackageManager.resolvePackageSources has cyclomatic complexity 21 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 6 belong 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/package-manager.ts"},"region":{"startLine":1298}}}],"partialFingerprints":{"codehealthFindingId/v1":"0daf078196b58da934bff012cf4ad91cff9ecd29b1d2be8daf7d311cc6faf78b"}},{"ruleId":"D1","level":"warning","message":{"text":"image-resize-core.resizeImageInProcess (cyclomatic 21): image-resize-core.resizeImageInProcess has cyclomatic complexity 21 (threshold 15). Of this number, 20 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/utils/image-resize-core.ts"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2a5bd2f35436104d189af919631952496a6c95872a3bf8a0e9c90a0b4debdfe"}},{"ruleId":"D1","level":"warning","message":{"text":"auth-command.parseAuthCommand (cyclomatic 21): auth-command.parseAuthCommand 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/coding-agent/src/cli/auth-command.ts"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"e43bac9a3ba7f9e9ea6cb2616209878a9448e5e34526c375322799303d3cd8d3"}},{"ruleId":"D1","level":"warning","message":{"text":"execute.createDiscoveryGlobals (cyclomatic 21): execute.createDiscoveryGlobals has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 1 of the 21 points is its own statement and the rest belongs to 5 function literals inside it that branch (lines 680, 714, 691, \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/coding-agent/src/extensions/codemode/execute.ts"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eb3d00e166c62f51e82631b9f3f32b0eb5c531fe0fe7652fb481253486849fe"}},{"ruleId":"D1","level":"warning","message":{"text":"InteractiveMode.showTreeSelector (cyclomatic 21): InteractiveMode.showTreeSelector 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 2 function literals inside it that branch (lines 5570, 5688). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest. This is NOT this file\u0027s highest cyclomatic complexity: InteractiveMode.setupEditorSubmitHandler (cyclomatic 50) 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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":5555}}}],"partialFingerprints":{"codehealthFindingId/v1":"12cef8475b285852399da60ce5a245dfeaf1371b3e95d43c86702f8808b3105b"}},{"ruleId":"D1","level":"warning","message":{"text":"template.getSearchableText (cyclomatic 21): template.getSearchableText has cyclomatic complexity 21 (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/coding-agent/src/core/export-html/template.js"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"98405ec853c774fe778ee14e1e5db5cb22f71f2551ad3ae33ccf4401e1208132"}},{"ruleId":"D1","level":"warning","message":{"text":"view.advance (cyclomatic 21): view.advance 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/durable/src/harness/view.ts"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"752eba5ff5303feae5a434a7a2c93bcf9098af35e0c69843fc079a0fa3f27667"}},{"ruleId":"D1","level":"warning","message":{"text":"CodemodeCall.discover (cyclomatic 21): CodemodeCall.discover has cyclomatic complexity 21 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 5 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/durable/src/codemode/codemode.ts"},"region":{"startLine":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"1650241cb06f734198f732cf588621c57a107ca3cd0279582e93dd22bab943a0"}},{"ruleId":"D1","level":"warning","message":{"text":"IndexedDbStorage.scanTasks (cyclomatic 21): IndexedDbStorage.scanTasks has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 1 of the 21 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 612, 610). 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/durable/src/storage/indexeddb.ts"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8737a79adc15bba20dd1447bf8882db4c88bdba4818cd5224f48d1a25bb5574"}},{"ruleId":"D1","level":"warning","message":{"text":"IndexedDbStorage.applyDocumentActions (cyclomatic 21): IndexedDbStorage.applyDocumentActions 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/durable/src/storage/indexeddb.ts"},"region":{"startLine":1127}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f543b36ad0013c44a933e7273f3147ba50f454cfb68a2c5d9d430671dfbbb4e"}},{"ruleId":"D1","level":"warning","message":{"text":"SqliteStorage.checkDocumentActions (cyclomatic 21): SqliteStorage.checkDocumentActions 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/durable/src/storage/sqlite/storage.ts"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"68e1c6ecfd3eb2f2464131269cd13c4ccffa838d24102d4c24b3ce649f15a740"}},{"ruleId":"D1","level":"warning","message":{"text":"SqliteStorage.applyDocumentActions (cyclomatic 21): SqliteStorage.applyDocumentActions 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/durable/src/storage/sqlite/storage.ts"},"region":{"startLine":866}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ab2d4e2a9593dd1023e06aa52bf682ee9550638080946d7093cc7e92688da83"}},{"ruleId":"D1","level":"warning","message":{"text":"InMemoryTelemetryContext.findTraces (cyclomatic 21): InMemoryTelemetryContext.findTraces has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 5 of the 21 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 381, 396). 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/telemetry/src/memory.ts"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b55494b10489c1fc2f63987712d8cb5912b5b86b81afb0f6dd004b70452aded"}},{"ruleId":"D1","level":"warning","message":{"text":"stdin-buffer.extractCompleteSequences (cyclomatic 21): stdin-buffer.extractCompleteSequences 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/tui/src/stdin-buffer.ts"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c034a34a68fd23e71cf3e155daf582a2132db63c4cb3b2bc8dbe2c1c7024a21"}},{"ruleId":"D1","level":"warning","message":{"text":"utils.graphemeWidth (cyclomatic 21): utils.graphemeWidth 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/tui/src/utils.ts"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba9f5eb800c76a6ae4ad4a1f1e79283a9f6f926095a62303e6c76e1e53bd5409"}},{"ruleId":"D1","level":"warning","message":{"text":"layout.layoutComponent (cyclomatic 21): layout.layoutComponent has cyclomatic complexity 21 (threshold 15). 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, separate the cases: extract each independent branch into its own 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/tui/src/layout.ts"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"141d21480b3fce0503c0f0b9b5fa872b36a14d844f6cb0874e1d0e46993b782b"}},{"ruleId":"D1","level":"warning","message":{"text":"layout.paintBox (cyclomatic 21): layout.paintBox 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/tui/src/layout.ts"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"994e186ae9d7bbe4879e57ec6203abe6b9da7e67e3c6e57dafbbce94f226717a"}},{"ruleId":"D1","level":"warning","message":{"text":"check-runtime-deps.checkSource::visit (cyclomatic 21): check-runtime-deps.checkSource::visit 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":"scripts/check-runtime-deps.mjs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a71313abecad75f3acfabb935a130c6e4f0913095fcf04b1f1d9eb809fcc461"}},{"ruleId":"D1","level":"warning","message":{"text":"provider-composer.applyModelsJson (cyclomatic 20): provider-composer.applyModelsJson has cyclomatic complexity 20 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 5 belong to 2 function literals inside it that branch. To reduce it, 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/coding-agent/src/core/provider-composer.ts"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"15d31b7e814c82f0dd43b95748b6d3c363e19c6adaf4dafe771061e900927a6b"}},{"ruleId":"D1","level":"warning","message":{"text":"tracker.ownKeys (cyclomatic 20): tracker.ownKeys has cyclomatic complexity 20 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/src/delta/tracker.ts"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"701217fbfbd24cc631995879a45281b5928782c3774f4e69186410755f37e4c6"}},{"ruleId":"D1","level":"warning","message":{"text":"ExtensionRunner.bindCore (cyclomatic 20): ExtensionRunner.bindCore has cyclomatic complexity 20 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 5 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/coding-agent/src/core/extensions/runner.ts"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6408bdc6bc7de2272e7da9b631788cc2d3cd42e6ba1866a695e7a932a87c565"}},{"ruleId":"D1","level":"warning","message":{"text":"TreeList.recalculateVisualStructure (cyclomatic 20): TreeList.recalculateVisualStructure has cyclomatic complexity 20 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 2 belong 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/components/tree-selector.ts"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9c9892d45d4b1a93ecefc20e7d914428e33193375b901b240aaced238a5d753"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentSession._emitExtensionEvent (cyclomatic 20): AgentSession._emitExtensionEvent 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/coding-agent/src/core/agent-session.ts"},"region":{"startLine":1303}}}],"partialFingerprints":{"codehealthFindingId/v1":"19fe94b1866cd86c7fc7d4d3962ab2748eaeee4bb1e71006268f537d6710ebd3"}},{"ruleId":"D1","level":"warning","message":{"text":"ResourceList.handleInput (cyclomatic 20): ResourceList.handleInput 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/coding-agent/src/modes/interactive/components/config-selector.ts"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"4406aad223c01af5bff92cac3ef3d8d8f117dd8c74f9bb12a7aeff8385aeae05"}},{"ruleId":"D1","level":"warning","message":{"text":"main.runAuthCommand (cyclomatic 20): main.runAuthCommand 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/coding-agent/src/main.ts"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"42f246afdfbc67bbb836e2ee950dcb340cafb56a442fcebe6de85eacc61701df"}},{"ruleId":"D1","level":"warning","message":{"text":"template.recalculateVisualStructure (cyclomatic 20): template.recalculateVisualStructure has cyclomatic complexity 20 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 2 belong 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/export-html/template.js"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"3571740910df273d46fe1ce499f623ac6be65a5219308b6af8043e074ce075fa"}},{"ruleId":"D1","level":"warning","message":{"text":"TaskScheduler.#phase (cyclomatic 20): TaskScheduler.#phase 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 one function literal inside it that branches (line 1775). 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/durable/src/harness/scheduler.ts"},"region":{"startLine":1757}}}],"partialFingerprints":{"codehealthFindingId/v1":"e53c2b338c2fc2e850e13d147895a4a62124456085e9abb3f5bc3480831a47e6"}},{"ruleId":"D1","level":"warning","message":{"text":"tool.finalResult (cyclomatic 20): tool.finalResult has cyclomatic complexity 20 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, 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/durable/src/harness/tool.ts"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"1184ff68fb7ab6b2c55b5ab417bbb6e6dabca3b044a45c8990a326f37dfbf0cf"}},{"ruleId":"D1","level":"warning","message":{"text":"events.messageChanges (cyclomatic 20): events.messageChanges 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/durable/src/harness/events.ts"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c2fe7763ce225b3c2b2c9cc9cc6d841020f0fef0c500655d2a6b39942cd9c23"}},{"ruleId":"D1","level":"warning","message":{"text":"IndexedDbStorage.checkDocumentActions (cyclomatic 20): IndexedDbStorage.checkDocumentActions 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/durable/src/storage/indexeddb.ts"},"region":{"startLine":1012}}}],"partialFingerprints":{"codehealthFindingId/v1":"67771223fb65cdd3dd5f627700f56b8755e3a1bec372fb7271d3701bd8c45f6a"}},{"ruleId":"D1","level":"warning","message":{"text":"utils.splitIntoTokensWithAnsi (cyclomatic 20): utils.splitIntoTokensWithAnsi has cyclomatic complexity 20 (threshold 15). Of this number, 19 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/tui/src/utils.ts"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"393050e42197aa4e1cade064d8d67e23f4aef2f9738359ce6a657de24fa6bf99"}},{"ruleId":"D1","level":"warning","message":{"text":"word-navigation.findWordBackward (cyclomatic 20): word-navigation.findWordBackward has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/tui/src/word-navigation.ts"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"43303375f9cde89c1920a416d726c306313d105596d31347e10db28db1bded1f"}},{"ruleId":"D1","level":"warning","message":{"text":"AltScreenSearchComponent.render (cyclomatic 20): AltScreenSearchComponent.render has cyclomatic complexity 20 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 3 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/tui/src/alt-screen-search.ts"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea45cf5606119b588a0b63cc24659f6611bde3f8c23a64dc240040c5e8700ec3"}},{"ruleId":"D1","level":"warning","message":{"text":"LatexParser.parseOperator (cyclomatic 20): LatexParser.parseOperator 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/tui/src/latex.ts"},"region":{"startLine":1194}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5dccc2cf8a1add1d8e5cc3a1fcf8f70aa996dde4f8543430b016998ebc74869"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsList.handleMouse (cyclomatic 20): SettingsList.handleMouse 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/tui/src/components/settings-list.ts"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"1066ef5e69ee615b227c7c2d246a4f8884fc52fadd2997dffb85043495e6185c"}},{"ruleId":"D1","level":"warning","message":{"text":"pi_env::watch::run (cyclomatic 20): pi_env::watch::run 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/env/daemon/src/watch.rs"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"1955bf9b5dbd7071be77e477ecdd8939a947cdd989f82aa12a3444734edbe090"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 20): (anonymous) 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/coding-agent/src/core/export-html/template.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6a073b2aa1bb58ef221369c5506ad81772113f88798e5f85a9c232408d1c32b"}},{"ruleId":"D1","level":"warning","message":{"text":"StreamingJsonParser.#structural (cyclomatic 19): StreamingJsonParser.#structural has cyclomatic complexity 19 (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/ai/src/utils/streaming-json.ts"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"72bf411ddbb33c569775a47aaac271b3b617bb0bf2beb4e45fde048c83e5d579"}},{"ruleId":"D1","level":"warning","message":{"text":"bedrock-converse-stream.handleContentBlockDelta (cyclomatic 19): bedrock-converse-stream.handleContentBlockDelta 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/ai/src/api/bedrock-converse-stream.ts"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"e722865204f31d3aa4842ed5f20ce9d623a03cd62aca1b75900cfacd056dd054"}},{"ruleId":"D1","level":"warning","message":{"text":"generate-models.processBasetenModels (cyclomatic 19): generate-models.processBasetenModels 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/ai/scripts/generate-models.ts"},"region":{"startLine":1517}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdeac9db80b8c0427c0f01b922d3717d60cbdb0d79b0986d2fec187ee21a7ecb"}},{"ruleId":"D1","level":"warning","message":{"text":"generate-models.createKimiCodingModels (cyclomatic 19): generate-models.createKimiCodingModels 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/ai/scripts/generate-models.ts"},"region":{"startLine":1778}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaa0cb4fd436bde2f9b1fdb19002c184df691c9248c8158ac94ae1bb0965fa4c"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionManager.listAll (cyclomatic 19): SessionManager.listAll has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 9 of the 19 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 2000, 1960, 1966, \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/coding-agent/src/core/session-manager.ts"},"region":{"startLine":1932}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba6c7dfcc0f496dbc5a7338ad4b16d3f6ae59d86fe1fa3e621730220b5c2af96"}},{"ruleId":"D1","level":"warning","message":{"text":"Execution.deliver (cyclomatic 19): Execution.deliver 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/codemode/src/runtime/execution.ts"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"54c4607bfeba8caf3be3097262003055206ebff922e17311c32702eacabd8d17"}},{"ruleId":"D1","level":"warning","message":{"text":"remote.serveCodemodeRemote (cyclomatic 19): remote.serveCodemodeRemote has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 3 of the 19 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 154, 145, 135, \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/codemode/src/runtime/remote.ts"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"691012dd7ef5212b3e986ce826b206dfb20adea90645236593ef7da93976a6d6"}},{"ruleId":"D1","level":"warning","message":{"text":"remote.remoteLauncher (cyclomatic 19): remote.remoteLauncher has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 1 of the 19 points is its own statement and the rest belongs to 7 function literals inside it that branch (lines 206, 200, 239, \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/codemode/src/runtime/remote.ts"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"7067a2dffcb439a9aae8582f94dd9e30b2137d03e3289cd6e05b580e14ae5fa2"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionList.render (cyclomatic 19): SessionList.render 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/coding-agent/src/modes/interactive/components/session-selector.ts"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b262995c3a2dc3e95a21fe3d42668b0fc9c73b9b870ec5e761c94f3a4950712"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionSelectorComponent.loadScope (cyclomatic 19): SessionSelectorComponent.loadScope has cyclomatic complexity 19 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 6 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/coding-agent/src/modes/interactive/components/session-selector.ts"},"region":{"startLine":941}}}],"partialFingerprints":{"codehealthFindingId/v1":"30f96077ae8628c90ff02107f30332f5e7ef003acd0aae3814eb01fc1d9c780c"}},{"ruleId":"D1","level":"warning","message":{"text":"BlockRaster.visibleFaces (cyclomatic 19): BlockRaster.visibleFaces has cyclomatic complexity 19 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 6 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/components/easter-egg-3d.ts"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7a0d3bd4dc7170864968885db3c0526fae64ff37e2c33513872891b0c8b974b"}},{"ruleId":"D1","level":"warning","message":{"text":"TreeList.getSearchableText (cyclomatic 19): TreeList.getSearchableText 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/coding-agent/src/modes/interactive/components/tree-selector.ts"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"197394f6977d81051f96212423eb163d250411257d37cc95b551d38c002de0f0"}},{"ruleId":"D1","level":"warning","message":{"text":"HuggingFaceClient.details (cyclomatic 19): HuggingFaceClient.details has cyclomatic complexity 19 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 4 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/extensions/llama/huggingface.ts"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1f4b7d6a8ba31580a1093e19284f62765116fc02203453ed1a8afa37880b458"}},{"ruleId":"D1","level":"warning","message":{"text":"template.renderHeader (cyclomatic 19): template.renderHeader 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/coding-agent/src/core/export-html/template.js"},"region":{"startLine":1507}}}],"partialFingerprints":{"codehealthFindingId/v1":"c36f715b1573dbb2293532bbb3a2a1bbc080c2d8eaff79972310a45cc52a6d8b"}},{"ruleId":"D1","level":"warning","message":{"text":"json.assignJson (cyclomatic 19): json.assignJson 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/durable/src/harness/json.ts"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dafb9181e0d594cc1f06e171fb790863c7bd89f1d0b1262653837188c1a9fc9"}},{"ruleId":"D1","level":"warning","message":{"text":"MemoryStorage.checkDocumentActions (cyclomatic 19): MemoryStorage.checkDocumentActions 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/durable/src/storage/memory.ts"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"90c7d21f8463800a6a1b1d388a8970c71edac0574ede55e5ad554994d87c46fd"}},{"ruleId":"D1","level":"warning","message":{"text":"MemoryStorage.applyDocumentActions (cyclomatic 19): MemoryStorage.applyDocumentActions 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/durable/src/storage/memory.ts"},"region":{"startLine":819}}}],"partialFingerprints":{"codehealthFindingId/v1":"8be561f1ffdbcda8ec935b8489c3936e4a86a9542cac90bb499f13a543b014a9"}},{"ruleId":"D1","level":"warning","message":{"text":"JsonlStorage.planReclamations (cyclomatic 19): JsonlStorage.planReclamations 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/storage/jsonl/storage.ts"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"748feb61a09a54ca6ef8dadcb9a4cb712e728ce719a122ad3af842ffb1bf8199"}},{"ruleId":"D1","level":"warning","message":{"text":"image.imageDimensions (cyclomatic 19): image.imageDimensions 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/durable/src/tools/image.ts"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0612c9c361bedf2fe5cbd0890b518934ec6e192503871d917b11fef3d086850"}},{"ruleId":"D1","level":"warning","message":{"text":"acme-server.createAcmeServer.handle (cyclomatic 19): acme-server.createAcmeServer.handle 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/evals/evals/acme-server.ts"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f6d714c22b0c5a1841d7e224fe4352cad5280ddc8da3d2309db71970e7b4065"}},{"ruleId":"D1","level":"warning","message":{"text":"utils.truncateFragmentToWidth (cyclomatic 19): utils.truncateFragmentToWidth 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/tui/src/utils.ts"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcdd574db9e5351c28a8b3c0b5428de0dd8ce0b3c1645aaabb146235bb26693c"}},{"ruleId":"D1","level":"warning","message":{"text":"CombinedAutocompleteProvider.applyCompletion (cyclomatic 19): CombinedAutocompleteProvider.applyCompletion 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/tui/src/autocomplete.ts"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"14989a89a7d4b088b2c97da477b671fd4b3af0f94e3580e4d0284dbc2cd8248a"}},{"ruleId":"D1","level":"warning","message":{"text":"Editor.moveToVisualLine (cyclomatic 19): Editor.moveToVisualLine 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/tui/src/components/editor.ts"},"region":{"startLine":1479}}}],"partialFingerprints":{"codehealthFindingId/v1":"05b64e7f466c1ecfa44fe863958ab3aa87c26d1ebc78e5926166ae08577b5959"}},{"ruleId":"D1","level":"warning","message":{"text":"Markdown.render (cyclomatic 19): Markdown.render 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/tui/src/components/markdown.ts"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec3e75a8899323e88eb6102a0ffeef2df2a92bcddba3da942f63efa8bbd17e84"}},{"ruleId":"D1","level":"warning","message":{"text":"main.handle (cyclomatic 19): main.handle has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/issues/main.ts"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"475c42eeeccbc34279a8cc49c514c938fcf3d7ec9230b540e33139551ff95d34"}},{"ruleId":"D1","level":"warning","message":{"text":"bedrock-converse-stream.buildAdditionalModelRequestFields (cyclomatic 18): bedrock-converse-stream.buildAdditionalModelRequestFields has cyclomatic complexity 18 (threshold 15). Of this number, 15 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/ai/src/api/bedrock-converse-stream.ts"},"region":{"startLine":1268}}}],"partialFingerprints":{"codehealthFindingId/v1":"188331b8ab65f021e2d77b04fda5cd9c7998b9e46d7d7677164d11bd2f9323ad"}},{"ruleId":"D1","level":"warning","message":{"text":"google-generative-ai.buildParams (cyclomatic 18): google-generative-ai.buildParams 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/ai/src/api/google-generative-ai.ts"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"92edcddf7714c47986ced21f98b2de335ccf518d806b0cc1fcc73fa55fdd24cd"}},{"ruleId":"D1","level":"warning","message":{"text":"google-vertex.buildParams (cyclomatic 18): google-vertex.buildParams 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/ai/src/api/google-vertex.ts"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb8b50aba91101c1e276322349d40294b5888be2ac678a9fdbd76f6d21a83f4b"}},{"ruleId":"D1","level":"warning","message":{"text":"pi-messages.createEventConverter (cyclomatic 18): pi-messages.createEventConverter has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 1 of the 18 points is its own statement and the rest belongs to one function literal inside it that branches (line 197). 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/ai/src/api/pi-messages.ts"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"b834ddef2ee570a6d4c911e64ad13b27a8b6d34fbdcf7d2d38c0e9c41bb7e22b"}},{"ruleId":"D1","level":"warning","message":{"text":"generate-models.fetchAiGatewayModels (cyclomatic 18): generate-models.fetchAiGatewayModels has cyclomatic complexity 18 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 3 belong 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/scripts/generate-models.ts"},"region":{"startLine":1384}}}],"partialFingerprints":{"codehealthFindingId/v1":"45cebd2a87fb4995aa9d9abdccd242653b2a4e875f770a53ca8dfc494302fdf2"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionManager.appendContextEdit (cyclomatic 18): SessionManager.appendContextEdit 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/coding-agent/src/core/session-manager.ts"},"region":{"startLine":1360}}}],"partialFingerprints":{"codehealthFindingId/v1":"293810215b5158512206a54bff1ca5756666c440c80a1130eac70298a2c1aa31"}},{"ruleId":"D1","level":"warning","message":{"text":"tracker.emitSimpleObjectOperations (cyclomatic 18): tracker.emitSimpleObjectOperations 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/chord/src/delta/tracker.ts"},"region":{"startLine":1723}}}],"partialFingerprints":{"codehealthFindingId/v1":"d27707f82ff1d58b0f4cb2a76c48bd1eaccbf95dd501df9d140a01a50b8b11eb"}},{"ruleId":"D1","level":"warning","message":{"text":"index.encoder.encode (cyclomatic 18): index.encoder.encode has cyclomatic complexity 18 (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/chord/src/delta/index.ts"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"1539de6b214fa9336c351efc31e821dedb2b82c101d41f1d3019615e30544295"}},{"ruleId":"D1","level":"warning","message":{"text":"ObjectImpl.#activate (cyclomatic 18): ObjectImpl.#activate 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/chord/src/object.ts"},"region":{"startLine":1095}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d180c72e385d5a6ebe56bfe639e1c5d600fe69a5027444fe444ca65fecb688a"}},{"ruleId":"D1","level":"warning","message":{"text":"Reload.install (cyclomatic 18): Reload.install 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/chord/src/reload.ts"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1e4827a4478ae370504d4c03cb84424cc9077ba332c80ff54f195b46688768d"}},{"ruleId":"D1","level":"warning","message":{"text":"bash.createLocalShellOperations.exec (cyclomatic 18): bash.createLocalShellOperations.exec has cyclomatic complexity 18 (threshold 15). Of this number, 16 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/coding-agent/src/core/tools/bash.ts"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"b99668b5b0924913e653b3b18592a03e8c632e550813f0a5eae9a4ae65bb97ca"}},{"ruleId":"D1","level":"warning","message":{"text":"skills.loadSkills (cyclomatic 18): skills.loadSkills has cyclomatic complexity 18 (threshold 15). Of this number, 10 points are the body\u0027s own statements and 8 belong to 3 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/skills.ts"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"178855b6783410d8d3469f213350ff343d00cf4a4682f020928ac0cc4ba188d6"}},{"ruleId":"D1","level":"warning","message":{"text":"FooterComponent.getSessionStats (cyclomatic 18): FooterComponent.getSessionStats 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/coding-agent/src/modes/interactive/components/footer.ts"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"7594f9cdcec6f0a7e50dbdea2f6131c86055b00a87ad6a5204876eb3101e5a48"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentSession._runAutoCompaction (cyclomatic 18): AgentSession._runAutoCompaction has cyclomatic complexity 18 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/agent-session.ts"},"region":{"startLine":3157}}}],"partialFingerprints":{"codehealthFindingId/v1":"571b5186e3a522e9558c2b39c9e28c68360480a2507925cd6f7254fc935adb45"}},{"ruleId":"D1","level":"warning","message":{"text":"ResourceList.filterItems (cyclomatic 18): ResourceList.filterItems 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/coding-agent/src/modes/interactive/components/config-selector.ts"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"00c7409e2f71894608ade3705d4194ca657124050c2332d337fb4a13b1dc9e85"}},{"ruleId":"D1","level":"warning","message":{"text":"template.filterNodes (cyclomatic 18): template.filterNodes has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 1 of the 18 points is its own statement and the rest belongs to one function literal inside it that branches (line 455). 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/coding-agent/src/core/export-html/template.js"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c17a1e43ffff27b55eafef7e8066401e383010ad922618f5f6f8be5525c922b"}},{"ruleId":"D1","level":"warning","message":{"text":"Transaction.adopt (cyclomatic 18): Transaction.adopt 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/durable/src/session/transaction.ts"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"af97a87254b37ff71195ba7cf541591c9fac844bd6da1f5a0aa83c82276b3474"}},{"ruleId":"D1","level":"warning","message":{"text":"agent.applyChange (cyclomatic 18): agent.applyChange has cyclomatic complexity 18 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 2 belong 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/harness/agent.ts"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"c03820086f7179534922f326c0ad4ff0807a52ec31dba153b41627c702d7d2ba"}},{"ruleId":"D1","level":"warning","message":{"text":"TaskScheduler.#track (cyclomatic 18): TaskScheduler.#track 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/durable/src/harness/scheduler.ts"},"region":{"startLine":1021}}}],"partialFingerprints":{"codehealthFindingId/v1":"de2ed2a9f13202c4efb20cd83f34ce7657624aa5f0597d939ffad282ffdfe42c"}},{"ruleId":"D1","level":"warning","message":{"text":"index.prepare (cyclomatic 18): index.prepare 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/durable/src/images/index.ts"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a1e85594c1593c6390c3f3b174d130410a4e77e7e4cde79748bd18a47861c56"}},{"ruleId":"D1","level":"warning","message":{"text":"report.readTaskObservation (cyclomatic 18): report.readTaskObservation 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/evals/src/report.ts"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2cf3502b692204e2e38f97e187d9ae01525d2262f73709a6b32141c1cec878a"}},{"ruleId":"D1","level":"warning","message":{"text":"tui.docs.eval.contextFooterJudge (cyclomatic 18): tui.docs.eval.contextFooterJudge has cyclomatic complexity 18 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/evals/evals/tui.docs.eval.ts"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d0d65bd9e715d23a29805628c56c028604b4812e678fcbe86775c18abffcbec"}},{"ruleId":"D1","level":"warning","message":{"text":"StreamableHttpTransport.consumeResponseStream (cyclomatic 18): StreamableHttpTransport.consumeResponseStream has cyclomatic complexity 18 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 2 belong 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mcp/src/transports/streamable-http.ts"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b39602f924e1ac3b1a49fd862155f3402aadef8d125e18c3177172d1c5a3040"}},{"ruleId":"D1","level":"warning","message":{"text":"conformance.createTelemetryAdapterConformance (cyclomatic 18): conformance.createTelemetryAdapterConformance has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 1 of the 18 points is its own statement and the rest belongs to 12 function literals inside it that branch (lines 179, 190, 358, \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/telemetry/src/testing/conformance.ts"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"e91ed7abf2e139bfd7d688302fcd59a0345481d300781fc17cca53327f677ac9"}},{"ruleId":"D1","level":"warning","message":{"text":"Editor.handleMouse (cyclomatic 18): Editor.handleMouse 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/tui/src/components/editor.ts"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"0234f86bb5b32c479b4717e1a96617199afae83390c8d84c17d4f6b90b09a99e"}},{"ruleId":"D1","level":"warning","message":{"text":"markdown.tokenizeInlineLatex (cyclomatic 18): markdown.tokenizeInlineLatex 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/tui/src/components/markdown.ts"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"896c47e028638117829afee774f1fac9477d7a88aa5b00232c41625c87eadc35"}},{"ruleId":"D1","level":"warning","message":{"text":"read-tool-stats.parseArgs (cyclomatic 18): read-tool-stats.parseArgs 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":"scripts/read-tool-stats.mjs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1368aae257af9c2f9ff49a13da1c1d3f15132a8414500732878f62c8a888fa5"}},{"ruleId":"D1","level":"warning","message":{"text":"session-transcripts.runSubagent (cyclomatic 18): session-transcripts.runSubagent has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 1 of the 18 points is its own statement and the rest belongs to one function literal inside it that branches (line 89). 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":"scripts/session-transcripts.ts"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2c3b2b4eafb1403e8a2626015cd0f3323925cdabd6601aa209ecafcf70ea519"}},{"ruleId":"D1","level":"warning","message":{"text":"env-api-keys.getEnvApiKey (cyclomatic 17): env-api-keys.getEnvApiKey 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/ai/src/env-api-keys.ts"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"940cfb0decbd3a0b078540ed0eedf2767037fb0b03929d99e615315a0cd220ed"}},{"ruleId":"D1","level":"warning","message":{"text":"openai-codex-responses.acquireWebSocket (cyclomatic 17): openai-codex-responses.acquireWebSocket has cyclomatic complexity 17 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/src/api/openai-codex-responses.ts"},"region":{"startLine":1170}}}],"partialFingerprints":{"codehealthFindingId/v1":"197ee77cb2f458fab6233e3f1c32dd0051daaadc01a9d8b2c4b75dac5fbf3275"}},{"ruleId":"D1","level":"warning","message":{"text":"openai-codex-responses.processWebSocketStream (cyclomatic 17): openai-codex-responses.processWebSocketStream 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/ai/src/api/openai-codex-responses.ts"},"region":{"startLine":1510}}}],"partialFingerprints":{"codehealthFindingId/v1":"faf79e3c6716c13c40841ba1ae462c695d8a169708aecf0992b2dfa22adcd64e"}},{"ruleId":"D1","level":"warning","message":{"text":"remote-catalog-provider.withRemoteCatalog.refreshModels (cyclomatic 17): remote-catalog-provider.withRemoteCatalog.refreshModels 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/coding-agent/src/core/remote-catalog-provider.ts"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"85e09899350b6e49d9158bf627a2cda23af78ef81f2aa72912d9a6f6232be67b"}},{"ruleId":"D1","level":"warning","message":{"text":"tracker.emitArrayOperations (cyclomatic 17): tracker.emitArrayOperations 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/chord/src/delta/tracker.ts"},"region":{"startLine":2031}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ec523986ad23c3a18824ac900793efb317ae7b5ea423c84a72c7656d376a9ea"}},{"ruleId":"D1","level":"warning","message":{"text":"object.validateImplementation (cyclomatic 17): object.validateImplementation 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/chord/src/object.ts"},"region":{"startLine":1747}}}],"partialFingerprints":{"codehealthFindingId/v1":"779c410b7d9e4b16f1b74f860e5ed93ad5379fc34414361c23d43d6dfc828c6c"}},{"ruleId":"D1","level":"warning","message":{"text":"declarations.objectType (cyclomatic 17): declarations.objectType has cyclomatic complexity 17 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 4 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/codemode/src/declarations.ts"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"9406eddc6d08b833613dc928290ca9a0f631c7654ab1d1be757815042bd1ab71"}},{"ruleId":"D1","level":"warning","message":{"text":"compaction.estimateTokens (cyclomatic 17): compaction.estimateTokens 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/coding-agent/src/core/compaction/compaction.ts"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbab412a8d757f50f14bc4797f18cfb5abb7bdd2a9cfeea7cfd2b4a73ca61537"}},{"ruleId":"D1","level":"warning","message":{"text":"FooterDataProvider.setupGitWatcher (cyclomatic 17): FooterDataProvider.setupGitWatcher has cyclomatic complexity 17 (threshold 15). 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, separate the cases: extract each independent branch into its own 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/coding-agent/src/core/footer-data-provider.ts"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"64d2dce4d2de91d001e431d066b4a21bc84addc45b2fbc818a5ab96e1c66ce01"}},{"ruleId":"D1","level":"warning","message":{"text":"ls.createLsToolDefinition.execute (cyclomatic 17): ls.createLsToolDefinition.execute 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 81, 72). 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/coding-agent/src/core/tools/ls.ts"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"4623323d4bbadcdb70cd4577f06431b9e310b62d968a766dfc185a847910d067"}},{"ruleId":"D1","level":"warning","message":{"text":"BlockRaster.renderHalo (cyclomatic 17): BlockRaster.renderHalo 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/coding-agent/src/modes/interactive/components/easter-egg-3d.ts"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f23d629e26bce0eac657c29fb48166569b04fd0bac9b01b71953c33218c3ce2"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelSelectorComponent.handleInput (cyclomatic 17): ModelSelectorComponent.handleInput 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/coding-agent/src/modes/interactive/components/model-selector.ts"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"1045d6560180c51ec956f1ca439109d9f1382598262b29254ebfe4303439b678"}},{"ruleId":"D1","level":"warning","message":{"text":"InteractiveMode.addMessageToChat (cyclomatic 17): InteractiveMode.addMessageToChat 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: InteractiveMode.setupEditorSubmitHandler (cyclomatic 50) 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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":3837}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc3af5240bfed3cadb1ea9fa349c925f6d523811f15fa087bc62cbda94b94ae3"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentSession._refreshToolRegistry (cyclomatic 17): AgentSession._refreshToolRegistry has cyclomatic complexity 17 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/agent-session.ts"},"region":{"startLine":3555}}}],"partialFingerprints":{"codehealthFindingId/v1":"b26ec27931e480c467bc3fc17aeaf64f8f8a4e6c2bc8907f3206bc5a6aa5e2f2"}},{"ruleId":"D1","level":"warning","message":{"text":"package-manager-cli.handleConfigCommand (cyclomatic 17): package-manager-cli.handleConfigCommand 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/coding-agent/src/package-manager-cli.ts"},"region":{"startLine":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a37db8a25b51b790321af2ed77493cdc68519513e9885309993d9fbea8b2fb3"}},{"ruleId":"D1","level":"warning","message":{"text":"events.toolUpdate (cyclomatic 17): events.toolUpdate 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/durable/src/harness/events.ts"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa2e4e42ce895a48e2765df6d22ea87463b4d2f3bacff0d8dfb3218d51431a7f"}},{"ruleId":"D1","level":"warning","message":{"text":"MemoryStorage.resolveDocumentCopies (cyclomatic 17): MemoryStorage.resolveDocumentCopies has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 7 of the 17 points are its own statements and the rest belongs to one function literal inside it that branches (line 303). 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/durable/src/storage/memory.ts"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a31451e39023f6c29821595c68550f0bf50098bb4175b9ad06068aafe59727e"}},{"ruleId":"D1","level":"warning","message":{"text":"storage.parseSidecarRecord (cyclomatic 17): storage.parseSidecarRecord 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/durable/src/storage/jsonl/storage.ts"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"941aa05480d198e10d825f499951a568c92dd3ec12d27b19aadd5ad985a33aab"}},{"ruleId":"D1","level":"warning","message":{"text":"entrypoint.assertWorkspace (cyclomatic 17): entrypoint.assertWorkspace 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/evals/docker/entrypoint.ts"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5b4316327ae1445cd85b21b6f8323b27fd791db4d7ff80426fe0cf454db87e7"}},{"ruleId":"D1","level":"warning","message":{"text":"harness.enterToolSandbox (cyclomatic 17): harness.enterToolSandbox 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/evals/src/harness.ts"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e780ac3ef5dc798e652f9e383c0f2fa51f991e5db92539614151f5b304ecc89"}},{"ruleId":"D1","level":"warning","message":{"text":"utils.sliceWithWidth (cyclomatic 17): utils.sliceWithWidth 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/tui/src/utils.ts"},"region":{"startLine":1268}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf827d1aa1860a4af64be4f535b0907a27cccda585c33dfc88a491a55e42f84d"}},{"ruleId":"D1","level":"warning","message":{"text":"Editor.render (cyclomatic 17): Editor.render 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/tui/src/components/editor.ts"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"b962bbb7db7e5729b787506536b21381de4f5f12f03c0cb5bcbca7ec46cb6e1e"}},{"ruleId":"D1","level":"warning","message":{"text":"Editor.insertCharacter (cyclomatic 17): Editor.insertCharacter 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/tui/src/components/editor.ts"},"region":{"startLine":1201}}}],"partialFingerprints":{"codehealthFindingId/v1":"c90cdbee537daa38b5e8d683ac7686520a10b474fc797aaef8e6fb09a66ecbae"}},{"ruleId":"D1","level":"warning","message":{"text":"TuiAltScreen.applySearchHighlights (cyclomatic 17): TuiAltScreen.applySearchHighlights 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/tui/src/tui-alt-screen.ts"},"region":{"startLine":1520}}}],"partialFingerprints":{"codehealthFindingId/v1":"2083b281f929e55885bd1611cf9292423749293f036cc94eeb41f2a6c4b05b11"}},{"ruleId":"D1","level":"warning","message":{"text":"read-tool-stats.printHumanReport (cyclomatic 17): read-tool-stats.printHumanReport 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":"scripts/read-tool-stats.mjs"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"e75bab6a574faa2ba90e37efecbbf193e7dd31e50f972a0d44cc4dbaebb5d27d"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelsImpl.refresh (cyclomatic 16): ModelsImpl.refresh has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 5 of the 16 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 580, 577, 572). 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/ai/src/models.ts"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"643a9bc4ed27c7da373c8192d729d9cc077502784b28c0a0a773133438f4f608"}},{"ruleId":"D1","level":"warning","message":{"text":"openai-responses-shared.processResponsesStream::finalizeResponse (cyclomatic 16): openai-responses-shared.processResponsesStream::finalizeResponse 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 shape REPEATS in the file: one other method here (openai-responses-shared.processResponsesStream) 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/ai/src/api/openai-responses-shared.ts"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b9f2f5c6012c404f25a3a791063f4c003a8f203ad977b94eb672213705124dc"}},{"ruleId":"D1","level":"warning","message":{"text":"openai-codex-responses.parseSSE (cyclomatic 16): openai-codex-responses.parseSSE 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/ai/src/api/openai-codex-responses.ts"},"region":{"startLine":816}}}],"partialFingerprints":{"codehealthFindingId/v1":"80103d2e0482a7e883e8eb042e81a80fbdef9ad306ac6d1c3d91aafe18fd255d"}},{"ruleId":"D1","level":"warning","message":{"text":"openai-responses.stream (cyclomatic 16): openai-responses.stream has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to one function literal inside it that branches (line 163). 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/ai/src/api/openai-responses.ts"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"db374809e4be07cec092f5db20557b6577146b4aa9dce9336446e7f4962019ec"}},{"ruleId":"D1","level":"warning","message":{"text":"generate-models.getAnthropicMessagesCompat (cyclomatic 16): generate-models.getAnthropicMessagesCompat 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/ai/scripts/generate-models.ts"},"region":{"startLine":1247}}}],"partialFingerprints":{"codehealthFindingId/v1":"e83b9af039399d4466dc1fecea6884f5d2738de8774640589645a05cc1fe37fe"}},{"ruleId":"D1","level":"warning","message":{"text":"validation.coerceWithJsonSchema (cyclomatic 16): validation.coerceWithJsonSchema 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/ai/src/utils/validation.ts"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"9abd7c541759fc44fa4932a2f3565ecd67135700d2a067d57acec403463101a6"}},{"ruleId":"D1","level":"warning","message":{"text":"validation.normalizeOptionalNulls (cyclomatic 16): validation.normalizeOptionalNulls 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/ai/src/utils/validation.ts"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac53cfb7e85005e553ea5a565500a131adbb9f97ce869853a290cbb4651d6ca4"}},{"ruleId":"D1","level":"warning","message":{"text":"config.getSelfUpdateCommandForMethod (cyclomatic 16): config.getSelfUpdateCommandForMethod 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/coding-agent/src/config.ts"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"821e9e67acccbc6f90e197396d1785b6ccaeb648758d8d32e6473d580ec9e81f"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionManager.createBranchedSession (cyclomatic 16): SessionManager.createBranchedSession 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/coding-agent/src/core/session-manager.ts"},"region":{"startLine":1632}}}],"partialFingerprints":{"codehealthFindingId/v1":"3488186ee413138d066ebedf73c386165ba32897934e474ff8edf2679335520b"}},{"ruleId":"D1","level":"warning","message":{"text":"tracker.piecesFromSortOrder (cyclomatic 16): tracker.piecesFromSortOrder 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/chord/src/delta/tracker.ts"},"region":{"startLine":1522}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3ac8104d8ecab69484438c7ca24d2acbbf0ef10c3d275b881fbdfa54fad057d"}},{"ruleId":"D1","level":"warning","message":{"text":"inline.inlineLauncher (cyclomatic 16): inline.inlineLauncher has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to 6 function literals inside it that branch (lines 77, 83, 88, \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/codemode/src/runtime/inline.ts"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8618d7a65a4c4684480f87e50b12703785eb9e0734e38f16c8fec84ed45ef81"}},{"ruleId":"D1","level":"warning","message":{"text":"package-manager.collectAutoExtensionEntries (cyclomatic 16): package-manager.collectAutoExtensionEntries 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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd8978cddd2097a3233f148b5e15abca586d965cc92f83f739369f306f644468"}},{"ruleId":"D1","level":"warning","message":{"text":"branch-summarization.prepareBranchEntries (cyclomatic 16): branch-summarization.prepareBranchEntries 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/coding-agent/src/core/compaction/branch-summarization.ts"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"57f0d302de107e3dad387b844362d90e5163716a32f56bc9dfbccbae32b2da1a"}},{"ruleId":"D1","level":"warning","message":{"text":"model-resolver.resolveModelScopeFromModels (cyclomatic 16): model-resolver.resolveModelScopeFromModels 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/model-resolver.ts"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"d76cc8bc2f29404d9c99dc46632ef4c5f8e70db39bec130d352ed6c26a3d3365"}},{"ruleId":"D1","level":"warning","message":{"text":"model-resolver.resolveCliModel (cyclomatic 16): model-resolver.resolveCliModel 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/coding-agent/src/core/model-resolver.ts"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"99fd4888f79f50f9d4e99d8a3b68facbe9f4019b691ded11e8b9464100ba6944"}},{"ruleId":"D1","level":"warning","message":{"text":"system-prompt.buildSystemPromptSections (cyclomatic 16): system-prompt.buildSystemPromptSections 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/coding-agent/src/core/system-prompt.ts"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"6248f9f15211a02c72cb508191adefb0e8c3b9f0071aed3e4ab536c667645b64"}},{"ruleId":"D1","level":"warning","message":{"text":"runner.isUserBashEventResult (cyclomatic 16): runner.isUserBashEventResult 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/coding-agent/src/core/extensions/runner.ts"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"affe88eec4f86310c7fc993477806d16b15ea030ed50ed2f846de8bef3b4ee34"}},{"ruleId":"D1","level":"warning","message":{"text":"crash-log.findExtensionStackMatches (cyclomatic 16): crash-log.findExtensionStackMatches has cyclomatic complexity 16 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own 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/coding-agent/src/core/crash-log.ts"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"943c64024237df247b46e7b67c8a496b9989f9e0d21add0f41577eca7a77574f"}},{"ruleId":"D1","level":"warning","message":{"text":"index.preRenderCustomTools (cyclomatic 16): index.preRenderCustomTools 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/coding-agent/src/core/export-html/index.ts"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"01eac6b42b145c79facc263cc6158cb58c6c0e6697a509cb4b88a47611844cb5"}},{"ruleId":"D1","level":"warning","message":{"text":"easter-egg-3d.shuffleSteps (cyclomatic 16): easter-egg-3d.shuffleSteps 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/coding-agent/src/modes/interactive/components/easter-egg-3d.ts"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fd12b9fe48c13d2b5258bf2e4beabda7eea369b5fc4b11575ff66f2672d52e8"}},{"ruleId":"D1","level":"warning","message":{"text":"ProgramStatusReporter.handleEvent (cyclomatic 16): ProgramStatusReporter.handleEvent 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/coding-agent/src/modes/interactive/program-status-reporter.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"d44ad6a1fc5ff52b52de0f9f576c46baf94be913efe351a51100aaff4118cc34"}},{"ruleId":"D1","level":"warning","message":{"text":"InteractiveMode.setCustomEditorComponent (cyclomatic 16): InteractiveMode.setCustomEditorComponent 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: InteractiveMode.setupEditorSubmitHandler (cyclomatic 50) 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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":2836}}}],"partialFingerprints":{"codehealthFindingId/v1":"d88bda5ee20a8afcf93831de8a0269201942088e5426bd8432281305a0adea1f"}},{"ruleId":"D1","level":"warning","message":{"text":"InteractiveMode.handleClipboardPaste (cyclomatic 16): InteractiveMode.handleClipboardPaste 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: InteractiveMode.setupEditorSubmitHandler (cyclomatic 50) 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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":3109}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f5d291a6db20df9ed8fc3022b35e0a8d5b077e97f5d3f7e88c29c6f0a94bfea"}},{"ruleId":"D1","level":"warning","message":{"text":"InteractiveMode.handleSessionCommand::renderInfo (cyclomatic 16): InteractiveMode.handleSessionCommand::renderInfo 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: InteractiveMode.setupEditorSubmitHandler (cyclomatic 50) 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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":6705}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c688a4278036e71780e961ee094f953f672007fc0025c052a9ffda60685d902"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentSession.prompt (cyclomatic 16): AgentSession.prompt 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/coding-agent/src/core/agent-session.ts"},"region":{"startLine":2092}}}],"partialFingerprints":{"codehealthFindingId/v1":"222626c7a6eebf3675b4f8939733bb6c225051969f2071a7617c7d0a34b76f09"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentSession.compact (cyclomatic 16): AgentSession.compact has cyclomatic complexity 16 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own 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/coding-agent/src/core/agent-session.ts"},"region":{"startLine":2828}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeb8ceb679791eb68ca530f8df60015717a45c3030c0eb482de86d327250e507"}},{"ruleId":"D1","level":"warning","message":{"text":"ResourceList.render (cyclomatic 16): ResourceList.render 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/coding-agent/src/modes/interactive/components/config-selector.ts"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cb8b7372b9e8d3b7faa2742204f08483c79e79bca348d2f6783f7af76599fd7"}},{"ruleId":"D1","level":"warning","message":{"text":"TaskScheduler.#links (cyclomatic 16): TaskScheduler.#links 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/durable/src/harness/scheduler.ts"},"region":{"startLine":1210}}}],"partialFingerprints":{"codehealthFindingId/v1":"8634441784db1fa55ec33f54815574819f42bdf6075fc1271bd8c4c884c6421c"}},{"ruleId":"D1","level":"warning","message":{"text":"TaskScheduler.#waitCycle (cyclomatic 16): TaskScheduler.#waitCycle has cyclomatic complexity 16 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 2 belong to 2 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/harness/scheduler.ts"},"region":{"startLine":2026}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9a40c5a44c2f0ca69064d819736d9505dc0b465345f1f213d0a25d2d610fbb6"}},{"ruleId":"D1","level":"warning","message":{"text":"tool.publishProgress (cyclomatic 16): tool.publishProgress has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to 3 function literals inside it that branch (lines 510, 491, 534). 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/durable/src/harness/tool.ts"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7ea973a3c85eb1a542ba7ffd26080954afbd08d11e8e3c5af0d164d2fb75414"}},{"ruleId":"D1","level":"warning","message":{"text":"MemoryStorage.checkGlobalIds (cyclomatic 16): MemoryStorage.checkGlobalIds 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/durable/src/storage/memory.ts"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"d10059fe0a9d6cb4ae741ca623fa1cf01b55a6c4c6d3d8b888d3f87997503471"}},{"ruleId":"D1","level":"warning","message":{"text":"IndexedDbStorage.checkGlobalIds (cyclomatic 16): IndexedDbStorage.checkGlobalIds 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/durable/src/storage/indexeddb.ts"},"region":{"startLine":943}}}],"partialFingerprints":{"codehealthFindingId/v1":"2710edfe5e4aa75b13cb996384c318d30c8de27fa55e2ef474ca9e99d53302c0"}},{"ruleId":"D1","level":"warning","message":{"text":"SqliteStorage.checkGlobalIds (cyclomatic 16): SqliteStorage.checkGlobalIds 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/durable/src/storage/sqlite/storage.ts"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5cfc34f04c39efbcfdd7d8d48f7977b10bce262139d7eb75d728b153f170f48"}},{"ruleId":"D1","level":"warning","message":{"text":"storage-benchmark.seedStorageBenchmark (cyclomatic 16): storage-benchmark.seedStorageBenchmark has cyclomatic complexity 16 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/testing/storage-benchmark.ts"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fd8088c0a280833457317cb7a3579e98eb57d643ca633b78d812d65409924fc"}},{"ruleId":"D1","level":"warning","message":{"text":"bash.runCommand (cyclomatic 16): bash.runCommand 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/durable/src/tools/bash.ts"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"a83562a1fbade6066e3495606de5719493a5417256aa2502001500c2873507c0"}},{"ruleId":"D1","level":"warning","message":{"text":"Connection.#onData (cyclomatic 16): Connection.#onData 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/env/src/connection.ts"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5af3f41d0f7f5ab211b318527318778fc777837c58c9f3093b73f26490f3e10"}},{"ruleId":"D1","level":"warning","message":{"text":"local-package-install.wireConsumer (cyclomatic 16): local-package-install.wireConsumer 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":"scripts/local-package-install.mjs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ffdf95c76896933d09561742587063cd193d3575c3bc1f75cc05399b97d244a"}},{"ruleId":"D1","level":"warning","message":{"text":"utils.ansiCodeLength (cyclomatic 16): utils.ansiCodeLength 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/tui/src/utils.ts"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"d580114d60400585696bedca89652d7732db5103400098784203d6d1545be586"}},{"ruleId":"D1","level":"warning","message":{"text":"alt-screen-search.findSearchCorpusMatches (cyclomatic 16): alt-screen-search.findSearchCorpusMatches 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/tui/src/alt-screen-search.ts"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"20df2b4cca469045958ad74cfd7032c53db66cbdfdd56b06db3b75c6a7fb3115"}},{"ruleId":"D1","level":"warning","message":{"text":"SelectList.handleMouse (cyclomatic 16): SelectList.handleMouse 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/tui/src/components/select-list.ts"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f834f0c0b20c33df85439cdc7c8fea4302f80979bd7374f31735b3c6dc6dd84"}},{"ruleId":"D1","level":"warning","message":{"text":"Editor.layoutText (cyclomatic 16): Editor.layoutText 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/tui/src/components/editor.ts"},"region":{"startLine":998}}}],"partialFingerprints":{"codehealthFindingId/v1":"93c9f692eacabdb796df1a102b09f39835876957489d750a536b28bdc3a07938"}},{"ruleId":"D1","level":"warning","message":{"text":"Editor.handleBackspace (cyclomatic 16): Editor.handleBackspace 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/tui/src/components/editor.ts"},"region":{"startLine":1380}}}],"partialFingerprints":{"codehealthFindingId/v1":"003fd10e4c0ed74dd6b7faca5ffa05c00efd223e65df636c8f07a275ae52bbd1"}},{"ruleId":"D1","level":"warning","message":{"text":"Editor.moveCursor (cyclomatic 16): Editor.moveCursor 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/tui/src/components/editor.ts"},"region":{"startLine":1894}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff2834dd4649a9b26af93edc2a3b12eff4365233864d736c8fa6b99e50b58c6e"}},{"ruleId":"D1","level":"warning","message":{"text":"Image.render (cyclomatic 16): Image.render 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/tui/src/components/image.ts"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bc25ac2385b686b7598b4f996831fcd8da0f47e1a85d2d05d992724a623ea27"}},{"ruleId":"D1","level":"warning","message":{"text":"Markdown.renderList (cyclomatic 16): Markdown.renderList 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/tui/src/components/markdown.ts"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"c14abec7e33b6662b826f6f48ecf03d8bdef61883e8615b24f85dd3ea2a43477"}},{"ruleId":"D1","level":"warning","message":{"text":"model-catalog-protocol.comparePiVersions (cyclomatic 16): model-catalog-protocol.comparePiVersions 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: model-catalog-protocol.parseModelCatalogIndex (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":"scripts/model-catalog-protocol.ts"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7c033778131040dd0a54a9715582148fbab1534ebbddf6d11aae5d59aea5031"}},{"ruleId":"D1","level":"warning","message":{"text":"edit-tool-stats.parseArgs (cyclomatic 16): edit-tool-stats.parseArgs 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":"scripts/edit-tool-stats.mjs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"eed315a003e7892b0d964830b6420016efcebd7c9890d9f0d6efa2a448428841"}},{"ruleId":"D1","level":"warning","message":{"text":"preview-packages.publish (cyclomatic 16): preview-packages.publish 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":"scripts/preview-packages.mjs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"4254fa69b43e77e1801c1954af45adf2bb6ab598c271fa50b3bac055a3b8c5d9"}},{"ruleId":"D1","level":"warning","message":{"text":"session-context-stats.loadContextWindows (cyclomatic 16): session-context-stats.loadContextWindows 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":"scripts/session-context-stats.mjs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"e57bfaa565bc7fe6e718619aa66a28a0d819be2b965f8a7182fb645dcbc399a0"}},{"ruleId":"D2","level":"warning","message":{"text":"generate-models.loadModelsDevData (cognitive 421): generate-models.loadModelsDevData has cognitive complexity 421 (threshold 15). Drivers by points: if/else 75 (173 pts), ternaries 41 (122 pts), boolean chains 79, loops 25 (46 pts), error handling 1 (nesting depth added 200). Of this number, 420 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/ai/scripts/generate-models.ts"},"region":{"startLine":1821}}}],"partialFingerprints":{"codehealthFindingId/v1":"f58f00165fe57ffdbfee85226f726622e3705105c2f162dd4bba84adc869d6d5"}},{"ruleId":"D2","level":"warning","message":{"text":"index.createMcpExtension (cognitive 238): index.createMcpExtension has cognitive complexity 238 (threshold 15). Drivers by points: if/else 96 (125 pts), boolean chains 46, ternaries 32 (40 pts), loops 16 (19 pts), error handling 5 (6 pts), match/switch 2 (nesting depth added 41). None of this is in the body itself: all 238 points belong to 63 function literals inside it that branch (lines 810, 501, 1283, \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/coding-agent/src/extensions/mcp/index.ts"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"32e86c706f99c174d4af0b1e29311c42631d31ceca8aaf7af1abf6feb325e3dd"}},{"ruleId":"D2","level":"warning","message":{"text":"keys.matchesKey (cognitive 190): keys.matchesKey has cognitive complexity 190 (threshold 15). Drivers by points: if/else 65 (138 pts), boolean chains 51, match/switch 1 (nesting depth added 73). To reduce it, split the body into named stages: move each independent step or branch into 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/tui/src/keys.ts"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"e39cdc136a700d0cacb99a7081fbbd471d9b8a67745f3d1b9f15390bf71bfb20"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonlStorage.recover (cognitive 149): JsonlStorage.recover has cognitive complexity 149 (threshold 15). Drivers by points: if/else 33 (89 pts), boolean chains 21, loops 14 (19 pts), ternaries 4 (15 pts), match/switch 1 (3 pts), error handling 1 (2 pts) (nesting depth added 75). Of this number, 145 points are the body\u0027s own statements and 4 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/durable/src/storage/jsonl/storage.ts"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fd63c0ed2c2ff3c9f214610e1688da7aefe38ca17e6ab166f5567d61f198ab9"}},{"ruleId":"D2","level":"warning","message":{"text":"openai-completions.stream (cognitive 146): openai-completions.stream has cognitive complexity 146 (threshold 15). Drivers by points: if/else 45 (92 pts), boolean chains 22, ternaries 9 (16 pts), loops 6 (15 pts), error handling 1 (nesting depth added 63). None of this is in the body itself: all 146 points belong to 6 function literals inside it that branch (lines 318, 485, 421, \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/ai/src/api/openai-completions.ts"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"73c3364cd064c52ab007a606f5572f0bf6d1dc0ccca7fa2a0bdaf5c2649c4c7c"}},{"ruleId":"D2","level":"warning","message":{"text":"anthropic-messages.stream (cognitive 144): anthropic-messages.stream has cognitive complexity 144 (threshold 15). Drivers by points: if/else 47 (113 pts), boolean chains 14, ternaries 6 (12 pts), error handling 2 (3 pts), loops 2 (nesting depth added 73). None of this is in the body itself: all 144 points belong to 3 function literals inside it that branch (lines 584, 699, 716). 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/ai/src/api/anthropic-messages.ts"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"3decf92b27274f8f0ea49cf6995eb078b3bd6fd8f0c382a1cd2e5e05e4eecb9b"}},{"ruleId":"D2","level":"warning","message":{"text":"generate-models.generateModels (cognitive 144): generate-models.generateModels has cognitive complexity 144 (threshold 15). Drivers by points: if/else 27 (52 pts), loops 22 (42 pts), boolean chains 38, ternaries 5 (8 pts), error handling 2 (4 pts) (nesting depth added 50). Of this number, 136 points are the body\u0027s own statements and 8 belong to 6 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/scripts/generate-models.ts"},"region":{"startLine":2782}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b933956028ba7b5791ed396ca15dedf01f1d8bdbd416d70b5dd6c4862871bb0"}},{"ruleId":"D2","level":"warning","message":{"text":"args.parseArgs (cognitive 144): args.parseArgs has cognitive complexity 144 (threshold 15). Drivers by points: if/else 68 (95 pts), boolean chains 45, loops 2 (4 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/coding-agent/src/cli/args.ts"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"cef30d83052d3bad494886a10e0d55f2bf54842a6c005c3d3a8a4224c54b7e71"}},{"ruleId":"D2","level":"warning","message":{"text":"openai-completions.convertMessages (cognitive 140): openai-completions.convertMessages has cognitive complexity 140 (threshold 15). Drivers by points: if/else 33 (95 pts), ternaries 9 (24 pts), boolean chains 12, loops 3 (9 pts) (nesting depth added 83). Of this number, 126 points are the body\u0027s own statements and 14 belong to 4 function items inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/src/api/openai-completions.ts"},"region":{"startLine":1178}}}],"partialFingerprints":{"codehealthFindingId/v1":"6301b538b8d70732de4ccb7a11697d0ac312f47b554ae6e25301c560174b6af3"}},{"ruleId":"D2","level":"warning","message":{"text":"openai-responses-shared.convertResponsesMessages (cognitive 136): openai-responses-shared.convertResponsesMessages has cognitive complexity 136 (threshold 15). Drivers by points: if/else 35 (85 pts), ternaries 9 (30 pts), boolean chains 11, loops 4 (10 pts) (nesting depth added 77). Of this number, 119 points are the body\u0027s own statements and 17 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/ai/src/api/openai-responses-shared.ts"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a824d03f50528e1019d100c0107bdea8a05e72f3fad194d45d227d6901cad57"}},{"ruleId":"D2","level":"warning","message":{"text":"InteractiveMode.handleEvent (cognitive 135): InteractiveMode.handleEvent has cognitive complexity 135 (threshold 15). Drivers by points: if/else 50 (106 pts), loops 4 (14 pts), boolean chains 9, ternaries 2 (5 pts), match/switch 1 (nesting depth added 69). Of this number, 133 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":3363}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f4c1208708e791ecc87f4b84fef470d4deadc0d33d422e03403fee761ff1681"}},{"ruleId":"D2","level":"warning","message":{"text":"renderEntry (cognitive 130): renderEntry has cognitive complexity 130 (threshold 15). Drivers by points: if/else 30 (78 pts), ternaries 9 (25 pts), loops 4 (17 pts), boolean chains 10 (nesting depth added 77). 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/coding-agent/src/core/export-html/template.js"},"region":{"startLine":1288}}}],"partialFingerprints":{"codehealthFindingId/v1":"269b6a9f004772b3877b9e0a6779419ca00a7703bf10c733ff97be730668f4d9"}},{"ruleId":"D2","level":"warning","message":{"text":"anthropic-messages.convertMessages (cognitive 127): anthropic-messages.convertMessages has cognitive complexity 127 (threshold 15). Drivers by points: if/else 31 (88 pts), ternaries 3 (16 pts), loops 5 (15 pts), boolean chains 8 (nesting depth added 80). Of this number, 118 points are the body\u0027s own statements and 9 belong to 2 function literals inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/src/api/anthropic-messages.ts"},"region":{"startLine":1351}}}],"partialFingerprints":{"codehealthFindingId/v1":"879864e5d93ba07a78c79156155dd8d30998cf0391c627ddd1c00e2359129b14"}},{"ruleId":"D2","level":"warning","message":{"text":"events.translate (cognitive 119): events.translate has cognitive complexity 119 (threshold 15). Drivers by points: if/else 39 (65 pts), boolean chains 24, ternaries 8 (17 pts), loops 13 (nesting depth added 35). Of this number, 117 points are the body\u0027s own statements and 2 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/harness/events.ts"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"21bfecccef9ef72fa200ffa65ac7f500211fd9ed32f55b8c49f2f646a55db4a9"}},{"ruleId":"D2","level":"warning","message":{"text":"renderToolCall (cognitive 116): renderToolCall has cognitive complexity 116 (threshold 15). Drivers by points: if/else 31 (65 pts), ternaries 15 (30 pts), boolean chains 14, loops 1 (3 pts), other 3, match/switch 1 (nesting depth added 51). Of this number, 105 points are the body\u0027s own statements and 11 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/coding-agent/src/core/export-html/template.js"},"region":{"startLine":1006}}}],"partialFingerprints":{"codehealthFindingId/v1":"f051694142e5d1c3b5e93dd1140fb133c217823cbd77bfe958b17cfd4856ba6e"}},{"ruleId":"D2","level":"warning","message":{"text":"package-manager-cli.handlePackageCommand (cognitive 113): package-manager-cli.handlePackageCommand has cognitive complexity 113 (threshold 15). Drivers by points: if/else 31 (65 pts), ternaries 7 (23 pts), error handling 4 (10 pts), boolean chains 8, loops 2 (6 pts), match/switch 1 (nesting depth added 60). Of this number, 108 points are the body\u0027s own statements and 5 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/coding-agent/src/package-manager-cli.ts"},"region":{"startLine":900}}}],"partialFingerprints":{"codehealthFindingId/v1":"2de568e3e137a2810c74d2802ddca10f581acc9fd8afbcaca360fe94b88c0057"}},{"ruleId":"D2","level":"warning","message":{"text":"package-manager-cli.parsePackageCommand (cognitive 110): package-manager-cli.parsePackageCommand has cognitive complexity 110 (threshold 15). Drivers by points: if/else 50 (94 pts), boolean chains 15, loops 1 (nesting depth added 44). To reduce it, split the body into named stages: move each independent step or branch into 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/coding-agent/src/package-manager-cli.ts"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"b762eeb9c271ff7d4469a12619833269aa307a99a298f4115c606ae897a013ca"}},{"ruleId":"D2","level":"warning","message":{"text":"openai-completions.buildParams (cognitive 109): openai-completions.buildParams has cognitive complexity 109 (threshold 15). Drivers by points: if/else 49 (74 pts), boolean chains 23, ternaries 6 (12 pts) (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/src/api/openai-completions.ts"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"11d65a629d42a5213a99a855eef20031fa97107dc9bf1150b417a1c84aad6de2"}},{"ruleId":"D2","level":"warning","message":{"text":"TuiMainScreen.doRender (cognitive 106): TuiMainScreen.doRender has cognitive complexity 106 (threshold 15). Drivers by points: if/else 39 (66 pts), ternaries 10 (16 pts), loops 7 (14 pts), boolean chains 10 (nesting depth added 40). Of this number, 91 points are the body\u0027s own statements and 15 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/tui/src/tui-main-screen.ts"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"dddb6971d36be1b94a50223b2c4323db91c6dfdb33ad1a75391eb83378812db4"}},{"ruleId":"D2","level":"warning","message":{"text":"Editor.handleInput (cognitive 105): Editor.handleInput has cognitive complexity 105 (threshold 15). Drivers by points: if/else 58 (88 pts), boolean chains 17 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into 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/tui/src/components/editor.ts"},"region":{"startLine":696}}}],"partialFingerprints":{"codehealthFindingId/v1":"b49abcac89b7c521819b372aaeac3bedcf65bc44ffc26db7e45ac0cf849bb9a0"}},{"ruleId":"D2","level":"warning","message":{"text":"main.main (cognitive 101): main.main has cognitive complexity 101 (threshold 15). Drivers by points: if/else 43 (58 pts), boolean chains 20, ternaries 11 (19 pts), error handling 1 (2 pts), loops 1 (2 pts) (nesting depth added 25). Of this number, 86 points are the body\u0027s own statements and 15 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/coding-agent/src/main.ts"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2ada60740fb52043110ac71d32111bf56ef8b6c8bb78d74f9abf8cb3fe8a5c8"}},{"ruleId":"D2","level":"warning","message":{"text":"google-generative-ai.stream (cognitive 100): google-generative-ai.stream has cognitive complexity 100 (threshold 15). Drivers by points: if/else 26 (71 pts), boolean chains 17, ternaries 2 (7 pts), loops 2 (4 pts), error handling 1 (nesting depth added 52). None of this is in the body itself: all 100 points belong to one function literal inside it that branches (line 67). 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/ai/src/api/google-generative-ai.ts"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ecaed3999975e399f63999901cf3b4447a0cfcbe1078bb9b3078891f2914cf5"}},{"ruleId":"D2","level":"warning","message":{"text":"google-vertex.stream (cognitive 100): google-vertex.stream has cognitive complexity 100 (threshold 15). Drivers by points: if/else 25 (70 pts), boolean chains 17, ternaries 3 (8 pts), loops 2 (4 pts), error handling 1 (nesting depth added 52). None of this is in the body itself: all 100 points belong to one function literal inside it that branches (line 76). 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/ai/src/api/google-vertex.ts"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aef0b2793651098ee7e098dfaf05331372fc86e4c0e2008200707ca98c6bd40"}},{"ruleId":"D2","level":"warning","message":{"text":"session-context-stats.scanSessions (cognitive 100): session-context-stats.scanSessions has cognitive complexity 100 (threshold 15). Drivers by points: if/else 21 (69 pts), ternaries 3 (11 pts), boolean chains 10, loops 3 (7 pts), error handling 1 (3 pts) (nesting depth added 62). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/session-context-stats.mjs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"d458eb6c8e6765f0e279563bfbb8505347d4ed6e908a0a28a4e0101c46a8e6a2"}},{"ruleId":"D2","level":"warning","message":{"text":"bedrock-converse-stream.convertMessages (cognitive 98): bedrock-converse-stream.convertMessages has cognitive complexity 98 (threshold 15). Drivers by points: if/else 17 (61 pts), loops 4 (11 pts), match/switch 3 (11 pts), ternaries 3 (11 pts), boolean chains 4 (nesting depth added 67). To reduce it, split the body into named stages: move each independent step or branch into 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/ai/src/api/bedrock-converse-stream.ts"},"region":{"startLine":983}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f220ebc3ff9e2c1dc29f56774bae02044fb253e8b8087427c82a60fc4c39df5"}},{"ruleId":"D2","level":"warning","message":{"text":"google-shared.convertMessages (cognitive 94): google-shared.convertMessages has cognitive complexity 94 (threshold 15). Drivers by points: if/else 21 (57 pts), ternaries 6 (21 pts), boolean chains 12, loops 2 (4 pts) (nesting depth added 53). Of this number, 88 points are the body\u0027s own statements and 6 belong to 2 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/ai/src/api/google-shared.ts"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd1ae253dfc97735495cde9295593030f49e195157e526661480d2cd6a53268e"}},{"ruleId":"D2","level":"warning","message":{"text":"openai-codex-responses.stream (cognitive 90): openai-codex-responses.stream has cognitive complexity 90 (threshold 15). Drivers by points: if/else 22 (50 pts), boolean chains 15, ternaries 5 (14 pts), error handling 4 (8 pts), loops 2 (3 pts) (nesting depth added 42). None of this is in the body itself: all 90 points belong to 2 function literals inside it that branch (lines 250, 330). 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/ai/src/api/openai-codex-responses.ts"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"58e9dc2175b0fbd17e6d267fca03ffe8cbfe52675279f3de5a6fbf9475d79bd7"}},{"ruleId":"D2","level":"warning","message":{"text":"utils.truncateToWidth (cognitive 90): utils.truncateToWidth has cognitive complexity 90 (threshold 15). Drivers by points: if/else 25 (61 pts), ternaries 5 (13 pts), loops 4 (10 pts), boolean chains 6 (nesting depth added 50). 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/tui/src/utils.ts"},"region":{"startLine":1121}}}],"partialFingerprints":{"codehealthFindingId/v1":"fec5a22d853a80a95af7e620c57e65eae55b6ab1a91cb6bcb1d913f8216edd96"}},{"ruleId":"D2","level":"warning","message":{"text":"openai-responses-shared.processResponsesStream (cognitive 88): openai-responses-shared.processResponsesStream has cognitive complexity 88 (threshold 15). Drivers by points: if/else 49 (84 pts), boolean chains 22, ternaries 8 (17 pts), loops 3 (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. This shape REPEATS in the file: one other method here (openai-responses-shared.processResponsesStream::finalizeResponse) 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/ai/src/api/openai-responses-shared.ts"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7d5e59f851eba0620226e3f1bfeda8c10c012467a9f6a4485d1cd40f14d22aa"}},{"ruleId":"D2","level":"warning","message":{"text":"mistral-conversations.consumeChatStream (cognitive 88): mistral-conversations.consumeChatStream has cognitive complexity 88 (threshold 15). Drivers by points: if/else 19 (62 pts), boolean chains 10, ternaries 3 (9 pts), loops 4 (7 pts) (nesting depth added 52). Of this number, 85 points are the body\u0027s own statements and 3 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/ai/src/api/mistral-conversations.ts"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e15cb59213c7e5612c6298d0c3e60a046be4d8530ca8549d82baf60d557ce12"}},{"ruleId":"D2","level":"warning","message":{"text":"generate-models.applyThinkingLevelMetadata (cognitive 85): generate-models.applyThinkingLevelMetadata has cognitive complexity 85 (threshold 15). Drivers by points: if/else 33 (43 pts), boolean chains 31, ternaries 4 (11 pts) (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/ai/scripts/generate-models.ts"},"region":{"startLine":1063}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c427825a48d70c13e61d8153d9d68eca35225de46b3f883690c2f0bc2ca9439"}},{"ruleId":"D2","level":"warning","message":{"text":"easter-egg-3d.parseScreen (cognitive 81): easter-egg-3d.parseScreen has cognitive complexity 81 (threshold 15). Drivers by points: if/else 30 (51 pts), boolean chains 14, ternaries 3 (10 pts), loops 4 (6 pts) (nesting depth added 30). None of this is in the body itself: all 81 points belong to 3 function literals inside it that branch (lines 323, 317, 364). 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/coding-agent/src/modes/interactive/components/easter-egg-3d.ts"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd31548b3e30f57a22f0f54a8e344f96942cc0bb91859d172d791ac00fbaa6a4"}},{"ruleId":"D2","level":"warning","message":{"text":"edit-tool-stats.scanSessions (cognitive 81): edit-tool-stats.scanSessions has cognitive complexity 81 (threshold 15). Drivers by points: ternaries 7 (34 pts), if/else 9 (30 pts), loops 4 (9 pts), boolean chains 5, error handling 1 (3 pts) (nesting depth added 55). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/edit-tool-stats.mjs"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"69a6608e0f514c1e4c044e2b59dced2b28aeb9026a80c17630cb95ac80e13f81"}},{"ruleId":"D2","level":"warning","message":{"text":"latex.renderLayout (cognitive 80): latex.renderLayout has cognitive complexity 80 (threshold 15). Drivers by points: ternaries 12 (49 pts), if/else 10 (24 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 52). To reduce it, split the body into named stages: move each independent step or branch into 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/tui/src/latex.ts"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"4372adc3ffc658425bfb7525d99cabca880d7d69ae1b956aaf505622514df90e"}},{"ruleId":"D2","level":"warning","message":{"text":"LatexParser.parseCommand (cognitive 79): LatexParser.parseCommand has cognitive complexity 79 (threshold 15). Drivers by points: if/else 41 (51 pts), boolean chains 16, ternaries 4 (8 pts), loops 2 (4 pts) (nesting depth added 16). 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/tui/src/latex.ts"},"region":{"startLine":1014}}}],"partialFingerprints":{"codehealthFindingId/v1":"1970d1298e467dfeb2926cfe26f0989e74f8ace402d6bdb8cdea7aff85a09de1"}},{"ruleId":"D2","level":"warning","message":{"text":"Markdown.renderToken (cognitive 73): Markdown.renderToken has cognitive complexity 73 (threshold 15). Drivers by points: loops 10 (27 pts), if/else 14 (26 pts), boolean chains 15, ternaries 2 (4 pts), match/switch 1 (nesting depth added 31). Of this number, 71 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. 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/tui/src/components/markdown.ts"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"933c17b70412d2731f53aea6b449f7b57184a1259e1980105b7b0f5dac83e4cf"}},{"ruleId":"D2","level":"warning","message":{"text":"Transaction.#assemble (cognitive 71): Transaction.#assemble has cognitive complexity 71 (threshold 15). Drivers by points: if/else 22 (50 pts), loops 12 (19 pts), boolean chains 2 (nesting depth added 35). To reduce it, split the body into named stages: move each independent step or branch into 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/durable/src/session/transaction.ts"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"80684be19a9e293e266c137ff80087ca3da5df98f08f54d7db4f3b99b7984fc5"}},{"ruleId":"D2","level":"warning","message":{"text":"mistral-conversations.toChatMessages (cognitive 69): mistral-conversations.toChatMessages has cognitive complexity 69 (threshold 15). Drivers by points: if/else 17 (54 pts), loops 3 (6 pts), ternaries 2 (5 pts), boolean chains 4 (nesting depth added 43). Of this number, 63 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/ai/src/api/mistral-conversations.ts"},"region":{"startLine":780}}}],"partialFingerprints":{"codehealthFindingId/v1":"1522f3beb0e68f4ebd70cae6dce7fea3ab8dbe8ad4c68926573377053d59fb02"}},{"ruleId":"D2","level":"warning","message":{"text":"TuiAltScreen.handleViewportInput (cognitive 68): TuiAltScreen.handleViewportInput has cognitive complexity 68 (threshold 15). Drivers by points: if/else 40 (67 pts), boolean chains 1 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/tui/src/tui-alt-screen.ts"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"96f36b48058de19223aa082d7c4b56ebdae672ba44285f3eca667afc97836f97"}},{"ruleId":"D2","level":"warning","message":{"text":"TreeList.render (cognitive 67): TreeList.render has cognitive complexity 67 (threshold 15). Drivers by points: ternaries 13 (40 pts), if/else 10 (19 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 37). 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/coding-agent/src/modes/interactive/components/tree-selector.ts"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b98054743c9b145a1d09a20678188ee0dcc986ee050b2259f7cebe48ba09538"}},{"ruleId":"D2","level":"warning","message":{"text":"transform-messages.transformMessages (cognitive 65): transform-messages.transformMessages has cognitive complexity 65 (threshold 15). Drivers by points: if/else 25 (53 pts), boolean chains 8, loops 2 (3 pts), ternaries 1 (nesting depth added 29). Of this number, 18 points are the body\u0027s own statements and 47 belong to 4 function items inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/src/api/transform-messages.ts"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b4ce9d379d0b89d9bb68b0d9a0fa1337c28f15693e3e8e2316f6c68e98b1a29"}},{"ruleId":"D2","level":"warning","message":{"text":"bedrock-converse-stream.stream (cognitive 64): bedrock-converse-stream.stream has cognitive complexity 64 (threshold 15). Drivers by points: if/else 34 (45 pts), boolean chains 16, error handling 1, loops 1, ternaries 1 (nesting depth added 11). None of this is in the body itself: all 64 points belong to one function literal inside it that branches (line 141). 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/ai/src/api/bedrock-converse-stream.ts"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f5bc15faffe6decc1766100374a3277e3c91db8156a52ec34ca50106cb9b545"}},{"ruleId":"D2","level":"warning","message":{"text":"EasterEgg3dAnimation.render (cognitive 64): EasterEgg3dAnimation.render has cognitive complexity 64 (threshold 15). Drivers by points: if/else 15 (32 pts), ternaries 7 (18 pts), boolean chains 8, loops 3 (6 pts) (nesting depth added 31). Of this number, 52 points are the body\u0027s own statements and 12 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/coding-agent/src/modes/interactive/components/easter-egg-3d.ts"},"region":{"startLine":950}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aed87b868effa6d62c3dd36b0d6724baa7224ed970716718639833f984ddf21"}},{"ruleId":"D2","level":"warning","message":{"text":"keys.parseKey (cognitive 64): keys.parseKey has cognitive complexity 64 (threshold 15). Drivers by points: if/else 40 (45 pts), boolean chains 17, ternaries 1 (2 pts) (nesting depth added 6). 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/tui/src/keys.ts"},"region":{"startLine":1292}}}],"partialFingerprints":{"codehealthFindingId/v1":"30283c75e7995d45e2df281c97a1a9cc50187dc9bccaa1cb9e3f1c1b419aa8ed"}},{"ruleId":"D2","level":"warning","message":{"text":"edit-diff.generateDiffString (cognitive 63): edit-diff.generateDiffString has cognitive complexity 63 (threshold 15). Drivers by points: if/else 14 (32 pts), loops 7 (27 pts), boolean chains 4 (nesting depth added 38). To reduce it, split the body into named stages: move each independent step or branch into 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/coding-agent/src/core/tools/edit-diff.ts"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"46e1ec312594e22ec98137fc20c28f9880d1a201e27f030b45dacb968db0d17d"}},{"ruleId":"D2","level":"warning","message":{"text":"edit-diff.generateDiffString (cognitive 63): edit-diff.generateDiffString has cognitive complexity 63 (threshold 15). Drivers by points: if/else 14 (32 pts), loops 7 (27 pts), boolean chains 4 (nesting depth added 38). To reduce it, split the body into named stages: move each independent step or branch into 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/durable/src/tools/edit-diff.ts"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"230c333e6297982c7a6d640554a9ffc31a7ef22266db2c764be34e1c709cf5a9"}},{"ruleId":"D2","level":"warning","message":{"text":"sdk.createAgentSession (cognitive 62): sdk.createAgentSession has cognitive complexity 62 (threshold 15). Drivers by points: if/else 27 (36 pts), ternaries 13 (17 pts), boolean chains 9 (nesting depth added 13). Of this number, 41 points are the body\u0027s own statements and 21 belong to 12 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/coding-agent/src/core/sdk.ts"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3b16dc784c103dceec1ce4010b6a77d39c83643e35e869bff5c6de28db3426f"}},{"ruleId":"D2","level":"warning","message":{"text":"tracker.emitOperations (cognitive 61): tracker.emitOperations has cognitive complexity 61 (threshold 15). Drivers by points: if/else 16 (37 pts), loops 11 (17 pts), boolean chains 7 (nesting depth added 27). Of this number, 60 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into 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/chord/src/delta/tracker.ts"},"region":{"startLine":1649}}}],"partialFingerprints":{"codehealthFindingId/v1":"02d58800a46e8923f4ea3457c3fd58d0e629e31097279173f2a9b07c065f4956"}},{"ruleId":"D2","level":"warning","message":{"text":"index.assertValidWireOp (cognitive 61): index.assertValidWireOp has cognitive complexity 61 (threshold 15). Drivers by points: if/else 27 (48 pts), boolean chains 7, ternaries 2 (5 pts), match/switch 1 (nesting depth added 24). Of this number, 56 points are the body\u0027s own statements and 5 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/chord/src/delta/index.ts"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a99e338a0316ffe2d929dc3a76a86bdd475a837d5b091f94bdd2190dc1bfaf4"}},{"ruleId":"D2","level":"warning","message":{"text":"CombinedAutocompleteProvider.getFileSuggestions (cognitive 58): CombinedAutocompleteProvider.getFileSuggestions has cognitive complexity 58 (threshold 15). Drivers by points: if/else 25 (41 pts), boolean chains 10, error handling 2 (4 pts), ternaries 1 (2 pts), loops 1 (nesting depth added 19). Of this number, 54 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/tui/src/autocomplete.ts"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"3faab0e9d61e9044cf11026ab9605d67e4169908a7b4a3965c7411cfcda65db7"}},{"ruleId":"D2","level":"warning","message":{"text":"pi_env::exec::run (cognitive 58): pi_env::exec::run has cognitive complexity 58 (threshold 15). Drivers by points: if/else 27 (42 pts), match/switch 7 (9 pts), boolean chains 4, loops 3 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/env/daemon/src/exec.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce0215654cd8e4ac7f30850bee892938446950fe9e8e6cbefbfe37b7015712f4"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskScheduler.#observe (cognitive 57): TaskScheduler.#observe has cognitive complexity 57 (threshold 15). Drivers by points: if/else 20 (39 pts), boolean chains 11, loops 6 (7 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/durable/src/harness/scheduler.ts"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"00ed98c5ec419a5be6818e1ad5da6834413f32d487e2e0d5f293534d3c0521b6"}},{"ruleId":"D2","level":"warning","message":{"text":"TuiAltScreen.doRender (cognitive 57): TuiAltScreen.doRender has cognitive complexity 57 (threshold 15). Drivers by points: if/else 17 (30 pts), boolean chains 16, loops 4 (8 pts), ternaries 2 (3 pts) (nesting depth added 18). Of this number, 55 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/tui/src/tui-alt-screen.ts"},"region":{"startLine":1691}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9c6777479f0fd12491ed939b23bd5d11cefcb2aafc19a3e2fd4f0d9f1c84755"}},{"ruleId":"D2","level":"warning","message":{"text":"grep.createGrepToolDefinition.execute (cognitive 56): grep.createGrepToolDefinition.execute has cognitive complexity 56 (threshold 15). Drivers by points: if/else 28 (36 pts), boolean chains 9, error handling 4 (5 pts), ternaries 4, loops 2 (nesting depth added 9). None of this is in the body itself: all 56 points belong to 10 function literals inside it that branch (lines 247, 117, 199, \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/coding-agent/src/core/tools/grep.ts"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"fec31079ad68d5af65e88ff3bce2b06c01dba7a301a3a768ee8f2f3a6e126d71"}},{"ruleId":"D2","level":"warning","message":{"text":"NodeExecutionEnv.exec (cognitive 55): NodeExecutionEnv.exec has cognitive complexity 55 (threshold 15). Drivers by points: if/else 32 (36 pts), boolean chains 9, ternaries 4 (5 pts), error handling 3, loops 2 (nesting depth added 5). Most of this is not in the body itself: 10 of the 55 points are its own statements and the rest belongs to 14 function literals inside it that branch (lines 872, 703, 843, \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/durable/src/env/node.ts"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dd3077d3a02512bf30667b41a7923a920aa95a96da9dfb0c0e5536ec3396ab6"}},{"ruleId":"D2","level":"warning","message":{"text":"Markdown.renderTable (cognitive 55): Markdown.renderTable has cognitive complexity 55 (threshold 15). Drivers by points: if/else 11 (19 pts), loops 10 (19 pts), boolean chains 12, ternaries 2 (5 pts) (nesting depth added 20). Of this number, 48 points are the body\u0027s own statements and 7 belong to 6 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/tui/src/components/markdown.ts"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7cb2fa751249367da4b58bfc253b45250c83ae94e639a6cc2115105c96f5cb6"}},{"ruleId":"D2","level":"warning","message":{"text":"read-tool-stats.scanSessions (cognitive 55): read-tool-stats.scanSessions has cognitive complexity 55 (threshold 15). Drivers by points: ternaries 6 (24 pts), if/else 6 (17 pts), loops 3 (6 pts), boolean chains 5, error handling 1 (3 pts) (nesting depth added 34). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/read-tool-stats.mjs"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a8e8a6cd94d1e8fa1d3f326cdb3f9a4a74ac87da49c0c3da93ba33a16bc6203"}},{"ruleId":"D2","level":"warning","message":{"text":"generate-models.processGoogleModels (cognitive 54): generate-models.processGoogleModels has cognitive complexity 54 (threshold 15). Drivers by points: ternaries 9 (29 pts), if/else 5 (11 pts), boolean chains 10, loops 2 (4 pts) (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/scripts/generate-models.ts"},"region":{"startLine":1612}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec0613b56abeaa9c21f9147ef5e9db76321babbb76f4a2c658bdc515acce8312"}},{"ruleId":"D2","level":"warning","message":{"text":"mcp-servers.validateMcpServerConfig (cognitive 54): mcp-servers.validateMcpServerConfig has cognitive complexity 54 (threshold 15). Drivers by points: if/else 21 (35 pts), boolean chains 17, loops 1 (2 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/mcp-servers.ts"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a742c3835e6a833923bfd55f83525feb23ab2720eb12270eced3c653c994a55"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolExecutionComponent.updateDisplay (cognitive 54): ToolExecutionComponent.updateDisplay has cognitive complexity 54 (threshold 15). Drivers by points: if/else 14 (31 pts), ternaries 4 (9 pts), error handling 2 (7 pts), loops 3 (4 pts), boolean chains 3 (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/coding-agent/src/modes/interactive/components/tool-execution.ts"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7a5267bd6abe7ea005d9a6f6c36e8d8cb15ad7ad4db1c3e02062d51ab6cd47e"}},{"ruleId":"D2","level":"warning","message":{"text":"validation.coercePrimitiveByType (cognitive 53): validation.coercePrimitiveByType has cognitive complexity 53 (threshold 15). Drivers by points: if/else 18 (42 pts), ternaries 2 (6 pts), boolean chains 4, match/switch 1 (nesting depth added 28). 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/ai/src/utils/validation.ts"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"028a020b7be5ca873e759fdc5f75a20f2c58a5edf8a4a8db362546be59c7e4fe"}},{"ruleId":"D2","level":"warning","message":{"text":"find.createFindToolDefinition.execute (cognitive 53): find.createFindToolDefinition.execute has cognitive complexity 53 (threshold 15). Drivers by points: if/else 27 (41 pts), ternaries 3 (5 pts), boolean chains 4, loops 2, error handling 1 (nesting depth added 16). None of this is in the body itself: all 53 points belong to 7 function literals inside it that branch (lines 109, 244, 88, \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/coding-agent/src/core/tools/find.ts"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"28c36ffc31694831f8b2835138259fe275ac0a34a6c2a4e8d89d8c4319e3162e"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteExecutionEnv.exec (cognitive 53): RemoteExecutionEnv.exec has cognitive complexity 53 (threshold 15). Drivers by points: ternaries 14 (25 pts), if/else 14 (20 pts), boolean chains 4, error handling 3, loops 1 (nesting depth added 17). Of this number, 44 points are the body\u0027s own statements and 9 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/env/src/remote-env.ts"},"region":{"startLine":852}}}],"partialFingerprints":{"codehealthFindingId/v1":"463499c47ddbffc4613b6a3ce0a47cb040d2597452730388959f8f6174657051"}},{"ruleId":"D2","level":"warning","message":{"text":"generate-coding-agent-install-lock.validateGeneratedFiles (cognitive 52): generate-coding-agent-install-lock.validateGeneratedFiles has cognitive complexity 52 (threshold 15). Drivers by points: if/else 18 (33 pts), boolean chains 10, loops 5 (6 pts), error handling 1 (3 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/generate-coding-agent-install-lock.mjs"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a3e07f7b8fc002d306b5818f0a8c9757496dc926849ff461a4a5c34cad6a673"}},{"ruleId":"D2","level":"warning","message":{"text":"agent-loop.runLoop (cognitive 51): agent-loop.runLoop has cognitive complexity 51 (threshold 15). Drivers by points: if/else 10 (30 pts), loops 4 (10 pts), boolean chains 7, ternaries 1 (4 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/agent/src/agent-loop.ts"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"951edbf1bbc2da2bb08d3e1285c586f659c4b1f7ea18ba09ed240c65ce394cba"}},{"ruleId":"D2","level":"warning","message":{"text":"model-data.validateModelDataDirectory (cognitive 51): model-data.validateModelDataDirectory has cognitive complexity 51 (threshold 15). Drivers by points: if/else 17 (32 pts), loops 4 (8 pts), boolean chains 6, ternaries 2 (5 pts) (nesting depth added 22). Of this number, 50 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/ai/scripts/model-data.ts"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"97b621f680ac4e062ed5887a18540f4d4d1c084447adcb498d0774395e6b9e53"}},{"ruleId":"D2","level":"warning","message":{"text":"index.applyOps (cognitive 50): index.applyOps has cognitive complexity 50 (threshold 15). Drivers by points: if/else 12 (31 pts), ternaries 3 (8 pts), loops 3 (7 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 29). Of this number, 48 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/chord/src/delta/index.ts"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f1e42e05a8847f9897861805cabb9a877a79d3a6d4133739ddc73b07f4d406a"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.parseEvalCli (cognitive 50): cli.parseEvalCli has cognitive complexity 50 (threshold 15). Drivers by points: if/else 17 (35 pts), boolean chains 8, ternaries 3 (6 pts), loops 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/evals/src/cli.ts"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"378d2b0841afd1bfbdbf1ac803480b93a4b6c37291f993e3c30f17c0458c7be8"}},{"ruleId":"D2","level":"warning","message":{"text":"vm.startVm (cognitive 49): vm.startVm has cognitive complexity 49 (threshold 15). Drivers by points: ternaries 11 (19 pts), if/else 13 (18 pts), boolean chains 6, error handling 3, loops 2, match/switch 1 (nesting depth added 13). Of this number, 20 points are the body\u0027s own statements and 29 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/codemode/src/runtime/vm.ts"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"5790f156ba82b16da5d72d3705a858158b46bb2e3486020423bd2504279423b2"}},{"ruleId":"D2","level":"warning","message":{"text":"AssistantMessageComponent.updateContent (cognitive 49): AssistantMessageComponent.updateContent has cognitive complexity 49 (threshold 15). Drivers by points: if/else 13 (29 pts), boolean chains 10, ternaries 2 (6 pts), loops 2 (4 pts) (nesting depth added 22). Of this number, 36 points are the body\u0027s own statements and 13 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/coding-agent/src/modes/interactive/components/assistant-message.ts"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"f420200d2ca93626dbb400bcee2a7782161879132214701f8a6249233a2c720d"}},{"ruleId":"D2","level":"warning","message":{"text":"BlockRaster.render (cognitive 49): BlockRaster.render has cognitive complexity 49 (threshold 15). Drivers by points: if/else 14 (31 pts), loops 8 (14 pts), boolean chains 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/coding-agent/src/modes/interactive/components/easter-egg-3d.ts"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"508a9ae6ef3d2774753517a42953af877010168c135b883ecaf19ae1c18de7e1"}},{"ruleId":"D2","level":"warning","message":{"text":"TreeList.flattenTree (cognitive 48): TreeList.flattenTree has cognitive complexity 48 (threshold 15). Drivers by points: if/else 9 (21 pts), loops 9 (16 pts), ternaries 3 (6 pts), boolean chains 5 (nesting depth added 22). Of this number, 42 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/coding-agent/src/modes/interactive/components/tree-selector.ts"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"0acef5159603e863fef1ced5dc33fdd2a22b560e0da428d07f23cbaced9b6017"}},{"ruleId":"D2","level":"warning","message":{"text":"InteractiveMode.showLoadedResources (cognitive 48): InteractiveMode.showLoadedResources has cognitive complexity 48 (threshold 15). Drivers by points: if/else 16 (28 pts), loops 6 (8 pts), ternaries 3 (8 pts), boolean chains 4 (nesting depth added 19). Of this number, 41 points are the body\u0027s own statements and 7 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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":1774}}}],"partialFingerprints":{"codehealthFindingId/v1":"369dbad0891d364acda67ca6a6dc7eb39cab4ffbda4c120db4e8b2372830dc62"}},{"ruleId":"D2","level":"warning","message":{"text":"Editor.layoutText (cognitive 48): Editor.layoutText has cognitive complexity 48 (threshold 15). Drivers by points: if/else 13 (40 pts), boolean chains 4, loops 2 (4 pts) (nesting depth added 29). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/tui/src/components/editor.ts"},"region":{"startLine":998}}}],"partialFingerprints":{"codehealthFindingId/v1":"653e32a31865728afd14f3cca2a62586c695a6b40d56f60b5a107cf8213722c0"}},{"ruleId":"D2","level":"warning","message":{"text":"computeStats (cognitive 48): computeStats has cognitive complexity 48 (threshold 15). Drivers by points: if/else 10 (27 pts), ternaries 2 (11 pts), boolean chains 9, loops 1 (nesting depth added 26). 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/coding-agent/src/core/export-html/template.js"},"region":{"startLine":1456}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a0cceeaf4e3ee765910a40e9471773300432a0f9a10935f44eef00da4720b93"}},{"ruleId":"D2","level":"warning","message":{"text":"InteractiveMode.renderSessionItems (cognitive 47): InteractiveMode.renderSessionItems has cognitive complexity 47 (threshold 15). Drivers by points: if/else 15 (38 pts), loops 3 (5 pts), boolean chains 3, ternaries 1 (nesting depth added 25). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":3969}}}],"partialFingerprints":{"codehealthFindingId/v1":"6da84c0f8812a6083153e25fc646678a86223faeccea9c4941058a47e0319914"}},{"ruleId":"D2","level":"warning","message":{"text":"getTreeNodeDisplayHtml (cognitive 47): getTreeNodeDisplayHtml has cognitive complexity 47 (threshold 15). Drivers by points: if/else 12 (32 pts), ternaries 5 (11 pts), boolean chains 3, match/switch 1 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into 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/coding-agent/src/core/export-html/template.js"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"12d4dfa65a5f8e94c776ce49106d2cc54771b4f289413db9f14ab2016421fc5f"}},{"ruleId":"D2","level":"warning","message":{"text":"anthropic-messages.buildParams (cognitive 46): anthropic-messages.buildParams has cognitive complexity 46 (threshold 15). Drivers by points: if/else 20 (27 pts), ternaries 9 (11 pts), boolean chains 8 (nesting depth added 9). Of this number, 44 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/ai/src/api/anthropic-messages.ts"},"region":{"startLine":1155}}}],"partialFingerprints":{"codehealthFindingId/v1":"68f920b16dc28f690e91234a3210ff32f8e59b94738ac434a28f5a1e28ff6b62"}},{"ruleId":"D2","level":"warning","message":{"text":"credential-print.resolveCredentialForPrint (cognitive 46): credential-print.resolveCredentialForPrint has cognitive complexity 46 (threshold 15). Drivers by points: if/else 16 (30 pts), ternaries 4 (8 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/cli/credential-print.ts"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"0009f2a61c717e44c769c3de098af790f20e7bf0bf0fd0759a76efd09945d601"}},{"ruleId":"D2","level":"warning","message":{"text":"TreeList.handleInput (cognitive 46): TreeList.handleInput has cognitive complexity 46 (threshold 15). Drivers by points: if/else 30 (37 pts), boolean chains 9 (nesting depth added 7). Of this number, 44 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/components/tree-selector.ts"},"region":{"startLine":997}}}],"partialFingerprints":{"codehealthFindingId/v1":"48ad2e66bd2b384aab7f214972a8876b020a85c537dfb77e2687b17c018994ad"}},{"ruleId":"D2","level":"warning","message":{"text":"stdin-buffer.extractCompleteSequences (cognitive 46): stdin-buffer.extractCompleteSequences has cognitive complexity 46 (threshold 15). Drivers by points: if/else 11 (37 pts), boolean chains 5, loops 2 (4 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/tui/src/stdin-buffer.ts"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"66725a2c1d172e8fd5568092c7e398a0ed1c801f90781dee3e43ea2f5239de59"}},{"ruleId":"D2","level":"warning","message":{"text":"FileWatcher::reconcile (cognitive 46): FileWatcher::reconcile has cognitive complexity 46 (threshold 15). Drivers by points: if/else 11 (25 pts), loops 5 (8 pts), match/switch 3 (8 pts), boolean chains 5 (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/env/daemon/src/watch.rs"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"580ea931dd086626b61c36f51bc8768586ee5fc20023f9a259750b05c02b5445"}},{"ruleId":"D2","level":"warning","message":{"text":"clipboard.copyToClipboard (cognitive 45): clipboard.copyToClipboard has cognitive complexity 45 (threshold 15). Drivers by points: if/else 21 (35 pts), boolean chains 6, error handling 1 (2 pts), loops 1 (2 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/utils/clipboard.ts"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"28ac416a75fc737c3beae01abe69e290e9d1419d962e9777a7d045e5356bc265"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskScheduler.#runtime (cognitive 45): TaskScheduler.#runtime has cognitive complexity 45 (threshold 15). Drivers by points: if/else 22 (28 pts), ternaries 6 (8 pts), boolean chains 4, loops 3, error handling 1 (2 pts) (nesting depth added 9). None of this is in the body itself: all 45 points belong to 18 function items inside it that branch (a function literal at line 2114, a function literal at line 2211, a function literal at line 2277, \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/durable/src/harness/scheduler.ts"},"region":{"startLine":2102}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf9c8e9e3901069332c3efdf85801f9b0b1e96245b1c05202e32ca9159c5ca04"}},{"ruleId":"D2","level":"warning","message":{"text":"submissions.admitSubmission (cognitive 45): submissions.admitSubmission has cognitive complexity 45 (threshold 15). Drivers by points: if/else 15 (23 pts), ternaries 7 (17 pts), boolean chains 5 (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/durable/src/harness/submissions.ts"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a6e84a41532d037ff3a70e51b860cdf69060886b81a86ffee8b806df4f7f0da"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultResourceLoader.reload (cognitive 44): DefaultResourceLoader.reload has cognitive complexity 44 (threshold 15). Drivers by points: if/else 13 (26 pts), loops 7, ternaries 6, boolean chains 5 (nesting depth added 13). Of this number, 40 points are the body\u0027s own statements and 4 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/coding-agent/src/core/resource-loader.ts"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"b34dcb9bd9ea84db60a493b12fbce70959fb5950d2697552721fe6f8c7f56452"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentSession._handleAgentEvent (cognitive 44): AgentSession._handleAgentEvent has cognitive complexity 44 (threshold 15). Drivers by points: if/else 19 (37 pts), boolean chains 6, ternaries 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/coding-agent/src/core/agent-session.ts"},"region":{"startLine":1103}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cd57ddf5d11b989ba45ce56f86e5ba61e055e404c2d3a80aaf9edfafd019826"}},{"ruleId":"D2","level":"warning","message":{"text":"NodeFileWatcher.#reconcileWatchers (cognitive 44): NodeFileWatcher.#reconcileWatchers has cognitive complexity 44 (threshold 15). Drivers by points: if/else 8 (20 pts), loops 6 (9 pts), boolean chains 8, ternaries 2 (5 pts), error handling 1 (2 pts) (nesting depth added 19). Of this number, 37 points are the body\u0027s own statements and 7 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/durable/src/env/node-watch.ts"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"e61bc9023301499300fdbd6bb91c7d9bf985afd42f608ca43a5215447ba9ae57"}},{"ruleId":"D2","level":"warning","message":{"text":"index.decoder.decode (cognitive 43): index.decoder.decode has cognitive complexity 43 (threshold 15). Drivers by points: if/else 9 (20 pts), ternaries 5 (15 pts), boolean chains 5, match/switch 1 (2 pts), loops 1 (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/chord/src/delta/index.ts"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"c10a4ac71b8f30364c08838a67d7d9961a8ce757719182704a416d6e43f799b5"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultPackageManager.resolvePackageSources (cognitive 43): DefaultPackageManager.resolvePackageSources has cognitive complexity 43 (threshold 15). Drivers by points: if/else 12 (31 pts), ternaries 3 (7 pts), boolean chains 2, error handling 1 (2 pts), loops 1 (nesting depth added 24). Of this number, 28 points are the body\u0027s own statements and 15 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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":1298}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4e08fe47909a95f47f8cd25ef88704aa188c44c46267ae8951dd7cdc15afa42"}},{"ruleId":"D2","level":"warning","message":{"text":"mcp-servers.validateOAuth (cognitive 43): mcp-servers.validateOAuth has cognitive complexity 43 (threshold 15). Drivers by points: if/else 16 (22 pts), boolean chains 17, ternaries 2 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/mcp-servers.ts"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"40f3bdba56c398493764681a3023aa15624b529adbc65d1b15ae5b736bfa5c1b"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskScheduler.#reserve (cognitive 43): TaskScheduler.#reserve has cognitive complexity 43 (threshold 15). Drivers by points: if/else 14 (27 pts), boolean chains 7, loops 5 (6 pts), ternaries 1 (2 pts), error handling 1 (nesting depth added 15). Most of this is not in the body itself: 6 of the 43 points are its own statements and the rest belongs to one function literal inside it that branches (line 1488). 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/durable/src/harness/scheduler.ts"},"region":{"startLine":1483}}}],"partialFingerprints":{"codehealthFindingId/v1":"c946f775ffcfee5390ca868622ea5e7c9baddea3ffbea8b6ec197ce4c00b6236"}},{"ruleId":"D2","level":"warning","message":{"text":"MemoryStorage.applyPreparedCommit (cognitive 43): MemoryStorage.applyPreparedCommit has cognitive complexity 43 (threshold 15). Drivers by points: if/else 13 (40 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/storage/memory.ts"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"acbe2f9319264e3e32388276bb61367b3f5f720d9c50759457008015a7a0f804"}},{"ruleId":"D2","level":"warning","message":{"text":"LatexParser.parseSequence (cognitive 43): LatexParser.parseSequence has cognitive complexity 43 (threshold 15). Drivers by points: if/else 17 (36 pts), boolean chains 3, ternaries 1 (3 pts), loops 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/tui/src/latex.ts"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6507a3d302120030f9eb144752876b28aa9452b01881fb27297157eb8cb7332"}},{"ruleId":"D2","level":"warning","message":{"text":"edit-tool-stats.printHumanReport (cognitive 43): edit-tool-stats.printHumanReport has cognitive complexity 43 (threshold 15). Drivers by points: ternaries 11 (17 pts), if/else 10 (15 pts), loops 8 (9 pts), boolean chains 2 (nesting depth added 12). Of this number, 40 points are the body\u0027s own statements and 3 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/edit-tool-stats.mjs"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"831b72d943501ae772f757911be95986235b7b6da740f8d75c86a8543d46c1cb"}},{"ruleId":"D2","level":"warning","message":{"text":"profile-coding-agent-node.main (cognitive 43): profile-coding-agent-node.main has cognitive complexity 43 (threshold 15). Drivers by points: if/else 13 (15 pts), ternaries 8 (13 pts), boolean chains 8, loops 5 (7 pts) (nesting depth added 9). Of this number, 42 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":"scripts/profile-coding-agent-node.mjs"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff1c8e2c74bbcbc2c9d6388a61e2bc8a36191f28fb33a7adcc04ce21cdeec7a0"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentSession._checkCompaction (cognitive 42): AgentSession._checkCompaction has cognitive complexity 42 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 17, ternaries 4 (6 pts) (nesting depth added 8). Of this number, 41 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/coding-agent/src/core/agent-session.ts"},"region":{"startLine":3011}}}],"partialFingerprints":{"codehealthFindingId/v1":"5589452b43df1a0d7bc0b41efd6e1e74016694ee4341fc3b666e512ed7d5cd34"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.list (cognitive 42): cli.list has cognitive complexity 42 (threshold 15). Drivers by points: ternaries 9 (18 pts), if/else 12 (17 pts), boolean chains 4, loops 2, error handling 1 (nesting depth added 14). Of this number, 31 points are the body\u0027s own statements and 11 belong to 3 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/extensions/mcp/cli.ts"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"d79b3bc6f6142e81baedbe08ae7d03a5291123ae9d4bcf9fcfc497b345a585f8"}},{"ruleId":"D2","level":"warning","message":{"text":"TuiAltScreen.handleMouseEvent (cognitive 42): TuiAltScreen.handleMouseEvent has cognitive complexity 42 (threshold 15). Drivers by points: if/else 17 (31 pts), ternaries 3 (6 pts), boolean chains 5 (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/tui/src/tui-alt-screen.ts"},"region":{"startLine":913}}}],"partialFingerprints":{"codehealthFindingId/v1":"670665b5d88ac87672e1bc11fc827ce5df12b1d0ef193bff4ce8c6bcca90f8ab"}},{"ruleId":"D2","level":"warning","message":{"text":"BlockRaster.visibleFaces (cognitive 41): BlockRaster.visibleFaces has cognitive complexity 41 (threshold 15). Drivers by points: loops 5 (15 pts), if/else 3 (12 pts), ternaries 3 (12 pts), boolean chains 2 (nesting depth added 28). Of this number, 40 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/coding-agent/src/modes/interactive/components/easter-egg-3d.ts"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"4835dfd30456d9e5200696c4fef7ade9610b6ea6c0f622b429b035fea87268da"}},{"ruleId":"D2","level":"warning","message":{"text":"harness.runPiCodingAgent (cognitive 41): harness.runPiCodingAgent has cognitive complexity 41 (threshold 15). Drivers by points: if/else 21 (25 pts), error handling 4 (6 pts), boolean chains 5, ternaries 3 (4 pts), loops 1 (nesting depth added 7). Of this number, 40 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/evals/src/harness.ts"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c7c51df0208c0feefd8ec574faa7b9bbf50974ecbd77723ffd103a84d711687"}},{"ruleId":"D2","level":"warning","message":{"text":"CombinedAutocompleteProvider.getSuggestions (cognitive 41): CombinedAutocompleteProvider.getSuggestions has cognitive complexity 41 (threshold 15). Drivers by points: ternaries 6 (18 pts), if/else 9 (15 pts), boolean chains 8 (nesting depth added 18). Of this number, 19 points are the body\u0027s own statements and 22 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/tui/src/autocomplete.ts"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"38972cb37ac2a20db9144b386c333a4916c1212fbb6df042b159591f46640a95"}},{"ruleId":"D2","level":"warning","message":{"text":"Markdown.renderInlineTokens (cognitive 41): Markdown.renderInlineTokens has cognitive complexity 41 (threshold 15). Drivers by points: if/else 8 (19 pts), boolean chains 11, ternaries 2 (7 pts), loops 2, match/switch 1 (2 pts) (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/tui/src/components/markdown.ts"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc30e5d3653510b92bbbd2464053f20d39803803ffd1e0428733314ed900bbb3"}},{"ruleId":"D2","level":"warning","message":{"text":"schema.objectFits (cognitive 40): schema.objectFits has cognitive complexity 40 (threshold 15). Drivers by points: if/else 12 (26 pts), loops 5 (9 pts), boolean chains 5 (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/chord/src/schema.ts"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bc2acd8b47136d704d9b9bbe34340fe414f3bb9b519a6cdd11291b6f51a3806"}},{"ruleId":"D2","level":"warning","message":{"text":"contract.coverage (cognitive 40): contract.coverage has cognitive complexity 40 (threshold 15). Drivers by points: if/else 12 (29 pts), boolean chains 8, loops 2 (3 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/src/contract.ts"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bc9758637e897b9bd129dc6dbac884755bd223298830696daca976263a7c836"}},{"ruleId":"D2","level":"warning","message":{"text":"read.createReadToolDefinition.execute (cognitive 40): read.createReadToolDefinition.execute has cognitive complexity 40 (threshold 15). Drivers by points: if/else 21 (34 pts), ternaries 2 (3 pts), boolean chains 2, error handling 1 (nesting depth added 14). None of this is in the body itself: all 40 points belong to 2 function literals inside it that branch (lines 122, 110). 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/coding-agent/src/core/tools/read.ts"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"11bac42afff726b26b54748f7cca8f420c59a47826085b8b945c15779b45e5ee"}},{"ruleId":"D2","level":"warning","message":{"text":"FooterComponent.render (cognitive 40): FooterComponent.render has cognitive complexity 40 (threshold 15). Drivers by points: if/else 22 (24 pts), boolean chains 8, ternaries 6 (8 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/components/footer.ts"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"35d88d0ef6be1a25943e2298c937149edba786f776287843898daf01125182e4"}},{"ruleId":"D2","level":"warning","message":{"text":"ScopedModelsSelectorComponent.handleInput (cognitive 40): ScopedModelsSelectorComponent.handleInput has cognitive complexity 40 (threshold 15). Drivers by points: if/else 19 (28 pts), ternaries 4 (9 pts), boolean chains 3 (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/coding-agent/src/modes/interactive/components/scoped-models-selector.ts"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce834b6295aa39ca503cd16960c9dabae537b00c7cf7f1855ba011e081256f64"}},{"ruleId":"D2","level":"warning","message":{"text":"Transaction.adopt (cognitive 40): Transaction.adopt has cognitive complexity 40 (threshold 15). Drivers by points: if/else 14 (34 pts), ternaries 2 (4 pts), boolean chains 1, loops 1 (nesting depth added 22). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/session/transaction.ts"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"b92c9f5525f12256e306b8a87b9bfd2bff77d9971674d8184afb3c16a5b5626b"}},{"ruleId":"D2","level":"warning","message":{"text":"events.messageChanges (cognitive 40): events.messageChanges has cognitive complexity 40 (threshold 15). Drivers by points: if/else 10 (20 pts), ternaries 3 (12 pts), boolean chains 4, loops 2 (4 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/harness/events.ts"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"18863e5b209f7a630869d93e5d9932c98b7b83cad1c45b6d844a5c29bb8625e4"}},{"ruleId":"D2","level":"warning","message":{"text":"generate-models.detectOpenAICompletionsCompat (cognitive 39): generate-models.detectOpenAICompletionsCompat has cognitive complexity 39 (threshold 15). Drivers by points: boolean chains 21, ternaries 8 (18 pts) (nesting depth added 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/ai/scripts/generate-models.ts"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b5c00161620b5421d8e07c25f2815e3f7e4fa1b60df2c35dc192e720b311353"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentSession.navigateTree (cognitive 39): AgentSession.navigateTree has cognitive complexity 39 (threshold 15). Drivers by points: if/else 23 (31 pts), boolean chains 7, ternaries 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/coding-agent/src/core/agent-session.ts"},"region":{"startLine":4024}}}],"partialFingerprints":{"codehealthFindingId/v1":"433b5f4ab2b283adbb21e9a5bca8bd86d3fee8c7879a3e313d3f1dafa7f00e97"}},{"ruleId":"D2","level":"warning","message":{"text":"utils.extractSegments (cognitive 39): utils.extractSegments has cognitive complexity 39 (threshold 15). Drivers by points: if/else 10 (28 pts), boolean chains 6, loops 3 (5 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/tui/src/utils.ts"},"region":{"startLine":1326}}}],"partialFingerprints":{"codehealthFindingId/v1":"904213c653936fc869c1d56e3a0046420413e9e5e7b7ba2b31819adc11de5fa1"}},{"ruleId":"D2","level":"warning","message":{"text":"constrained-sampling.makeJsonSchemaNodeStrict (cognitive 38): constrained-sampling.makeJsonSchemaNodeStrict has cognitive complexity 38 (threshold 15). Drivers by points: if/else 16 (24 pts), boolean chains 7, loops 4 (6 pts), ternaries 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/src/api/constrained-sampling.ts"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"7503ef2f6b1a5d05086558158bc30f4844652efee2a78fb21643fc264ecb8fbb"}},{"ruleId":"D2","level":"warning","message":{"text":"openai-completions.detectCompat (cognitive 38): openai-completions.detectCompat has cognitive complexity 38 (threshold 15). Drivers by points: boolean chains 20, ternaries 8 (18 pts) (nesting depth added 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/ai/src/api/openai-completions.ts"},"region":{"startLine":1587}}}],"partialFingerprints":{"codehealthFindingId/v1":"be80fb5e0d1f4e4a362697c111b54f51dc2685c5b9c5f6f127a2bc5fd3651c65"}},{"ruleId":"D2","level":"warning","message":{"text":"InteractiveMode.run (cognitive 38): InteractiveMode.run has cognitive complexity 38 (threshold 15). Drivers by points: if/else 14 (15 pts), ternaries 3 (10 pts), error handling 3 (7 pts), loops 3 (4 pts), boolean chains 2 (nesting depth added 13). Of this number, 33 points are the body\u0027s own statements and 5 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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":1148}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fe9ca4897d18adca8c7a4c6ad5259e6b3c7e56fe4befc13f52abb0ca5244a11"}},{"ruleId":"D2","level":"warning","message":{"text":"layout.paintBox (cognitive 38): layout.paintBox has cognitive complexity 38 (threshold 15). Drivers by points: if/else 11 (29 pts), loops 3 (5 pts), boolean chains 4 (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/tui/src/layout.ts"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a53c52735a838c6916c719ffc5e2dd0a79eca2ffa981c61776c1e483fe5f25b"}},{"ruleId":"D2","level":"warning","message":{"text":"ExtensionRunner.emitToolResult (cognitive 37): ExtensionRunner.emitToolResult has cognitive complexity 37 (threshold 15). Drivers by points: if/else 8 (23 pts), ternaries 2 (8 pts), error handling 1 (3 pts), loops 2 (3 pts) (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into 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/coding-agent/src/core/extensions/runner.ts"},"region":{"startLine":1190}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c90e0c609620bd484b88727ac5e1dabc2bafab3e51b232e3740d3e9a9d85544"}},{"ruleId":"D2","level":"warning","message":{"text":"BlockRaster.renderHalo (cognitive 37): BlockRaster.renderHalo has cognitive complexity 37 (threshold 15). Drivers by points: if/else 7 (22 pts), loops 6 (12 pts), boolean chains 3 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/components/easter-egg-3d.ts"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"b006d61a9047f6e5dc71016c2f8c6892005f54828271b9b7b9911182a857ccb0"}},{"ruleId":"D2","level":"warning","message":{"text":"print-mode.runPrintMode (cognitive 37): print-mode.runPrintMode has cognitive complexity 37 (threshold 15). Drivers by points: if/else 11 (22 pts), loops 4 (7 pts), ternaries 3 (5 pts), boolean chains 2, error handling 1 (nesting depth added 16). Of this number, 31 points are the body\u0027s own statements and 6 belong to 5 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/coding-agent/src/modes/print-mode.ts"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4e104f91c0082f73a674e9917c08912b1a2c3cfe1295f052129af1792d7add2"}},{"ruleId":"D2","level":"warning","message":{"text":"main.buildSessionOptions (cognitive 37): main.buildSessionOptions has cognitive complexity 37 (threshold 15). Drivers by points: if/else 17 (27 pts), boolean chains 6, ternaries 2 (4 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/main.ts"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"d87b1e6f63ed45f1e58832d3483d26ae055f0a60f2751923e1efe57a6314e441"}},{"ruleId":"D2","level":"warning","message":{"text":"flow.runFlow (cognitive 37): flow.runFlow has cognitive complexity 37 (threshold 15). Drivers by points: if/else 12 (22 pts), boolean chains 7, ternaries 5 (6 pts), error handling 1 (2 pts) (nesting depth added 12). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mcp/src/oauth/flow.ts"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"839b44b8a6c0f23103a4ee87ca1999f6dc147b182530885cdd5da7b321216174"}},{"ruleId":"D2","level":"warning","message":{"text":"AnsiCodeTracker.process (cognitive 37): AnsiCodeTracker.process has cognitive complexity 37 (threshold 15). Drivers by points: if/else 13 (24 pts), boolean chains 10, match/switch 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/tui/src/utils.ts"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"b331da800770b89d9dc77ec2914ba0a4b4da0808447b503ea773b55927e0a60c"}},{"ruleId":"D2","level":"warning","message":{"text":"Input.handleInput (cognitive 37): Input.handleInput has cognitive complexity 37 (threshold 15). Drivers by points: if/else 27 (34 pts), boolean chains 3 (nesting depth added 7). 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, 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/tui/src/components/input.ts"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"f166e54d71c07a12c3fb559e14ee88e4c4bcae3c462c7e52e921256f2e4fb6b5"}},{"ruleId":"D2","level":"warning","message":{"text":"Markdown.renderList (cognitive 37): Markdown.renderList has cognitive complexity 37 (threshold 15). Drivers by points: ternaries 7 (19 pts), loops 4 (10 pts), if/else 3 (7 pts), boolean chains 1 (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/tui/src/components/markdown.ts"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"a83125e4ac8d7604e9050556c3fe5cbf4410db93418e9d5f2e65ccfbafb66082"}},{"ruleId":"D2","level":"warning","message":{"text":"TuiAltScreen.handleSelectionMouseEvent (cognitive 37): TuiAltScreen.handleSelectionMouseEvent has cognitive complexity 37 (threshold 15). Drivers by points: if/else 11 (22 pts), boolean chains 6, ternaries 4 (6 pts), error handling 1 (3 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/tui/src/tui-alt-screen.ts"},"region":{"startLine":1333}}}],"partialFingerprints":{"codehealthFindingId/v1":"a47ac60f05ba5badc9ec65aafedc50ef4ab1573e7d5d1e3dba768fc014acb958"}},{"ruleId":"D2","level":"warning","message":{"text":"publish-model-catalog.validateBundle (cognitive 37): publish-model-catalog.validateBundle has cognitive complexity 37 (threshold 15). Drivers by points: if/else 18 (31 pts), loops 3 (4 pts), boolean chains 2 (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":"scripts/publish-model-catalog.mjs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"c12ac2499834d4071e2c7b302034cf40e36d21e1a7d06f9bddf7dadc6be43898"}},{"ruleId":"D2","level":"warning","message":{"text":"provider-composer.composeModelProvider (cognitive 36): provider-composer.composeModelProvider has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (15 pts), ternaries 10 (12 pts), boolean chains 9 (nesting depth added 5). Most of this is not in the body itself: 14 of the 36 points are its own statements and the rest belongs to 8 function items inside it that branch (a function literal at line 594, a function literal at line 620, currentExtension, \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/coding-agent/src/core/provider-composer.ts"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"39b49d4802a754fb997b393fac6d228547fbffd1f6b932f5dad7dbb08de36610"}},{"ruleId":"D2","level":"warning","message":{"text":"skills.loadSkillsFromDirInternal (cognitive 36): skills.loadSkillsFromDirInternal has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (23 pts), error handling 3 (7 pts), boolean chains 2, loops 2, ternaries 1 (2 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/skills.ts"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd28222a3d17d2f7bf391148769b2f061588712e951d9c6cb6f1ec08be0ec14a"}},{"ruleId":"D2","level":"warning","message":{"text":"diff.renderDiff (cognitive 36): diff.renderDiff has cognitive complexity 36 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 5 (15 pts), boolean chains 3 (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/coding-agent/src/modes/interactive/components/diff.ts"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3519aa5b4f48f421eb7ccba7bd7046aabad89deb2b74fc1cc54d5e7e7de68eb"}},{"ruleId":"D2","level":"warning","message":{"text":"execute.checkClassifierContext (cognitive 36): execute.checkClassifierContext has cognitive complexity 36 (threshold 15). Drivers by points: if/else 15 (26 pts), boolean chains 9, loops 1 (nesting depth added 11). Of this number, 32 points are the body\u0027s own statements and 4 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/coding-agent/src/extensions/codemode/execute.ts"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c8f36b4c936bcce662d91a50fc54f9d967b2e61441ae708328f1cd3367fd03e"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.runMcpCommand (cognitive 36): cli.runMcpCommand has cognitive complexity 36 (threshold 15). Drivers by points: if/else 10 (18 pts), ternaries 5 (11 pts), boolean chains 6, match/switch 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/coding-agent/src/extensions/mcp/cli.ts"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7b61929cc2aeb83d306d3745927ba37041011cbc56480e4c421bdd7a98af67a"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.add (cognitive 36): cli.add has cognitive complexity 36 (threshold 15). Drivers by points: ternaries 11 (16 pts), if/else 12 (15 pts), boolean chains 4, error handling 1 (nesting depth added 8). Of this number, 34 points are the body\u0027s own statements and 2 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/extensions/mcp/cli.ts"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"542b47df2db09ca1309c25f6e0f96e73ebbd9da7a03371b1c3333de0cf9fc03f"}},{"ruleId":"D2","level":"warning","message":{"text":"IndexedDbStorage.applyDocumentActions (cognitive 36): IndexedDbStorage.applyDocumentActions has cognitive complexity 36 (threshold 15). Drivers by points: if/else 10 (24 pts), ternaries 2 (6 pts), error handling 1 (3 pts), boolean chains 2, loops 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/storage/indexeddb.ts"},"region":{"startLine":1127}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5d36248c96e98633dbf46e68d131be5d8736131acc021c32ab82dfc1ee8a212"}},{"ruleId":"D2","level":"warning","message":{"text":"SqliteStorage.applyDocumentActions (cognitive 36): SqliteStorage.applyDocumentActions has cognitive complexity 36 (threshold 15). Drivers by points: if/else 10 (24 pts), ternaries 2 (6 pts), error handling 1 (3 pts), boolean chains 2, loops 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/storage/sqlite/storage.ts"},"region":{"startLine":866}}}],"partialFingerprints":{"codehealthFindingId/v1":"996e8a0ab436a0f04e32851e00fb9c231bd80e689f4f5f4ea6041a39f855473a"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteExecutionEnv.#readFile (cognitive 36): RemoteExecutionEnv.#readFile has cognitive complexity 36 (threshold 15). Drivers by points: if/else 13 (24 pts), ternaries 3 (6 pts), loops 3 (5 pts), boolean chains 1 (nesting depth added 16). None of this is in the body itself: all 36 points belong to one function literal inside it that branches (line 454). 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/env/src/remote-env.ts"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"337f7fe8f0cce979295032d18381a8ed24f1f00ba2207d1e06b98b4a24c83508"}},{"ruleId":"D2","level":"warning","message":{"text":"alt-screen-search.buildSearchCorpus (cognitive 36): alt-screen-search.buildSearchCorpus has cognitive complexity 36 (threshold 15). Drivers by points: if/else 8 (24 pts), loops 4 (11 pts), boolean chains 1 (nesting depth added 23). Of this number, 35 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/tui/src/alt-screen-search.ts"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf7f54bcc174f83b9bfdfdf7736f47fba94d90d84cec66cf0892d4b40c34740f"}},{"ruleId":"D2","level":"warning","message":{"text":"model-data.validateModelValue (cognitive 35): model-data.validateModelValue has cognitive complexity 35 (threshold 15). Drivers by points: if/else 20 (27 pts), boolean chains 6, loops 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/scripts/model-data.ts"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c8b6ce56df0ee0571413fa5e2bf6fdbf6e954188c7e5c5a250f89df4272d086"}},{"ruleId":"D2","level":"warning","message":{"text":"ExtensionRunner.bindCore (cognitive 35): ExtensionRunner.bindCore has cognitive complexity 35 (threshold 15). Drivers by points: ternaries 6 (18 pts), if/else 6 (8 pts), error handling 3 (6 pts), loops 3 (nesting depth added 17). Of this number, 33 points are the body\u0027s own statements and 2 belong to 5 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/coding-agent/src/core/extensions/runner.ts"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a3da822267a792dc437b30557a32a28910c04fd9046784e52c095256911a569"}},{"ruleId":"D2","level":"warning","message":{"text":"ExtensionRunner.emitContext (cognitive 35): ExtensionRunner.emitContext has cognitive complexity 35 (threshold 15). Drivers by points: ternaries 4 (16 pts), error handling 2 (6 pts), if/else 2 (6 pts), loops 4 (6 pts), boolean chains 1 (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/coding-agent/src/core/extensions/runner.ts"},"region":{"startLine":1305}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e90a7580af6cb23821b132ee28ebff9be3e1d74726e47336bfb2ed677ca8b8e"}},{"ruleId":"D2","level":"warning","message":{"text":"execute.executeCodemode (cognitive 35): execute.executeCodemode has cognitive complexity 35 (threshold 15). Drivers by points: if/else 12 (15 pts), ternaries 9 (15 pts), boolean chains 4, loops 1 (nesting depth added 9). Of this number, 31 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/coding-agent/src/extensions/codemode/execute.ts"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"84a322f641c40c35df9f8dcda19b55615afa222674582b8617d6c858377441fa"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskScheduler.#reconcile (cognitive 35): TaskScheduler.#reconcile has cognitive complexity 35 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 6 (8 pts), boolean chains 7, ternaries 1 (4 pts), error handling 1 (nesting depth added 11). Most of this is not in the body itself: 3 of the 35 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 802, 808). 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/durable/src/harness/scheduler.ts"},"region":{"startLine":793}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c84031b232581a2c7dda9710af8d55709331a55519a32e958a4aa7b6ccfdbed"}},{"ruleId":"D2","level":"warning","message":{"text":"MemoryStorage.applyDocumentActions (cognitive 35): MemoryStorage.applyDocumentActions has cognitive complexity 35 (threshold 15). Drivers by points: if/else 11 (25 pts), boolean chains 6, ternaries 1 (3 pts), loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/storage/memory.ts"},"region":{"startLine":819}}}],"partialFingerprints":{"codehealthFindingId/v1":"16ab2a90e0b7c463f90b512bd8454314e9bece1786e25f7f1f68f468cdd2f690"}},{"ruleId":"D2","level":"warning","message":{"text":"utils.truncateFragmentToWidth (cognitive 35): utils.truncateFragmentToWidth has cognitive complexity 35 (threshold 15). Drivers by points: if/else 11 (25 pts), loops 4 (7 pts), boolean chains 3 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/tui/src/utils.ts"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"e75a0fcfc90f2b4971b501e63ab6e2bf5463e837f0f68ed0667bc213f9b33d0e"}},{"ruleId":"D2","level":"warning","message":{"text":"TuiBase.showOverlay (cognitive 35): TuiBase.showOverlay has cognitive complexity 35 (threshold 15). Drivers by points: if/else 16 (21 pts), boolean chains 9, ternaries 3 (5 pts) (nesting depth added 7). Most of this is not in the body itself: 3 of the 35 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 812, 785, 770, \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/tui/src/tui.ts"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a1f97cde936c35a77e19e4c3ec934b98f86ca1bf519b7d93124d96e2147ff59"}},{"ruleId":"D2","level":"warning","message":{"text":"session-manager.buildSessionInfo (cognitive 34): session-manager.buildSessionInfo has cognitive complexity 34 (threshold 15). Drivers by points: if/else 11 (22 pts), boolean chains 5, ternaries 4 (5 pts), error handling 1, 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/coding-agent/src/core/session-manager.ts"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1e876fa656134a954fd29aea74ca6005be48162ad27550b119613e65d1e0ad8"}},{"ruleId":"D2","level":"warning","message":{"text":"ansi-to-html.applySgrCode (cognitive 34): ansi-to-html.applySgrCode has cognitive complexity 34 (threshold 15). Drivers by points: if/else 20 (25 pts), boolean chains 8, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/export-html/ansi-to-html.ts"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"60e993ba21f11b28b94686c4146be4e0e54a8e56c34148037f3f5a93c084ab8c"}},{"ruleId":"D2","level":"warning","message":{"text":"easter-egg-3d.shuffleSteps (cognitive 34): easter-egg-3d.shuffleSteps has cognitive complexity 34 (threshold 15). Drivers by points: if/else 4 (17 pts), loops 5 (12 pts), ternaries 1 (3 pts), boolean chains 2 (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/coding-agent/src/modes/interactive/components/easter-egg-3d.ts"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1f785e5cb2d10171777aa2862abb876c1b83312266d66ba487f574532fed962"}},{"ruleId":"D2","level":"warning","message":{"text":"rpc-mode.runRpcMode::handleCommand (cognitive 34): rpc-mode.runRpcMode::handleCommand has cognitive complexity 34 (threshold 15). Drivers by points: if/else 12 (25 pts), loops 3 (6 pts), ternaries 1 (2 pts), 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/coding-agent/src/modes/rpc/rpc-mode.ts"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d7a2fb1e0e31d83b7002590d31cddc5d8369350b4125e043722ae4db4ab00d4"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskScheduler.wake (cognitive 34): TaskScheduler.wake has cognitive complexity 34 (threshold 15). Drivers by points: if/else 10 (21 pts), boolean chains 7, error handling 1 (4 pts), loops 1, ternaries 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/durable/src/harness/scheduler.ts"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e65ca66f59b014a27210a07dc9f28df9cae9ece5f4445cc6a223f1fdbf85e04"}},{"ruleId":"D2","level":"warning","message":{"text":"view.advance (cognitive 34): view.advance has cognitive complexity 34 (threshold 15). Drivers by points: if/else 10 (20 pts), loops 4 (7 pts), boolean chains 5, ternaries 1 (2 pts) (nesting depth added 14). Of this number, 33 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/durable/src/harness/view.ts"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"6990f6d4f14798e04b3e5863da43508a321be4edd643b8ac29c572cff1e4b6f1"}},{"ruleId":"D2","level":"warning","message":{"text":"utils.splitIntoTokensWithAnsi (cognitive 34): utils.splitIntoTokensWithAnsi has cognitive complexity 34 (threshold 15). Drivers by points: if/else 11 (20 pts), ternaries 2 (6 pts), loops 3 (5 pts), boolean chains 3 (nesting depth added 15). Of this number, 33 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/tui/src/utils.ts"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdf39d7401c599ba15aff4668158f4781ae8d0548c3d9af6fd5e767106dfaa1b"}},{"ruleId":"D2","level":"warning","message":{"text":"TuiBase.handleTerminalInput (cognitive 34): TuiBase.handleTerminalInput has cognitive complexity 34 (threshold 15). Drivers by points: if/else 18 (28 pts), boolean chains 4, 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/tui/src/tui.ts"},"region":{"startLine":1081}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2b98f1d88e72a8234f1a172c49392d16cbd5ff07dcd35c9d9ce97d2accf3c07"}},{"ruleId":"D2","level":"warning","message":{"text":"Image.render (cognitive 34): Image.render has cognitive complexity 34 (threshold 15). Drivers by points: if/else 11 (18 pts), loops 2 (8 pts), boolean chains 4, ternaries 1 (4 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/tui/src/components/image.ts"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd157aac1f2e9fc74b3bd22f17f2bb16c64ee5857d056e7f2abadfb8f0976f7a"}},{"ruleId":"D2","level":"warning","message":{"text":"session-transcripts.main (cognitive 34): session-transcripts.main has cognitive complexity 34 (threshold 15). Drivers by points: if/else 17 (23 pts), boolean chains 6, loops 3, ternaries 2 (nesting depth added 6). Of this number, 33 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/session-transcripts.ts"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"028bb739abec88ef0b9acc0a5fd739c5d2e370d338b0a47f53cb2e53b1b71b1e"}},{"ruleId":"D2","level":"warning","message":{"text":"tracker.emitArrayOperations (cognitive 33): tracker.emitArrayOperations has cognitive complexity 33 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 6 (14 pts), boolean chains 2 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/src/delta/tracker.ts"},"region":{"startLine":2031}}}],"partialFingerprints":{"codehealthFindingId/v1":"447e29748683bf0d8ba0ef3f7f5f54af2a7919e0ea76e6f14d5c744f292b56c7"}},{"ruleId":"D2","level":"warning","message":{"text":"package-manager.collectSkillEntries (cognitive 33): package-manager.collectSkillEntries has cognitive complexity 33 (threshold 15). Drivers by points: if/else 10 (19 pts), error handling 3 (7 pts), boolean chains 5, loops 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/package-manager.ts"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"06e853aa9d03f02fd59b6df7efad6881bebbc5955f71d1cae2c30ba919f71f80"}},{"ruleId":"D2","level":"warning","message":{"text":"models.checkClassifierContext (cognitive 33): models.checkClassifierContext has cognitive complexity 33 (threshold 15). Drivers by points: if/else 15 (26 pts), boolean chains 6, loops 1 (nesting depth added 11). Of this number, 29 points are the body\u0027s own statements and 4 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/durable/src/codemode/models.ts"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"2911f98cd8b01689bd619afd568fe82f757af2ae300b33b0c72473f61b96368c"}},{"ruleId":"D2","level":"warning","message":{"text":"SqliteStorage.checkDocumentActions (cognitive 33): SqliteStorage.checkDocumentActions has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (24 pts), boolean chains 5, loops 2, ternaries 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/durable/src/storage/sqlite/storage.ts"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"6112a9dd4b3a035deddbb67c07a89daa9516a639a0b4ee35ab671c0448465d00"}},{"ruleId":"D2","level":"warning","message":{"text":"StdinBuffer.process (cognitive 33): StdinBuffer.process has cognitive complexity 33 (threshold 15). Drivers by points: if/else 15 (24 pts), loops 2 (4 pts), boolean chains 3, ternaries 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/tui/src/stdin-buffer.ts"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"3445df08fad899dca16b43d770f5259fc07b6e0955ba03de3e76308d57a93266"}},{"ruleId":"D2","level":"warning","message":{"text":"layout.layoutComponent (cognitive 33): layout.layoutComponent has cognitive complexity 33 (threshold 15). Drivers by points: if/else 10 (16 pts), ternaries 7 (12 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 12). Of this number, 30 points are the body\u0027s own statements and 3 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/tui/src/layout.ts"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4edd54503c697a500466cb05f72d85dc790ca3d85da9d8e773c73e7a46997ef"}},{"ruleId":"D2","level":"warning","message":{"text":"TuiAltScreen.refreshSearch (cognitive 33): TuiAltScreen.refreshSearch has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (17 pts), ternaries 4 (9 pts), boolean chains 4, loops 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/tui/src/tui-alt-screen.ts"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"39647c5880b27b57c6938ff29321f6c669c60efac6547f951b55663b1712a1aa"}},{"ruleId":"D2","level":"warning","message":{"text":"openai-codex-responses.acquireWebSocket (cognitive 32): openai-codex-responses.acquireWebSocket has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (29 pts), boolean chains 3 (nesting depth added 16). Of this number, 20 points are the body\u0027s own statements and 12 belong to one function literal inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/src/api/openai-codex-responses.ts"},"region":{"startLine":1170}}}],"partialFingerprints":{"codehealthFindingId/v1":"639b6b60253304ede60c606cdcf31d0473e79ae54c01341db9ef22895aa1b661"}},{"ruleId":"D2","level":"warning","message":{"text":"declarations.constraintTags (cognitive 32): declarations.constraintTags has cognitive complexity 32 (threshold 15). Drivers by points: if/else 8 (13 pts), ternaries 7 (9 pts), boolean chains 7, loops 2 (3 pts) (nesting depth added 8). Of this number, 28 points are the body\u0027s own statements and 4 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/codemode/src/declarations.ts"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"af30c54b30088ac11cafaf3793fe840a78187ee2569ef81ee593a2cc61efec46"}},{"ruleId":"D2","level":"warning","message":{"text":"branch-summarization.prepareBranchEntries (cognitive 32): branch-summarization.prepareBranchEntries has cognitive complexity 32 (threshold 15). Drivers by points: if/else 7 (19 pts), loops 4 (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/coding-agent/src/core/compaction/branch-summarization.ts"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"573d41726467e47e6766cd6229c05add2c171a4397c2900d3d0c5325104365c8"}},{"ruleId":"D2","level":"warning","message":{"text":"auth-command.parseAuthCommand (cognitive 32): auth-command.parseAuthCommand has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (20 pts), ternaries 5 (10 pts), boolean chains 1, 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/coding-agent/src/cli/auth-command.ts"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9e6ef77f2e7c49e3c17c449174f741a9f29568bc2fbabcc5612c8b1204e833f"}},{"ruleId":"D2","level":"warning","message":{"text":"ExtensionRunner.emitBoundary (cognitive 32): ExtensionRunner.emitBoundary has cognitive complexity 32 (threshold 15). Drivers by points: ternaries 5 (17 pts), error handling 2 (6 pts), if/else 2 (6 pts), loops 2 (3 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/runner.ts"},"region":{"startLine":1036}}}],"partialFingerprints":{"codehealthFindingId/v1":"764b63cd64cbe4da2d338b8977e0267feaa292e49ed497544f1a10aed50e11ca"}},{"ruleId":"D2","level":"warning","message":{"text":"index.preRenderCustomTools (cognitive 32): index.preRenderCustomTools has cognitive complexity 32 (threshold 15). Drivers by points: if/else 7 (22 pts), boolean chains 6, loops 2 (4 pts) (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/coding-agent/src/core/export-html/index.ts"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"db0c24dc6342dfd90b40a3a1e0c187d84776dce3b4be9507e78a160e91b3c2ba"}},{"ruleId":"D2","level":"warning","message":{"text":"InteractiveMode.setCustomEditorComponent (cognitive 32): InteractiveMode.setCustomEditorComponent has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (27 pts), loops 1 (3 pts), boolean chains 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":2836}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aec55e65600ac63b4a1c88eba242a85b2a6517c51abc6ab7bab431947fc14c4"}},{"ruleId":"D2","level":"warning","message":{"text":"profile-coding-agent-node.parseArgs (cognitive 32): profile-coding-agent-node.parseArgs has cognitive complexity 32 (threshold 15). Drivers by points: if/else 14 (28 pts), boolean chains 3, 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":"scripts/profile-coding-agent-node.mjs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"c71bcd729b220cf26df923d4adceda750c0ae7e3df92cea2caa7a7f724a1ddf7"}},{"ruleId":"D2","level":"warning","message":{"text":"bedrock-converse-stream.buildAdditionalModelRequestFields (cognitive 31): bedrock-converse-stream.buildAdditionalModelRequestFields has cognitive complexity 31 (threshold 15). Drivers by points: ternaries 8 (21 pts), if/else 5 (6 pts), boolean chains 4 (nesting depth added 14). Of this number, 24 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/ai/src/api/bedrock-converse-stream.ts"},"region":{"startLine":1268}}}],"partialFingerprints":{"codehealthFindingId/v1":"a82aa58b6937f81bbb290d984ceea027f9fa2a0c1463e69a9e49123cf65a546d"}},{"ruleId":"D2","level":"warning","message":{"text":"schema.fits (cognitive 31): schema.fits has cognitive complexity 31 (threshold 15). Drivers by points: if/else 15 (16 pts), boolean chains 9, ternaries 2 (5 pts), loops 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/src/schema.ts"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"6002dc60674c28adb84c7bf2820153bb5f7e8206af47d8ee5d349e37b754ae49"}},{"ruleId":"D2","level":"warning","message":{"text":"Reload.#publish (cognitive 31): Reload.#publish has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (19 pts), loops 10, 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/chord/src/reload.ts"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e15b91885380efa74bfe512a89d9e70984e380b21526c29ba75d7a379b1d3d9"}},{"ruleId":"D2","level":"warning","message":{"text":"skills.loadSkills (cognitive 31): skills.loadSkills has cognitive complexity 31 (threshold 15). Drivers by points: if/else 14 (22 pts), ternaries 2 (4 pts), error handling 1 (2 pts), loops 2, boolean chains 1 (nesting depth added 11). Of this number, 18 points are the body\u0027s own statements and 13 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/coding-agent/src/core/skills.ts"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1beccce09f26396ab6a2a2335d26fc6dc0cbb5fe4e4fa462726b4e7fd9b1eff"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionList.render (cognitive 31): SessionList.render has cognitive complexity 31 (threshold 15). Drivers by points: if/else 14 (22 pts), ternaries 3 (6 pts), boolean chains 2, 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/coding-agent/src/modes/interactive/components/session-selector.ts"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f0f80a03cd047c1ea538a83a60d9b930c4f449b98b19a70eba7a2ccb7699572"}},{"ruleId":"D2","level":"warning","message":{"text":"config.readConfigFile (cognitive 31): config.readConfigFile has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (22 pts), boolean chains 5, ternaries 1 (2 pts), error handling 1, loops 1 (nesting depth added 10). Of this number, 30 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/extensions/mcp/config.ts"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1234481bb23903a9df2cc6e156316029ac3fea13898d511a9565765b73ea4fe"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsSelectorComponent.constructor (cognitive 31): SettingsSelectorComponent.constructor has cognitive complexity 31 (threshold 15). Drivers by points: ternaries 19 (20 pts), if/else 11 (nesting depth added 1). Of this number, 18 points are the body\u0027s own statements and 13 belong to 7 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/coding-agent/src/modes/interactive/components/settings-selector.ts"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fd57bcc2f1b25caa6afce24d646d1a051b3ecb142d918999198ace9a8bbf09a"}},{"ruleId":"D2","level":"warning","message":{"text":"IndexedDbStorage.checkDocumentActions (cognitive 31): IndexedDbStorage.checkDocumentActions has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (24 pts), boolean chains 5, loops 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/storage/indexeddb.ts"},"region":{"startLine":1012}}}],"partialFingerprints":{"codehealthFindingId/v1":"183577bdadaf9c5b521d012248062b7bdb42c1e12c7df226d5c212710d2268fa"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 31): (anonymous) has cognitive complexity 31 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 5 (8 pts), boolean chains 5, 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/coding-agent/src/core/export-html/template.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba53cfbf46dc367fb470cf6628ae848e0a89ad760e469ef14f7083424120cdeb"}},{"ruleId":"D2","level":"warning","message":{"text":"proxy.streamProxy (cognitive 30): proxy.streamProxy has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (18 pts), ternaries 2 (4 pts), error handling 2 (3 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 8). None of this is in the body itself: all 30 points belong to 3 function literals inside it that branch (lines 113, 180, 135). 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/agent/src/proxy.ts"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"5171b93818a46ce7e75f467e33898d83b69882b5f2723baba5e4d4682b9b5465"}},{"ruleId":"D2","level":"warning","message":{"text":"models.createProvider (cognitive 30): models.createProvider has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 7, ternaries 4, loops 1 (nesting depth added 6). Most of this is not in the body itself: 14 of the 30 points are its own statements and the rest belongs to 8 function items inside it that branch (a function literal at line 1130, currentModels, a function literal at line 1099, \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/ai/src/models.ts"},"region":{"startLine":1077}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f4558c1619962c28bcb9bd158f59284c3ff42870320084ad59d9e999dbe668d"}},{"ruleId":"D2","level":"warning","message":{"text":"bedrock-converse-stream.handleContentBlockDelta (cognitive 30): bedrock-converse-stream.handleContentBlockDelta has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (24 pts), boolean chains 5, ternaries 1 (nesting depth added 13). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/src/api/bedrock-converse-stream.ts"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b452a5b58aca2359c13c89615aeb0652572074153e09380d9f3f009231e6824"}},{"ruleId":"D2","level":"warning","message":{"text":"generate-models.processBasetenModels (cognitive 30): generate-models.processBasetenModels has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 7 (18 pts), boolean chains 8, if/else 2 (3 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/ai/scripts/generate-models.ts"},"region":{"startLine":1517}}}],"partialFingerprints":{"codehealthFindingId/v1":"25d8166c4aba23240864e9abe534f47e0fedfc3d513ef656aae767cd90fe2943"}},{"ruleId":"D2","level":"warning","message":{"text":"faux.streamWithDeltas (cognitive 30): faux.streamWithDeltas has cognitive complexity 30 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 4 (9 pts), boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/src/providers/faux.ts"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a32638985bb5603dc62b1c169435197f12245247e5cd7a1d6a0e74b2c6a8c59"}},{"ruleId":"D2","level":"warning","message":{"text":"tracker.setArrayIndex (cognitive 30): tracker.setArrayIndex has cognitive complexity 30 (threshold 15). Drivers by points: if/else 15 (27 pts), boolean chains 3 (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/chord/src/delta/tracker.ts"},"region":{"startLine":1143}}}],"partialFingerprints":{"codehealthFindingId/v1":"0639f0f31ee18ff54c4f50a040de5617bfa7816baa0d1edbf71c75daa1da6355"}},{"ruleId":"D2","level":"warning","message":{"text":"declarations.toType (cognitive 30): declarations.toType has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (17 pts), ternaries 4 (8 pts), boolean chains 4, match/switch 1 (nesting depth added 8). Of this number, 27 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/codemode/src/declarations.ts"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"722e1db0098a23ec3be355cf79331c83f39c55f702ac638d8c4973863a1c1258"}},{"ruleId":"D2","level":"warning","message":{"text":"footer-data-provider.findGitPaths (cognitive 30): footer-data-provider.findGitPaths has cognitive complexity 30 (threshold 15). Drivers by points: if/else 7 (21 pts), ternaries 1 (5 pts), error handling 1 (3 pts), loops 1 (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/coding-agent/src/core/footer-data-provider.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e7b0cdc5775a991bcf9866c0e8e5b73e08d10235d82a9eabe58954ff3ea31a2"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionList.handleInput (cognitive 30): SessionList.handleInput has cognitive complexity 30 (threshold 15). Drivers by points: if/else 22 (29 pts), boolean chains 1 (nesting depth added 7). 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/coding-agent/src/modes/interactive/components/session-selector.ts"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"58acee5606caed2d9b55afb5da200dd092c5a3e02f611463ff8b39193b410c74"}},{"ruleId":"D2","level":"warning","message":{"text":"HuggingFaceClient.details (cognitive 30): HuggingFaceClient.details has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (20 pts), boolean chains 5, ternaries 3, loops 1 (2 pts) (nesting depth added 11). Of this number, 26 points are the body\u0027s own statements and 4 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/extensions/llama/huggingface.ts"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fba5062b1a29819b2ca241d01adc1d24e00feee9c1dde79ed419ae4072bb3be"}},{"ruleId":"D2","level":"warning","message":{"text":"CodemodeCall.execute (cognitive 30): CodemodeCall.execute has cognitive complexity 30 (threshold 15). Drivers by points: if/else 15 (19 pts), boolean chains 6, ternaries 4, loops 1 (nesting depth added 4). Of this number, 22 points are the body\u0027s own statements and 8 belong to 3 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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/durable/src/codemode/codemode.ts"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"d62599ef60d12e02b2b15e36fa09bf2c70dd486f5b7719e915b12854534eea48"}},{"ruleId":"D2","level":"warning","message":{"text":"MemoryStorage.checkDocumentActions (cognitive 30): MemoryStorage.checkDocumentActions has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (22 pts), boolean chains 4, loops 2, ternaries 1 (2 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/storage/memory.ts"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2117b00bae11b8d4273417650ef114ddf074ebe25c66fd0c6afed8eefcd9d31"}},{"ruleId":"D2","level":"warning","message":{"text":"read.readText (cognitive 30): read.readText has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 14 (18 pts), if/else 6 (7 pts), boolean chains 5 (nesting depth added 5). Of this number, 29 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/tools/read.ts"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3efb683bc922ea6427d92e6d63a04c5e7fff399fdd675c94a74331f821895ce"}},{"ruleId":"D2","level":"warning","message":{"text":"openrouter-catalog.buildOpenRouterCatalog (cognitive 29): openrouter-catalog.buildOpenRouterCatalog has cognitive complexity 29 (threshold 15). Drivers by points: if/else 6 (12 pts), ternaries 4 (8 pts), boolean chains 6, loops 3 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/scripts/openrouter-catalog.ts"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"12e614086a955c37358be4f71251fc7915415852b3aa1e2efa2850a7350d44b3"}},{"ruleId":"D2","level":"warning","message":{"text":"apply-immutable-trusted.applyImmutableTrusted (cognitive 29): apply-immutable-trusted.applyImmutableTrusted has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (25 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/src/delta/apply-immutable-trusted.ts"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"362559b848c7a636814f3785f5bbea4339e835009c06c90be10d04a3a45ca151"}},{"ruleId":"D2","level":"warning","message":{"text":"Reload.install (cognitive 29): Reload.install has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 7 (9 pts), error handling 1 (3 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/src/reload.ts"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"c597300efc49d41596c6410e2ee6d6dfbab4de2a9e61f1ee26bc9ea9b9a4db97"}},{"ruleId":"D2","level":"warning","message":{"text":"system-theme.generateSystemThemeColors (cognitive 29): system-theme.generateSystemThemeColors has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15 (30 pts), ternaries 7 (12 pts), loops 7 (11 pts), boolean chains 3 (nesting depth added 24). To reduce it, split the body into named stages: move each independent 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 (system-theme.generateSystemThemeColors::solve) 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/coding-agent/src/modes/interactive/theme/system-theme.ts"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"bacf0deb6b3f7da0d31ae603b4d9b46ac45302d826788346225209356af0d713"}},{"ruleId":"D2","level":"warning","message":{"text":"bash.createShellToolDefinition.execute (cognitive 29): bash.createShellToolDefinition.execute has cognitive complexity 29 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 7, ternaries 4, error handling 1 (nesting depth added 3). Most of this is not in the body itself: 14 of the 29 points are its own statements and the rest belongs to 6 function items inside it that branch (formatOutput, emitOutputUpdate, scheduleOutputUpdate, \u2026). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/tools/bash.ts"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bbfce4809257e9a47ce9dc2a6f5fd6b94f1106067383f015ba4e8cade2a05e0"}},{"ruleId":"D2","level":"warning","message":{"text":"loader.createExtensionAPI (cognitive 29): loader.createExtensionAPI has cognitive complexity 29 (threshold 15). Drivers by points: if/else 18 (22 pts), boolean chains 6, ternaries 1 (nesting depth added 4). Of this number, 25 points are the body\u0027s own statements and 4 belong to 2 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/loader.ts"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"6348bf09e298014f8af0fa960cdb3809f5b0de18e1576b8efdae3c95beceadd4"}},{"ruleId":"D2","level":"warning","message":{"text":"ResourceList.render (cognitive 29): ResourceList.render has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 6 (18 pts), if/else 5 (6 pts), boolean chains 4, 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/coding-agent/src/modes/interactive/components/config-selector.ts"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c08f9b593591719fb6cfbf624ccb7b6535f5d20af9e5ddd755e60d06257ab4d"}},{"ruleId":"D2","level":"warning","message":{"text":"agent.applyChange (cognitive 29): agent.applyChange has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 11 (22 pts), boolean chains 4, if/else 3 (nesting depth added 11). Of this number, 26 points are the body\u0027s own statements and 3 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/durable/src/harness/agent.ts"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f61eab6d9f3dd094b4d7fcb68f33280c5ae8ca4bfc5f820011308417ca402be"}},{"ruleId":"D2","level":"warning","message":{"text":"env-conformance.createEnvConformance (cognitive 29): env-conformance.createEnvConformance has cognitive complexity 29 (threshold 15). Drivers by points: loops 9 (11 pts), if/else 6 (8 pts), boolean chains 6, ternaries 3 (4 pts) (nesting depth added 5). Most of this is not in the body itself: 4 of the 29 points are its own statements and the rest belongs to 12 function items inside it that branch (a function literal at line 257, a function literal at line 341, a function literal at line 160, \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/durable/src/testing/env-conformance.ts"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e674d72021e78e733093d70990b416ee1d18820e25ad4b4f1938914631b6440"}},{"ruleId":"D2","level":"warning","message":{"text":"utils.wrapSingleLine (cognitive 29): utils.wrapSingleLine has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (22 pts), loops 2 (4 pts), boolean chains 2, ternaries 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/tui/src/utils.ts"},"region":{"startLine":925}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff9ead3b0b2314a0a28c9b47160f0ca70d516dbfa882f263ae927effe8bd9b48"}},{"ruleId":"D2","level":"warning","message":{"text":"utils.sliceWithWidth (cognitive 29): utils.sliceWithWidth has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (19 pts), boolean chains 5, loops 3 (5 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/tui/src/utils.ts"},"region":{"startLine":1268}}}],"partialFingerprints":{"codehealthFindingId/v1":"f341b0c1fe1bbc151529a18898e7e5163f0dcf2300689076dab1128ff7bb421f"}},{"ruleId":"D2","level":"warning","message":{"text":"alt-screen-search.findSearchCorpusMatches (cognitive 29): alt-screen-search.findSearchCorpusMatches has cognitive complexity 29 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 4 (7 pts), ternaries 2 (6 pts), boolean chains 3 (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/tui/src/alt-screen-search.ts"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"b98f16cf5ba79aa7c518cd29134633d87812e89b819ac72e1d4e11be51fc845a"}},{"ruleId":"D2","level":"warning","message":{"text":"Editor.moveToVisualLine (cognitive 29): Editor.moveToVisualLine has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 6, loops 2 (5 pts), ternaries 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/tui/src/components/editor.ts"},"region":{"startLine":1479}}}],"partialFingerprints":{"codehealthFindingId/v1":"428a0c717432bbf9aab8e58e74de3b071ad81dc3733d80befea730b2f0fe4429"}},{"ruleId":"D2","level":"warning","message":{"text":"editor.wordWrapLine (cognitive 29): editor.wordWrapLine has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 9, loops 2 (4 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/tui/src/components/editor.ts"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"d24c7f58a159c6bc8d53c6161fc527b89343d007342df55639581d137a52bab6"}},{"ruleId":"D2","level":"warning","message":{"text":"session-transcripts.runSubagent (cognitive 29): session-transcripts.runSubagent has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (23 pts), boolean chains 5, error handling 1 (nesting depth added 12). None of this is in the body itself: all 29 points belong to one function literal inside it that branches (line 89). 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":"scripts/session-transcripts.ts"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"6758abed3643668662b1d0804d80d6a38bd2a3cd360c21a5f1c48ab811c1e43d"}},{"ruleId":"D2","level":"warning","message":{"text":"openai-codex-responses.parseSSE (cognitive 28): openai-codex-responses.parseSSE has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (16 pts), error handling 3 (7 pts), loops 2 (3 pts), boolean chains 2 (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/ai/src/api/openai-codex-responses.ts"},"region":{"startLine":816}}}],"partialFingerprints":{"codehealthFindingId/v1":"676acc9292ac21ab6e6b6a2ac1874a86d1b89b057be734dc95a3501b540e3e3e"}},{"ruleId":"D2","level":"warning","message":{"text":"json.copy (cognitive 28): json.copy has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 6, loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/src/json.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dee4d9a4450a390536dbffe42f5391c4ef19d7410c26ee94f820d2202f27798"}},{"ruleId":"D2","level":"warning","message":{"text":"tracker.emitSimpleObjectOperations (cognitive 28): tracker.emitSimpleObjectOperations has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 6 (9 pts), boolean chains 3 (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/chord/src/delta/tracker.ts"},"region":{"startLine":1723}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3577ca2cdfcd2ba4102491f56ed098952dc6ee1d121d34d5ef026cca94d2fc7"}},{"ruleId":"D2","level":"warning","message":{"text":"TreeList.recalculateVisualStructure (cognitive 28): TreeList.recalculateVisualStructure has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 7 (8 pts), ternaries 3 (6 pts), boolean chains 3 (nesting depth added 8). Of this number, 25 points are the body\u0027s own statements and 3 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/coding-agent/src/modes/interactive/components/tree-selector.ts"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"85fe42415fe7cfc19a947feb28436462c3cb6b5d1804ba752ad4b8b9fc0c7b34"}},{"ruleId":"D2","level":"warning","message":{"text":"template.buildTreePrefix (cognitive 28): template.buildTreePrefix has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 7 (16 pts), if/else 6 (9 pts), boolean chains 2, 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/coding-agent/src/core/export-html/template.js"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"abafed491a1b0747f3b18049cea09b5b94c625dde47c65b5eeebe49dc0aaf9a2"}},{"ruleId":"D2","level":"warning","message":{"text":"template.recalculateVisualStructure (cognitive 28): template.recalculateVisualStructure has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 7 (8 pts), ternaries 3 (6 pts), boolean chains 3 (nesting depth added 8). Of this number, 25 points are the body\u0027s own statements and 3 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/coding-agent/src/core/export-html/template.js"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"a74641f972b87ab059dd497136a051138ddabc6fa4f5eddc3824b45925d3af27"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskScheduler.#relist (cognitive 28): TaskScheduler.#relist has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (25 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/durable/src/harness/scheduler.ts"},"region":{"startLine":1080}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe6c4ec8d7ffe3d1147a49073ab3fd04edc836561f94d794a8095cee1b819cd7"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamableHttpTransport.consumeResponseStream (cognitive 28): StreamableHttpTransport.consumeResponseStream has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (17 pts), error handling 2 (5 pts), boolean chains 4, loops 1, ternaries 1 (nesting depth added 11). Of this number, 26 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/mcp/src/transports/streamable-http.ts"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"48735b81d2d2e7d40662b30c0b448c7a67ba881462f58057c3ff64df37cbf6c9"}},{"ruleId":"D2","level":"warning","message":{"text":"pi_env::serve_frames (cognitive 28): pi_env::serve_frames has cognitive complexity 28 (threshold 15). Drivers by points: match/switch 5 (16 pts), if/else 4 (11 pts), loops 1 (nesting depth added 18). 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/env/daemon/src/main.rs"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9e39db7c8379d1fabb4b5c75a81e3f46b80316b414e1c75f4b414110ace41f0"}},{"ruleId":"D2","level":"warning","message":{"text":"json.check (cognitive 27): json.check has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 6, loops 2 (3 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/chord/src/json.ts"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"99c562b96d1aec1a6eb7cd31506d83db15dbd66db35cf809723af3691fbb3789"}},{"ruleId":"D2","level":"warning","message":{"text":"tracker.emitObjectOperations (cognitive 27): tracker.emitObjectOperations has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (20 pts), loops 3 (6 pts), boolean chains 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/chord/src/delta/tracker.ts"},"region":{"startLine":1902}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca225092105f58ae8d100d426ff721fbc5a3b8092bc5e1dab2114986f240f8ae"}},{"ruleId":"D2","level":"warning","message":{"text":"index.assertValidOp (cognitive 27): index.assertValidOp has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (21 pts), boolean chains 5, match/switch 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/chord/src/delta/index.ts"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3bd8f6d252f0cebe5e79e2d6d3a2ad092e2e6fe043c397c36c4370a2dba2772"}},{"ruleId":"D2","level":"warning","message":{"text":"ObjectImpl.call (cognitive 27): ObjectImpl.call has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (10 pts), ternaries 7 (10 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/chord/src/object.ts"},"region":{"startLine":1555}}}],"partialFingerprints":{"codehealthFindingId/v1":"76782607eaf623b691f7bb5138a4b2fcf6a077c241eda08fe9baf75d6ec5fd68"}},{"ruleId":"D2","level":"warning","message":{"text":"git.parseGitUrl (cognitive 27): git.parseGitUrl has cognitive complexity 27 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 8, ternaries 4 (6 pts), 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/coding-agent/src/utils/git.ts"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"03007ddfd49eeecd100f83cee38d709e6991586632c1dbbe9c3a53cfcdea080a"}},{"ruleId":"D2","level":"warning","message":{"text":"model-resolver.resolveModelScopeFromModels (cognitive 27): model-resolver.resolveModelScopeFromModels has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 3 (6 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 12). Of this number, 26 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/coding-agent/src/core/model-resolver.ts"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"2120bb24807133fd55d8ef4e648ba74fd89fa83f65789850c42117c7be45516e"}},{"ruleId":"D2","level":"warning","message":{"text":"InteractiveMode.showModelsSelector (cognitive 27): InteractiveMode.showModelsSelector has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 7, ternaries 5 (6 pts), loops 1 (nesting depth added 2). Most of this is not in the body itself: 1 of the 27 points is its own statement and the rest belongs to 5 function items inside it that branch (a function literal at line 5450, configuredEnabledIds, updateSessionModels, \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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":5374}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1826e04605d6a8878286f2091987039a89a4164aa8cdfa21f106bdaccc201bf"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentSession._runAutoCompaction (cognitive 27): AgentSession._runAutoCompaction has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (14 pts), ternaries 3 (9 pts), boolean chains 3, error handling 1 (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/coding-agent/src/core/agent-session.ts"},"region":{"startLine":3157}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad65d6837e1eb1d505c5ebac7a6f34cd5fa3d00a47dda6a8d6f0e88f9bc1460e"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskScheduler.#loadChain (cognitive 27): TaskScheduler.#loadChain has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (23 pts), boolean chains 2, loops 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/durable/src/harness/scheduler.ts"},"region":{"startLine":923}}}],"partialFingerprints":{"codehealthFindingId/v1":"9abaec609a7d5dc9720998e8a240cb6f0d39a468b96870a5323fe0254532d063"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskScheduler.#walkDown (cognitive 27): TaskScheduler.#walkDown has cognitive complexity 27 (threshold 15). Drivers by points: if/else 3 (12 pts), loops 3 (6 pts), ternaries 2 (5 pts), boolean chains 4 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/harness/scheduler.ts"},"region":{"startLine":1177}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e3e4bfc7b46cddb6515e48af34b36e57be9840ad1ef0c685053645b81b42ac2"}},{"ruleId":"D2","level":"warning","message":{"text":"MemoryStorage.checkGlobalIds (cognitive 27): MemoryStorage.checkGlobalIds has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (17 pts), boolean chains 5, ternaries 2 (4 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/durable/src/storage/memory.ts"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"b96935cd5743a7f8050528a08b8e637596fcc8145317fe1f7a760e12fa5894ef"}},{"ruleId":"D2","level":"warning","message":{"text":"IndexedDbStorage.checkGlobalIds (cognitive 27): IndexedDbStorage.checkGlobalIds has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (17 pts), boolean chains 5, ternaries 2 (4 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/durable/src/storage/indexeddb.ts"},"region":{"startLine":943}}}],"partialFingerprints":{"codehealthFindingId/v1":"95667eea80296fd677a3dd395f5ec8478d0a6eccb3c75810f8f0e54893b93dc0"}},{"ruleId":"D2","level":"warning","message":{"text":"SqliteStorage.checkGlobalIds (cognitive 27): SqliteStorage.checkGlobalIds has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (17 pts), boolean chains 5, ternaries 2 (4 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/durable/src/storage/sqlite/storage.ts"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"be3986cfe57e6b559c05d6e459811cbe7465a8e57d168fbf58e0e5242643c8e5"}},{"ruleId":"D2","level":"warning","message":{"text":"TuiAltScreen.applySearchHighlights (cognitive 27): TuiAltScreen.applySearchHighlights has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 5 (7 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/tui/src/tui-alt-screen.ts"},"region":{"startLine":1520}}}],"partialFingerprints":{"codehealthFindingId/v1":"3af502ac1fca8bcea3dd0bc0e99199866ca18367290b5f5fc1473fdefe9c9f9b"}},{"ruleId":"D2","level":"warning","message":{"text":"generate-models.processZaiModels (cognitive 26): generate-models.processZaiModels has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 4 (12 pts), if/else 2 (6 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/scripts/generate-models.ts"},"region":{"startLine":1462}}}],"partialFingerprints":{"codehealthFindingId/v1":"38136f41e2682a46e90ad114174d3ee3e866906dcbf8aaeb58fade9cf3490b7e"}},{"ruleId":"D2","level":"warning","message":{"text":"management-http.fetchWithRetry (cognitive 26): management-http.fetchWithRetry has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 6 (9 pts), boolean chains 7, if/else 2 (5 pts), error handling 2 (4 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/utils/management-http.ts"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a2cb2ac0df399d9ccf5e61d27f9be30e0a66bac9ed88257de1b6332a2b1b3b1"}},{"ruleId":"D2","level":"warning","message":{"text":"tracker.ownKeys (cognitive 26): tracker.ownKeys has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (14 pts), loops 4 (7 pts), boolean chains 5 (nesting depth added 8). Of this number, 25 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/src/delta/tracker.ts"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d8bacb83a542174f2b387015b628a3e4d632da7a9fa2fd5298c89daca262ada"}},{"ruleId":"D2","level":"warning","message":{"text":"image-resize-core.resizeImageInProcess (cognitive 26): image-resize-core.resizeImageInProcess has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 4, loops 3 (4 pts), ternaries 2 (4 pts), error handling 1 (nesting depth added 7). 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/coding-agent/src/utils/image-resize-core.ts"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdcbaa949fd44c05bdad347c43d4f96a12246c24ec9b12b1c432717b63fb7a10"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionSelectorComponent.loadScope (cognitive 26): SessionSelectorComponent.loadScope has cognitive complexity 26 (threshold 15). Drivers by points: if/else 17 (22 pts), ternaries 2 (3 pts), error handling 1 (nesting depth added 6). Of this number, 18 points are the body\u0027s own statements and 8 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/coding-agent/src/modes/interactive/components/session-selector.ts"},"region":{"startLine":941}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8b0bdbaf4df1d0e1dde9cbe0d93756b5f368bd925f4048bd0399671f05be5e2"}},{"ruleId":"D2","level":"warning","message":{"text":"BashExecutionComponent.updateDisplay (cognitive 26): BashExecutionComponent.updateDisplay has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (22 pts), boolean chains 3, ternaries 1 (nesting depth added 9). Of this number, 22 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/coding-agent/src/modes/interactive/components/bash-execution.ts"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"5106e694c1be7179bfa6745878b43b15d97a9288a2b5ac69c47ba50109f2e938"}},{"ruleId":"D2","level":"warning","message":{"text":"InteractiveMode.formatDiagnostics (cognitive 26): InteractiveMode.formatDiagnostics has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (11 pts), ternaries 3 (9 pts), loops 4 (5 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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":1721}}}],"partialFingerprints":{"codehealthFindingId/v1":"a69c6b37015987896ab754c0e9ff113660f3b2e6e86ae495ab5a4be12e60a149"}},{"ruleId":"D2","level":"warning","message":{"text":"InteractiveMode.showTreeSelector (cognitive 26): InteractiveMode.showTreeSelector has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (20 pts), loops 1 (2 pts), ternaries 1 (2 pts), boolean chains 1, error handling 1 (nesting depth added 9). Most of this is not in the body itself: 1 of the 26 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 5570, 5688). 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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":5555}}}],"partialFingerprints":{"codehealthFindingId/v1":"d80a084a9786d43e35b06fc38faf1d7c77d4cc317e7c1c115e9026bdba43ba92"}},{"ruleId":"D2","level":"warning","message":{"text":"ResourceList.filterItems (cognitive 26): ResourceList.filterItems has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 5 (8 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/coding-agent/src/modes/interactive/components/config-selector.ts"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"654f8df2d97c7d78a33f430e5c9680960733d901e2999cf1f7b5d96aeaa418a5"}},{"ruleId":"D2","level":"warning","message":{"text":"ResourceList.handleInput (cognitive 26): ResourceList.handleInput has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 5, loops 2 (4 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/coding-agent/src/modes/interactive/components/config-selector.ts"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"64e826f5139ca97c2f07a9a39a61a1d05a2c9f13e826e8769c0f00ed92fb63c4"}},{"ruleId":"D2","level":"warning","message":{"text":"IndexedDbStorage.prepareDocumentActions (cognitive 26): IndexedDbStorage.prepareDocumentActions has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (16 pts), boolean chains 5, match/switch 1 (2 pts), ternaries 1 (2 pts), loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/storage/indexeddb.ts"},"region":{"startLine":965}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b7d0f112b335bea6185ee7806f1df7aa4c6b158d965593c99a5a18390a3dd6f"}},{"ruleId":"D2","level":"warning","message":{"text":"SqliteStorage.prepareDocumentActions (cognitive 26): SqliteStorage.prepareDocumentActions has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (16 pts), boolean chains 5, match/switch 1 (2 pts), ternaries 1 (2 pts), loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/storage/sqlite/storage.ts"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1a362ea4232f7e51cd7ff24cfd96d11bb7f02813e56114c5e46685a6304ebf4"}},{"ruleId":"D2","level":"warning","message":{"text":"keys.formatParsedKey (cognitive 26): keys.formatParsedKey has cognitive complexity 26 (threshold 15). Drivers by points: if/else 19, boolean chains 6, ternaries 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/tui/src/keys.ts"},"region":{"startLine":1253}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fdff81f5d5bb170e447a033b37822bb445bd39da43513a52f55448915c0e9fc"}},{"ruleId":"D2","level":"warning","message":{"text":"utils.breakLongWord (cognitive 26): utils.breakLongWord has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 4 (8 pts), ternaries 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/tui/src/utils.ts"},"region":{"startLine":1022}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c81866d4e345c2dcb5f104559527d370021d7a23529e73d4b9a2e8cf86333cd"}},{"ruleId":"D2","level":"warning","message":{"text":"Editor.render (cognitive 26): Editor.render has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (14 pts), ternaries 2 (5 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/tui/src/components/editor.ts"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"949fc8950d1d3ac5120b1f001c9c6331904b4b6275402769ca5310ff739c3c0b"}},{"ruleId":"D2","level":"warning","message":{"text":"Markdown.render (cognitive 26): Markdown.render has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (11 pts), loops 6 (9 pts), ternaries 3 (4 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/tui/src/components/markdown.ts"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c2157acf16b61ccb2784b78adf028be058d0dbc9e0af4050d4f1cb86327074c"}},{"ruleId":"D2","level":"warning","message":{"text":"read-tool-stats.printHumanReport (cognitive 26): read-tool-stats.printHumanReport has cognitive complexity 26 (threshold 15). Drivers by points: loops 9 (13 pts), ternaries 4 (10 pts), if/else 3 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/read-tool-stats.mjs"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef9fd67c9c0b58a0f3695454845f2182417a0d98a1c9b9a69520a6a62d1da761"}},{"ruleId":"D2","level":"warning","message":{"text":"session-context-stats.loadContextWindows (cognitive 26): session-context-stats.loadContextWindows has cognitive complexity 26 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 5 (9 pts), boolean chains 3, ternaries 2 (3 pts), error handling 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":"scripts/session-context-stats.mjs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"3759bf89946522f93f05f048dc0694615b4f6d8b81fda095ffab285e9d1518d6"}},{"ruleId":"D2","level":"warning","message":{"text":"renderTree (cognitive 26): renderTree has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (15 pts), ternaries 2 (7 pts), loops 2 (4 pts) (nesting depth added 15). Of this number, 22 points are the body\u0027s own statements and 4 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/export-html/template.js"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"beaaa2df6b015bcc05f1582062b4615cf5962997b571c9c24cadb545b2b7958b"}},{"ruleId":"D2","level":"warning","message":{"text":"openai-responses.buildParams (cognitive 25): openai-responses.buildParams has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (12 pts), ternaries 5 (9 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/ai/src/api/openai-responses.ts"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"38941fa8032265de34c1fae6d34865a6c4a133bac75ab0333a4b336309fd2fb6"}},{"ruleId":"D2","level":"warning","message":{"text":"package-manager.collectAutoExtensionEntries (cognitive 25): package-manager.collectAutoExtensionEntries has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (16 pts), error handling 2 (4 pts), boolean chains 2, 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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"8acf4cac2076cb10ef55838bca7284be23c6a5ed4bb1d7cfde37e38e84f2eddf"}},{"ruleId":"D2","level":"warning","message":{"text":"ExtensionRunner.emitBeforeAgentStart (cognitive 25): ExtensionRunner.emitBeforeAgentStart has cognitive complexity 25 (threshold 15). Drivers by points: if/else 3 (11 pts), ternaries 2 (8 pts), error handling 1 (3 pts), loops 2 (3 pts) (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/coding-agent/src/core/extensions/runner.ts"},"region":{"startLine":1427}}}],"partialFingerprints":{"codehealthFindingId/v1":"efb3080b0b0d0c60ba75ede324f55a3747d3539c71f893602292ea3ea007ff20"}},{"ruleId":"D2","level":"warning","message":{"text":"EasterEgg3dAnimation.prepareCells (cognitive 25): EasterEgg3dAnimation.prepareCells has cognitive complexity 25 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 4 (8 pts), ternaries 3 (5 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/components/easter-egg-3d.ts"},"region":{"startLine":1233}}}],"partialFingerprints":{"codehealthFindingId/v1":"03ff25a6319d2e19bcfd1b2ce3fa08dfcbc38d5e6be3a699b3d9167e35acfcfb"}},{"ruleId":"D2","level":"warning","message":{"text":"main.createSessionManager (cognitive 25): main.createSessionManager has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (18 pts), match/switch 2 (4 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/main.ts"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"0366d640562edcb8caa2cd1ae7f0954dfdd4d4f5808fb0e8780b1c929832aa5b"}},{"ruleId":"D2","level":"warning","message":{"text":"template.getSearchableText (cognitive 25): template.getSearchableText has cognitive complexity 25 (threshold 15). Drivers by points: if/else 4 (7 pts), ternaries 3 (7 pts), loops 2 (6 pts), boolean chains 4, match/switch 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/coding-agent/src/core/export-html/template.js"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"8969bb248258826851f724484c73cc8bf620fc75951da98c21a96504ffcc8e4f"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskScheduler.#track (cognitive 25): TaskScheduler.#track has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15 (17 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/harness/scheduler.ts"},"region":{"startLine":1021}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea674efcb517ce0d215e813bb38860dd0e51e67c47edecf3c2199c6796885a59"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskScheduler.#phase (cognitive 25): TaskScheduler.#phase has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 8 (15 pts), boolean chains 5, if/else 3, loops 1 (2 pts) (nesting depth added 8). Most of this is not in the body itself: 2 of the 25 points are its own statements and the rest belongs to one function literal inside it that branches (line 1775). 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/durable/src/harness/scheduler.ts"},"region":{"startLine":1757}}}],"partialFingerprints":{"codehealthFindingId/v1":"52025682838d30a22ce321793bf58d22b2f912b6a5aacfffba81dad7b3afc1bd"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskScheduler.#waitCycle (cognitive 25): TaskScheduler.#waitCycle has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 6 (10 pts), boolean chains 3 (nesting depth added 10). Of this number, 23 points are the body\u0027s own statements and 2 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/harness/scheduler.ts"},"region":{"startLine":2026}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fd7716161ac23ada32e22d6cc30ed929c3dd84a65f60c85999caf822c291ecc"}},{"ruleId":"D2","level":"warning","message":{"text":"describe.codemodeSection (cognitive 25): describe.codemodeSection has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 6 (15 pts), if/else 4 (6 pts), loops 3 (4 pts) (nesting depth added 12). Of this number, 22 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/durable/src/codemode/describe.ts"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e6a8d7815b2d7ddfa37d37c9d3a3e303c5fb51ffcf894c4a7f70c01984bc498"}},{"ruleId":"D2","level":"warning","message":{"text":"exif.tiffStart (cognitive 25): exif.tiffStart has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (4 pts), ternaries 1 (4 pts), boolean chains 3 (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/durable/src/images/exif.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6893adb68637b80a70a3e3b07c74e9156df3e2c7d0f2f7f88d8ee458f62280a"}},{"ruleId":"D2","level":"warning","message":{"text":"image.imageDimensions (cognitive 25): image.imageDimensions has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (17 pts), ternaries 2 (4 pts), loops 1 (2 pts), boolean chains 1, match/switch 1 (nesting depth added 13). 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/durable/src/tools/image.ts"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"42170177d9c891718ea98713417e94d4305d85b29c1921a92c64b5a67501fbbe"}},{"ruleId":"D2","level":"warning","message":{"text":"entrypoint.assertWorkspace (cognitive 25): entrypoint.assertWorkspace has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 5 (7 pts), boolean chains 4 (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/evals/docker/entrypoint.ts"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"103121cc31fd3f3d37163b59b149d6ddb09509209ed307b82c499a9604f9ffc1"}},{"ruleId":"D2","level":"warning","message":{"text":"tui.docs.eval.contextFooterJudge (cognitive 25): tui.docs.eval.contextFooterJudge has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 5, loops 2 (3 pts), ternaries 3 (nesting depth added 8). Of this number, 24 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/evals/evals/tui.docs.eval.ts"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f4fd569b716e6289f7faecd8d34b21196b2032aecf7d0f92c70d876656afe1e"}},{"ruleId":"D2","level":"warning","message":{"text":"streamable-http.consumeSseStream (cognitive 25): streamable-http.consumeSseStream has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (15 pts), ternaries 5, loops 2 (3 pts), boolean chains 2 (nesting depth added 4). Most of this is not in the body itself: 8 of the 25 points are its own statements and the rest belongs to 2 function items inside it that branch (processLine, dispatch). 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/mcp/src/transports/streamable-http.ts"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8edfcfea4222203d3716d1f19c32520f75c2be0cf211bf7c362d4161d73964b"}},{"ruleId":"D2","level":"warning","message":{"text":"terminal-image.detectCapabilitiesFromEnvironment (cognitive 25): terminal-image.detectCapabilitiesFromEnvironment has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13, boolean chains 12. 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/tui/src/terminal-image.ts"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"e54e193101027d8a4a4109656890ea3cbed44ad5ffa41ce8932be8ce939ae22e"}},{"ruleId":"D2","level":"warning","message":{"text":"utils.graphemeWidth (cognitive 25): utils.graphemeWidth has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 6, 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/tui/src/utils.ts"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e583710bc8e003e8a6bedb855ea15aa08dd320b253f319c3bf20b3a202c22e3"}},{"ruleId":"D2","level":"warning","message":{"text":"TuiBase.setFocusInternal (cognitive 25): TuiBase.setFocusInternal has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 7, ternaries 3 (nesting depth added 4). Of this number, 23 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, 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/tui/src/tui.ts"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e9548005ce713d37227b1d86f971e3d4d69909356dd58fe04a84d466e17f466"}},{"ruleId":"D2","level":"warning","message":{"text":"LatexParser.parseOperator (cognitive 25): LatexParser.parseOperator has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 5, loops 3 (4 pts), ternaries 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/tui/src/latex.ts"},"region":{"startLine":1194}}}],"partialFingerprints":{"codehealthFindingId/v1":"d11127a29a380978d2876d2ab4eb2254d0c5ff5673a758217878696c298d2d4a"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsList.handleMouse (cognitive 25): SettingsList.handleMouse has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (12 pts), ternaries 4 (8 pts), boolean chains 5 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/tui/src/components/settings-list.ts"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"28583a8fccc10fd22e8a3294209f61205308dd0f266c385f3704f18f42302ce9"}},{"ruleId":"D2","level":"warning","message":{"text":"ui.html.card (cognitive 25): ui.html.card has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 12 (16 pts), if/else 5 (7 pts), boolean chains 2 (nesting depth added 6). Of this number, 23 points are the body\u0027s own statements and 2 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":"scripts/issues/ui.html"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"00d7b48b9fb15a46d1491eeae822884baa4bd9a6affecf76f8fa9553e35fa350"}},{"ruleId":"D2","level":"warning","message":{"text":"pi_env::watch::run (cognitive 25): pi_env::watch::run has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 4, loops 2 (3 pts), match/switch 2 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/env/daemon/src/watch.rs"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfdfe9ee04cf5a957057a9b09d38416adadb24027610fbe60990cfe8bc74273a"}},{"ruleId":"D2","level":"warning","message":{"text":"openai-codex-responses.parseWebSocket (cognitive 24): openai-codex-responses.parseWebSocket has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 3, error handling 1, loops 1, ternaries 1 (nesting depth added 5). Most of this is not in the body itself: 9 of the 24 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 1343, onClose, a function literal at line 1409, \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/ai/src/api/openai-codex-responses.ts"},"region":{"startLine":1324}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5ea1a3f6060e331736f98d4a5ddac9a45974e58cf5ab1abc2d1974b59f4f8e7"}},{"ruleId":"D2","level":"warning","message":{"text":"retry.retryAssistantCall (cognitive 24): retry.retryAssistantCall has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (18 pts), boolean chains 2, error handling 1 (2 pts), loops 1, 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/ai/src/utils/retry.ts"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7a2187fe969e5b72f9d23ef74f2e220d1ddd6ae4421f2461af3b79b70c474e8"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionManager.createBranchedSession (cognitive 24): SessionManager.createBranchedSession has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (9 pts), loops 5 (7 pts), ternaries 3 (6 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/coding-agent/src/core/session-manager.ts"},"region":{"startLine":1632}}}],"partialFingerprints":{"codehealthFindingId/v1":"84c4f4f7db48c8ff73a558617a813778f6c6c380fbc73736b5a37b634bb10edd"}},{"ruleId":"D2","level":"warning","message":{"text":"diff.diffArrayRegion (cognitive 24): diff.diffArrayRegion has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 7, loops 3 (4 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/src/delta/diff.ts"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"625bfd16799287b35318b71cd2087ef51be0cbf52af4a1ae8a461ae5adc55173"}},{"ruleId":"D2","level":"warning","message":{"text":"utils.serializeConversation (cognitive 24): utils.serializeConversation has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (20 pts), loops 2 (4 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/compaction/utils.ts"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3b592d5e59b7915f6a39879d2da5544bf2d860394eec96498e7ff5990acec7c"}},{"ruleId":"D2","level":"warning","message":{"text":"compaction.findProjectedCutPoint (cognitive 24): compaction.findProjectedCutPoint has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 10, if/else 6 (10 pts), loops 3, ternaries 1 (nesting depth added 4). Of this number, 21 points are the body\u0027s own statements and 3 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/coding-agent/src/core/compaction/compaction.ts"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0d18fbb6015931df30619ebd53c85bacd23619a255372350890dff657e6835a"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelSelectorComponent.handleInput (cognitive 24): ModelSelectorComponent.handleInput has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (20 pts), ternaries 1 (3 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/components/model-selector.ts"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e6b21743c5d4dcc1daffd630dd94c4e7ff89faab3774b3c01859c90f6ea4925"}},{"ruleId":"D2","level":"warning","message":{"text":"InteractiveMode.completeProviderAuthentication::finishAuthentication (cognitive 24): InteractiveMode.completeProviderAuthentication::finishAuthentication has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (15 pts), ternaries 1 (5 pts), error handling 1 (4 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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":6078}}}],"partialFingerprints":{"codehealthFindingId/v1":"baeefbad2feb9d9137958f71cfea2c2c9ff08cd8656ea096f6d89b4963263705"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskScheduler.open (cognitive 24): TaskScheduler.open has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (17 pts), loops 4 (5 pts), boolean chains 2 (nesting depth added 12). 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 392). 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/durable/src/harness/scheduler.ts"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"760d833bdcd08d15428ad767f93a9b0954f84008427a07f149e5a723d1d0b554"}},{"ruleId":"D2","level":"warning","message":{"text":"generation.classify (cognitive 24): generation.classify has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 6 (10 pts), if/else 7 (8 pts), boolean chains 6 (nesting depth added 5). Of this number, 16 points are the body\u0027s own statements and 8 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/harness/generation.ts"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"093f5df8ef62078946f7a240c5f51dfe162a75d54f3cc6d87edacf43edf5a88d"}},{"ruleId":"D2","level":"warning","message":{"text":"NodeFileWatcher.#scan::scanDirectory (cognitive 24): NodeFileWatcher.#scan::scanDirectory has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 3, ternaries 1 (2 pts), error handling 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (NodeFileWatcher.#scan) 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/durable/src/env/node-watch.ts"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c1f5c48f068b87bd6350b20d48870857a804302877fa275a209fbd14a506cd3"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonlStorage.planReclamations (cognitive 24): JsonlStorage.planReclamations has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 4, loops 4, match/switch 1 (2 pts) (nesting depth added 9). Of this number, 23 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/durable/src/storage/jsonl/storage.ts"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e18980fb52d8a18d275e87097dff1b77ade7771e801372af58e3301c99b48d0"}},{"ruleId":"D2","level":"warning","message":{"text":"harness.toTranscriptEvents (cognitive 24): harness.toTranscriptEvents has cognitive complexity 24 (threshold 15). Drivers by points: if/else 5 (13 pts), ternaries 2 (6 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/evals/src/harness.ts"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"650fe16df8715c642c083337ae8a5cefe6b59cb27d99851d6bc116495f1ecb9f"}},{"ruleId":"D2","level":"warning","message":{"text":"TuiBase.resolveOverlayLayout (cognitive 24): TuiBase.resolveOverlayLayout has cognitive complexity 24 (threshold 15). Drivers by points: if/else 16 (22 pts), ternaries 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/tui/src/tui.ts"},"region":{"startLine":1241}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad1c580c2a44b79c698b0d04c666b1ae8d072e11466f9f8dc063967aca2854f3"}},{"ruleId":"D2","level":"warning","message":{"text":"Editor.moveCursor (cognitive 24): Editor.moveCursor has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (21 pts), boolean chains 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/tui/src/components/editor.ts"},"region":{"startLine":1894}}}],"partialFingerprints":{"codehealthFindingId/v1":"0791b1320d4db666507613331990afc75eecac67a786d487ba80b2c09f8ac517"}},{"ruleId":"D2","level":"warning","message":{"text":"model-catalog-protocol.comparePiVersions (cognitive 24): model-catalog-protocol.comparePiVersions has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (17 pts), ternaries 2 (4 pts), loops 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":"scripts/model-catalog-protocol.ts"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"10bfe99f9d5defbc391e4ca6bb366b035b9d0a9a98ff20161f4e0c7ebef49d38"}},{"ruleId":"D2","level":"warning","message":{"text":"FileWatcher::scan_directory (cognitive 24): FileWatcher::scan_directory has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (12 pts), match/switch 4 (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/env/daemon/src/watch.rs"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"34a02cdffde1bdc46152a9e2842a013da5f15a34f70256212a0d9f8f6666baf2"}},{"ruleId":"D2","level":"warning","message":{"text":"pi_env::pty::run (cognitive 24): pi_env::pty::run has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (15 pts), match/switch 4 (6 pts), loops 2, 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/env/daemon/src/pty.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc381340e2f5b1405f1b9e3d40dc29cfa6e7bf21ae6e62533963b25b03fe1e58"}},{"ruleId":"D2","level":"warning","message":{"text":"json-parse.repairJson (cognitive 23): json-parse.repairJson has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (22 pts), 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/ai/src/utils/json-parse.ts"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae9a4a19708f9199deacc18500e228b56035081bb00e7820c21f763db27d08fb"}},{"ruleId":"D2","level":"warning","message":{"text":"openai-codex-responses.extractWebSocketCloseError (cognitive 23): openai-codex-responses.extractWebSocketCloseError has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 8 (16 pts), boolean chains 4, if/else 2 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/src/api/openai-codex-responses.ts"},"region":{"startLine":1288}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bf4931984e9819906c7817fca236550c6816ab65c57ec5adc75e2b119d9fab3"}},{"ruleId":"D2","level":"warning","message":{"text":"generate-models.fetchAiGatewayModels (cognitive 23): generate-models.fetchAiGatewayModels has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (10 pts), ternaries 4 (6 pts), boolean chains 5, error handling 1, loops 1 (nesting depth added 6). Of this number, 19 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/scripts/generate-models.ts"},"region":{"startLine":1384}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa12577a72cc27cc9ed5e48bd3edf6386972387130cc890017c7d30d62e1ab5b"}},{"ruleId":"D2","level":"warning","message":{"text":"validation.normalizeOptionalNulls (cognitive 23): validation.normalizeOptionalNulls has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 3 (7 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/ai/src/utils/validation.ts"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"018a5dbfb7fad28858b0d3905e7a1ae1441a3c05192160c40a7aa7b463c75f8d"}},{"ruleId":"D2","level":"warning","message":{"text":"ReadOnlyAuthStorage.load (cognitive 23): ReadOnlyAuthStorage.load has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 7, ternaries 1 (2 pts), 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/coding-agent/src/core/auth-storage.ts"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"693c3e1b38b029ed6c0a46301fade09a1768eb6625d6b6fcc4b847aedcc366ba"}},{"ruleId":"D2","level":"warning","message":{"text":"tracker.piecesFromSortOrder (cognitive 23): tracker.piecesFromSortOrder has cognitive complexity 23 (threshold 15). Drivers by points: if/else 4 (10 pts), boolean chains 6, 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/chord/src/delta/tracker.ts"},"region":{"startLine":1522}}}],"partialFingerprints":{"codehealthFindingId/v1":"6954e0be4a7b7effa041a1b787eff270ef33d6ee93c3098b4853b1a3dd9fb01f"}},{"ruleId":"D2","level":"warning","message":{"text":"object.validateImplementation (cognitive 23): object.validateImplementation has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 6, loops 2 (3 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/chord/src/object.ts"},"region":{"startLine":1747}}}],"partialFingerprints":{"codehealthFindingId/v1":"45c73d61d3bae7e3f3c62877bb627974501cfacd93c12619973ec4d7509495c1"}},{"ruleId":"D2","level":"warning","message":{"text":"host.disposeHoldersFirst (cognitive 23): host.disposeHoldersFirst has cognitive complexity 23 (threshold 15). Drivers by points: loops 7 (13 pts), if/else 5 (10 pts) (nesting depth added 11). Of this number, 17 points are the body\u0027s own statements and 6 belong to one function item inside it that branches. 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/chord/src/host.ts"},"region":{"startLine":1249}}}],"partialFingerprints":{"codehealthFindingId/v1":"1230288606df4826cdd3ad68cbc13efa5a57e2750d3bd00f5cd0ed9f8079902c"}},{"ruleId":"D2","level":"warning","message":{"text":"ExtensionRunner.emitResourcesDiscover (cognitive 23): ExtensionRunner.emitResourcesDiscover has cognitive complexity 23 (threshold 15). Drivers by points: if/else 3 (9 pts), ternaries 2 (8 pts), error handling 1 (3 pts), loops 2 (3 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/runner.ts"},"region":{"startLine":1479}}}],"partialFingerprints":{"codehealthFindingId/v1":"9477c22ea2acd4529cc3abe3336e5847671a5e47e0b63cdb06f6a74b22020d4e"}},{"ruleId":"D2","level":"warning","message":{"text":"session-selector-search.parseSearchQuery (cognitive 23): session-selector-search.parseSearchQuery has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (15 pts), ternaries 2 (4 pts), error handling 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 8). Of this number, 22 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/coding-agent/src/modes/interactive/components/session-selector-search.ts"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"72c46d63ea807acab6ab18fc0706598cbf23411f52489e6694c9f20feeaf0815"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelSelectorComponent.updateList (cognitive 23): ModelSelectorComponent.updateList has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 6 (12 pts), if/else 6 (7 pts), loops 2 (3 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/coding-agent/src/modes/interactive/components/model-selector.ts"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"f315e52ea3435db8078ed3f138407a4aebdec2d70519894d6f02579e05f59e8b"}},{"ruleId":"D2","level":"warning","message":{"text":"TreeList.getEntryDisplayText (cognitive 23): TreeList.getEntryDisplayText has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (16 pts), ternaries 3 (6 pts), match/switch 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/coding-agent/src/modes/interactive/components/tree-selector.ts"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec2134bfd048d1748c8cf96380477802beb8f80b5ddb25140530d11242ba641c"}},{"ruleId":"D2","level":"warning","message":{"text":"InteractiveMode.handleClipboardPaste (cognitive 23): InteractiveMode.handleClipboardPaste has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 7 (14 pts), if/else 4 (5 pts), boolean chains 3, 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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":3109}}}],"partialFingerprints":{"codehealthFindingId/v1":"be317715915662333f04a7900d9e60b84ccbd3d3a7327863cf6f056bc92683f8"}},{"ruleId":"D2","level":"warning","message":{"text":"InteractiveMode.addMessageToChat (cognitive 23): InteractiveMode.addMessageToChat has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (20 pts), ternaries 1 (2 pts), match/switch 1 (nesting depth added 13). 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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":3837}}}],"partialFingerprints":{"codehealthFindingId/v1":"289f06eacecd8eed4ce0dbffc8685c013e30fbaffef34fb8c6ec60cfd1241a18"}},{"ruleId":"D2","level":"warning","message":{"text":"InteractiveMode.showLoginAuthTypeSelector (cognitive 23): InteractiveMode.showLoginAuthTypeSelector has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (11 pts), ternaries 8, boolean chains 4 (nesting depth added 2). Of this number, 15 points are the body\u0027s own statements and 8 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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":5881}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbaa1632ac7ddfde1d6b74a8dfd1f31af681ad34bde63a91bf92c0c67f626c5f"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentSession._applyToolLoadout (cognitive 23): AgentSession._applyToolLoadout has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 4 (10 pts), loops 3 (8 pts), error handling 1 (3 pts), boolean chains 1, if/else 1 (nesting depth added 13). Of this number, 20 points are the body\u0027s own statements and 3 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/coding-agent/src/core/agent-session.ts"},"region":{"startLine":1595}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aec841ca33a307d6ef4919b74af5fe06b47a51ecffb042ca97bf8774f94fbbe"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentSession._refreshToolRegistry (cognitive 23): AgentSession._refreshToolRegistry has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 5 (8 pts), boolean chains 2, ternaries 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/agent-session.ts"},"region":{"startLine":3555}}}],"partialFingerprints":{"codehealthFindingId/v1":"8829e6a8eb5ed1f0289935bcfb9540514b456295f3d1bf2b2f446d4d9bd1e066"}},{"ruleId":"D2","level":"warning","message":{"text":"compaction.serializeConversation (cognitive 23): compaction.serializeConversation has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (16 pts), ternaries 2 (6 pts), loops 1 (nesting depth added 13). Of this number, 17 points are the body\u0027s own statements and 6 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/durable/src/harness/compaction.ts"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7f94a230832a6465468ecf4a162dca26da88ec55ade1622d77be0a088acbec2"}},{"ruleId":"D2","level":"warning","message":{"text":"CodemodeCall.discover (cognitive 23): CodemodeCall.discover has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 6, ternaries 3 (5 pts) (nesting depth added 5). Of this number, 18 points are the body\u0027s own statements and 5 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/durable/src/codemode/codemode.ts"},"region":{"startLine":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"12d388b33caa8e68351dbfb3a3e7eec95fd4ba95351db35a101c1f55c1e85ec9"}},{"ruleId":"D2","level":"warning","message":{"text":"Connection.#onData (cognitive 23): Connection.#onData has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 3, error handling 1 (2 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/env/src/connection.ts"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"04a6ac9372306793abf01816a40afe64fa1bb1442feb26362ad065b42b4ea7d2"}},{"ruleId":"D2","level":"warning","message":{"text":"Editor.insertCharacter (cognitive 23): Editor.insertCharacter has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 6 (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/tui/src/components/editor.ts"},"region":{"startLine":1201}}}],"partialFingerprints":{"codehealthFindingId/v1":"b13a0d0265a96368a130f83fa460150eafb7445d2a344868e8596b7c131f096b"}},{"ruleId":"D2","level":"warning","message":{"text":"stack.distribute (cognitive 23): stack.distribute has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (12 pts), ternaries 2 (6 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 12). Of this number, 19 points are the body\u0027s own statements and 4 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/tui/src/components/stack.ts"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b335b2248a9b3fa035a756cfbbeb322a255a2d11ab386347381914998accdc2"}},{"ruleId":"D2","level":"warning","message":{"text":"read-tool-stats.parseArgs (cognitive 23): read-tool-stats.parseArgs has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 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":"scripts/read-tool-stats.mjs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"17db2e26ba2018a903e25f3ec9ca6311fccfa8241f938a10a89445ebcacc59cd"}},{"ruleId":"D2","level":"warning","message":{"text":"release-notes.parseOptions (cognitive 23): release-notes.parseOptions has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (22 pts), 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":"scripts/release-notes.mjs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2f728cac4955ff1d738dad486234363d5f1fd6002b3bad521eec72c400d52da"}},{"ruleId":"D2","level":"warning","message":{"text":"openai-codex-responses.mapCodexEvents (cognitive 22): openai-codex-responses.mapCodexEvents has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (11 pts), ternaries 2 (5 pts), boolean chains 3, error handling 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/ai/src/api/openai-codex-responses.ts"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb349dce7f19cc20f354ffa3ccc91316b1f1b3d3ba6ee7f806c72d629f4dfae1"}},{"ruleId":"D2","level":"warning","message":{"text":"openai-codex-responses.processWebSocketStream (cognitive 22): openai-codex-responses.processWebSocketStream has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 4, ternaries 2, error handling 1 (nesting depth added 5). 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, split the body into named stages: move each independent step or branch into 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/ai/src/api/openai-codex-responses.ts"},"region":{"startLine":1510}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff75d255a3b12c39a39ad36fc748f3dd23171c9bbf53f7a02cfe6cf69d190275"}},{"ruleId":"D2","level":"warning","message":{"text":"tracker.restoreSortOverride (cognitive 22): tracker.restoreSortOverride has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (22 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/chord/src/delta/tracker.ts"},"region":{"startLine":1425}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2a76c02c763499923f956d89daa3cc5169117bcf2cb9cbc13032aafe01d3f52"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsManager.migrateSettings (cognitive 22): SettingsManager.migrateSettings has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 9, 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/coding-agent/src/core/settings-manager.ts"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0900044be677ff0ea27d69790660545654c8260b5718183ba1ab19afe057e1e"}},{"ruleId":"D2","level":"warning","message":{"text":"file-processor.processFileArguments (cognitive 22): file-processor.processFileArguments has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (12 pts), error handling 2 (5 pts), ternaries 1 (4 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/coding-agent/src/cli/file-processor.ts"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d85a7aa2d709d41faa2ac877028469e47ebe0a3a367be37f457f66061d1c9e7"}},{"ruleId":"D2","level":"warning","message":{"text":"ExtensionRunner.emit (cognitive 22): ExtensionRunner.emit has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 2 (8 pts), if/else 2 (7 pts), error handling 1 (3 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/runner.ts"},"region":{"startLine":1096}}}],"partialFingerprints":{"codehealthFindingId/v1":"021686251984892bddc938fea6a17070371d642a95e3b82f23d958ed1de5e496"}},{"ruleId":"D2","level":"warning","message":{"text":"ExtensionRunner.emitInput (cognitive 22): ExtensionRunner.emitInput has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 3 (9 pts), if/else 2 (6 pts), error handling 1 (3 pts), loops 2 (3 pts), boolean chains 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/coding-agent/src/core/extensions/runner.ts"},"region":{"startLine":1525}}}],"partialFingerprints":{"codehealthFindingId/v1":"743dd3e0461af18b8192b5c17f34a7487f6a661053ca049634eae5f6402eb2dc"}},{"ruleId":"D2","level":"warning","message":{"text":"tool.createCodemodeDescription (cognitive 22): tool.createCodemodeDescription has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 6 (15 pts), loops 3 (4 pts), if/else 2 (3 pts) (nesting depth added 11). Of this number, 19 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/coding-agent/src/extensions/codemode/tool.ts"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e17fc4aecb624b623d9045ff4e4e6cdc1da37a210f416a9689bfaa2f409cd02"}},{"ruleId":"D2","level":"warning","message":{"text":"ScopedModelsSelectorComponent.updateList (cognitive 22): ScopedModelsSelectorComponent.updateList has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 8 (16 pts), if/else 3, 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/coding-agent/src/modes/interactive/components/scoped-models-selector.ts"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8617f817150a5581fe9c812c41d4b745064a622d6002489d91a643874e994fb"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentSession._emitExtensionEvent (cognitive 22): AgentSession._emitExtensionEvent has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (14 pts), ternaries 2 (5 pts), boolean chains 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/coding-agent/src/core/agent-session.ts"},"region":{"startLine":1303}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2a589ed6681af1c4c7c588f4e04165f5f99044d5ce7873317e6b6b5f8cbe2d3"}},{"ruleId":"D2","level":"warning","message":{"text":"provider.createLlamaProvider (cognitive 22): provider.createLlamaProvider has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 5, ternaries 4 (5 pts), loops 1 (2 pts) (nesting depth added 3). None of this is in the body itself: all 22 points belong to 7 function literals inside it that branch (lines 231, 189, 211, \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/coding-agent/src/extensions/llama/provider.ts"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd43e8cc511558ae6076368288a69837579b0f460d03411aaacc204cf8e76011"}},{"ruleId":"D2","level":"warning","message":{"text":"json.assignJson (cognitive 22): json.assignJson has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 3 (6 pts), boolean chains 3, ternaries 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/harness/json.ts"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"78670a2c328dc95b6cf42f835c24fb27947dc75ee534a1189992d612b1211d51"}},{"ruleId":"D2","level":"warning","message":{"text":"index.prepare (cognitive 22): index.prepare has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (11 pts), ternaries 2 (6 pts), boolean chains 3, error handling 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/images/index.ts"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"689ba7b30e31f29411aabaf2ca58f482a6244340faefd873d8f2c0d763da7776"}},{"ruleId":"D2","level":"warning","message":{"text":"storage-benchmark.seedStorageBenchmark (cognitive 22): storage-benchmark.seedStorageBenchmark has cognitive complexity 22 (threshold 15). Drivers by points: loops 10 (13 pts), if/else 4 (6 pts), ternaries 1 (3 pts) (nesting depth added 7). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/testing/storage-benchmark.ts"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"a480a26578f961de796f9a1a1494d50e530a0b73af31578513d152856e16e74b"}},{"ruleId":"D2","level":"warning","message":{"text":"main.handle (cognitive 22): main.handle has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 7, loops 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/issues/main.ts"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"13af140f7ae135084998843f5d9b6acc8cdd7aa552c2c5090d13e24dc3e9a420"}},{"ruleId":"D2","level":"warning","message":{"text":"mistral-conversations.readMistralEvents (cognitive 21): mistral-conversations.readMistralEvents has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 2 (3 pts), error handling 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/ai/src/api/mistral-conversations.ts"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"850a192d9dde4f5833fe8e74355bae1d5dad1ee3067c6ad7e0701b1b8028301b"}},{"ruleId":"D2","level":"warning","message":{"text":"openrouter-images.generateImages (cognitive 21): openrouter-images.generateImages has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (12 pts), ternaries 3 (5 pts), loops 1 (2 pts), boolean chains 1, 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/ai/src/api/openrouter-images.ts"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"809107e2c65a0cded6029e521a44c96d1b9ec97f4ce4d8f3dfaa734a33f22af3"}},{"ruleId":"D2","level":"warning","message":{"text":"package-manager.collectFiles (cognitive 21): package-manager.collectFiles has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (12 pts), error handling 2 (4 pts), boolean chains 2, ternaries 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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9c4c8cbbb526344cb211dd5b7ca604de972d19d9034d4073f6d7e57c2da2666"}},{"ruleId":"D2","level":"warning","message":{"text":"model-resolver.restoreModelFromSession (cognitive 21): model-resolver.restoreModelFromSession has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 2, loops 1 (2 pts), ternaries 2 (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/coding-agent/src/core/model-resolver.ts"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cb076c58e29ff0989c40d4665c408a4613a9f26aed4b0b5090c64f0fa7b3cd8"}},{"ruleId":"D2","level":"warning","message":{"text":"ExtensionRunner.emitMessageEnd (cognitive 21): ExtensionRunner.emitMessageEnd has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 3 (9 pts), if/else 2 (6 pts), error handling 1 (3 pts), loops 2 (3 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/runner.ts"},"region":{"startLine":1151}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc59701e31cff5186d1a1bf686f8d1950015a2427a2eaf38ab11f3f59134b7f1"}},{"ruleId":"D2","level":"warning","message":{"text":"prompt-templates.loadPromptTemplates (cognitive 21): prompt-templates.loadPromptTemplates has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (12 pts), ternaries 3 (5 pts), error handling 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 7). Of this number, 16 points are the body\u0027s own statements and 5 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/coding-agent/src/core/prompt-templates.ts"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fb3d9eb72b4d98f8d2034abe5ea27eda1177666d8f4670b2592860e5eff9565"}},{"ruleId":"D2","level":"warning","message":{"text":"ArminComponent.tickRain (cognitive 21): ArminComponent.tickRain has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 3 (5 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/coding-agent/src/modes/interactive/components/armin.ts"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"f78840c9d26b05c879a38e62d37ccef5b9a76c77daafc3021a8ee68b6be53ff6"}},{"ruleId":"D2","level":"warning","message":{"text":"InteractiveMode.flushCompactionQueue (cognitive 21): InteractiveMode.flushCompactionQueue has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (12 pts), loops 4 (6 pts), ternaries 2, error handling 1 (nesting depth added 5). Of this number, 19 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":4773}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5e3943ee6854f41f2333e078fc9bbb42986a744fc622362795a27405ce4959b"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentSession.compact (cognitive 21): AgentSession.compact has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (13 pts), ternaries 2 (4 pts), boolean chains 3, error handling 1 (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/coding-agent/src/core/agent-session.ts"},"region":{"startLine":2828}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4e110e5001ebb20d955e9a97c4ddf5a0ed85effde2a477c60c2e7d2d2fc814c"}},{"ruleId":"D2","level":"warning","message":{"text":"migrations.migrateAuthToAuthJson (cognitive 21): migrations.migrateAuthToAuthJson has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 2 (5 pts), error handling 2 (4 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/coding-agent/src/migrations.ts"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1a6a9ecbbaad0eca2ff78a7376d6c57be3f1ceaf649b0ee041e60effef893e7"}},{"ruleId":"D2","level":"warning","message":{"text":"config-selector.buildGroups (cognitive 21): config-selector.buildGroups has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (11 pts), loops 3 (4 pts), ternaries 2 (4 pts), boolean chains 2 (nesting depth added 6). Most of this is not in the body itself: 3 of the 21 points are its own statements and the rest belongs to 2 function items inside it that branch (addToGroup, a function literal at line 166). 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/coding-agent/src/modes/interactive/components/config-selector.ts"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd0cbf8bee9203a92dfadc3aa5456b7ff918575977d733bfe1d363c3f66e9360"}},{"ruleId":"D2","level":"warning","message":{"text":"template.flattenTree (cognitive 21): template.flattenTree has cognitive complexity 21 (threshold 15). Drivers by points: loops 6 (8 pts), ternaries 3 (6 pts), if/else 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/coding-agent/src/core/export-html/template.js"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7294cef75debbe5699820de943295b58cdc2dacf96e9d2c91251fa745017f45"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskScheduler.#links (cognitive 21): TaskScheduler.#links has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/harness/scheduler.ts"},"region":{"startLine":1210}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea9017745dffce9b875cde05dc4984fef3809241258ee395c038ff214a48056f"}},{"ruleId":"D2","level":"warning","message":{"text":"CodemodeCall.onIdle (cognitive 21): CodemodeCall.onIdle has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (13 pts), ternaries 2 (5 pts), boolean chains 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/durable/src/codemode/codemode.ts"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf6d05a07bcc17a3dda559e7e376bed4b429adfedb842136ad8c04b24d14f734"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteDirReader.next (cognitive 21): RemoteDirReader.next has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 2 (3 pts), boolean chains 2, error handling 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/env/src/remote-env.ts"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"df2ae142b38777845e337f18d74cbf39b1431916ceb30b90f0e011cae8a5f72b"}},{"ruleId":"D2","level":"warning","message":{"text":"local-package-install.wireConsumer (cognitive 21): local-package-install.wireConsumer has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 5 (7 pts), boolean chains 2, 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":"scripts/local-package-install.mjs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"840bf194c203b088f126972f4aa1e2e619834cd7d743bcacb46fbcb48c5dcf01"}},{"ruleId":"D2","level":"warning","message":{"text":"report.formatEvalComparisonReport (cognitive 21): report.formatEvalComparisonReport has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (10 pts), ternaries 2 (6 pts), loops 3 (4 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/evals/src/report.ts"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"e33e57a257cd9fe1ce82018076d04b656b76168097e8f81c5bf66ef63b67c87a"}},{"ruleId":"D2","level":"warning","message":{"text":"render.renderTrace (cognitive 21): render.renderTrace has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 5 (8 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/telemetry/src/render.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"aad59b79b567cc04b00597026e5ae95bd934218486c9b5331bbffd20ecbd683e"}},{"ruleId":"D2","level":"warning","message":{"text":"pi_env::list::list (cognitive 21): pi_env::list::list has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (18 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/env/daemon/src/list.rs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"75f3c4c10e7c2e490a1128dc44909bc5b68c704686296d8633100fc7e754af3d"}},{"ruleId":"D2","level":"warning","message":{"text":"kimi-coding.refreshToken (cognitive 20): kimi-coding.refreshToken has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (10 pts), ternaries 2 (5 pts), boolean chains 2, error handling 1 (2 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/ai/src/auth/oauth/kimi-coding.ts"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"22085cc1022ba59fb7a5701d60c0c609123d801dfe949cdc585ae240ecf47ff4"}},{"ruleId":"D2","level":"warning","message":{"text":"diff.identitySubsequence (cognitive 20): diff.identitySubsequence has cognitive complexity 20 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 4 (8 pts), boolean chains 2 (nesting depth added 10). 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/chord/src/delta/diff.ts"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"59583b95e11562c90df52eaf9d4e936c3c3239e8ef640cbcfce62f3ad82087c9"}},{"ruleId":"D2","level":"warning","message":{"text":"ObjectImpl.#activate (cognitive 20): ObjectImpl.#activate has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 3, loops 2, error handling 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/src/object.ts"},"region":{"startLine":1095}}}],"partialFingerprints":{"codehealthFindingId/v1":"60687c45c22ef669ead34d2d5e3980aa05d294f781076814f4670c647f626597"}},{"ruleId":"D2","level":"warning","message":{"text":"remote.remoteLauncher (cognitive 20): remote.remoteLauncher has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 6, loops 2, error handling 1, ternaries 1 (nesting depth added 2). None of this is in the body itself: all 20 points belong to 7 function literals inside it that branch (lines 206, 200, 239, \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/codemode/src/runtime/remote.ts"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"b188a763d19c34554dc85696b17e595c85dc72252d6000ad9bbba66bc748ef88"}},{"ruleId":"D2","level":"warning","message":{"text":"bash.rebuildBashResultRenderComponent (cognitive 20): bash.rebuildBashResultRenderComponent has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (17 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/coding-agent/src/core/tools/renderers/bash.ts"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f850492868ad3373e1c5a21109126e3a14b7be6b8289d4d402bede63f205bc3"}},{"ruleId":"D2","level":"warning","message":{"text":"compaction.estimateProjectedContextTokens (cognitive 20): compaction.estimateProjectedContextTokens has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 3 (5 pts), ternaries 2 (3 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/compaction/compaction.ts"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"97b35f0122d34f2611e5ca6fa8410e9a67850ee80a8a5e5588f9279c33b04d7e"}},{"ruleId":"D2","level":"warning","message":{"text":"system-prompt.buildSystemPromptSections (cognitive 20): system-prompt.buildSystemPromptSections has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 3, boolean chains 2, ternaries 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/system-prompt.ts"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"4530b219879ae62f3e6956569237473c9cfd115e802259eab9f80dbc1e069a60"}},{"ruleId":"D2","level":"warning","message":{"text":"photon.patchPhotonWasmRead (cognitive 20): photon.patchPhotonWasmRead has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (12 pts), error handling 3 (4 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 11). Most of this is not in the body itself: 1 of the 20 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 59, 99). 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/coding-agent/src/utils/photon.ts"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8d0758d96216c8221acc7ab671b18b3785dd94210a11608e73b2969dbb2b266"}},{"ruleId":"D2","level":"warning","message":{"text":"ExtensionRunner.emitUserBash (cognitive 20): ExtensionRunner.emitUserBash has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 2 (8 pts), if/else 2 (6 pts), error handling 1 (3 pts), loops 2 (3 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/runner.ts"},"region":{"startLine":1269}}}],"partialFingerprints":{"codehealthFindingId/v1":"b22b130c7b5ba5d1d5ad1fa9828a50bc84e9ceb2bd5ded56d3a0c9234620e307"}},{"ruleId":"D2","level":"warning","message":{"text":"crash-log.findExtensionStackMatches (cognitive 20): crash-log.findExtensionStackMatches has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 4 (9 pts), if/else 3 (5 pts), boolean chains 4, error handling 1, loops 1 (nesting depth added 7). 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/coding-agent/src/core/crash-log.ts"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"09b7a07a565e69a1965395394f1fc4ac08b3075907c26203a1d2ca2b63310036"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomEditor.handleInput (cognitive 20): CustomEditor.handleInput has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (17 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/coding-agent/src/modes/interactive/components/custom-editor.ts"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab65ac1b4adea519e555e693602012b1acf040f6a4da66ea509bb08815d48c5a"}},{"ruleId":"D2","level":"warning","message":{"text":"InteractiveMode.handleSessionCommand::renderInfo (cognitive 20): InteractiveMode.handleSessionCommand::renderInfo has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (8 pts), ternaries 2 (5 pts), boolean chains 4, loops 1 (3 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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":6705}}}],"partialFingerprints":{"codehealthFindingId/v1":"9631d1d93c4fdc9262b07282e6108e8c28a0f10b9d73cf015065328c7cad884b"}},{"ruleId":"D2","level":"warning","message":{"text":"InteractiveMode.handleBashCommand (cognitive 20): InteractiveMode.handleBashCommand has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (12 pts), ternaries 3 (6 pts), error handling 2 (nesting depth added 6). 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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":6983}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bd02ea1ef7e58e9deea70ccdda1388f358ba4bfb6b012dad1ef849e0929b426"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentSession.prompt (cognitive 20): AgentSession.prompt has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 2, ternaries 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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/coding-agent/src/core/agent-session.ts"},"region":{"startLine":2092}}}],"partialFingerprints":{"codehealthFindingId/v1":"755ce72a48e290979d29d6ccf701efb518c0cef52a4de9c490fd3c7fff8fa56e"}},{"ruleId":"D2","level":"warning","message":{"text":"LlamaClient.watch (cognitive 20): LlamaClient.watch has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (11 pts), error handling 1 (4 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/coding-agent/src/extensions/llama/client.ts"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f4513a048b42809ba3331aa5fd772964fc2594ed1839166f2cc449420e60fc7"}},{"ruleId":"D2","level":"warning","message":{"text":"LlamaClient.loadAndWait (cognitive 20): LlamaClient.loadAndWait has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 3, ternaries 1 (3 pts), loops 1 (nesting depth added 6). Of this number, 14 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/coding-agent/src/extensions/llama/client.ts"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"6abdddc6f537873949b3bcd73d757bd461a3439c3c3e2ab4c3e4c211fd0f6755"}},{"ruleId":"D2","level":"warning","message":{"text":"LlamaClient.downloadAndWait (cognitive 20): LlamaClient.downloadAndWait has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 3, loops 1 (nesting depth added 6). Of this number, 14 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/coding-agent/src/extensions/llama/client.ts"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"e117fe93e86c4c102f402f596d85782965c81704e08afd10ff9a32306a628bf2"}},{"ruleId":"D2","level":"warning","message":{"text":"migrations.migrateToolsToBin (cognitive 20): migrations.migrateToolsToBin has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (11 pts), error handling 2 (8 pts), 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/coding-agent/src/migrations.ts"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2cd33730cf64ff11bcc2c4934d57b80808adf505dcee26e4366774cd01969e6"}},{"ruleId":"D2","level":"warning","message":{"text":"main.runAuthCommand (cognitive 20): main.runAuthCommand has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (8 pts), ternaries 5 (8 pts), error handling 3, boolean chains 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/main.ts"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5b471027ddc959e92de0d690c57f26bf882cf05c5253d10a408b80d0ff45bf7"}},{"ruleId":"D2","level":"warning","message":{"text":"forks.collectCopies (cognitive 20): forks.collectCopies has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 3 (10 pts), if/else 2 (6 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/durable/src/session/forks.ts"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"0319f56c0e9d037221c6f40116a0f6f97ba571fdc027d24c599796a5960a89b5"}},{"ruleId":"D2","level":"warning","message":{"text":"tool.finalResult (cognitive 20): tool.finalResult has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (10 pts), ternaries 5 (7 pts), boolean chains 3 (nesting depth added 4). 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, 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/durable/src/harness/tool.ts"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"1073e041e8d499ba8963f604f86aa41feeb51cc825b21a4ee4c2709905863c7e"}},{"ruleId":"D2","level":"warning","message":{"text":"generation.finishToolRound (cognitive 20): generation.finishToolRound has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 3, ternaries 2 (nesting depth added 6). Most of this is not in the body itself: 2 of the 20 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 730, 712, 721). 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/durable/src/harness/generation.ts"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a70775a5e34ce4d43fc024aba7d9d8906294d60d1c5853981ed810894624492"}},{"ruleId":"D2","level":"warning","message":{"text":"CodemodeCall.pump (cognitive 20): CodemodeCall.pump has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 4, boolean chains 3, ternaries 1 (2 pts), error handling 1 (nesting depth added 5). Most of this is not in the body itself: 9 of the 20 points are its own statements and the rest belongs to one function literal inside it that branches (line 976). 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/durable/src/codemode/codemode.ts"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"181208faf71f94766e5e8419744c698234e7977f54dae407d2ec0db58a229bdc"}},{"ruleId":"D2","level":"warning","message":{"text":"MemoryStorage.prepareDocumentActions (cognitive 20): MemoryStorage.prepareDocumentActions has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (13 pts), boolean chains 2, match/switch 1 (2 pts), 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/durable/src/storage/memory.ts"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cbd7357effa2cdd24217cf008a6997e159515b3b2b4124b2b670be01d20695a"}},{"ruleId":"D2","level":"warning","message":{"text":"storage.validateMainOperation (cognitive 20): storage.validateMainOperation has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 6, match/switch 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/durable/src/storage/jsonl/storage.ts"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"af93c0e76c0007665f55a9b62164bfa93a31a3569dd7e829b0e3f74ab4d0e582"}},{"ruleId":"D2","level":"warning","message":{"text":"utils.ansiCodeLength (cognitive 20): utils.ansiCodeLength has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 4, loops 2 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/tui/src/utils.ts"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba96b2753b692de8f164fe94e7f35a52cf256e8b3a322ad8d48b5df0096c169d"}},{"ruleId":"D2","level":"warning","message":{"text":"word-navigation.findWordBackward (cognitive 20): word-navigation.findWordBackward has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 8, if/else 7 (8 pts), loops 2 (3 pts), ternaries 1 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/tui/src/word-navigation.ts"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"40bf5ea1ab648f84a69d434bac7f149c151853cec032f1b916af6b61bdc6491a"}},{"ruleId":"D2","level":"warning","message":{"text":"SelectList.handleMouse (cognitive 20): SelectList.handleMouse has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 4, ternaries 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/tui/src/components/select-list.ts"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2c1cda0c54ca09531e8ae0e30f4a99f0dcb003149cab4fef03f226b499b8400"}},{"ruleId":"D2","level":"warning","message":{"text":"Editor.handleBackspace (cognitive 20): Editor.handleBackspace has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 5, loops 1 (3 pts), ternaries 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/tui/src/components/editor.ts"},"region":{"startLine":1380}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a30b76f1fd7edef9021504f0e8c486af651731e211d395b685c66a13982c3f9"}},{"ruleId":"D2","level":"warning","message":{"text":"release-notes.fixGithubReleases (cognitive 20): release-notes.fixGithubReleases has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 5 (8 pts), if/else 4 (6 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 6). 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":"scripts/release-notes.mjs"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dbecd163cb2601a5f82d46f89cdcfc2f413855b1642a34d32d9e11bf956ac96"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelsImpl.refresh (cognitive 19): ModelsImpl.refresh has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (9 pts), ternaries 2 (4 pts), boolean chains 3, error handling 3 (nesting depth added 4). Most of this is not in the body itself: 5 of the 19 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 577, 580, 572). 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/ai/src/models.ts"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e84ceee11a6cacaae3c3aeb36feb093ee152a4d3c78555ea2a8b8bad23db9ea"}},{"ruleId":"D2","level":"warning","message":{"text":"openai-codex-responses.extractWebSocketError (cognitive 19): openai-codex-responses.extractWebSocketError has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 5, ternaries 2 (4 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/ai/src/api/openai-codex-responses.ts"},"region":{"startLine":1267}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ff5f6a2b60a4b8f25e775d8f0eda46413163fe0682016dee4b27cbfc09455f4"}},{"ruleId":"D2","level":"warning","message":{"text":"generate-models.readGeneratorOptions (cognitive 19): generate-models.readGeneratorOptions has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 3, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/scripts/generate-models.ts"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b2200553198f3469c6e6360120e44ef1bbae3406e43bcc4fd322b8f483b7bf8"}},{"ruleId":"D2","level":"warning","message":{"text":"generate-models.createKimiCodingModels (cognitive 19): generate-models.createKimiCodingModels has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 8, ternaries 4 (8 pts), if/else 1 (2 pts), 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/ai/scripts/generate-models.ts"},"region":{"startLine":1778}}}],"partialFingerprints":{"codehealthFindingId/v1":"3248c790d53d3c5499bf11c4711730dddc72ca6f3528be4f6ac0fd6f256f2955"}},{"ruleId":"D2","level":"warning","message":{"text":"kimi-coding.pollForToken (cognitive 19): kimi-coding.pollForToken has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 5 (9 pts), if/else 6, boolean chains 2, error handling 1 (2 pts) (nesting depth added 5). None of this is in the body itself: all 19 points belong to one function literal inside it that branches (line 152). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/src/auth/oauth/kimi-coding.ts"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dd81c2a328da792f511a818ad0a79afa3f398e141ed91ade856943c90825ed0"}},{"ruleId":"D2","level":"warning","message":{"text":"overflow.isContextOverflow (cognitive 19): overflow.isContextOverflow has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 4 (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/ai/src/utils/overflow.ts"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"94c54005fde464713d56cc3048aef14a936ef7fcc3f42fb0a135eccc690f4970"}},{"ruleId":"D2","level":"warning","message":{"text":"validation.validateToolArguments (cognitive 19): validation.validateToolArguments has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (9 pts), loops 1 (4 pts), ternaries 1 (4 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/ai/src/utils/validation.ts"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"4625eea40c8b4eac64e35e6f430eb65e9be809aa35f4d4dfd921872f03241764"}},{"ruleId":"D2","level":"warning","message":{"text":"PendingOps.#fold (cognitive 19): PendingOps.#fold has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (16 pts), match/switch 1 (2 pts), 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/chord/src/delta/pending.ts"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"56213539408572f320f73914d92b78e4e9a7710253b0681922b8bee100e885e6"}},{"ruleId":"D2","level":"warning","message":{"text":"Reload.checkRefs (cognitive 19): Reload.checkRefs has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 4 (6 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/chord/src/reload.ts"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"01758353137a54354696ae958411337a0f40a94ffe62be489aeb22a540f362e2"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonRevisionValidator.#validate (cognitive 19): JsonRevisionValidator.#validate has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 2 (4 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/src/delta/revision-validator.ts"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"24da71ab01144e3e558d235fd8c2ec914f1125fdcd009e5543be464b91b63361"}},{"ruleId":"D2","level":"warning","message":{"text":"compaction.extractFileOperations (cognitive 19): compaction.extractFileOperations has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 3 (9 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/compaction/compaction.ts"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9580ff69f99183a8fcb3aebe6c66b285f4c624058c36caaca3dcc02daec4501"}},{"ruleId":"D2","level":"warning","message":{"text":"compaction.estimateTokens (cognitive 19): compaction.estimateTokens has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 2 (5 pts), match/switch 1 (nesting depth added 10). 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/coding-agent/src/core/compaction/compaction.ts"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"c708d42732f315cbf877a2a2500a48df20209f281b1cbef3a87b6b6a7d70dfc1"}},{"ruleId":"D2","level":"warning","message":{"text":"diff.renderIntraLineDiff (cognitive 19): diff.renderIntraLineDiff has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (16 pts), boolean chains 2, 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/coding-agent/src/modes/interactive/components/diff.ts"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3106f6459279e79d7076f1b4884fa87b110b146275efcc97d53cdcf1dce50d5"}},{"ruleId":"D2","level":"warning","message":{"text":"ls.createLsToolDefinition.execute (cognitive 19): ls.createLsToolDefinition.execute has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (11 pts), error handling 3 (4 pts), boolean chains 2, loops 1, ternaries 1 (nesting depth added 3). None of this is in the body itself: all 19 points belong to 2 function literals inside it that branch (lines 81, 72). 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/coding-agent/src/core/tools/ls.ts"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"62f12d6218d763dcb74cd5be8442727abce41c8fa3b2ccb5984b72b6b9297566"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionSelectorHeader.render (cognitive 19): SessionSelectorHeader.render has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 7 (11 pts), if/else 7 (8 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/coding-agent/src/modes/interactive/components/session-selector.ts"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"350f6e856771dfc76a01edbc8ea6023e0960316f9f3423905866673f6be0cf86"}},{"ruleId":"D2","level":"warning","message":{"text":"execute.createDiscoveryGlobals (cognitive 19): execute.createDiscoveryGlobals has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 6, ternaries 3, loops 1 (nesting depth added 1). None of this is in the body itself: all 19 points belong to 5 function literals inside it that branch (lines 714, 680, 691, \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/coding-agent/src/extensions/codemode/execute.ts"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3f0fc4abbfb3f7f8cf9485fd25de04815c17239226adeb947d1cde4b6a5dac0"}},{"ruleId":"D2","level":"warning","message":{"text":"agent-session-services.createAgentSessionServices (cognitive 19): agent-session-services.createAgentSessionServices has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 4 (10 pts), error handling 3 (6 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/coding-agent/src/core/agent-session-services.ts"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa08293b675949ce5dc5fe7cbdf68fbcd63eaacaf346e291991c48a362c04d3c"}},{"ruleId":"D2","level":"warning","message":{"text":"TreeList.applyFilter (cognitive 19): TreeList.applyFilter has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 9, if/else 6 (8 pts), loops 1 (2 pts) (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/components/tree-selector.ts"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"782497ffe74e37fbcfe0c974395512736f8c19a79d90f3cc1d77575e7037ac61"}},{"ruleId":"D2","level":"warning","message":{"text":"index.llamaExtension::loadModel (cognitive 19): index.llamaExtension::loadModel has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (9 pts), error handling 2 (4 pts), ternaries 2 (3 pts), loops 1 (2 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/coding-agent/src/extensions/llama/index.ts"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"84fb0962926ad51773d68bd1d2a4c94d4b291055902e948da836df71f80ae311"}},{"ruleId":"D2","level":"warning","message":{"text":"template.renderHeader (cognitive 19): template.renderHeader has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 4, ternaries 2 (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/coding-agent/src/core/export-html/template.js"},"region":{"startLine":1507}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c7ae8ddcc8a6ac31dcdab1d5cfde00f1cb77b30575ebe0a5098aa9aee3e4d02"}},{"ruleId":"D2","level":"warning","message":{"text":"Transaction.createTask (cognitive 19): Transaction.createTask has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (13 pts), ternaries 3, loops 1 (2 pts), boolean chains 1 (nesting depth added 6). None of this is in the body itself: all 19 points belong to one function literal inside it that branches (line 418). 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/durable/src/session/transaction.ts"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bb35eb8dfabeab9fed52e89a7f13c387cc3e39b546ed610e280f82c2d39c0a3"}},{"ruleId":"D2","level":"warning","message":{"text":"agent.resolveAgent (cognitive 19): agent.resolveAgent has cognitive complexity 19 (threshold 15). Drivers by points: loops 6 (9 pts), if/else 3 (5 pts), ternaries 3, boolean chains 2 (nesting depth added 5). Of this number, 17 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. To reduce it, 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/durable/src/harness/agent.ts"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e9a30d74a8cedf0917c643dd38a588d632a6803db658d64a660a4686153c520"}},{"ruleId":"D2","level":"warning","message":{"text":"context.orderToolResults (cognitive 19): context.orderToolResults has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 3 (5 pts), ternaries 1 (3 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/durable/src/harness/context.ts"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"12b84f1e853b123462cfe2db2c1fecd979f9498a0345df3348da682083ad393b"}},{"ruleId":"D2","level":"warning","message":{"text":"task-graph.advance (cognitive 19): task-graph.advance has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 3, boolean chains 2, ternaries 1 (nesting depth added 7). 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, split the body into named stages: move each independent step or branch into 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/durable/src/harness/task-graph.ts"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce8b26d9ef5651c0c8791306798b629a7e5932cb14533b80cfb59ac17c691160"}},{"ruleId":"D2","level":"warning","message":{"text":"tool.settle (cognitive 19): tool.settle has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 4, ternaries 1 (2 pts) (nesting depth added 5). None of this is in the body itself: all 19 points belong to 2 function literals inside it that branch (lines 664, 658). 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/durable/src/harness/tool.ts"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac9c465a2cf2bf9a47015b42c14cda91c0ac5a38bd3857cf0443a3cb67b35fed"}},{"ruleId":"D2","level":"warning","message":{"text":"NodeFileWatcher.#scan (cognitive 19): NodeFileWatcher.#scan has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15 (32 pts), boolean chains 5, loops 3 (4 pts), error handling 2 (3 pts), ternaries 1 (2 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. This shape REPEATS in the file: one other method here (NodeFileWatcher.#scan::scanDirectory) 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/durable/src/env/node-watch.ts"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c5ebe30d0992a5e71d32039824f593d95bceb6c8933bad19c06398b10682798"}},{"ruleId":"D2","level":"warning","message":{"text":"NodeDirReader.next (cognitive 19): NodeDirReader.next has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 3, error handling 2 (3 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/env/node.ts"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfde6cad3af331159eb6e5814c2fab85097cf92a6ee7bbf9d4dd81b7cf2f6ea7"}},{"ruleId":"D2","level":"warning","message":{"text":"utils.getOsc8LinkAtColumn (cognitive 19): utils.getOsc8LinkAtColumn has cognitive complexity 19 (threshold 15). Drivers by points: if/else 3 (8 pts), loops 3 (5 pts), boolean chains 3, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/tui/src/utils.ts"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf2813312e9a32aa639b0daa7937217cfbed4c5814a8c41c19aca23c16be1efc"}},{"ruleId":"D2","level":"warning","message":{"text":"CombinedAutocompleteProvider.applyCompletion (cognitive 19): CombinedAutocompleteProvider.applyCompletion has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 8, ternaries 5 (8 pts), if/else 3 (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/tui/src/autocomplete.ts"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e7dfb3faef32d3243cb4cc870180686032e556da66d64a124391f49f813fb09"}},{"ruleId":"D2","level":"warning","message":{"text":"editor.segmentWithMarkers (cognitive 19): editor.segmentWithMarkers has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 3 (4 pts), boolean chains 3, ternaries 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/tui/src/components/editor.ts"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f7c61aa208453408f9a3bad805567a21091ad9ad13de60fbd209584a7b18f08"}},{"ruleId":"D2","level":"warning","message":{"text":"check-entry-graphs.resolveSpec (cognitive 19): check-entry-graphs.resolveSpec has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 3 (5 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":"scripts/check-entry-graphs.mjs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"6be43bd12378714f23f13866d40c1a0de1639b801da0b946ac104b6e6e374692"}},{"ruleId":"D2","level":"warning","message":{"text":"edit-tool-stats.parseArgs (cognitive 19): edit-tool-stats.parseArgs has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 2, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/edit-tool-stats.mjs"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c5b10149bd4f1f2af9d21d5e2947a3d63c170c3347e0fd6ba0d6fa8cbe95646"}},{"ruleId":"D2","level":"warning","message":{"text":"profile-coding-agent-node.runBuild (cognitive 19): profile-coding-agent-node.runBuild has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 4 (10 pts), if/else 3 (8 pts), 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":"scripts/profile-coding-agent-node.mjs"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2e3fd5960f8bf6375542f094524e65bff1ca3ef93efa6e02dfc80436e892c22"}},{"ruleId":"D2","level":"warning","message":{"text":"proxy.processProxyEvent (cognitive 18): proxy.processProxyEvent has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 1, match/switch 1 (nesting depth added 8). 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/agent/src/proxy.ts"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"b38f7bad8e363885e92ea3cac2d998f70973d23e11fb9e8d52bee1d7bbd3c798"}},{"ruleId":"D2","level":"warning","message":{"text":"google-generative-ai.buildParams (cognitive 18): google-generative-ai.buildParams has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 6, ternaries 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/ai/src/api/google-generative-ai.ts"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"577e33d85cd1dc87bb43fcb753a2185d49218cdc785e09f4c8dc9066b992f674"}},{"ruleId":"D2","level":"warning","message":{"text":"google-vertex.buildParams (cognitive 18): google-vertex.buildParams has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 6, ternaries 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/ai/src/api/google-vertex.ts"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"a468914e3a463673d721b99edac92ce23e3d59134904d8ca9df8b7709d9494ad"}},{"ruleId":"D2","level":"warning","message":{"text":"system-one-shared.parseAnswers (cognitive 18): system-one-shared.parseAnswers has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/src/api/system-one-shared.ts"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ca52dbec9a06fbaca0690b25b55eeac08b9b5ca0af4fa7b81eb0a01576b8593"}},{"ruleId":"D2","level":"warning","message":{"text":"config.getSelfUpdateCommandForMethod (cognitive 18): config.getSelfUpdateCommandForMethod has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 8 (16 pts), boolean chains 1, match/switch 1 (nesting depth added 8). 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/coding-agent/src/config.ts"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6c4ef72855c20f1b944fa92d3050b9c3fe30bb39b8ff883ae5cc0fbddbe510c"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionManager.listAll (cognitive 18): SessionManager.listAll has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 5 (6 pts), boolean chains 5, if/else 4, error handling 3 (nesting depth added 1). Of this number, 9 points are the body\u0027s own statements and 9 belong to 5 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/coding-agent/src/core/session-manager.ts"},"region":{"startLine":1932}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a86d53b1affb70fa7f14ed7a18c957e46247cab95ad57aaa5ff573cabac1820"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelRuntime.refresh (cognitive 18): ModelRuntime.refresh has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (7 pts), error handling 2 (4 pts), ternaries 1 (4 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 8). Of this number, 9 points are the body\u0027s own statements and 9 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/coding-agent/src/core/model-runtime.ts"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5f9fce6a07daefb402c133d1e5263aa5a89a3a6aef08b3f7d34b17709b550aa"}},{"ruleId":"D2","level":"warning","message":{"text":"Reload.prepareObject (cognitive 18): Reload.prepareObject has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (13 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/chord/src/reload.ts"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dd40b493cb498615ff0eb29b3bc9e9d391e024b708da8398037516c46085f1b"}},{"ruleId":"D2","level":"warning","message":{"text":"manager.processLock (cognitive 18): manager.processLock has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (8 pts), ternaries 3 (4 pts), error handling 2 (3 pts), boolean chains 2, loops 1 (nesting depth added 6). Of this number, 15 points are the body\u0027s own statements and 3 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/chord/src/manager.ts"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"f61469e645434ae173fcf36fc00399cf43259d17470c0dd7a284fc1bc7b3ed7a"}},{"ruleId":"D2","level":"warning","message":{"text":"theme-schema.validateThemeJson (cognitive 18): theme-schema.validateThemeJson has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 2 (6 pts), boolean chains 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/coding-agent/src/modes/interactive/theme/theme-schema.ts"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4bf818e8f3f50bc4d653a39768e49932231a57c6051f8460e68c5b4e0912f01"}},{"ruleId":"D2","level":"warning","message":{"text":"git.splitRef (cognitive 18): git.splitRef has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 3, error handling 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/utils/git.ts"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"57ef7b715b93a491535190ba4efe6619a2f7ffda01f85b795b4631f3b3138fab"}},{"ruleId":"D2","level":"warning","message":{"text":"output-guard.writeRawStdoutChunk (cognitive 18): output-guard.writeRawStdoutChunk has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (6 pts), ternaries 2 (6 pts), error handling 2 (4 pts), boolean chains 1, loops 1 (nesting depth added 9). Of this number, 10 points are the body\u0027s own statements and 8 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into 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/coding-agent/src/core/output-guard.ts"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fd0c3ccc505780215bd071329b823b1a37808484dfbc19c4b5d6a3d5a1082b3"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultPackageManager.updateConfiguredSources (cognitive 18): DefaultPackageManager.updateConfiguredSources has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":1138}}}],"partialFingerprints":{"codehealthFindingId/v1":"b24ca5dc2bb2dd476d192a14cf9c6a7ff7f4d031b4972cc64bd800a62dd28537"}},{"ruleId":"D2","level":"warning","message":{"text":"system-theme.generateSystemThemeColors::solve (cognitive 18): system-theme.generateSystemThemeColors::solve has cognitive complexity 18 (threshold 15). Drivers by points: if/else 2 (7 pts), loops 3 (6 pts), ternaries 2 (4 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (system-theme.generateSystemThemeColors) 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/coding-agent/src/modes/interactive/theme/system-theme.ts"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"206c369556a2d30b1cf539574334e64435a9e28016751c5675a54a8318b5a507"}},{"ruleId":"D2","level":"warning","message":{"text":"CacheWarmer.refresh (cognitive 18): CacheWarmer.refresh has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7, ternaries 3 (7 pts), boolean chains 2, error handling 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/coding-agent/src/core/cache-warmer.ts"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0280deb603f6a541840a916bf36e83be407c592adcd06a92c01ab7d367bddd3"}},{"ruleId":"D2","level":"warning","message":{"text":"FooterDataProvider.setupGitWatcher (cognitive 18): FooterDataProvider.setupGitWatcher has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 4 (nesting depth added 6). Of this number, 14 points are the body\u0027s own statements and 4 belong to 3 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into 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/coding-agent/src/core/footer-data-provider.ts"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"bca778e25f220a20551c96739ec2cbfec1a90ee0b4e521cc69db3607f4a00431"}},{"ruleId":"D2","level":"warning","message":{"text":"model-resolver.resolveCliModel (cognitive 18): model-resolver.resolveCliModel has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 7 (10 pts), if/else 6, boolean chains 2 (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/coding-agent/src/core/model-resolver.ts"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbe08929ed9501e8c78354960334cca6d73d1a81ad2417333f6a0e6f78af9d54"}},{"ruleId":"D2","level":"warning","message":{"text":"model-resolver.findInitialModel (cognitive 18): model-resolver.findInitialModel has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 6). 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, split the body into named stages: move each independent step or branch into 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/coding-agent/src/core/model-resolver.ts"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f2b1d32e16cef8497fd750d677ee71058cc082bce40daddeb5df2a96f1c0ef1"}},{"ruleId":"D2","level":"warning","message":{"text":"exif-orientation.findJpegTiffOffset (cognitive 18): exif-orientation.findJpegTiffOffset has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (17 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/coding-agent/src/utils/exif-orientation.ts"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a59d7b9129847d2ca9940669bced4063b204f5375e73a49cfa2772aad123375"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultResourceLoader.findSourceInfoForPath (cognitive 18): DefaultResourceLoader.findSourceInfoForPath has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2 (4 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/coding-agent/src/core/resource-loader.ts"},"region":{"startLine":967}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c16c6a9998e9fa2512c3b02a492cb4a0ad3d7905ef7936301558f102b844a2f"}},{"ruleId":"D2","level":"warning","message":{"text":"tools.blockToContent (cognitive 18): tools.blockToContent has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 5 (11 pts), if/else 3 (4 pts), error handling 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/coding-agent/src/extensions/mcp/tools.ts"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"782f6262eff0772d2eaffeb1fc52e94549c8116a346caa36907437b98b2810dd"}},{"ruleId":"D2","level":"warning","message":{"text":"McpServerConnection.withClient (cognitive 18): McpServerConnection.withClient has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (13 pts), boolean chains 2, error handling 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/coding-agent/src/extensions/mcp/runtime.ts"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"509d9a967831483c2934c15eeaff6d19fdece0d3a0b33ae1152176205fa909df"}},{"ruleId":"D2","level":"warning","message":{"text":"bug-report.reportBug (cognitive 18): bug-report.reportBug has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (14 pts), error handling 2 (3 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/bug-report.ts"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae289a894405224d2c762fb59f66fba8fef88ee41b0d220aaf677e3698d0570a"}},{"ruleId":"D2","level":"warning","message":{"text":"TreeList.findBranchSegmentStart (cognitive 18): TreeList.findBranchSegmentStart has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 2 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/components/tree-selector.ts"},"region":{"startLine":1126}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dca96e244cca7238fb891387598f6d9710bb1b3c1f77074f47ff2b7e4b48e20"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentSession._omitRecoveryAttempt (cognitive 18): AgentSession._omitRecoveryAttempt has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 4, ternaries 2 (3 pts), loops 2 (nesting depth added 5). Of this number, 14 points are the body\u0027s own statements and 4 belong to 3 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into 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/coding-agent/src/core/agent-session.ts"},"region":{"startLine":1244}}}],"partialFingerprints":{"codehealthFindingId/v1":"83fd1fa1d0010becdb66928c9d9e4fc6194cbafd74cc55213e15904913e57161"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentSession.getSessionStats (cognitive 18): AgentSession.getSessionStats has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (15 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/coding-agent/src/core/agent-session.ts"},"region":{"startLine":4243}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfed6629e2512c669b0ae1e78bdb84c28458f71a83790d7ac45b4fb53e87c09d"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentSessionRuntime.fork (cognitive 18): AgentSessionRuntime.fork has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (17 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/coding-agent/src/core/agent-session-runtime.ts"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9eefb464e8289ac64078d0ffd4c4247596324adb7b57a572a7243512c96a317"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.parseOptions (cognitive 18): cli.parseOptions has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (13 pts), ternaries 1 (3 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/extensions/mcp/cli.ts"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc4ea694999aa818e6c4efaa3527fdc04fa12479a31da145fb0a5452b5565d4f"}},{"ruleId":"D2","level":"warning","message":{"text":"package-manager-cli.handleConfigCommand (cognitive 18): package-manager-cli.handleConfigCommand has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 5, loops 2, ternaries 2 (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/coding-agent/src/package-manager-cli.ts"},"region":{"startLine":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"a605fc40debe6efeb0585863d0ca7dcbfc830b061327cb61345b5bcb33ca21e8"}},{"ruleId":"D2","level":"warning","message":{"text":"compaction.isCandidate (cognitive 18): compaction.isCandidate has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (11 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/durable/src/harness/compaction.ts"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"8710bace97d2a8fddac0ed69e0c54d8e08f2d3d0de4f768e8995b0276803a02d"}},{"ruleId":"D2","level":"warning","message":{"text":"tool.run (cognitive 18): tool.run has cognitive complexity 18 (threshold 15). Drivers by points: loops 3 (6 pts), if/else 4 (5 pts), ternaries 3, boolean chains 2, error handling 2 (nesting depth added 4). Of this number, 12 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/durable/src/harness/tool.ts"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eecd031a6a64eb9f48a77a8c6102a41ec20c3cdafbc631271707fd451b5d5b0"}},{"ruleId":"D2","level":"warning","message":{"text":"tool.publishProgress (cognitive 18): tool.publishProgress has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (13 pts), loops 1 (2 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 3). None of this is in the body itself: all 18 points belong to 3 function literals inside it that branch (lines 510, 491, 534). 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/durable/src/harness/tool.ts"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ef7ffea0ae1ac9b607b66f7d06e16b0dafb43873d30e3f3cb755f555a194db9"}},{"ruleId":"D2","level":"warning","message":{"text":"read.readImage (cognitive 18): read.readImage has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (17 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/durable/src/tools/read.ts"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"54b21086b09a86770f5cbdf1ef0b61be9998321481a0d5df2f85b4daac9533ee"}},{"ruleId":"D2","level":"warning","message":{"text":"acme-server.createAcmeServer.handle (cognitive 18): acme-server.createAcmeServer.handle has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 3, ternaries 3, error handling 1 (nesting depth added 2). 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, 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/evals/evals/acme-server.ts"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eba59eea794c126fabe69fca8468c4f1d68d700b7985429518cfe80e0470ffa"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamableHttpTransport.runGetStream (cognitive 18): StreamableHttpTransport.runGetStream has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (14 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/mcp/src/transports/streamable-http.ts"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"9919e5ef00e6bdd051b93d5739bbe6e1086cca4975d0bb3ef54093f8c16320b4"}},{"ruleId":"D2","level":"warning","message":{"text":"stdin-buffer.isCompleteCsiSequence (cognitive 18): stdin-buffer.isCompleteCsiSequence has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 3 (nesting depth added 8). 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/tui/src/stdin-buffer.ts"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"51120c9859030cf450bb61108ef44bf54a99433286930dbeb75f2d6b8938687d"}},{"ruleId":"D2","level":"warning","message":{"text":"TuiBase.compositeOverlays (cognitive 18): TuiBase.compositeOverlays has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (6 pts), loops 5 (6 pts), ternaries 1 (4 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/tui/src/tui.ts"},"region":{"startLine":1376}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f6031423f87798582f81ca93c6a7c83cd242157b21c922cf23eb5e9f63a47df"}},{"ruleId":"D2","level":"warning","message":{"text":"Input.render (cognitive 18): Input.render has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (12 pts), ternaries 3 (5 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/tui/src/components/input.ts"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"655b9bd167b00d6f55772bb93a6a28818360993178c23c1ac2eb02b61ed16645"}},{"ruleId":"D2","level":"warning","message":{"text":"LatexParser.parseScripts (cognitive 18): LatexParser.parseScripts has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 10, ternaries 4 (5 pts), if/else 2, loops 1 (nesting depth added 1). Of this number, 12 points are the body\u0027s own statements and 6 belong to 3 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/tui/src/latex.ts"},"region":{"startLine":949}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bf6881ad5102f6f65c452aa5bef921e7441d569e90729ae8ed3c8622e74829e"}},{"ruleId":"D2","level":"warning","message":{"text":"edit-tool-stats.analyzeToolArguments (cognitive 18): edit-tool-stats.analyzeToolArguments has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 10 (16 pts), boolean chains 1, if/else 1 (nesting depth added 6). Of this number, 14 points are the body\u0027s own statements and 4 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/edit-tool-stats.mjs"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"a70bfe94ad9d1b03dee159d2ff744f65a58ba7fe44cde45499ecd759634b5134"}},{"ruleId":"D2","level":"warning","message":{"text":"agent-loop.streamAssistantResponse (cognitive 17): agent-loop.streamAssistantResponse has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), match/switch 1 (2 pts), boolean chains 1, 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/agent/src/agent-loop.ts"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ffd81ccceabba97d61789ba45df74e39b16a613a0971e0a5970e5f983c8137d"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamingJsonParser.#readString (cognitive 17): StreamingJsonParser.#readString 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/ai/src/utils/streaming-json.ts"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"9372056f080d133a82e919b5e45a9bb07681e102ac0dd3ad02927ceafbf0c723"}},{"ruleId":"D2","level":"warning","message":{"text":"anthropic-messages.iterateSseMessages (cognitive 17): anthropic-messages.iterateSseMessages has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 3 (4 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/ai/src/api/anthropic-messages.ts"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"1454294b77b57dd10ad623422c1653b735cbe0cdfbd97de52648e3b6f6acbe0b"}},{"ruleId":"D2","level":"warning","message":{"text":"node-http-proxy.parseNoProxyEntry (cognitive 17): node-http-proxy.parseNoProxyEntry has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), ternaries 1 (4 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/ai/src/utils/node-http-proxy.ts"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"a43e7746fadb0b20cf408e2755fadf5ab4d1623cd65abb4dad0a1e9ede002ccb"}},{"ruleId":"D2","level":"warning","message":{"text":"openai-codex-responses.parseErrorResponse (cognitive 17): openai-codex-responses.parseErrorResponse has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 3 (9 pts), boolean chains 4, if/else 2 (3 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/ai/src/api/openai-codex-responses.ts"},"region":{"startLine":1613}}}],"partialFingerprints":{"codehealthFindingId/v1":"563d0da91446780a3939748926e08627c68a419eae2cb6cf15221adf5271f6ae"}},{"ruleId":"D2","level":"warning","message":{"text":"openai-responses.stream (cognitive 17): openai-responses.stream has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (8 pts), ternaries 5 (6 pts), boolean chains 2, error handling 1 (nesting depth added 2). None of this is in the body itself: all 17 points belong to one function literal inside it that branches (line 163). 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/ai/src/api/openai-responses.ts"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"03cfb4691747bbd0d15e377bd223b92c141c04d4a5d0d06f2dfb79e94e8edde4"}},{"ruleId":"D2","level":"warning","message":{"text":"generate-models.processFireworksModels (cognitive 17): generate-models.processFireworksModels has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (7 pts), ternaries 2 (5 pts), boolean chains 4, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/scripts/generate-models.ts"},"region":{"startLine":1685}}}],"partialFingerprints":{"codehealthFindingId/v1":"996f0a2c602374663f69ff504f0514ce9d4b202e7369ad66d464b4e00f02871c"}},{"ruleId":"D2","level":"warning","message":{"text":"device-code.pollOAuthDeviceCodeFlow (cognitive 17): device-code.pollOAuthDeviceCodeFlow has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), ternaries 2, boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/src/auth/oauth/device-code.ts"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"28aa2f47788530a944cd6476c6b19c0aeddfabbf388f164878a6c87529cc3694"}},{"ruleId":"D2","level":"warning","message":{"text":"validation.coerceWithJsonSchema (cognitive 17): validation.coerceWithJsonSchema has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 4, loops 2 (4 pts) (nesting depth added 4). 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/ai/src/utils/validation.ts"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab824454cf236e2c279ada0169f92b4d72dccd07539d7130190351b9b977d3e0"}},{"ruleId":"D2","level":"warning","message":{"text":"config.getGlobalPackageRoots (cognitive 17): config.getGlobalPackageRoots has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (9 pts), ternaries 3 (6 pts), boolean chains 1, match/switch 1 (nesting depth added 8). 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/coding-agent/src/config.ts"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"329594eb1fcd519f1b8dba0ba5aad14b01e1b1acc0cd08a01f58d42de350d488"}},{"ruleId":"D2","level":"warning","message":{"text":"shell.getShellConfig (cognitive 17): shell.getShellConfig has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/utils/shell.ts"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"75904339b814f999b28274699e484a896b3d62980cec6581bdc5489ebd60427a"}},{"ruleId":"D2","level":"warning","message":{"text":"resolve-config-value.parseConfigValueTemplate (cognitive 17): resolve-config-value.parseConfigValueTemplate has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/resolve-config-value.ts"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"876d2cb058e17005b11422525b1a49a6278979919122f1bb571cb133fafb7290"}},{"ruleId":"D2","level":"warning","message":{"text":"FileAuthStorageBackend.acquireLockAsync (cognitive 17): FileAuthStorageBackend.acquireLockAsync has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (12 pts), boolean chains 2, 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/coding-agent/src/core/auth-storage.ts"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5fb6e2a73d3dd9fcdf0af3f8b8c4100f4f0fe4276b677089ffd8eb776d022c3"}},{"ruleId":"D2","level":"warning","message":{"text":"provider-composer.composeApiKeyAuth.check (cognitive 17): provider-composer.composeApiKeyAuth.check has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), ternaries 2 (3 pts), loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/provider-composer.ts"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"53daef10b9d74c51c7b3f9c7a1adf95f4c991717826539fc86717a00ea2fb1a7"}},{"ruleId":"D2","level":"warning","message":{"text":"diff.identityAnchors (cognitive 17): diff.identityAnchors has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (8 pts), loops 5 (6 pts), ternaries 1 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/src/delta/diff.ts"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"af27bdb5357e4f4711de9b3ad3f3b38df19690a789230224e7d62391b3bce880"}},{"ruleId":"D2","level":"warning","message":{"text":"tracker.orderedArrayPlan (cognitive 17): tracker.orderedArrayPlan has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 3, loops 2, ternaries 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/chord/src/delta/tracker.ts"},"region":{"startLine":1951}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8bed8ff57244e835dc57b1438666116a47165a6de53bdc52de09c3100d3e117"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteBinding.state (cognitive 17): RemoteBinding.state has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 3 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/src/remote.ts"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d26c02147247223c5d90199149125da43cc3aa44f08e889446face12cccda46"}},{"ruleId":"D2","level":"warning","message":{"text":"ObjectImpl.stageListeners (cognitive 17): ObjectImpl.stageListeners has cognitive complexity 17 (threshold 15). Drivers by points: loops 6 (8 pts), if/else 3 (6 pts), boolean chains 2, error handling 1 (nesting depth added 5). Of this number, 10 points are the body\u0027s own statements and 7 belong to 3 function literals inside it that branch. 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/chord/src/object.ts"},"region":{"startLine":1341}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab02be20775fc35349ccc5b38c8829d9470f58e2390d789d6a763cda9e435cb5"}},{"ruleId":"D2","level":"warning","message":{"text":"HostImpl.buildTables (cognitive 17): HostImpl.buildTables has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 3 (4 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/src/host.ts"},"region":{"startLine":812}}}],"partialFingerprints":{"codehealthFindingId/v1":"c91357a7f49f2711a09bf4a476d161db807a18ce4476318699528521f5e7d6e8"}},{"ruleId":"D2","level":"warning","message":{"text":"Execution.deliver (cognitive 17): Execution.deliver has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (8 pts), ternaries 4 (5 pts), boolean chains 4 (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/codemode/src/runtime/execution.ts"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"44a2ee459811f09cf771177e9bb0fc125e076ad495ddd9bd3f16253f158bab2f"}},{"ruleId":"D2","level":"warning","message":{"text":"remote.serveCodemodeRemote (cognitive 17): remote.serveCodemodeRemote has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (9 pts), ternaries 3 (4 pts), boolean chains 2, loops 1, match/switch 1 (nesting depth added 2). Most of this is not in the body itself: 3 of the 17 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 145, 154, 135, \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/codemode/src/runtime/remote.ts"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef45b6cdf85dfabbaa7d95f55375b30dc560a674c36a553bc783a388d0e4fd1e"}},{"ruleId":"D2","level":"warning","message":{"text":"generate-references.referenceRows (cognitive 17): generate-references.referenceRows has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 5 (10 pts), if/else 2 (4 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/coding-agent/scripts/generate-references.ts"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea95f9f8e8332d76be8334e214e99d8513b918881b30f4a3f2b5be6561080afc"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultPackageManager.findSuggestedConfiguredSource (cognitive 17): DefaultPackageManager.findSuggestedConfiguredSource has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (10 pts), boolean chains 3, ternaries 1 (3 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/package-manager.ts"},"region":{"startLine":1465}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1cbbcd6752188aa5f019b679df3d66ece714a975ae63b84ab42df154200e0d9"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultPackageManager.collectPackageResources (cognitive 17): DefaultPackageManager.collectPackageResources has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (9 pts), loops 4 (8 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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":2245}}}],"partialFingerprints":{"codehealthFindingId/v1":"feaf7ec2b0c4d703ff59ba5f659a194ce892c7d73554c7c30c237193331f6ecf"}},{"ruleId":"D2","level":"warning","message":{"text":"package-manager.collectAutoPromptEntries (cognitive 17): package-manager.collectAutoPromptEntries has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), error handling 2 (4 pts), boolean chains 1, 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. This shape REPEATS in the file: one other method here (package-manager.collectAutoThemeEntries) 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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aad6359bc6eab914b16dcd0a427f6726ece7c96f1b77ca2dae8fab4f83ef7e3"}},{"ruleId":"D2","level":"warning","message":{"text":"package-manager.collectAutoThemeEntries (cognitive 17): package-manager.collectAutoThemeEntries has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), error handling 2 (4 pts), boolean chains 1, 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. This shape REPEATS in the file: one other method here (package-manager.collectAutoPromptEntries) 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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc2bbdc515fd5f46e01543e48711d71d68e033fc6fa030d0d81805d7d80ac2af"}},{"ruleId":"D2","level":"warning","message":{"text":"package-manager.applyPatterns (cognitive 17): package-manager.applyPatterns has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (13 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/package-manager.ts"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f231620dcb76a99b1168da139e2cef71352474c8d692178da46b21bd45d1424"}},{"ruleId":"D2","level":"warning","message":{"text":"syntax-highlight.renderHighlightedHtml (cognitive 17): syntax-highlight.renderHighlightedHtml has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 1 (nesting depth added 9). Of this number, 16 points are the body\u0027s own statements and 1 belongs 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/coding-agent/src/utils/syntax-highlight.ts"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"75e39f083cae65c87a210b81db423acc617b731e72830ae540aa5ada64268151"}},{"ruleId":"D2","level":"warning","message":{"text":"bash.createLocalShellOperations.exec (cognitive 17): bash.createLocalShellOperations.exec has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13 (14 pts), ternaries 2, error handling 1 (nesting depth added 1). Of this number, 16 points are the body\u0027s own statements and 1 belongs to 2 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/coding-agent/src/core/tools/bash.ts"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a016059f430e512fb47fd98d597b07a3c0243686542dd2c936c1fe57d77f2fc"}},{"ruleId":"D2","level":"warning","message":{"text":"skills.loadSkillFromFile (cognitive 17): skills.loadSkillFromFile has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 3 (6 pts), if/else 3 (4 pts), boolean chains 3, error handling 2, loops 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/skills.ts"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"99d1b21ece60b0e8bad330f6f672770026048344b53c56bd70a7105b1628d307"}},{"ruleId":"D2","level":"warning","message":{"text":"ExtensionRunner.emitCacheWarmingDecision (cognitive 17): ExtensionRunner.emitCacheWarmingDecision has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 2 (8 pts), error handling 1 (3 pts), if/else 1 (3 pts), loops 2 (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. This shape REPEATS in the file: 2 other methods here (runner.emitProjectTrustEvent, ExtensionRunner.emitBeforeProviderRequest) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 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/coding-agent/src/core/extensions/runner.ts"},"region":{"startLine":1128}}}],"partialFingerprints":{"codehealthFindingId/v1":"581c3849824efba46db9e730914d523cefe6fb278abfc2744596954ff7b0a671"}},{"ruleId":"D2","level":"warning","message":{"text":"ExtensionRunner.emitBeforeProviderRequest (cognitive 17): ExtensionRunner.emitBeforeProviderRequest has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 2 (8 pts), error handling 1 (3 pts), if/else 1 (3 pts), loops 2 (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. This shape REPEATS in the file: 2 other methods here (runner.emitProjectTrustEvent, ExtensionRunner.emitCacheWarmingDecision) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 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/coding-agent/src/core/extensions/runner.ts"},"region":{"startLine":1368}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ab7f55de00d1ae07626ac54b22840408be849600829a40152327d1d83f35d0d"}},{"ruleId":"D2","level":"warning","message":{"text":"runner.emitProjectTrustEvent (cognitive 17): runner.emitProjectTrustEvent has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 2 (8 pts), error handling 1 (3 pts), if/else 1 (3 pts), loops 2 (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. This shape REPEATS in the file: 2 other methods here (ExtensionRunner.emitCacheWarmingDecision, ExtensionRunner.emitBeforeProviderRequest) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 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/coding-agent/src/core/extensions/runner.ts"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"109e31301d9e0878838eed2d751ffb0f10676364662c75e61eb80ea2afe06f02"}},{"ruleId":"D2","level":"warning","message":{"text":"clipboard-image.readClipboardImage (cognitive 17): clipboard-image.readClipboardImage has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (15 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/coding-agent/src/utils/clipboard-image.ts"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"9179e14e8eb09cd21b0a1dfe3e50f256c76f1236356373dd24f8b0b029fd3b9b"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolExecutionComponent.render (cognitive 17): ToolExecutionComponent.render has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/components/tool-execution.ts"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"c02420f756ce114ff4a47d84eb95546992bce8e5e97091d7413db2bd710647b4"}},{"ruleId":"D2","level":"warning","message":{"text":"TreeList.getSearchableText (cognitive 17): TreeList.getSearchableText has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), ternaries 1 (2 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/coding-agent/src/modes/interactive/components/tree-selector.ts"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"528db49e528f46c669139578dd1fec259915d7f25e61ce62bb85a73df2079d5f"}},{"ruleId":"D2","level":"warning","message":{"text":"TreeList.formatToolCall (cognitive 17): TreeList.formatToolCall has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 11, ternaries 2 (4 pts), if/else 1, match/switch 1 (nesting depth added 2). Of this number, 14 points are the body\u0027s own statements and 3 belong to one function item 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/coding-agent/src/modes/interactive/components/tree-selector.ts"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"94e2177c0d33ddf96dfbf9500659d9f47e4c623155387078e53a595bc0572218"}},{"ruleId":"D2","level":"warning","message":{"text":"InteractiveMode.showExtensionCustom (cognitive 17): InteractiveMode.showExtensionCustom has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (11 pts), ternaries 2 (5 pts), error handling 1 (nesting depth added 4). None of this is in the body itself: all 17 points belong to 5 function literals inside it that branch (lines 2954, 2975, 2970, \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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":2927}}}],"partialFingerprints":{"codehealthFindingId/v1":"58e18d2d353b030fd64314de442a4c3c982a0e66208c8edacd33da5a4f66fa8a"}},{"ruleId":"D2","level":"warning","message":{"text":"ResourceList.toggleTopLevelResource (cognitive 17): ResourceList.toggleTopLevelResource has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (14 pts), ternaries 2, boolean chains 1 (nesting depth added 2). Of this number, 15 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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/coding-agent/src/modes/interactive/components/config-selector.ts"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d318b641e5ddbc9f0cb222a5dab6659a87442296c3b1060b591c010e7bfe293"}},{"ruleId":"D2","level":"warning","message":{"text":"Transaction.#validateOwners (cognitive 17): Transaction.#validateOwners has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 3, boolean chains 2, ternaries 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/durable/src/session/transaction.ts"},"region":{"startLine":992}}}],"partialFingerprints":{"codehealthFindingId/v1":"174ca2373b5c6b938e34bb136c5c0eb41cbc57a1cad58b77e9d0b5dbc918119f"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskScheduler.#finalize (cognitive 17): TaskScheduler.#finalize has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 2 (3 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/durable/src/harness/scheduler.ts"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aa3bcec20ece51b9791e1eada71dc85b36caac29f55206848a48d813651688e"}},{"ruleId":"D2","level":"warning","message":{"text":"NodeExecutionEnv.openBinaryReader (cognitive 17): NodeExecutionEnv.openBinaryReader has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 3, ternaries 1 (2 pts), error handling 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/env/node.ts"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"3819b48c2866cea1a7f6f509eec9fc721c868df4c745cd34016ab4cf5675e818"}},{"ruleId":"D2","level":"warning","message":{"text":"node.getShellConfig (cognitive 17): node.getShellConfig has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/env/node.ts"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aa4167df3eb2955787d4856b6c8fa2016d0cf96f3e6d0acee7b39940afdbbc9"}},{"ruleId":"D2","level":"warning","message":{"text":"bash.runCommand (cognitive 17): bash.runCommand has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 2, ternaries 2, 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/durable/src/tools/bash.ts"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"41609100c27f1108ee6f69a22903c4e7c80386749af2a812b92203adfafd3094"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteExecutionEnv.#resolve (cognitive 17): RemoteExecutionEnv.#resolve has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 4, error handling 1 (2 pts), ternaries 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/env/src/remote-env.ts"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"083f598dc3f45b213773e3b84f2022ed6d8273fa38882c58fccb6949ed043cd5"}},{"ruleId":"D2","level":"warning","message":{"text":"local-package-install.smokeTestNpmConsumer (cognitive 17): local-package-install.smokeTestNpmConsumer has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (8 pts), ternaries 3 (7 pts), loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/local-package-install.mjs"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"65747b54eb74587c5fc691bb63995ba9482663090129358dae97ed13adbef404"}},{"ruleId":"D2","level":"warning","message":{"text":"report.readTaskObservation (cognitive 17): report.readTaskObservation has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, boolean chains 3, error handling 2, ternaries 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/evals/src/report.ts"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"16b77df2c08a6ef61f6d0fa04b90e7e18dda9ccb5b69213ffdaaef68c4fbf087"}},{"ruleId":"D2","level":"warning","message":{"text":"keys.parseKittySequence (cognitive 17): keys.parseKittySequence has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 5 (10 pts), if/else 5 (6 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/tui/src/keys.ts"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"64625edf1c39cbbeb0558df98c908c4f8460b3acc7c27d5e5c46fd73006844b1"}},{"ruleId":"D2","level":"warning","message":{"text":"Editor.handlePaste (cognitive 17): Editor.handlePaste has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (7 pts), boolean chains 6, ternaries 2 (4 pts) (nesting depth added 3). Of this number, 12 points are the body\u0027s own statements and 5 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into 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/tui/src/components/editor.ts"},"region":{"startLine":1260}}}],"partialFingerprints":{"codehealthFindingId/v1":"7307fe7f2a854c11c0b4e36954c8b07ea16dc1fa110e14d57643f9660ce8b511"}},{"ruleId":"D2","level":"warning","message":{"text":"TuiAltScreen.parseWheelEvent (cognitive 17): TuiAltScreen.parseWheelEvent has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), ternaries 2 (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/tui/src/tui-alt-screen.ts"},"region":{"startLine":976}}}],"partialFingerprints":{"codehealthFindingId/v1":"b18b4ba290bed8a41942c48cb835516473c36c5ecdef29a36d6314b3b3ec12b1"}},{"ruleId":"D2","level":"warning","message":{"text":"preview-packages.publish (cognitive 17): preview-packages.publish has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 4, ternaries 1 (2 pts), 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":"scripts/preview-packages.mjs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"120d402542f0b7d41d4095ff8ae354d85a0c3bf7488eca2ef6c3b675ad7c98b7"}},{"ruleId":"D2","level":"warning","message":{"text":"anthropic-messages.iterateAnthropicEvents (cognitive 16): anthropic-messages.iterateAnthropicEvents has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), ternaries 1 (3 pts), error handling 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/src/api/anthropic-messages.ts"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"f032eb9296743fe1a4246df1487a2ff95e6b71eef4a891c28143288a776832f2"}},{"ruleId":"D2","level":"warning","message":{"text":"openai-responses-shared.processResponsesStream::finalizeResponse (cognitive 16): openai-responses-shared.processResponsesStream::finalizeResponse has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 7, if/else 6, ternaries 2 (3 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: one other method here (openai-responses-shared.processResponsesStream) 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/ai/src/api/openai-responses-shared.ts"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"56178e1fa1563fb58a0a581b592e107c42b76355da0b041083ad3339e08ea5d7"}},{"ruleId":"D2","level":"warning","message":{"text":"openai-codex-responses.buildRequestBody (cognitive 16): openai-codex-responses.buildRequestBody has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (7 pts), ternaries 3 (6 pts), boolean chains 3 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/src/api/openai-codex-responses.ts"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"858da4c5d2cb1023e768da6ae985a156f8025a64ab20dfd019840da80f4ea7fb"}},{"ruleId":"D2","level":"warning","message":{"text":"github-copilot.fetchWithRateLimitRetry (cognitive 16): github-copilot.fetchWithRateLimitRetry has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), boolean chains 3, 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/ai/src/auth/oauth/github-copilot.ts"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee3c3a88d46a2cd12da91876a3adf41a082e029465156f734eb01b33d4a88978"}},{"ruleId":"D2","level":"warning","message":{"text":"openrouter.exchangeAuthorizationCode (cognitive 16): openrouter.exchangeAuthorizationCode has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 2, error handling 2, 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/ai/src/auth/oauth/openrouter.ts"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"061f33a7852021a3dda04a6b2ab24e3ca29a46ba08ad7a19017602dd6860eeef"}},{"ruleId":"D2","level":"warning","message":{"text":"openrouter.personalizeOpenRouterCatalog (cognitive 16): openrouter.personalizeOpenRouterCatalog has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 5, ternaries 2, loops 1 (nesting depth added 1). Of this number, 11 points are the body\u0027s own statements and 5 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/ai/src/providers/openrouter.ts"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"985a422923fcfafa269c95c6c52e80e1e2539ee6c986d8abf4501a401bd605f7"}},{"ruleId":"D2","level":"warning","message":{"text":"diff.equalJson (cognitive 16): diff.equalJson has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 2 (3 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/chord/src/delta/diff.ts"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"e46d160130c90fcacf9d20351e08db3bf4cec3158c0a46514b1646a443fd34de"}},{"ruleId":"D2","level":"warning","message":{"text":"tracker.deduplicateArrayEntries (cognitive 16): tracker.deduplicateArrayEntries has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/src/delta/tracker.ts"},"region":{"startLine":1483}}}],"partialFingerprints":{"codehealthFindingId/v1":"c93b2daf4d6ecc0214dcdbc9e2a1533e9e7cb537a41494cc5884b15510624fbd"}},{"ruleId":"D2","level":"warning","message":{"text":"tracker.hasCoveringDenseRegion (cognitive 16): tracker.hasCoveringDenseRegion has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 2 (3 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/chord/src/delta/tracker.ts"},"region":{"startLine":1785}}}],"partialFingerprints":{"codehealthFindingId/v1":"24ec0a01fb76b4b9e46b98c4aa586be8ab39eb3c3ddbf42554b26d73d7abc78c"}},{"ruleId":"D2","level":"warning","message":{"text":"tracker.buildDenseRegions (cognitive 16): tracker.buildDenseRegions has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 3 (5 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/src/delta/tracker.ts"},"region":{"startLine":1831}}}],"partialFingerprints":{"codehealthFindingId/v1":"1030fb1565fe1758fd7c18ce372502762a01926e7818df89357afd431c075950"}},{"ruleId":"D2","level":"warning","message":{"text":"tracker.hasReservedMutation (cognitive 16): tracker.hasReservedMutation has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 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/chord/src/delta/tracker.ts"},"region":{"startLine":1861}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5423e9cfd6ecae5cf5892e186758baa6162f0d459b534d2907b72cda12bcca5"}},{"ruleId":"D2","level":"warning","message":{"text":"tracker.equalTrustedJson (cognitive 16): tracker.equalTrustedJson has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 2 (3 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/chord/src/delta/tracker.ts"},"region":{"startLine":2211}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfd4e57156b6b3c267b3c0898bcb2b18e7b7ac76b85a82e7dd13361c9b48ad27"}},{"ruleId":"D2","level":"warning","message":{"text":"index.copyContainers (cognitive 16): index.copyContainers has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 1, loops 1, ternaries 1 (nesting depth added 4). Of this number, 13 points are the body\u0027s own statements and 3 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/chord/src/delta/index.ts"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"e227297f4edd3f703bb8b2e998de9305405d5b5500f9307b1578adf0b7d00856"}},{"ruleId":"D2","level":"warning","message":{"text":"Recorder.start (cognitive 16): Recorder.start has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 2, error handling 1, loops 1, ternaries 1 (nesting depth added 3). Of this number, 11 points are the body\u0027s own statements and 5 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/chord/src/telemetry-sqlite/index.ts"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbe7f064112cff3f585b31a3662623b63295ccc0bb2e6f5251ee48757945a2c6"}},{"ruleId":"D2","level":"warning","message":{"text":"declarations.objectType (cognitive 16): declarations.objectType has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 6 (7 pts), if/else 4, boolean chains 3, loops 2 (nesting depth added 1). 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/codemode/src/declarations.ts"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"853c56abf9bdc4d14cf5fa46c94c724d6f66206fd705c6c9498dc238e1b98c00"}},{"ruleId":"D2","level":"warning","message":{"text":"source.parseOptions (cognitive 16): source.parseOptions has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 2, ternaries 1 (2 pts), error handling 1, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/codemode/src/source.ts"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd1a92c0baa2526742a01842263b7e6b65cdf1904d17a9c37289b5a64a517f86"}},{"ruleId":"D2","level":"warning","message":{"text":"usage-totals.getUsageCostBreakdown (cognitive 16): usage-totals.getUsageCostBreakdown has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 6, loops 1 (nesting depth added 3). Of this number, 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/coding-agent/src/core/usage-totals.ts"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"22b24a296285803fd3c6d25160c8ac0723b7b2e56aa3d4eda23402887579f941"}},{"ruleId":"D2","level":"warning","message":{"text":"utils.extractFileOpsFromMessage (cognitive 16): utils.extractFileOpsFromMessage has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/compaction/utils.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"453e61441e4fe04afcdc933263da5972b010e4525d2d0278be6b18615c48691c"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultResourceLoader.loadThemes (cognitive 16): DefaultResourceLoader.loadThemes has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (7 pts), loops 2 (3 pts), ternaries 1 (3 pts), error handling 1 (2 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/resource-loader.ts"},"region":{"startLine":1078}}}],"partialFingerprints":{"codehealthFindingId/v1":"0810d49b7cede41ede31e46f60854467c2c511e16c2cf632e2146d271726547a"}},{"ruleId":"D2","level":"warning","message":{"text":"changelog.parseChangelog (cognitive 16): changelog.parseChangelog has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 2, error handling 1, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/utils/changelog.ts"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"bee930ac87aa5ec7990736504a9f841a5b217ca7c96da5c5a41687cc128e11d3"}},{"ruleId":"D2","level":"warning","message":{"text":"OAuthSelectorComponent.updateList (cognitive 16): OAuthSelectorComponent.updateList has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (7 pts), ternaries 3 (7 pts), boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/components/oauth-selector.ts"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"9094289f75af228e0d8b92690b99b5a12c957f5268490c4f6f093470d226ac4e"}},{"ruleId":"D2","level":"warning","message":{"text":"InteractiveMode.init (cognitive 16): InteractiveMode.init has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), ternaries 3 (6 pts), boolean chains 1 (nesting depth added 5). Of this number, 9 points are the body\u0027s own statements and 7 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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":945}}}],"partialFingerprints":{"codehealthFindingId/v1":"578a7f88af5414b31d40b9b5ebbef9de8c6ef27c54cbc4b0e543670150c7f9be"}},{"ruleId":"D2","level":"warning","message":{"text":"InteractiveMode.getDisplaySourceInfo (cognitive 16): InteractiveMode.getDisplaySourceInfo has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (8 pts), ternaries 4 (8 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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":1583}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bec1072864cdc747969e12e7ba1c9b413514778907593fd96ac9260e29f97ce"}},{"ruleId":"D2","level":"warning","message":{"text":"source-resolver.resolveSourcePath (cognitive 16): source-resolver.resolveSourcePath has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 6 (10 pts), if/else 2 (3 pts), boolean chains 2, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/experimental/source-resolver.ts"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"cab5cb355273459c48b46bd1a365c8c7f2c71c240ef65b67903d3dd09d3efcee"}},{"ruleId":"D2","level":"warning","message":{"text":"Transaction.takeHeld (cognitive 16): Transaction.takeHeld has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), ternaries 2 (4 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/session/transaction.ts"},"region":{"startLine":809}}}],"partialFingerprints":{"codehealthFindingId/v1":"675635d2ccc31c55980805c21c481f1e605bc11f49a41c72b0e075440053d3a8"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionImpl.#runCommit (cognitive 16): SessionImpl.#runCommit has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), error handling 4, loops 1, ternaries 1 (nesting depth added 2). 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, 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/durable/src/session/session.ts"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f5ca906b3487215efaff31e1691fca8ce17ddf94e1bb508b78982f6be1cbdb3"}},{"ruleId":"D2","level":"warning","message":{"text":"agent.addTools (cognitive 16): agent.addTools has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 3 (5 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/durable/src/harness/agent.ts"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"77057faa6db0c1a6bcbbb65494a3adff68af372cdddd9583c27dfd221c1c1d59"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskScheduler.#decide (cognitive 16): TaskScheduler.#decide has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 3, ternaries 1 (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/durable/src/harness/scheduler.ts"},"region":{"startLine":1826}}}],"partialFingerprints":{"codehealthFindingId/v1":"68eb5638d686d145e3d7ae73daaab79e4d1986536e03dcf7b89e0748d9e433a0"}},{"ruleId":"D2","level":"warning","message":{"text":"NodeTextLineReader.readLine (cognitive 16): NodeTextLineReader.readLine has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 pts), 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/durable/src/env/node.ts"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"95c1757e59b411548ce36fc71e8191ee84f8af46c808d13326df61b93e9a1cbc"}},{"ruleId":"D2","level":"warning","message":{"text":"events.toolUpdate (cognitive 16): events.toolUpdate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), ternaries 4, boolean chains 3, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/harness/events.ts"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fabed457caef39ba23357e04f802c3628ce7123f9976d359bc5b434917c5ab6"}},{"ruleId":"D2","level":"warning","message":{"text":"MemoryStorage.scanTasks (cognitive 16): MemoryStorage.scanTasks has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 4, loops 1, ternaries 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/storage/memory.ts"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc909ce0da21d7bec6cc990c66edba1a99fcd9e8bda2cf3f9ce4c4656c842a04"}},{"ruleId":"D2","level":"warning","message":{"text":"IndexedDbStorage.entry (cognitive 16): IndexedDbStorage.entry has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), ternaries 2 (3 pts), loops 1 (2 pts) (nesting depth added 6). None of this is in the body itself: all 16 points belong to one function literal inside it that branches (line 526). 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/durable/src/storage/indexeddb.ts"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f9dd61d5fd18e68709f65a7354a6456bd2e3fdc493a273d441929a9ff67f6ee"}},{"ruleId":"D2","level":"warning","message":{"text":"SqliteStorage.readEntry (cognitive 16): SqliteStorage.readEntry has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), ternaries 2 (3 pts), 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/durable/src/storage/sqlite/storage.ts"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"c98d67dcbf4975c4bc13e23527931c2785299a543cbff6355cc1d6c93dc14e34"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteTextLineReader.readLine (cognitive 16): RemoteTextLineReader.readLine has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 pts), 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/env/src/remote-env.ts"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aee0d34c60ec97356136a0777e5e9ed95e6daad1a07906345a4b683842d0256"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamableHttpTransport.send (cognitive 16): StreamableHttpTransport.send has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (7 pts), boolean chains 4, ternaries 1 (3 pts), 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/mcp/src/transports/streamable-http.ts"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"4715eb530c2aa7e5abc228879efbb92b051c41da4f1c0d2c6044661f6ba9a2df"}},{"ruleId":"D2","level":"warning","message":{"text":"conformance.createTelemetryAdapterConformance (cognitive 16): conformance.createTelemetryAdapterConformance has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, loops 4, boolean chains 2. None of this is in the body itself: all 16 points belong to 12 function literals inside it that branch (lines 179, 190, 61, \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/telemetry/src/testing/conformance.ts"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"6344f69a12e5026cd83374a0141286864b5f0841f173a842d00869befa1d0116"}},{"ruleId":"D2","level":"warning","message":{"text":"AltScreenSearchComponent.render (cognitive 16): AltScreenSearchComponent.render has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 9 (10 pts), if/else 3 (4 pts), boolean chains 2 (nesting depth added 2). Of this number, 12 points are the body\u0027s own statements and 4 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/tui/src/alt-screen-search.ts"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f791bd00cbd5958a06ac76042b89a4d9a4280e69a7e0ca6b0fa41babafdf918"}},{"ruleId":"D2","level":"warning","message":{"text":"CombinedAutocompleteProvider.getFuzzyFileSuggestions (cognitive 16): CombinedAutocompleteProvider.getFuzzyFileSuggestions has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 4 (7 pts), if/else 6, boolean chains 1, error handling 1, loops 1 (nesting depth added 3). Of this number, 11 points are the body\u0027s own statements and 5 belong to 3 function literals inside it that branch. To reduce it, 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/tui/src/autocomplete.ts"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"50ce99ae3d1e3c04ff9e5c3cbf8d2162aa1d99cc22452e9c9a020b08c3dd3da5"}},{"ruleId":"D2","level":"warning","message":{"text":"Editor.navigateHistory (cognitive 16): Editor.navigateHistory has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 3, ternaries 1 (2 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into 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/tui/src/components/editor.ts"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"58e1ec007eb0911e0160f4e32350b16e6ffeb7d12bf13bf14c03e398d3651d13"}},{"ruleId":"D2","level":"warning","message":{"text":"Editor.handleMouse (cognitive 16): Editor.handleMouse has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 5, ternaries 1 (2 pts), loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/tui/src/components/editor.ts"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"98dbfa395f4eaf3d39cd63cdff1b4a7c73c7d54f9575de3136b33204af6424bf"}},{"ruleId":"D2","level":"warning","message":{"text":"markdown.tokenizeInlineLatex (cognitive 16): markdown.tokenizeInlineLatex has cognitive complexity 16 (threshold 15). Drivers by points: if/else 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/tui/src/components/markdown.ts"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"10c8d998aed6e192e248824f1ef5d8820dee856469a4632f8fce6063d899206c"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsList.renderMainList (cognitive 16): SettingsList.renderMainList has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), loops 2 (3 pts), boolean chains 2, 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/tui/src/components/settings-list.ts"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce1ffe56dc57e62cd7502746b45a29dea18e376724d13086907b2380a9681595"}},{"ruleId":"D2","level":"warning","message":{"text":"check-runtime-deps.checkSource::visit (cognitive 16): check-runtime-deps.checkSource::visit has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 9, if/else 5 (7 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/check-runtime-deps.mjs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"c84c5c8dc6275ad89d314b616304fd6ec90b79b04e30396ae74b71bcba53c5ec"}},{"ruleId":"D2","level":"warning","message":{"text":"generate-coding-agent-install-lock.resolveExternalDependency (cognitive 16): generate-coding-agent-install-lock.resolveExternalDependency has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (7 pts), boolean chains 5, loops 2, ternaries 1 (2 pts) (nesting depth added 4). Of this number, 14 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/generate-coding-agent-install-lock.mjs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2dd4b2951fea521939d31fae501b465037506aa70e3d252d1ee294ce4bc855a"}},{"ruleId":"D2","level":"warning","message":{"text":"profile-coding-agent-node.runRpcBenchmarkRun (cognitive 16): profile-coding-agent-node.runRpcBenchmarkRun has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6, boolean chains 5, ternaries 5. Of this number, 15 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":"scripts/profile-coding-agent-node.mjs"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"45a1c2f6d55114413acd2615f31882038e808561412d826f517dab5c28480ac1"}},{"ruleId":"D2","level":"warning","message":{"text":"session-context-stats.parseArgs (cognitive 16): session-context-stats.parseArgs has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13 (14 pts), boolean chains 1, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/session-context-stats.mjs"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"bff0750f4fba5d99cd12240f898274cb4e1136c3fd63f066fe06884ac190a63b"}},{"ruleId":"D2","level":"warning","message":{"text":"Output::run (cognitive 16): Output::run has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 2 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/env/daemon/src/output.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cb4e82f46e876e3e3384ee9fb6134460f1e751466b7ef62847b2095ec118b99"}},{"ruleId":"D2","level":"warning","message":{"text":"FileWatcher::scan (cognitive 16): FileWatcher::scan has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 2 (3 pts), match/switch 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/env/daemon/src/watch.rs"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"592e7ed1aafdd57e863dd88acceaa44b43a0541fb0c3cacc60e76e865ea0c90e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: storage-conformance.createStorageConformance: FunctionTooLong \u2014 createStorageConformance runs 1237 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1137 over it, 12.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/durable/src/testing/storage-conformance.ts"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"a21552ffb439b938965ef59c00b0a40e19534f29511739d506fa5a0ded0b8a61"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: InteractiveMode: ClassTooLong \u2014 4531 significant lines (blank, comment-only and punctuation-only lines excluded), 201 methods. The bar is 400 significant lines; this is 4131 over it, 11.33\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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"59955440732c8031369c56ad6d35ca3a4a0f655b2ac290e9d785a12365316d8e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: interactive/interactive-mode.ts: FileTooLong \u2014 4883 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: InteractiveMode (453-7105). The bar is 500 significant lines; this is 4383 over it, 9.77\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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ef2e5e60847f52fcbb958279ab8652d9296f47ccad799e24ebca538c949129c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: index.createMcpExtension: FunctionTooLong \u2014 createMcpExtension runs 753 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 653 over it, 7.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/coding-agent/src/extensions/mcp/index.ts"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"58c27e1ed9f160d43e284faf63f3a056eec29e9bbfc73529e24d172b091406a0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: InteractiveMode: TooManyMethods \u2014 201 methods. The bar is 30 methods; this is 171 over it, 6.70\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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"1490041191a4fe8bda47a02bb6acf9028618570fdfb7dd90fa7f875f28ad0601"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: generate-models.generateModels: FunctionTooLong \u2014 generateModels runs 634 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 534 over it, 6.34\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/ai/scripts/generate-models.ts"},"region":{"startLine":2782}}}],"partialFingerprints":{"codehealthFindingId/v1":"44ce474720c134b20fd2cfc609daa9456d0f153a6262c8c491770e54e7b2758e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AgentSession: ClassTooLong \u2014 2457 significant lines (blank, comment-only and punctuation-only lines excluded), 140 methods. The bar is 400 significant lines; this is 2057 over it, 6.14\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/coding-agent/src/core/agent-session.ts"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbce91dc6b5ef2ba7a0aea00617ab408d523d70cc19aebd7daab897052d1a0f0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: generate-models.loadModelsDevData: FunctionTooLong \u2014 loadModelsDevData runs 561 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 461 over it, 5.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/ai/scripts/generate-models.ts"},"region":{"startLine":1821}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea9081bc060f4149d543fb8b8022407af49c05f20c493475151e85b1b7641575"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: core/agent-session.ts: FileTooLong \u2014 2723 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: AgentSession (379-4458). The bar is 500 significant lines; this is 2223 over it, 5.45\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/coding-agent/src/core/agent-session.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"04f70601c90f93b5522ff508e10e0fe58b9d7ea3c4e9df3760b993e98303fea5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scripts/generate-models.ts: FileTooLong \u2014 2639 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2139 over it, 5.28\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/ai/scripts/generate-models.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b344573235e3c0e0f3432ea11cfd1235fcaaecf5da4ab347bcbc24fa95909e7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SettingsManager: TooManyMethods \u2014 154 methods. The bar is 30 methods; this is 124 over it, 5.13\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/coding-agent/src/core/settings-manager.ts"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"21d759f123662858ae76cb27b714a4871179091a7084e256a39bcf2788555d5c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AgentSession: TooManyMethods \u2014 140 methods. The bar is 30 methods; this is 110 over it, 4.67\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/coding-agent/src/core/agent-session.ts"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d3a54d1ef1b2bce05005c386794c3b9a95849651ef14b51dde9c866d954c951"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: rpc-mode.runRpcMode: FunctionTooLong \u2014 runRpcMode runs 443 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 343 over it, 4.43\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/rpc/rpc-mode.ts"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cef7f6dafe3d4180ea78ed62c04f47e539f46de5f75e4cb2a16a018b8ef1564"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SettingsSelectorComponent.constructor: MethodTooLong \u2014 constructor runs 409 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 309 over it, 4.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/components/settings-selector.ts"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"5436302625d9371b1e3a0aff654ac7b37128178b6f1fbf415de2206b27519002"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: core/package-manager.ts: FileTooLong \u2014 1894 significant lines (blank, comment-only and punctuation-only lines excluded), about 72% of them inside a single declaration: DefaultPackageManager (828-2791). The bar is 500 significant lines; this is 1394 over it, 3.79\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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"686720d7826299b5fb97bb5b9ccff9d4fca44b88867439e3ab4cd28e25f7aef3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: env-conformance.createEnvConformance: FunctionTooLong \u2014 createEnvConformance runs 376 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 276 over it, 3.76\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/testing/env-conformance.ts"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"e809e6dac07f4827aa7c20a0c2fb3e96ed228abf1f0dfd1179d0dd5c5f641a06"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: delta/tracker.ts: FileTooLong \u2014 1758 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1258 over it, 3.52\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/chord/src/delta/tracker.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c513ab8d39a484bed0204db406a02140fc20923a725a0d6067d61dd901f3e103"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TaskScheduler: ClassTooLong \u2014 1400 significant lines (blank, comment-only and punctuation-only lines excluded), 80 methods. The bar is 400 significant lines; this is 1000 over it, 3.50\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/durable/src/harness/scheduler.ts"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e0173ad0543a699f6d5db9ab5d58c0d5351192dce5601395c2e36657c67ed86"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DefaultPackageManager: ClassTooLong \u2014 1355 significant lines (blank, comment-only and punctuation-only lines excluded), 98 methods. The bar is 400 significant lines; this is 955 over it, 3.39\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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":828}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6ab09e7126f684dd574cb21072b160403cd8f1d502ef8c05a1c484b4f979f97"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: harness/scheduler.ts: FileTooLong \u2014 1637 significant lines (blank, comment-only and punctuation-only lines excluded), about 86% of them inside a single declaration: TaskScheduler (259-2383). The bar is 500 significant lines; this is 1137 over it, 3.27\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/durable/src/harness/scheduler.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d17c5549098c4293c06b29267728bb54eb5108f44963993a6a81e62e31a3283"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DefaultPackageManager: TooManyMethods \u2014 98 methods. The bar is 30 methods; this is 68 over it, 3.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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":828}}}],"partialFingerprints":{"codehealthFindingId/v1":"eec9477b8d4adc7fee1c4a3ac452de492a51fd36267ed974b7daff26a5466477"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: main.main: FunctionTooLong \u2014 main runs 316 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 216 over it, 3.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/coding-agent/src/main.ts"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"6252a8150fdaa9e7ab8162bfd4d28d5dd1bca77c73e4038c02aa8400f8c80e9e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Editor: ClassTooLong \u2014 1262 significant lines (blank, comment-only and punctuation-only lines excluded), 82 methods. The bar is 400 significant lines; this is 862 over it, 3.16\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/tui/src/components/editor.ts"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"288de3266828a39bae5709d832e952358a324d1103ea7a0aa7f03c185b89a0e9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TuiAltScreen: ClassTooLong \u2014 1237 significant lines (blank, comment-only and punctuation-only lines excluded), 79 methods. The bar is 400 significant lines; this is 837 over it, 3.09\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/tui/src/tui-alt-screen.ts"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"055ba7948ea40f2f86b62fa231e5026293f408bf7740431b7d39cf7be4258a29"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: InteractiveMode.handleEvent: MethodTooLong \u2014 handleEvent runs 295 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 195 over it, 2.95\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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":3363}}}],"partialFingerprints":{"codehealthFindingId/v1":"77b73afcdea0c7fb5449a6dd5c63f94f1e3298fc9eee942fb2ee89e922b1003b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openai-completions.stream: FunctionTooLong \u2014 stream runs 289 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 189 over it, 2.89\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/ai/src/api/openai-completions.ts"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e793962f9f8d6efceebbe4c1f969709fba07329f153326f1587393a1c46cf45"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/editor.ts: FileTooLong \u2014 1429 significant lines (blank, comment-only and punctuation-only lines excluded), about 88% of them inside a single declaration: Editor (297-2473). The bar is 500 significant lines; this is 929 over it, 2.86\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/tui/src/components/editor.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e267771c70e59761d985cbee9d100fd156dde7606c691ff02d5489a8d87410e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/tui-alt-screen.ts: FileTooLong \u2014 1386 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: TuiAltScreen (203-1798). The bar is 500 significant lines; this is 886 over it, 2.77\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/tui/src/tui-alt-screen.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"85689636946543f455fecc6914773a8aa3acc93fc0ff5e77dc6abb906f2a7fce"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Editor: TooManyMethods \u2014 82 methods. The bar is 30 methods; this is 52 over it, 2.73\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/tui/src/components/editor.ts"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"60c7b394051f1f2523d6443abc2aea303ea72951fca45412af03eba790f4c5ba"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openai-responses-shared.processResponsesStream: FunctionTooLong \u2014 processResponsesStream runs 273 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 173 over it, 2.73\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/src/api/openai-responses-shared.ts"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"2597b47b4887dd80389feb5c04705b1af1024badc978e8025b2632cd614b6a53"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: anthropic-messages.stream: FunctionTooLong \u2014 stream runs 271 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 171 over it, 2.71\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/src/api/anthropic-messages.ts"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1a46580af0ba7790de5d28ff8930220685eaf1eb1c7565050fa2e7e0925e4ee"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: testing/storage-conformance.ts: FileTooLong \u2014 1336 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: createStorageConformance (134-1813). The bar is 500 significant lines; this is 836 over it, 2.67\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/durable/src/testing/storage-conformance.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1efedb3e4eb9823c1442d9fae1105072882ed3a2ac14fb8ef790a2d1965d46f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TaskScheduler: TooManyMethods \u2014 80 methods. The bar is 30 methods; this is 50 over it, 2.67\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/durable/src/harness/scheduler.ts"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2606b573b0521139255f84833eb2677e4b370d37b540d275ff4fad3f9295ea0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TuiAltScreen: TooManyMethods \u2014 79 methods. The bar is 30 methods; this is 49 over it, 2.63\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/tui/src/tui-alt-screen.ts"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a9e2803e2da8073932c4dd104b6095aa09ca76260749ab02cc41d4d1dfc2aca"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: conformance.createTelemetryAdapterConformance: FunctionTooLong \u2014 createTelemetryAdapterConformance 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/telemetry/src/testing/conformance.ts"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"206de9261a0956c95099888bc2edc9509caccc1e327a59b182dd378afc2679ca"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TuiMainScreen.doRender: MethodTooLong \u2014 doRender 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/tui/src/tui-main-screen.ts"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"d454b378c9f8bbef827c01513489ae6abe512525a06fc82accaaa8b32c4f4282"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: export-html/template.js: FileTooLong \u2014 1290 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 790 over it, 2.58\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/coding-agent/src/core/export-html/template.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f2ceee92f9674d294647f451db1ab61a2a15ac85a3cd70619b34230e36ec506"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: core/session-manager.ts: FileTooLong \u2014 1279 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 779 over it, 2.56\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/coding-agent/src/core/session-manager.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"73ee105c5221cc561e32308f2f1b4698dcb26301ae2d98669f4c7756d5ac835c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/object.ts: FileTooLong \u2014 1273 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 773 over it, 2.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/chord/src/object.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5de8e119bf6fa1588130f5475c7d369c089332ecf6307e55bed28f4137b574a0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: keys.matchesKey: FunctionTooLong \u2014 matchesKey runs 251 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 151 over it, 2.51\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/tui/src/keys.ts"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcf2d555a81806225f3a31566ea9a7a252f6ca56824cc2c033f016809637810a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: api/openai-codex-responses.ts: FileTooLong \u2014 1227 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 727 over it, 2.45\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/ai/src/api/openai-codex-responses.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d9c3f4988610916037d20939c3a154252ca00b0500b367ae16bbfeb3149bc1a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: api/openai-completions.ts: FileTooLong \u2014 1217 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 717 over it, 2.43\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/ai/src/api/openai-completions.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"08456ad6696a0494041ea48a46d3089829774b6ac04caa3181ab9145d57008e6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: HostImpl: TooManyMethods \u2014 72 methods. The bar is 30 methods; this is 42 over it, 2.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/chord/src/host.ts"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab8ec2c07708ea5c555c47348b9cfd71c801c12ace31a485e08d9d504ac80f5d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ExtensionRunner: TooManyMethods \u2014 70 methods. The bar is 30 methods; this is 40 over it, 2.33\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/coding-agent/src/core/extensions/runner.ts"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3a562c20dd99ffba00a5c2b26806748db36a75a47cfe5faef4cd89dfa93b957"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/latex.ts: FileTooLong \u2014 1146 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 646 over it, 2.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/tui/src/latex.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"05b8abf7e5aa508329d185a1d8710880b7e8c60092cabfc400d73e8e5ff050b3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: api/anthropic-messages.ts: FileTooLong \u2014 1145 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 645 over it, 2.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/ai/src/api/anthropic-messages.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"be8e4d34182489f6c5c4cd775dbdec024743a8561f5c187333c98aede471ce20"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: extensions/types.ts: FileTooLong \u2014 1118 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 618 over it, 2.24\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/coding-agent/src/core/extensions/types.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3da59329d5538a91935e374a5e94b8208fb6f46d5c78d9806a35d9bb24caac3a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Transaction: TooManyMethods \u2014 66 methods. The bar is 30 methods; this is 36 over it, 2.20\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/durable/src/session/transaction.ts"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"a47efe97ddf2571e5e107da2d53a965d535cee1c69eeb839e5bb76ef923f8a98"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: extensions/runner.ts: FileTooLong \u2014 1100 significant lines (blank, comment-only and punctuation-only lines excluded), about 74% of them inside a single declaration: ExtensionRunner (364-1565). The bar is 500 significant lines; this is 600 over it, 2.20\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/coding-agent/src/core/extensions/runner.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b539452998207a3ca949fc9c853e004f0bc444538099a264524d44600642b06"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TuiBase: TooManyMethods \u2014 63 methods. The bar is 30 methods; this is 33 over it, 2.10\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/tui/src/tui.ts"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"76f3beec51c741de1ae791dd6a3d7d64dbd363d6be236387692fecea7e77b73a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: loader.createExtensionAPI: FunctionTooLong \u2014 createExtensionAPI 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/coding-agent/src/core/extensions/loader.ts"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0ed60019ea47244bca09b8eed51973f220760a56da22bbf5f4e46517d2aecc9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ExtensionRunner: ClassTooLong \u2014 815 significant lines (blank, comment-only and punctuation-only lines excluded), 70 methods. The bar is 400 significant lines; this is 415 over it, 2.04\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/coding-agent/src/core/extensions/runner.ts"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"27555d0b3aa94bfdb61e3e457a18bfaf7c2c3b7e688e785698b097c920978336"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: sdk.createAgentSession: FunctionTooLong \u2014 createAgentSession 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/coding-agent/src/core/sdk.ts"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8dad65d96d9d0c27a34e4ec11a29f2e1c97bebadc49d2fdb15bbfb7abac8f13"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ModelRuntime: TooManyMethods \u2014 60 methods. The bar is 30 methods; this is 30 over it, 2.00\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/coding-agent/src/core/model-runtime.ts"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"047e65c5157c7f64e8310175cba33af46a46361b7be8aa7e64cdc2041252939e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openai-codex-responses.stream: FunctionTooLong \u2014 stream runs 197 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 97 over it, 1.97\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/src/api/openai-codex-responses.ts"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"43a570497f90008c60a4dc23672561068d3234904cd8787418d17309c88c6e82"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Editor.handleInput: MethodTooLong \u2014 handleInput runs 194 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 94 over it, 1.94\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/tui/src/components/editor.ts"},"region":{"startLine":696}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3fc0bdab2ba77ae79ddadcab72b9ec86976204e953829cffa4446fcd9d16a52"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NodeExecutionEnv.exec: MethodTooLong \u2014 exec runs 193 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 93 over it, 1.93\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/env/node.ts"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"7977406aaceda4362ed4195930984ace51396da37e39a5f499de36f9d2028492"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: storage/indexeddb.ts: FileTooLong \u2014 960 significant lines (blank, comment-only and punctuation-only lines excluded), about 69% of them inside a single declaration: IndexedDbStorage (378-1209). The bar is 500 significant lines; this is 460 over it, 1.92\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/durable/src/storage/indexeddb.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3ecf285885afd432b632298f577984609ac498c014345b5b067ff9025b181b4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/easter-egg-3d.ts: FileTooLong \u2014 949 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 449 over it, 1.90\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/coding-agent/src/modes/interactive/components/easter-egg-3d.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e35ca5ce3b7f7a7bc7de316d1d3a3d6769e4833e03524110db59198b0808e001"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/tree-selector.ts: FileTooLong \u2014 949 significant lines (blank, comment-only and punctuation-only lines excluded), about 74% of them inside a single declaration: TreeList (107-1155). The bar is 500 significant lines; this is 449 over it, 1.90\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/coding-agent/src/modes/interactive/components/tree-selector.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ee82797710cb4c20bc3755f8071babbb9dc6132087f38ce8a781d3cbed00a91"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: env/node.ts: FileTooLong \u2014 947 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 447 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/durable/src/env/node.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"561539833e7dc5eede9d5837da16b462a4727bccd3e261d548f12ab0008d5eb8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openai-responses-shared.convertResponsesMessages: FunctionTooLong \u2014 convertResponsesMessages 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/ai/src/api/openai-responses-shared.ts"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd46fb2e819e552e5260b611b0defe0c41d131cb86a44464bc5dc5294b1c509e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: faux.createFauxCore: FunctionTooLong \u2014 createFauxCore 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/ai/src/providers/faux.ts"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9290c62271927faf6da88496842467e0a2aba98f7a489c6c840396deb3d189f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: core/resource-loader.ts: FileTooLong \u2014 936 significant lines (blank, comment-only and punctuation-only lines excluded), about 74% of them inside a single declaration: DefaultResourceLoader (342-1322). The bar is 500 significant lines; this is 436 over it, 1.87\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/coding-agent/src/core/resource-loader.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"baed27ff3cef7e4d1273dfcf5f8aa2be822be1422209e3047033f1b4c05738db"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: grep.createGrepToolDefinition: FunctionTooLong \u2014 createGrepToolDefinition runs 187 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 87 over it, 1.87\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/coding-agent/src/core/tools/grep.ts"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"613859583fd90f12c6388a91df6a0bd83836384349c4105ee98815685a5b74f8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openai-completions.convertMessages: FunctionTooLong \u2014 convertMessages runs 186 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 86 over it, 1.86\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/src/api/openai-completions.ts"},"region":{"startLine":1178}}}],"partialFingerprints":{"codehealthFindingId/v1":"e06a495a2ab60f0fb6da29f106fefe025226cfdfa3a2a1379554e5e03528a947"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SettingsManager: ClassTooLong \u2014 741 significant lines (blank, comment-only and punctuation-only lines excluded), 154 methods. The bar is 400 significant lines; this is 341 over it, 1.85\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/coding-agent/src/core/settings-manager.ts"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"339bf670fe405f5dcc90b3305a6618114f2630c184cbee071a93e0874583d230"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: google-vertex.stream: FunctionTooLong \u2014 stream runs 185 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 85 over it, 1.85\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/src/api/google-vertex.ts"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"aea1c4c4a1591bc04aab768dd31a1b5eceaf9ec8486cc3dd2633fe3a2d1adaa1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/tui.ts: FileTooLong \u2014 921 significant lines (blank, comment-only and punctuation-only lines excluded), about 70% of them inside a single declaration: TuiBase (506-1543). The bar is 500 significant lines; this is 421 over it, 1.84\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/tui/src/tui.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"863f8a64a1b0de48cb173146beb8142d19ddc527cf399b15f11b47f921e67afc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: core/settings-manager.ts: FileTooLong \u2014 918 significant lines (blank, comment-only and punctuation-only lines excluded), about 81% of them inside a single declaration: SettingsManager (272-1443). The bar is 500 significant lines; this is 418 over it, 1.84\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/coding-agent/src/core/settings-manager.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba996eff5da22368ccaa7ce35deb4acd49c49e141019a14999dc8811f85775e3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mcp/index.ts: FileTooLong \u2014 911 significant lines (blank, comment-only and punctuation-only lines excluded), about 83% of them inside a single declaration: createMcpExtension (279-1341). The bar is 500 significant lines; this is 411 over it, 1.82\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/coding-agent/src/extensions/mcp/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"80328316943869fbd6d7f3d09a1157f6862d9afd0eff679f482abb34dc5158a4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/keys.ts: FileTooLong \u2014 907 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 407 over it, 1.81\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/tui/src/keys.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"03457493883a2b18c86b5c7bdb1327dc8f84870f6dd75a21b580c410f5009003"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: session-transcripts.main: FunctionTooLong \u2014 main runs 181 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 81 over it, 1.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":"scripts/session-transcripts.ts"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9f1f7334f415d363796010ff004fdce72c1b260c365f9b33b51d745e6572a3e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: api/bedrock-converse-stream.ts: FileTooLong \u2014 904 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 404 over it, 1.81\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/ai/src/api/bedrock-converse-stream.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c66955f636c09a5ae6dd9b4d8d694f60284a791a010372cb5bbe9230e7b1fbe"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SessionManager: TooManyMethods \u2014 54 methods. The bar is 30 methods; this is 24 over it, 1.80\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/session-manager.ts"},"region":{"startLine":987}}}],"partialFingerprints":{"codehealthFindingId/v1":"d788b91d2a8fee7c21be405d884cbf5c7c4b0cf1917af5aab88c2559bb66a4af"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: InteractiveMode.showSettingsSelector: MethodTooLong \u2014 showSettingsSelector 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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":4901}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfcbd430d6198b8375f7bcf0424432de126daf5bc7190a6046acdd4c7e1f76d4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TaskScheduler.#runtime: MethodTooLong \u2014 #runtime 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/durable/src/harness/scheduler.ts"},"region":{"startLine":2102}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee5cd98ab5d9e300d16a2b5b07839bba81e33cc32d0c86944284d4c9a7868b06"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: google-generative-ai.stream: FunctionTooLong \u2014 stream runs 179 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 79 over it, 1.79\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/ai/src/api/google-generative-ai.ts"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d94128b40e8582847b49fe068ee862352566a858a96be5f00358d16e76156cc"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: pi_env::exec::run: FunctionTooLong \u2014 pi_env::exec::run runs 179 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 79 over it, 1.79\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/env/daemon/src/exec.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"a690b488c928cdf859633c46959348cb3e4dcd5acc8c8dd99482b22c43770967"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: args.printHelp: FunctionTooLong \u2014 printHelp 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/coding-agent/src/cli/args.ts"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2074b71cbfbf12c736c0b3b2210e9b9cce45aca4ea0121f7fc0cf9af0c80eea"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: args.parseArgs: FunctionTooLong \u2014 parseArgs runs 176 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 76 over it, 1.76\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/cli/args.ts"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e7a4d095d0364aeb4177f78ca010eaad72f7a1aaff5652528f1f1b18cc1d70b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/connection.ts: FileTooLong \u2014 878 significant lines (blank, comment-only and punctuation-only lines excluded), about 75% of them inside a single declaration: Connection (349-1261). The bar is 500 significant lines; this is 378 over it, 1.76\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/src/connection.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"720cf4f20001574995432285c7f9dfaa87e889921d39b5173664640079073799"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TreeList: ClassTooLong \u2014 700 significant lines (blank, comment-only and punctuation-only lines excluded), 24 methods. The bar is 400 significant lines; this is 300 over it, 1.75\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/coding-agent/src/modes/interactive/components/tree-selector.ts"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"b92aaf29a1eb3a3093a5938840726e3fe8b44238f699a50f7a6d7d19aca7cc0b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: session/session.ts: FileTooLong \u2014 869 significant lines (blank, comment-only and punctuation-only lines excluded), about 73% of them inside a single declaration: SessionImpl (173-1099). The bar is 500 significant lines; this is 369 over it, 1.74\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/durable/src/session/session.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"08820b455770b0328ee0c21c4a90cd0dcdc966cc7a67191b1ae3b57128a035d6"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DefaultResourceLoader: ClassTooLong \u2014 694 significant lines (blank, comment-only and punctuation-only lines excluded), 38 methods. The bar is 400 significant lines; this is 294 over it, 1.74\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/resource-loader.ts"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3dc4fbc002fbf601ed1751f70a1bf3db922bcd2373eb893163f56cfa110066d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/utils.ts: FileTooLong \u2014 862 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 362 over it, 1.72\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/tui/src/utils.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"de3dc0d327a39c83eb0748b922cc27e1ff24f2cfb2b9c2027013c6aa2e3be00a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: JsonlStorage.recover: MethodTooLong \u2014 recover runs 172 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 72 over it, 1.72\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/durable/src/storage/jsonl/storage.ts"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e603e1f171a0bcacec7b51d1cf6e33933b468ee9a4d160a0f80bbbe81dfd2ec"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/package-manager-cli.ts: FileTooLong \u2014 849 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 349 over it, 1.70\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/coding-agent/src/package-manager-cli.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"16fc0f4c98666fbd8de5e4dcc732d606fb739000fb378218394f680e4a187159"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/models.ts: FileTooLong \u2014 845 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 345 over it, 1.69\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/ai/src/models.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed4e598cf6858b41a7591a83314f142136edc2d4371f0cec2f27e0262864927a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: find.createFindToolDefinition: FunctionTooLong \u2014 createFindToolDefinition runs 167 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 67 over it, 1.67\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/tools/find.ts"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"39da497e8571926f1c5121ddb4ea3f86cdcd6df7e97f27a94352c5058658b0e5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: session/transaction.ts: FileTooLong \u2014 834 significant lines (blank, comment-only and punctuation-only lines excluded), about 75% of them inside a single declaration: Transaction (224-1121). The bar is 500 significant lines; this is 334 over it, 1.67\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/durable/src/session/transaction.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fc4ef43c0a3500eb78498e64ff3945dd3f1f525e2d135a1b4d7114072ae9a2a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SessionImpl: TooManyMethods \u2014 50 methods. The bar is 30 methods; this is 20 over it, 1.67\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/durable/src/session/session.ts"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"14cbdb7527930748f768e70ecef0961b947a0e783c77dc50985601c5b6ce56eb"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: IndexedDbStorage: ClassTooLong \u2014 658 significant lines (blank, comment-only and punctuation-only lines excluded), 35 methods. The bar is 400 significant lines; this is 258 over it, 1.65\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/durable/src/storage/indexeddb.ts"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9ce13187eaaaf80df90c1014348ca2eb8ff1e8bc6913cde002a4a0dcd2ba879"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Connection: ClassTooLong \u2014 657 significant lines (blank, comment-only and punctuation-only lines excluded), 45 methods. The bar is 400 significant lines; this is 257 over it, 1.64\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/chord/src/connection.ts"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eab5fd251b5556afb066bd38c3be556492dfb9a6ce05028cd0cc381175c4d5f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SessionManager: ClassTooLong \u2014 646 significant lines (blank, comment-only and punctuation-only lines excluded), 54 methods. The bar is 400 significant lines; this is 246 over it, 1.62\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/coding-agent/src/core/session-manager.ts"},"region":{"startLine":987}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d91b0e85f85016d5cd89500fd3b4e6c2c9beecea0bf1d1a9041c07696cd01d8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/host.ts: FileTooLong \u2014 806 significant lines (blank, comment-only and punctuation-only lines excluded), about 79% of them inside a single declaration: HostImpl (255-1242). The bar is 500 significant lines; this is 306 over it, 1.61\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/chord/src/host.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7410ebc648a5ab527cb659fe0ec41bbc047487a63316138701550d5246e4b2e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: bedrock-converse-stream.stream: FunctionTooLong \u2014 stream runs 161 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 61 over it, 1.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/ai/src/api/bedrock-converse-stream.ts"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"c62ef2ff0238797d0911fbdb77ec7fda4e2c5f5aaa653229b115e7d03f669b25"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TuiBase: ClassTooLong \u2014 641 significant lines (blank, comment-only and punctuation-only lines excluded), 63 methods. The bar is 400 significant lines; this is 241 over it, 1.60\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/tui/src/tui.ts"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b0e29d034bbe48560f4ce600c308d47b86743cd64a31fa192e40bc502ced416"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SessionImpl: ClassTooLong \u2014 637 significant lines (blank, comment-only and punctuation-only lines excluded), 50 methods. The bar is 400 significant lines; this is 237 over it, 1.59\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/durable/src/session/session.ts"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"27138a542310462a06a3708f1414109126cbcb108031186d3bf6e92e6719891c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: HostImpl: ClassTooLong \u2014 636 significant lines (blank, comment-only and punctuation-only lines excluded), 72 methods. The bar is 400 significant lines; this is 236 over it, 1.59\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/chord/src/host.ts"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"202b5f7f5cd6b7d1b5f681ec25588f328ffadba36d64b3203e5506211e08b7a6"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SqliteStorage: ClassTooLong \u2014 636 significant lines (blank, comment-only and punctuation-only lines excluded), 37 methods. The bar is 400 significant lines; this is 236 over it, 1.59\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/durable/src/storage/sqlite/storage.ts"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8c53bf4324305aff7d3535a9374185e8738b065ed386c79411821c960ad3f12"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: harness.runPiCodingAgent: FunctionTooLong \u2014 runPiCodingAgent 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/evals/src/harness.ts"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"067b4c837fcefab51166af855e8de38d5c72199751c169de20cbb0cd72648274"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ModelRuntime: ClassTooLong \u2014 631 significant lines (blank, comment-only and punctuation-only lines excluded), 60 methods. The bar is 400 significant lines; this is 231 over it, 1.58\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/model-runtime.ts"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"44a01c03ab99a36dc6ffdd67a062060de4d24c8e9c6b2373cce7503385320a68"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Transaction: ClassTooLong \u2014 629 significant lines (blank, comment-only and punctuation-only lines excluded), 66 methods. The bar is 400 significant lines; this is 229 over it, 1.57\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/durable/src/session/transaction.ts"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"83ed06694a857b3db98cb2d4309b82e4e28cf68c77c7b918eed2f6779912accb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: core/model-runtime.ts: FileTooLong \u2014 777 significant lines (blank, comment-only and punctuation-only lines excluded), about 81% of them inside a single declaration: ModelRuntime (174-1049). The bar is 500 significant lines; this is 277 over it, 1.55\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/coding-agent/src/core/model-runtime.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a77c9647782d5e203ae518cbc2762326027f6679bc17062cfc81496defef506"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/settings-selector.ts: FileTooLong \u2014 769 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 269 over it, 1.54\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/coding-agent/src/modes/interactive/components/settings-selector.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"265605e9fbc26898d2ed4d0b215e925c09b7de0e829cf7778080428498e78c52"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RpcClient: TooManyMethods \u2014 46 methods. The bar is 30 methods; this is 16 over it, 1.53\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/coding-agent/src/modes/rpc/rpc-client.ts"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"973ffee0e5535943f88afadf21e70c074c026a7607ed7477a65c919a60836eb1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: InteractiveMode.setupEditorSubmitHandler: MethodTooLong \u2014 setupEditorSubmitHandler runs 151 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 51 over it, 1.51\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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":3156}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3152442f79bb29071daae9bc915b97f87217c4bc55e0700dd435df50bdb7512"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: sqlite/storage.ts: FileTooLong \u2014 753 significant lines (blank, comment-only and punctuation-only lines excluded), about 84% of them inside a single declaration: SqliteStorage (152-959). The bar is 500 significant lines; this is 253 over it, 1.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/durable/src/storage/sqlite/storage.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d01825b20f00668a952536a39faa96503b2ac958b623a8e8c3e00ea8e8ea13d8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Connection: TooManyMethods \u2014 45 methods. The bar is 30 methods; this is 15 over it, 1.50\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/chord/src/connection.ts"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"893e838ee73350f95e6294bfed1d861bf02b00c7465ac87bb1265c37b7948279"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: package-manager-cli.parsePackageCommand: FunctionTooLong \u2014 parsePackageCommand 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/coding-agent/src/package-manager-cli.ts"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"250c659b5f29fc4bc952ae39d4b2387b0182ec859b71b0a4776f5cb14bc0cc4f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: index.llamaExtension: FunctionTooLong \u2014 llamaExtension runs 146 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 46 over it, 1.46\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/extensions/llama/index.ts"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"aca71bd3bf5387204c9ab86224fd79804dfd7f25d6bb77690519e28d15740d8c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: openai-completions.buildParams: FunctionTooLong \u2014 buildParams runs 142 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 42 over it, 1.42\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/src/api/openai-completions.ts"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"9053cf8920c046a1ae6f45fcae5e701d600c7d4cc1a8f0e10f6ffdb1cc2e3418"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/types.ts: FileTooLong \u2014 702 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 202 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/durable/src/types.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"09b941458e0eb060da973a43d004aa3a2fc2bd53d9b0d9c7495448b82360acf8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: events.translate: FunctionTooLong \u2014 translate runs 140 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 40 over it, 1.40\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/harness/events.ts"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"c107b51c6d9b12030ec3b3c3e9cbcba48b043e93964bab4e05a2ec6f772ddf50"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: storage-benchmark.seedStorageBenchmark: FunctionTooLong \u2014 seedStorageBenchmark runs 140 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 40 over it, 1.40\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/testing/storage-benchmark.ts"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"1629345fdc0a0637f80b6dc06aa929fb95e99daa860ecb0b4207f167fff06496"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/main.ts: FileTooLong \u2014 699 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 199 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/coding-agent/src/main.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"862a34c73181b670934987050982837e4313514ad61a66ae9854319c03fc1c2c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/session-selector.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/coding-agent/src/modes/interactive/components/session-selector.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a0a602ce0994ec0dc8809c1d842e31a1ebaf1e83120dedec83f6f124a132adc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/remote-env.ts: FileTooLong \u2014 696 significant lines (blank, comment-only and punctuation-only lines excluded), about 64% of them inside a single declaration: RemoteExecutionEnv (354-955). The bar is 500 significant lines; this is 196 over it, 1.39\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/env/src/remote-env.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc1c5f14796f090817e53e59a539bf01568ef0f8a58e12ead27a1ea81f031f9a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: compaction/compaction.ts: FileTooLong \u2014 695 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 195 over it, 1.39\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/compaction/compaction.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"041202ec472124b054c926ca7a7806121469f6fed85dd5e7d6438d713cf6558e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: anthropic-messages.convertMessages: FunctionTooLong \u2014 convertMessages runs 139 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 39 over it, 1.39\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/src/api/anthropic-messages.ts"},"region":{"startLine":1351}}}],"partialFingerprints":{"codehealthFindingId/v1":"18a27a473f14893bb804d1fb39338648ad5708ff785c28db526f643d8280f64e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: InteractiveMode.showLoadedResources: MethodTooLong \u2014 showLoadedResources runs 139 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 39 over it, 1.39\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":1774}}}],"partialFingerprints":{"codehealthFindingId/v1":"78c10a9db8f0eaa39b1680d3338443a8d4667245b7f0e7d591e5c2b95436a65a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tool.run: FunctionTooLong \u2014 run runs 139 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 39 over it, 1.39\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/harness/tool.ts"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7539dc4c5bbef63f240de2ad70d895c3a80bbcfd1e9be960303e5a7f8bfa5ca"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: theme/theme.ts: FileTooLong \u2014 693 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 193 over it, 1.39\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/theme/theme.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb4f4276baf9184904732c654d88cd427a5f2b26ab09b75ac6a9aee746c01060"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: codemode/codemode.ts: FileTooLong \u2014 682 significant lines (blank, comment-only and punctuation-only lines excluded), about 73% of them inside a single declaration: CodemodeCall (311-1009). The bar is 500 significant lines; this is 182 over it, 1.36\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/durable/src/codemode/codemode.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6e09878a40e32749409689de9875b9d6d698d65aa9329b10b5792940c3d4fbc"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mistral-conversations.consumeChatStream: FunctionTooLong \u2014 consumeChatStream runs 136 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 36 over it, 1.36\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/src/api/mistral-conversations.ts"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"3408c53aa0669508867f52b53e67442a72161c69b5a591222cf3a365c15f09fa"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: bash.createShellToolDefinition: FunctionTooLong \u2014 createShellToolDefinition runs 136 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 36 over it, 1.36\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/tools/bash.ts"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"a16011462e1a548018d75d5bcc81f220d9191161ad26a797ba2f17590097f496"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: harness/tool.ts: FileTooLong \u2014 676 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 176 over it, 1.35\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/durable/src/harness/tool.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dc4adafa2a83283ab8758762d304b8972e9eecdb0c3943e6a43f2eacf6f9538"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: api/mistral-conversations.ts: FileTooLong \u2014 675 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 175 over it, 1.35\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/ai/src/api/mistral-conversations.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f43374a23a5f7ebbaeb10419c85c7380afa59fd1c05020b780d895760e47736c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: storage/memory.ts: FileTooLong \u2014 674 significant lines (blank, comment-only and punctuation-only lines excluded), about 74% of them inside a single declaration: MemoryStorage (237-866). The bar is 500 significant lines; this is 174 over it, 1.35\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/durable/src/storage/memory.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"06e32f4e87865ca6a26c8625f8ad120ddcb5f77760c66bf7c1cc282b2e1986c5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: api/openai-responses-shared.ts: FileTooLong \u2014 672 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 172 over it, 1.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/ai/src/api/openai-responses-shared.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3f1948d439f146001b4546dc7f1cf8607a1d4a14747412cb8316c41d3b469dc"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: vm.startVm: FunctionTooLong \u2014 startVm runs 134 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 34 over it, 1.34\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/codemode/src/runtime/vm.ts"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6bd67bcc07e0931b3bbad142141548dd7646a5f1707a179c880c1f7d0bc311d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ModelsImpl: TooManyMethods \u2014 40 methods. The bar is 30 methods; this is 10 over it, 1.33\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/ai/src/models.ts"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e697cf674fb1e4e2673e3c1b00f386342c731557c2f50e09063a6af43d8f706"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/config-selector.ts: FileTooLong \u2014 654 significant lines (blank, comment-only and punctuation-only lines excluded), about 67% of them inside a single declaration: ResourceList (228-873). The bar is 500 significant lines; this is 154 over it, 1.31\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/coding-agent/src/modes/interactive/components/config-selector.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a0a19c774be970f8be29da0caf8f3b49a965e9b087716261305ae8f712960bb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/markdown.ts: FileTooLong \u2014 650 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 150 over it, 1.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/tui/src/components/markdown.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2ca90e384f88abc9cab4352fd4b963adb4610031fcc1b62128ca08804559803"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/agent-loop.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/agent/src/agent-loop.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdcdc771bb95e18986ece8bcbdfaa53f349af013946f32690611c9a864ebbb63"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: EasterEgg3dAnimation.render: MethodTooLong \u2014 render runs 129 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 29 over it, 1.29\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/components/easter-egg-3d.ts"},"region":{"startLine":950}}}],"partialFingerprints":{"codehealthFindingId/v1":"66842480004a979b24aa01bf825fce9c359ba19ae308e10b05f241919ad176a5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: InteractiveMode.init: MethodTooLong \u2014 init 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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":945}}}],"partialFingerprints":{"codehealthFindingId/v1":"7183071c9ce8fea6cb7b8e249740dd0601b681c6a7b68920d0ab800c8ba2906a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DefaultResourceLoader: TooManyMethods \u2014 38 methods. The bar is 30 methods; this is 8 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/coding-agent/src/core/resource-loader.ts"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ec3d4fb29a14e46f0569fbc26945280d76ef6e860a2e0079feecd3e2cdf66e7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scripts/edit-tool-stats.mjs: FileTooLong \u2014 633 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 133 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":"scripts/edit-tool-stats.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"59787a1c3bd5c11a36f2fd5f2d8d4e7b2f5aa4c6cc0616bed0b1f22fa86d6b40"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CodemodeCall: ClassTooLong \u2014 499 significant lines (blank, comment-only and punctuation-only lines excluded), 25 methods. The bar is 400 significant lines; this is 99 over it, 1.25\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/durable/src/codemode/codemode.ts"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"2645369ecadacaa87b9217294688e8b19ea2de2e94dd65df0af0d3e552fe6ffd"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MemoryStorage: ClassTooLong \u2014 498 significant lines (blank, comment-only and punctuation-only lines excluded), 29 methods. The bar is 400 significant lines; this is 98 over it, 1.25\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/durable/src/storage/memory.ts"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f6743d35381394eef571c88dddd80f33be5d90ac9a29a9cc6589832f2749c1d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: jsonl/storage.ts: FileTooLong \u2014 621 significant lines (blank, comment-only and punctuation-only lines excluded), about 71% of them inside a single declaration: JsonlStorage (242-848). The bar is 500 significant lines; this is 121 over it, 1.24\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/durable/src/storage/jsonl/storage.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eaae77997cc8d166d7578d3292dbad3e607f0449c3db63427004e54cca6bc91"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DefaultPackageManager.addAutoDiscoveredResources: MethodTooLong \u2014 addAutoDiscoveredResources 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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":2444}}}],"partialFingerprints":{"codehealthFindingId/v1":"875bc1db8ec52bc59779634fe21611668487d916163719712d4b28634335f9c2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ResourceList: TooManyMethods \u2014 37 methods. The bar is 30 methods; this is 7 over it, 1.23\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/components/config-selector.ts"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fcd07e42af28cf531cb71333f3619b9d313e072bb58284b4fbff30fe7d5e1b7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SqliteStorage: TooManyMethods \u2014 37 methods. The bar is 30 methods; this is 7 over it, 1.23\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/storage/sqlite/storage.ts"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f46ff59e41c0763a3883ebd41d1ad382a01b1baf7b61177eb827f432404083e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: template.renderToolCall: FunctionTooLong \u2014 renderToolCall runs 123 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 23 over it, 1.23\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/export-html/template.js"},"region":{"startLine":1006}}}],"partialFingerprints":{"codehealthFindingId/v1":"baa962dd818b5a20d345f2da1a1b658b4c5d20cbd61622f090af13a690280013"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: NodeExecutionEnv: ClassTooLong \u2014 486 significant lines (blank, comment-only and punctuation-only lines excluded), 25 methods. The bar is 400 significant lines; this is 86 over it, 1.22\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/env/node.ts"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdb2f5aebb1805647210c5bf8fc47dafefaea6c89e39a51588283bd7fe4b121a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: McpClient: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\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/mcp/src/client.ts"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"0428dd3f50deb00b6cd0313e07b2b1cf5f9ebab4b15c6a08968c9e5e4e8ffb4e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: harness/generation.ts: FileTooLong \u2014 591 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 91 over it, 1.18\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/durable/src/harness/generation.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef34e7ef25db7806f7f47216abc4dbd14911f786b4d132f7e0c10df837fa26ac"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DefaultResourceLoader.reload: MethodTooLong \u2014 reload 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/coding-agent/src/core/resource-loader.ts"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f991a5d03d1beeb6efdc22518377490dd1df35803851c42439e02a91f28c3f4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: layout.layoutComponent: FunctionTooLong \u2014 layoutComponent 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/tui/src/layout.ts"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"beb0358019dc1568bf220dc9ba580a57b6502775af34075e8fe9d8c556e8d2ae"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ObjectImpl: ClassTooLong \u2014 470 significant lines (blank, comment-only and punctuation-only lines excluded), 34 methods. The bar is 400 significant lines; this is 70 over it, 1.18\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/src/object.ts"},"region":{"startLine":1028}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2bb59e9f3c5d9215de2d1e80985501067f82122d6a31c13e7914b30f34bc849"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: IndexedDbStorage: 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/durable/src/storage/indexeddb.ts"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f48ee49466f3ea42fb5b4dcc07df729771566c9aebfa42a579a2263621a76fb"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: generate-models.applyThinkingLevelMetadata: FunctionTooLong \u2014 applyThinkingLevelMetadata 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/ai/scripts/generate-models.ts"},"region":{"startLine":1063}}}],"partialFingerprints":{"codehealthFindingId/v1":"103f5ee8b9cce1dbbaaa61646ae59a31269166415579432f728e8b9b7f373c6f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: resources.createMcpResourceToolDefinitions: FunctionTooLong \u2014 createMcpResourceToolDefinitions 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/coding-agent/src/extensions/mcp/resources.ts"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"1703db71e649e99a28a85948f16e86b470d8ec950d224ad0af0c2d75fd362011"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Server.dispatch: MethodTooLong \u2014 dispatch runs 116 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) 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/env/daemon/src/main.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e99fff3b3c4a9709baf362acd25f4be3ce4d020596681f21ddb25d4895cf6c0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: core/provider-composer.ts: FileTooLong \u2014 578 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 78 over it, 1.16\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/coding-agent/src/core/provider-composer.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"21fbf80fc5ea3e23153785b7b6df14c8b8cfa4b852dbe5f1198cd99e48c20c0e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: extensions/loader.ts: FileTooLong \u2014 576 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 76 over it, 1.15\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/loader.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eca66104f2a877d3ffa13cd7e2d340ff7463cc13730442cf9510f52d557723b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CodemodeCall.execute: MethodTooLong \u2014 execute 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/durable/src/codemode/codemode.ts"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb9047b93c9572e9a5996b9d897325a3d4d9d2fdff38fd99a3dfa229166ac7ba"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: codemode/execute.ts: FileTooLong \u2014 574 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 74 over it, 1.15\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/extensions/codemode/execute.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cf251d0c4c464272ddf78137711ae9583d9e2f6022215d5b6356d9ea485459a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ModelsImpl: ClassTooLong \u2014 458 significant lines (blank, comment-only and punctuation-only lines excluded), 40 methods. The bar is 400 significant lines; this is 58 over it, 1.15\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/ai/src/models.ts"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"d79015ea5e3222c395f8a729b3a391ce9ad563a59472381617e99e5d3f622f87"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ObjectImpl: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\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/chord/src/object.ts"},"region":{"startLine":1028}}}],"partialFingerprints":{"codehealthFindingId/v1":"05671ab51564bac43611525444f29dd7a0dd6c986a42a488ed86931ac538b1ca"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BlockRaster.render: MethodTooLong \u2014 render runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/components/easter-egg-3d.ts"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd90559faa36f759278dd70d638f211008a5f1cf199133182741f7516fc1f81a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: pi_env::pty::run: FunctionTooLong \u2014 pi_env::pty::run runs 113 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/env/daemon/src/pty.rs"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"1de656f6199f13a17af3325bd0b14bfe507db97e6eeb96539e1bf7528e925b99"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: anthropic-messages.buildParams: FunctionTooLong \u2014 buildParams 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/ai/src/api/anthropic-messages.ts"},"region":{"startLine":1155}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d25bd03848d01a8dae6305e8ef7c4cf8400f2f3010d518440058f6246ee9801"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentSession._runAutoCompaction: MethodTooLong \u2014 _runAutoCompaction 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/coding-agent/src/core/agent-session.ts"},"region":{"startLine":3157}}}],"partialFingerprints":{"codehealthFindingId/v1":"85cad404031870fa7ccfd8bf284a4ed1d7e4e4a74d7fa57f88f414bc23026f4b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: JsonlStorage: ClassTooLong \u2014 444 significant lines (blank, comment-only and punctuation-only lines excluded), 31 methods. The bar is 400 significant lines; this is 44 over it, 1.11\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/durable/src/storage/jsonl/storage.ts"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"f19e950b035c0a7eb15bbe2f0c9e5c05613bb7f68f8d1ac34315256ff85336ea"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RemoteExecutionEnv: ClassTooLong \u2014 443 significant lines (blank, comment-only and punctuation-only lines excluded), 32 methods. The bar is 400 significant lines; this is 43 over it, 1.11\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/env/src/remote-env.ts"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"c76f64649864b614f7fd17c9937365dced52aab6d995498a686c2e9733aa543c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/autocomplete.ts: FileTooLong \u2014 550 significant lines (blank, comment-only and punctuation-only lines excluded), about 65% of them inside a single declaration: CombinedAutocompleteProvider (300-858). The bar is 500 significant lines; this is 50 over it, 1.10\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/tui/src/autocomplete.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a744f0ced83d8316d1933732d568eaf47969b074f130d576f40f3443b03b2d8c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentSession.compact: MethodTooLong \u2014 compact 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/coding-agent/src/core/agent-session.ts"},"region":{"startLine":2828}}}],"partialFingerprints":{"codehealthFindingId/v1":"1104e64f795c6ff3caa86d0db2f213c756e3302142c4c2837c38a23718c0e8ef"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: template.renderEntry: FunctionTooLong \u2014 renderEntry 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/coding-agent/src/core/export-html/template.js"},"region":{"startLine":1288}}}],"partialFingerprints":{"codehealthFindingId/v1":"5705d1c28e5257f6bea7d0db52a8aa6d2c65f7604f01279912481fed46c63cdf"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ResourceList: ClassTooLong \u2014 438 significant lines (blank, comment-only and punctuation-only lines excluded), 37 methods. The bar is 400 significant lines; this is 38 over it, 1.10\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/coding-agent/src/modes/interactive/components/config-selector.ts"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"821b9a57252ed2a4bbf94e3656ddf7a85d6bf826e54443b6afb5c18403780363"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/faux.ts: FileTooLong \u2014 546 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 46 over it, 1.09\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/ai/src/providers/faux.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7816bdfe69a0c3b60cb235653c189f58a47d59d16d8ad1e3acb7b1698ff4094"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: bedrock-converse-stream.convertMessages: FunctionTooLong \u2014 convertMessages runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\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/ai/src/api/bedrock-converse-stream.ts"},"region":{"startLine":983}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcdf2955da4637f7badaf941b63247248dfcef2660317c99b5d35683f5ce4831"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: provider-composer.composeModelProvider: FunctionTooLong \u2014 composeModelProvider runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\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/coding-agent/src/core/provider-composer.ts"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"edb699e179d875e197376efeb82b31769f96bf0cfe6da1ea1865646693539986"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RemoteExecutionEnv: TooManyMethods \u2014 32 methods. The bar is 30 methods; this is 2 over it, 1.07\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/env/src/remote-env.ts"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0b00f9711dcf40a0e2441db7f477d184ed976ba5ea392e2e7c08543da32a1d0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/watch.rs: FileTooLong \u2014 525 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 25 over it, 1.05\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/env/daemon/src/watch.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"49d9a43b10da93547938e51b3194b65140dc943188b5252e1117136083cfc834"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: agent-loop.runLoop: FunctionTooLong \u2014 runLoop 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/agent/src/agent-loop.ts"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"862145d69bcddaab4c8f196ac64317f082629bb252389fa17cc5ce1677580f32"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: read.createReadToolDefinition: FunctionTooLong \u2014 createReadToolDefinition 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/coding-agent/src/core/tools/read.ts"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd1b45ffd6b4b45a6fa49d5bbf7f3ecd822ece1250a8ad733209c1fac89c0456"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/types.ts: FileTooLong \u2014 519 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 19 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/ai/src/types.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"332b82c0024c963aac528a98fbf362e7515bc4424f59c73796b89ca8e7685aba"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ModelRegistry: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\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/coding-agent/src/core/model-registry.ts"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"874bdcafebcf33d05bea9ad2b7182f342f798c4d614f767f3de6b96c08a66e71"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: JsonlStorage: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\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/durable/src/storage/jsonl/storage.ts"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"e23099bdcd9149f0d516a715637372a8239a7d62a86027be08fdf6b153de5e92"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: pi_env::sys::windows: TooManyFunctions \u2014 31 free functions. The bar is 30 free functions; this is 1 over it, 1.03\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/env/daemon/src/sys/windows.rs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"57c4dce4f17f088a9131df7b93a587cefce97f00feb9ffbb76af3b72cae53e71"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SettingsSelectorComponent: ClassTooLong \u2014 413 significant lines (blank, comment-only and punctuation-only lines excluded), 2 methods. The bar is 400 significant lines; this is 13 over it, 1.03\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/coding-agent/src/modes/interactive/components/settings-selector.ts"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"7877f363c8757f821da446bcbbcc1b79735795d39e12b2cf61fe33e366058574"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: models.createProvider: FunctionTooLong \u2014 createProvider 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/ai/src/models.ts"},"region":{"startLine":1077}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8a4046ca2c345b542ca7b8910deb4314a6af7f32ae30f9890cdd6dfdf773091"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: manager.createHostManager: FunctionTooLong \u2014 createHostManager 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/chord/src/manager.ts"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad69d2e220bf925b32cd627bd1797144209eeef74f28a61cd989aae28e3589d0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: InteractiveMode.handleHotkeysCommand: MethodTooLong \u2014 handleHotkeysCommand 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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":6805}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e23676179d3934816f3c17ec0ad85a3466e4c20631d77d609cbbe80a3d7d550"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: proxy.processProxyEvent: FunctionTooLong \u2014 processProxyEvent runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/agent/src/proxy.ts"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"5719dd1ced096eea46ed3b21738ecf5888c3646b58cdfcc805d997c5fcba1653"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: migrations.createSqliteMigrations: FunctionTooLong \u2014 createSqliteMigrations runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/storage/sqlite/migrations.ts"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"23e246bfd1f7977220c04be8863366bbc61a01cc0f510f9047a61e5ee9507c13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): packages/env/daemon/src/exec.rs:425-439 | packages/env/daemon/src/pty.rs:285-298 \u2014 before extracting anything, compare \u0060packages/env/daemon/src/exec.rs\u0060 and \u0060packages/env/daemon/src/pty.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/env/daemon/src/exec.rs"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7002992681d6ce108d4b4be77ddd35300de871f8610c24283a5a35ff0523e87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): packages/env/daemon/src/pty.rs:520-534 | packages/env/daemon/src/sys/unix.rs:182-196 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/env/daemon/src/pty.rs"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e68f5af8630f0fd73eb7fd75b009d9bcc1d18b823aa430cbeed59ca8f7af22a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): packages/env/daemon/src/exec.rs:361-372 | packages/env/daemon/src/pty.rs:244-255 \u2014 before extracting anything, compare \u0060packages/env/daemon/src/exec.rs\u0060 and \u0060packages/env/daemon/src/pty.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/env/daemon/src/exec.rs"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ab5549fdd0c298ff2693f91030dea03961a5b5472de07151c10f8daf669739b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): packages/env/daemon/src/sys/unix.rs:213-223 | packages/env/daemon/src/sys/windows.rs:366-376 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/env/daemon/src/sys/unix.rs"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"048d9fad176975caef649f3c0a6767aa81831a15725718287f43b51dfc2c8f41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): packages/env/daemon/src/exec.rs:317-324 | packages/env/daemon/src/pty.rs:232-239 \u2014 before extracting anything, compare \u0060packages/env/daemon/src/exec.rs\u0060 and \u0060packages/env/daemon/src/pty.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/env/daemon/src/exec.rs"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"efdb70fd27c39e6c7bace3f0494e7b6fbff87d204c22af251d0c4d03b4281bec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): packages/env/daemon/src/pty.rs:468-473 | packages/env/daemon/src/sys/unix.rs:276-281 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/env/daemon/src/pty.rs"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fa80a062a97fe1c1ed931a45756dc45116112297c683bb8ba57a257d087e59b"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: @earendil-works/pi-mcp: @earendil-works/pi-mcp: abstractness 0.28, instability 0.00, distance 0.73 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9648e98b679a8b5cd4de7481984220685ff2a80ae454624e3820f338e34ebc50"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ControlledStorage (LCOM4 4): ControlledStorage\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/test/session-support.ts"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c9a807a220abbc7b6969a6ea25cf1c25376ba8bdc04b4c70c8c6751534c41f2"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/components/loader.ts: 39.6% line coverage (40/101)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/components/loader.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a47d192f4113b5056615005d3f8b9d36cf144a6d268912b140b810e643671b00"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: src/native-modifiers.ts: 38.5% line coverage (5/13)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/native-modifiers.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cee05e89a57d542e40ceccbfc847408304545381e77ec18422c04a7e0da043d"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: scripts/local-release.mjs: 17.3% line coverage (28/162)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/local-release.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"decfa7292282a620cd875ba80fbc61bd065d0d3ceb0f32af68c9af4a2b2f7d4d"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: scripts/pack-packages.mjs: 35.4% line coverage (17/48)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/pack-packages.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7005c347fc794b8c830243dd4b5ce8e7b786402749aa3e148a8e7db7139f0e8b"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: scripts/publish-release-announcement.mjs: 14.4% line coverage (56/390)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/publish-release-announcement.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a41f9b40f2daefc0a0db24a451b45fe6cf4e1cdf12743f88bd2f35dff2646530"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: packages/tui/src/components/loader.ts: 39.6% line coverage (40/101)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/tui/src/components/loader.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c048e21adf74b6aa5208ad2a87f4bf6e73a93eecc48720916c22825dc31ad96"}},{"ruleId":"D8","level":"warning","message":{"text":"Low coverage: packages/tui/src/native-modifiers.ts: 38.5% line coverage (5/13)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/tui/src/native-modifiers.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"42913b5b564694e12faae00c56f5962a93546eb86297ea218cd82e4a2a72f97d"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: should handle tool result with text and image: Skipped \u2014 switched off by it.skip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/test/image-tool-result.test.ts"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"042b2ad68974832a5ad0b8615320bd665cee23e8af2ed06ffa1b1033c0cdb913"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: should handle tool result with text and image: Skipped \u2014 switched off by it.skip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/test/image-tool-result.test.ts"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f7078ec3c92ea9ff280e7e19a0b4558da82894b5f9664d397d928e7f8fcbd9d"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: should handle tool result with text and image: Skipped \u2014 switched off by it.skip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/test/image-tool-result.test.ts"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"542626bf2e01764f8f68d919b327edb35f214b5f1f8853d38dfb162418113b4f"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: should handle tool result with text and image: Skipped \u2014 switched off by it.skip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/test/image-tool-result.test.ts"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dba1167dcf5b66f8e34f4571a96bfb19548a09f6fd1ce2b28609ec21c06d35b"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: should include token stats when aborted mid-stream: Skipped \u2014 switched off by it.skip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/test/tokens.test.ts"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f1bae8c6b12e0c189102149fdcd89c01504e7f8f1320cc430b3ddc5e7e3e162"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: should include token stats when aborted mid-stream: Skipped \u2014 switched off by it.skip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/test/tokens.test.ts"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"b44745e25bdc52cb8f3e0cb1781cf726c781fbe1e026b284c00fb8559435920d"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: should include token stats when aborted mid-stream: Skipped \u2014 switched off by it.skip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/test/tokens.test.ts"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1001e58194e5b6a08f5d03f96347c9dbe65d55ba2cd570ccd4314026af5cfef"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: should include token stats when aborted mid-stream: Skipped \u2014 switched off by it.skip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/test/tokens.test.ts"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fc0de9a7ff9cb25422cc3a88c5a4fac2c645d57f301327e567418f9593c0abe"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: accepts a valid coding-agent package: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/coding-agent-smoke.test.mjs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa6377c1e2703f268105ec52da434afc5b33585084f009242c31a696c22f9ff3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: (unnamed test): This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/telemetry/test/conformance.test.ts"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"d09ca03e0e9fe121cece334c6a876ef9c006121549a1717e832be64fb984bb23"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: requires histogram attributes when the schema declares them: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/telemetry/test/metrics.test.ts"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"490a680325e1629d872a81d5f79bebcc571044134ba44e34dea13238f6ee88a0"}},{"ruleId":"D10","level":"error","message":{"text":"No assertions (empty test): shows an abandoned task waiting for its definition as blocked: Test method has an empty body \u2014 it asserts nothing and exercises no code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/test/harness-blocked.test.ts"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e6e0e67fd44b804edd7a252a5b17c3afd77d07fb1a13faad719e79c576a5455"}},{"ruleId":"D10","level":"error","message":{"text":"No assertions (empty test): schedules from every progress call: Test method has an empty body \u2014 it asserts nothing and exercises no code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/test/harness-lifecycle.test.ts"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"91b1b6876d3ce634dd5733d657e4e5642443203865deb73996524e1f0cf22725"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: evicts promptly once the retention is shortened: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/test/session-document-retention.test.ts"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4c517f35523bba4c07e6e5107b94c89d4b8d0e7a5624c3c598e2f829ce321e0"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: encodes discriminator-dependent fields: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/test/types.test.ts"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"02659c092d46b8235686c1e91b381b6cb21936ee965c2855af1e5ce1a8c055ba"}},{"ruleId":"D10","level":"error","message":{"text":"No assertions (empty test): types submissions, task waits, compaction, and tasks erased into extensions: Test method has an empty body \u2014 it asserts nothing and exercises no code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/test/types.test.ts"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ee4cc43df57f9791da080b0f7b3efccf109dd3d087092265f987d4a67933dc0"}},{"ruleId":"D10","level":"error","message":{"text":"No assertions (empty test): allows different providers to run credential flows concurrently: Test method has an empty body \u2014 it asserts nothing and exercises no code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/test/model-runtime-credential-sync.test.ts"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bfd038809a07b9070faa9563e3086e4197e1375fb374a4ce3a7e7ec061cf54c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: is invisible to a replica: a root array: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/test/delta-pending.test.ts"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"0288730eaa4256b8458405ba011bc2422f1621dfea43f0caa2c7c680e456e478"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: is invisible to a replica: diffRevisions between arbitrary values: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/test/delta-pending.test.ts"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ac4974cd2e7ce6390ee39f88b198b228d37fedfe24dcf339283d8b27b328326"}},{"ruleId":"D10","level":"error","message":{"text":"No assertions (empty test): #6 a server root that bounces through a worker and back ends normally (no leaked lease): Test method has an empty body \u2014 it asserts nothing and exercises no code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/test/links-review.test.ts"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ab1b1f104482b25c0502b470d831b24bdd298aca120a0e37dcbe115b7f73ed1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: cuts tails of surrogate edge cases exactly like Buffer: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/test/output.test.ts"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c1ffc4ae3c2789fd6415f6f40a7984483787b721c593c233bee2bd5b224f4d9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: cuts tails exactly like Buffer across deterministic fuzz cases: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/test/output.test.ts"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7e2a5b171304bfeb1f45d9d2b1754982570b59d96448e18eea955579e3cd663"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: state members are T; other variants\u0027 members need narrowing; gets are awaited: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/test/types.test.ts"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b51fcbcfe44c22d950c79e8217949000e32ffdc4837ee34e5529a0d3f30fd08"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: is only available to watches whose values include null: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/test/watch.test.ts"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d6fdc3435ff14feafdb53b08781b5f7baeae91cce20b741417f86bab0dca78f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: preserves property types in the provider superset: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/test/compat-schema.test.ts"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"f35ea12862fee1dad8863dfcf7e6ce6f7f428673d7a54c18872a6884bb71332b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: rejects non-JSON detail types: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/test/message-types.test.ts"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"e634878086eeadc13f4e9daf74310657fe19ecce8ff7d083497c1893c7c1682f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: derives model API, ID, and provider literals from grouped model data: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/test/model-catalog-types.test.ts"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"039c2ec5d7cbe6ac1e90ee252c5086164a8dc71659b4c7851b64896a6f87d9df"}},{"ruleId":"D10","level":"warning","message":{"text":"Fixed-sleep synchronisation: fails requests on handles of a lost connection instead of reaching the new daemon: This test starts work it did not wait for (\u0060a\u0060, still running when the sleep starts) and then orders itself against it with \u0060new Promise((done) =\u003E setTimeout(done, 300))\u0060 \u2014 a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer\u0027s box and random in CI. Wait for the event itself instead: the process\u0027s own exit or output, a completion handle, or a condition polled to a timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/env/test/remote.test.ts"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7ef37c7beabadfce6c806d16c47850a05ddf313fb24108c2a7ced68bff25f21"}},{"ruleId":"D10","level":"warning","message":{"text":"Fixed-sleep synchronisation: is ordinary work: idle waits include it: This test starts work it did not wait for (\u0060wait\u0060, still running when the sleep starts) and then orders itself against it with \u0060new Promise((resolve) =\u003E setTimeout(resolve, 20))\u0060 \u2014 a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer\u0027s box and random in CI. Wait for the event itself instead: the process\u0027s own exit or output, a completion handle, or a condition polled to a timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/test/harness-compaction.test.ts"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bf0bb792c79189995666bdb04f921af4cabf3cf74890ae26ec13584f8be4012"}},{"ruleId":"D10","level":"warning","message":{"text":"Fixed-sleep synchronisation: keeps the mutation queue locked until an aborted write settles: This test starts work it did not wait for (\u0060secondWrite\u0060, still running when the sleep starts) and then orders itself against it with \u0060delay(20)\u0060 \u2014 a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer\u0027s box and random in CI. Wait for the event itself instead: the process\u0027s own exit or output, a completion handle, or a condition polled to a timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/test/tools.test.ts"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"aefaab29dd870803fc473f4b2829823c495a28fbc7ece6c4ddba2e8c80a2e222"}},{"ruleId":"D10","level":"warning","message":{"text":"Fixed-sleep synchronisation: keeps the mutation queue locked until an aborted edit write settles: This test starts work it did not wait for (\u0060secondEdit\u0060, still running when the sleep starts) and then orders itself against it with \u0060delay(20)\u0060 \u2014 a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer\u0027s box and random in CI. Wait for the event itself instead: the process\u0027s own exit or output, a completion handle, or a condition polled to a timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/test/tools.test.ts"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c4f62dc1e96497e6e0e8f581afdefd89c4bfa3377c57da66a61b2b3081555f1"}},{"ruleId":"D10","level":"warning","message":{"text":"Fixed-sleep synchronisation: serializes a new file created through a symlinked directory with its canonical path: This test starts work it did not wait for (\u0060first\u0060, still running when the sleep starts) and then orders itself against it with \u0060delay(20)\u0060 \u2014 a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer\u0027s box and random in CI. Wait for the event itself instead: the process\u0027s own exit or output, a completion handle, or a condition polled to a timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/test/tools.test.ts"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"585ff6c64c9d85cfd34178f181b78ec9a86fc09251fd35488539ec20f2cd1087"}},{"ruleId":"D10","level":"warning","message":{"text":"Fixed-sleep synchronisation: should queue extension-origin steering messages while streaming: This test starts work it did not wait for (\u0060firstPrompt\u0060, still running when the sleep starts) and then orders itself against it with \u0060new Promise((resolve) =\u003E setTimeout(resolve, 25))\u0060 \u2014 a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer\u0027s box and random in CI. Wait for the event itself instead: the process\u0027s own exit or output, a completion handle, or a condition polled to a timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/test/agent-session-concurrent.test.ts"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbdb4638d708b27daaa8c4154aa866b9c9cb2ac433a5809b529a225647416a49"}},{"ruleId":"D10","level":"warning","message":{"text":"Fixed-sleep synchronisation: should handle abort during summarization: This test starts work it did not wait for (\u0060navigationPromise\u0060, still running when the sleep starts) and then orders itself against it with \u0060new Promise((resolve) =\u003E setTimeout(resolve, 100))\u0060 \u2014 a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer\u0027s box and random in CI. Wait for the event itself instead: the process\u0027s own exit or output, a completion handle, or a condition polled to a timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/test/agent-session-tree-navigation.test.ts"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"03c4a637653fbd88b309dc4896ace9ac5ef1dc2c088fa57eb033e21015097600"}},{"ruleId":"D10","level":"warning","message":{"text":"Fixed-sleep synchronisation: holds the file lock until a cancelled active callback settles without committing it: This test starts work it did not wait for (\u0060competing\u0060, still running when the sleep starts) and then orders itself against it with \u0060new Promise((resolve) =\u003E setTimeout(resolve, 20))\u0060 \u2014 a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer\u0027s box and random in CI. Wait for the event itself instead: the process\u0027s own exit or output, a completion handle, or a condition polled to a timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/test/auth-storage.test.ts"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed1205e1cb185a452320d71f46a3a69914d076a3e8bfde5034f49ab8a611191e"}},{"ruleId":"D10","level":"warning","message":{"text":"Fixed-sleep synchronisation: serializes in-memory mutations across providers: This test starts work it did not wait for (\u0060storage\u0060, still running when the sleep starts) and then orders itself against it with \u0060new Promise((resolve) =\u003E setTimeout(resolve, 0))\u0060 \u2014 a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer\u0027s box and random in CI. Wait for the event itself instead: the process\u0027s own exit or output, a completion handle, or a condition polled to a timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/test/auth-storage.test.ts"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"d882e2ce61aecb03d424c226751da6a4bfc0390c75edffcfb9abbe682633a493"}},{"ruleId":"D10","level":"warning","message":{"text":"Fixed-sleep synchronisation: cancels a queued in-memory mutation without running it later: This test starts work it did not wait for (\u0060storage\u0060, still running when the sleep starts) and then orders itself against it with \u0060new Promise((resolve) =\u003E setTimeout(resolve, 0))\u0060 \u2014 a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer\u0027s box and random in CI. Wait for the event itself instead: the process\u0027s own exit or output, a completion handle, or a condition polled to a timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/test/auth-storage.test.ts"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"df7733ffbfc47a85f1aa4ba26bb5bf9c30b02d512b71613c936bfd481c56b11c"}},{"ruleId":"D10","level":"warning","message":{"text":"Fixed-sleep synchronisation: preserves the stored credential after cancelling an active refresh mutation: This test starts work it did not wait for (\u0060storage\u0060, still running when the sleep starts) and then orders itself against it with \u0060new Promise((resolve) =\u003E setTimeout(resolve, 0))\u0060 \u2014 a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer\u0027s box and random in CI. Wait for the event itself instead: the process\u0027s own exit or output, a completion handle, or a condition polled to a timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/test/auth-storage.test.ts"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"a408949163aa95514069708f5822e720249aab194d68b07f11b1595a8c530bed"}},{"ruleId":"D10","level":"warning","message":{"text":"Fixed-sleep synchronisation: bounds surviving workers after %s: This test starts work it did not wait for (\u0060waiting\u0060, still running when the sleep starts) and then orders itself against it with \u0060sleep(50)\u0060 \u2014 a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer\u0027s box and random in CI. Wait for the event itself instead: the process\u0027s own exit or output, a completion handle, or a condition polled to a timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/test/codemode-worker-admission.test.ts"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"017078d96a1e8a72a82a5f677844149f535fecf069e57adbafc16590e7957643"}},{"ruleId":"D10","level":"warning","message":{"text":"Fixed-sleep synchronisation: reads the limit from PI_CODEMODE_MAX_WORKERS: This test starts work it did not wait for (\u0060pending\u0060, still running when the sleep starts) and then orders itself against it with \u0060sleep(50)\u0060 \u2014 a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer\u0027s box and random in CI. Wait for the event itself instead: the process\u0027s own exit or output, a completion handle, or a condition polled to a timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/test/codemode-worker-admission.test.ts"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"29aa63b0fb4a26ae7be293b8eae3cdd69804c7013988c728939d02c47331a01b"}},{"ruleId":"D10","level":"warning","message":{"text":"Fixed-sleep synchronisation: ignores an invalid PI_CODEMODE_MAX_WORKERS: This test starts work it did not wait for (\u0060pending\u0060, still running when the sleep starts) and then orders itself against it with \u0060sleep(50)\u0060 \u2014 a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer\u0027s box and random in CI. Wait for the event itself instead: the process\u0027s own exit or output, a completion handle, or a condition polled to a timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/test/codemode-worker-admission.test.ts"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"3585eb06b404fa216915a9bcf9a09adb4b4baf1a2332cfb7773e6f3e994ce794"}},{"ruleId":"D10","level":"warning","message":{"text":"Fixed-sleep synchronisation: shares the queue between edit and write: This test starts work it did not wait for (\u0060editPromise\u0060, still running when the sleep starts) and then orders itself against it with \u0060delay(5)\u0060 \u2014 a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer\u0027s box and random in CI. Wait for the event itself instead: the process\u0027s own exit or output, a completion handle, or a condition polled to a timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/test/file-mutation-queue.test.ts"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"24883b4dcbcfe54aa96a8f0269396da9249598a4d7ac4f52487be24f4a12aa99"}},{"ruleId":"D10","level":"warning","message":{"text":"Fixed-sleep synchronisation: orders same-provider credential operations through local synchronization: This test starts work it did not wait for (\u0060credentials\u0060, still running when the sleep starts) and then orders itself against it with \u0060new Promise((resolve) =\u003E setTimeout(resolve, 0))\u0060 \u2014 a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer\u0027s box and random in CI. Wait for the event itself instead: the process\u0027s own exit or output, a completion handle, or a condition polled to a timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/test/model-runtime-credential-sync.test.ts"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"f50949d93964ab7f5eb47f3d66a2bf0c8023af132badad284c142127df40ba5d"}},{"ruleId":"D10","level":"warning","message":{"text":"Fixed-sleep synchronisation: cancels running bash commands with abortBash: This test starts work it did not wait for (\u0060bashPromise\u0060, still running when the sleep starts) and then orders itself against it with \u0060new Promise((resolve) =\u003E setTimeout(resolve, 0))\u0060 \u2014 a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer\u0027s box and random in CI. Wait for the event itself instead: the process\u0027s own exit or output, a completion handle, or a condition polled to a timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/test/suite/agent-session-bash-persistence.test.ts"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"3814259f11720c0802129b77f3dcf5351f8386f5f766e4707f5c5820a664bc95"}},{"ruleId":"D10","level":"warning","message":{"text":"Fixed-sleep synchronisation: treats extension-origin queued slash-command follow-ups as raw user text instead of dispatching the command: This test starts work it did not wait for (\u0060promptPromise\u0060, still running when the sleep starts) and then orders itself against it with \u0060new Promise((resolve) =\u003E setTimeout(resolve, 0))\u0060 \u2014 a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer\u0027s box and random in CI. Wait for the event itself instead: the process\u0027s own exit or output, a completion handle, or a condition polled to a timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/test/suite/regressions/2023-queued-slash-command-followup.test.ts"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ffc6a9c00b7fa7535bbde18a46d642f806800452dc63f16c5805cf65b5b29f8"}},{"ruleId":"D10","level":"warning","message":{"text":"Fixed-sleep synchronisation: extension command waitForIdle waits for session-level settlement: This test starts work it did not wait for (\u0060promptPromise\u0060, still running when the sleep starts) and then orders itself against it with \u0060new Promise((resolve) =\u003E setTimeout(resolve, 0))\u0060 \u2014 a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer\u0027s box and random in CI. Wait for the event itself instead: the process\u0027s own exit or output, a completion handle, or a condition polled to a timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/test/suite/regressions/6363-agent-settled-event.test.ts"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"9653ff10a037097416ec0661be66627ce870575b73626c656f56d68d3bb67aa9"}},{"ruleId":"D10","level":"warning","message":{"text":"Fixed-sleep synchronisation: an aborted get rejects and releases only its reference; the binding stays for the others: This test starts work it did not wait for (\u0060second\u0060, still running when the sleep starts) and then orders itself against it with \u0060sleep(5)\u0060 \u2014 a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer\u0027s box and random in CI. Wait for the event itself instead: the process\u0027s own exit or output, a completion handle, or a condition polled to a timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/test/awaiting.test.ts"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"9536c3dd7d7380a69e33c15aa4ef4943a8f5d7e6ded4982b065d96e3dfe3d5c5"}},{"ruleId":"D10","level":"warning","message":{"text":"Fixed-sleep synchronisation: forced retirement cancels a browser call relayed to a worker before the server closes the old code\u0027s resources: This test starts work it did not wait for (\u0060server\u0060, still running when the sleep starts) and then orders itself against it with \u0060new Promise((resolve) =\u003E setTimeout(resolve, 10))\u0060 \u2014 a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer\u0027s box and random in CI. Wait for the event itself instead: the process\u0027s own exit or output, a completion handle, or a condition polled to a timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/test/cluster.test.ts"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ad44460f78ed21c206171ab523c72eb4399cb15dcba038be86e1aeb91ff9c36"}},{"ruleId":"D10","level":"warning","message":{"text":"Fixed-sleep synchronisation: drops what waits for a reference that is released: This test starts work it did not wait for (\u0060server\u0060, still running when the sleep starts) and then orders itself against it with \u0060sleep(10)\u0060 \u2014 a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer\u0027s box and random in CI. Wait for the event itself instead: the process\u0027s own exit or output, a completion handle, or a condition polled to a timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/test/flow.test.ts"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e4032fec33247aee7827113378091eeaf78dfef60f5b213f84e3a29f785adbf"}},{"ruleId":"D10","level":"warning","message":{"text":"Fixed-sleep synchronisation: neither windows nor acknowledges a peer whose hello does not announce acks: This test starts work it did not wait for (\u0060server\u0060, still running when the sleep starts) and then orders itself against it with \u0060sleep(5)\u0060 \u2014 a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer\u0027s box and random in CI. Wait for the event itself instead: the process\u0027s own exit or output, a completion handle, or a condition polled to a timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/test/flow.test.ts"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"0517862791170c70329a5db24411e28a36a49c39d2c0f130ebe01e4f248b7ea3"}},{"ruleId":"D10","level":"warning","message":{"text":"Fixed-sleep synchronisation: disposed objects are not kept once their disposal finished: This test starts work it did not wait for (\u0060objects\u0060, still running when the sleep starts) and then orders itself against it with \u0060new Promise((resolve) =\u003E setTimeout(resolve, 10))\u0060 \u2014 a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer\u0027s box and random in CI. Wait for the event itself instead: the process\u0027s own exit or output, a completion handle, or a condition polled to a timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/test/generations.test.ts"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"d13c71765cd489f5d7f7e7dce8b1ad76ef09a287f26ce8518b48349bf8352e83"}},{"ruleId":"D10","level":"warning","message":{"text":"Fixed-sleep synchronisation: a reference cycle across hosts fails at readyTimeout with a cycle hint: This test starts work it did not wait for (\u0060c\u0060, still running when the sleep starts) and then orders itself against it with \u0060sleep(10)\u0060 \u2014 a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer\u0027s box and random in CI. Wait for the event itself instead: the process\u0027s own exit or output, a completion handle, or a condition polled to a timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/test/hydration.test.ts"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"e314298d8921410c5b51fcd6ab3dc29f43d4906333cbd020847e273b594fd7d7"}},{"ruleId":"D10","level":"warning","message":{"text":"Fixed-sleep synchronisation: #1 root_end is honored only from the link the root came over: This test starts work it did not wait for (\u0060pinned\u0060, still running when the sleep starts) and then orders itself against it with \u0060sleep(10)\u0060 \u2014 a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer\u0027s box and random in CI. Wait for the event itself instead: the process\u0027s own exit or output, a completion handle, or a condition polled to a timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/test/links-review.test.ts"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"d95fb7be87e57de0b690c39a75be5275a50caa61617ca5346931b8836ae7a2a5"}},{"ruleId":"D10","level":"warning","message":{"text":"Fixed-sleep synchronisation: #2 a revocation while the route is still resolving closes the relay; no worker object is made: This test starts work it did not wait for (\u0060c\u0060, still running when the sleep starts) and then orders itself against it with \u0060sleep(5)\u0060 \u2014 a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer\u0027s box and random in CI. Wait for the event itself instead: the process\u0027s own exit or output, a completion handle, or a condition polled to a timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/test/links-review.test.ts"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4fc41a2702a4e95c654ce52fd3f0b8b1986e8dca1196ea2e59e4eb0911b6cf0"}},{"ruleId":"D10","level":"warning","message":{"text":"Fixed-sleep synchronisation: one change to K clients: K encodes (one per feed), one frame per link, the same ops on every link: This test starts work it did not wait for (\u0060server\u0060, still running when the sleep starts) and then orders itself against it with \u0060sleep(10)\u0060 \u2014 a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer\u0027s box and random in CI. Wait for the event itself instead: the process\u0027s own exit or output, a completion handle, or a condition polled to a timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/test/provider-cost.test.ts"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"af0c00d5e76ba18c7c9c697d339fe510a32e8686c26c48edce52f97a6f1ddefc"}},{"ruleId":"D10","level":"warning","message":{"text":"Fixed-sleep synchronisation: #2 facets reach their own host through FacetApi.root and FacetApi.registry: This test starts work it did not wait for (\u0060host\u0060, still running when the sleep starts) and then orders itself against it with \u0060sleep(5)\u0060 \u2014 a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer\u0027s box and random in CI. Wait for the event itself instead: the process\u0027s own exit or output, a completion handle, or a condition polled to a timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/test/requests.test.ts"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce7ebeff04ca7f7210b2821591afec668c2083e465a3ec259788e4dec3060351"}},{"ruleId":"D10","level":"warning","message":{"text":"Fixed-sleep synchronisation: #10 host close disposes holders before what they hold, and before closing links: This test starts work it did not wait for (\u0060worker\u0060, still running when the sleep starts) and then orders itself against it with \u0060sleep(5)\u0060 \u2014 a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer\u0027s box and random in CI. Wait for the event itself instead: the process\u0027s own exit or output, a completion handle, or a condition polled to a timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/test/requests.test.ts"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"498a96b454c5aedff094b148125cd3f0065851e2e9e7276deddb19b642f9ae3d"}},{"ruleId":"D10","level":"warning","message":{"text":"Fixed-sleep synchronisation: keeps the last values readable, sends one fresh unit, and a reference joining meanwhile waits for it: This test starts work it did not wait for (\u0060server\u0060, still running when the sleep starts) and then orders itself against it with \u0060sleep(5)\u0060 \u2014 a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer\u0027s box and random in CI. Wait for the event itself instead: the process\u0027s own exit or output, a completion handle, or a condition polled to a timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/test/variants.test.ts"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"62d2bfbbb4d02704499b0301934bc0b8c90fc55cf837a34fbb48b2c3777cf9b6"}},{"ruleId":"D10","level":"warning","message":{"text":"Fixed-sleep synchronisation: should await async subscribers before prompt resolves: This test starts work it did not wait for (\u0060promptPromise\u0060, still running when the sleep starts) and then orders itself against it with \u0060new Promise((resolve) =\u003E setTimeout(resolve, 10))\u0060 \u2014 a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer\u0027s box and random in CI. Wait for the event itself instead: the process\u0027s own exit or output, a completion handle, or a condition polled to a timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/agent/test/agent.test.ts"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d511431a31f3bfb8491a3530ffd066c6824efb8a91458832c4f0f6b1fb5cb8d"}},{"ruleId":"D10","level":"warning","message":{"text":"Fixed-sleep synchronisation: waitForIdle should wait for async subscribers: This test starts work it did not wait for (\u0060promptPromise\u0060, still running when the sleep starts) and then orders itself against it with \u0060new Promise((resolve) =\u003E setTimeout(resolve, 10))\u0060 \u2014 a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer\u0027s box and random in CI. Wait for the event itself instead: the process\u0027s own exit or output, a completion handle, or a condition polled to a timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/agent/test/agent.test.ts"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"11838d32ddf62f32e4a6f444f827671f49336842e310ede574b28634970f650f"}},{"ruleId":"D10","level":"warning","message":{"text":"Fixed-sleep synchronisation: should pass the active abort signal to subscribers: This test starts work it did not wait for (\u0060promptPromise\u0060, still running when the sleep starts) and then orders itself against it with \u0060new Promise((resolve) =\u003E setTimeout(resolve, 10))\u0060 \u2014 a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer\u0027s box and random in CI. Wait for the event itself instead: the process\u0027s own exit or output, a completion handle, or a condition polled to a timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/agent/test/agent.test.ts"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"b300d8631c1bd783aeaa50b9d2b7afb8f9463073ff66e49434faaf35d35699cc"}},{"ruleId":"D10","level":"warning","message":{"text":"Fixed-sleep synchronisation: should ignore a settled parallel tool update while another tool is still running: This test starts work it did not wait for (\u0060promptPromise\u0060, still running when the sleep starts) and then orders itself against it with \u0060new Promise((resolve) =\u003E setTimeout(resolve, 0))\u0060 \u2014 a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer\u0027s box and random in CI. Wait for the event itself instead: the process\u0027s own exit or output, a completion handle, or a condition polled to a timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/agent/test/agent.test.ts"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8d9df9b29adc47e75d7377c1331b9b6b28b40f23bf9ca16d65d11e32af80483"}},{"ruleId":"D10","level":"warning","message":{"text":"Fixed-sleep synchronisation: should throw when prompt() called while streaming: This test starts work it did not wait for (\u0060firstPrompt\u0060, still running when the sleep starts) and then orders itself against it with \u0060new Promise((resolve) =\u003E setTimeout(resolve, 10))\u0060 \u2014 a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer\u0027s box and random in CI. Wait for the event itself instead: the process\u0027s own exit or output, a completion handle, or a condition polled to a timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/agent/test/agent.test.ts"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"26d5d1ce5251874700670c6e2f3b3738115cba7b5ab1bad8e01c0d2c57db94d8"}},{"ruleId":"D10","level":"warning","message":{"text":"Fixed-sleep synchronisation: should throw when continue() called while streaming: This test starts work it did not wait for (\u0060firstPrompt\u0060, still running when the sleep starts) and then orders itself against it with \u0060new Promise((resolve) =\u003E setTimeout(resolve, 10))\u0060 \u2014 a fixed wait, not a signal that the work is done. Whether it passes depends on how loaded the machine is, which is why a test written this way is green on a developer\u0027s box and random in CI. Wait for the event itself instead: the process\u0027s own exit or output, a completion handle, or a condition polled to a timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/agent/test/agent.test.ts"},"region":{"startLine":750}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f9b44fc6cca6e6b51378c8af34034e88f0fecb591e90cf05c135e5740491a07"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: retries a briefly contended file lock: This test sets up 4 test doubles (for example \u0060vi.fn\u0060) against 2 real object(s) of its own, and its only verification is 3 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/test/auth-storage.test.ts"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"84c7a7686bc50ad53b04530057efad5619c8edf81088d51fb1f55612d10c5984"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: retries transient EPERM on Windows (async): This test sets up 4 test doubles (for example \u0060vi.fn\u0060) against 1 real object(s) of its own, and its only verification is 3 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/test/auth-storage.test.ts"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3fc216627f62f2488a02007981c96eb31793669e6498ae92e1f5fc6c7b7016b"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: retries transient EPERM on Windows (sync): This test sets up 3 test doubles (for example \u0060vi.fn\u0060) against 1 real object(s) of its own, and its only verification is 3 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/test/auth-storage.test.ts"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"92dc0d164f0dde7342219e51f626d489eebd3310a02e98ae5a049714c6a09d39"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: native image errors abort paste without reading text or changing the editor: This test sets up 3 test doubles (for example \u0060vi.fn\u0060) against 0 real object(s) of its own, and its only verification is 4 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/test/clipboard-image-native-errors.test.ts"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"a04b2f85776625d4d20be786fdc2f46a22617ef02be8abc5c40023432a77d735"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: clones the current leaf into a new session: This test sets up 6 test doubles (for example \u0060vi.fn\u0060) against 0 real object(s) of its own, and its only verification is 6 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/test/interactive-mode-clone-command.test.ts"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"7abb918460dae290bb0fe1825b25d86f5eb321ed8633d4edfb1313450758b26e"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: shows a status message when there is nothing to clone: This test sets up 6 test doubles (for example \u0060vi.fn\u0060) against 0 real object(s) of its own, and its only verification is 3 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/test/interactive-mode-clone-command.test.ts"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ae78083484dabc4d844b17ef83fa9ebb8362440d0fcdd5cf8e8762ca6969933"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: renders retained entries and appends the latest summary cost at the bottom: This test sets up 14 test doubles (for example \u0060vi.fn\u0060) against 0 real object(s) of its own, and its only verification is 6 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/test/interactive-mode-compaction.test.ts"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"b33cfdf89408601ed311e06e43d457751ec349f9ea5daa79206116ca7078e4d3"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: updates the working state when the same agent run resumes after compaction: This test sets up 6 test doubles (for example \u0060vi.fn\u0060) against 0 real object(s) of its own, and its only verification is 7 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/test/interactive-mode-compaction.test.ts"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ed02359f4d3b003ef1453ed66f0f814084a2f6d3d8b049f4aae17f9d5ae8052"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: passes unquoted path to runtimeHost.importFromJsonl: This test sets up 9 test doubles (for example \u0060vi.fn\u0060) against 0 real object(s) of its own, and its only verification is 4 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/test/interactive-mode-import-command.test.ts"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea7e97a96b91a522f6186d1203ae16f5df6388c05e2817b908c9dc92614234b4"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: passes unquoted apostrophe path to runtimeHost.importFromJsonl unchanged: This test sets up 9 test doubles (for example \u0060vi.fn\u0060) against 0 real object(s) of its own, and its only verification is 3 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/test/interactive-mode-import-command.test.ts"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6d4e87b2e066b4422fde765b442d4553ce0d4d14aaaa8464cada925d39f8903"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: shows a non-fatal error when /import path does not exist: This test sets up 9 test doubles (for example \u0060vi.fn\u0060) against 0 real object(s) of its own, and its only verification is 3 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/test/interactive-mode-import-command.test.ts"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc142f282faad4244a4dfd1c5591d39b201589f29016df2e061316d8074cf2d7"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: shows a status message and skips suspend on Windows: This test sets up 8 test doubles (for example \u0060vi.fn\u0060) against 0 real object(s) of its own, and its only verification is 6 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/test/interactive-mode-suspend.test.ts"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"aee763c876fb0d32a3da0d1ffe8f450d78ce6d728ae3357226eb2b83cad62610"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: clears the previous auth URL copy action when showing a device code: This test sets up 3 test doubles (for example \u0060vi.mock/jest.mock of an imported module\u0060) against 0 real object(s) of its own, and its only verification is 3 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/test/login-dialog-device-code.test.ts"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"493423a8acccfd806b93bc51b250d45cf0fc340a2a094ce6e6e3e49a5e69a397"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: clears device actions when switching to browser authentication: This test sets up 3 test doubles (for example \u0060vi.mock/jest.mock of an imported module\u0060) against 0 real object(s) of its own, and its only verification is 3 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/test/login-dialog-device-code.test.ts"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"18d681195480d488d396fdfcc2ad8fb7aa3b7ce14410709e5e3904fb9b0f3cfa"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: clears both action types when showing details: This test sets up 3 test doubles (for example \u0060vi.mock/jest.mock of an imported module\u0060) against 0 real object(s) of its own, and its only verification is 3 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/test/login-dialog-device-code.test.ts"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f46416594ff515129fa82dc9c16a56afb7f45f5046f648c313345baf7af85ec"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: should reconcile an existing git checkout to its update target when installing without a ref: This test sets up 3 test doubles (for example \u0060vi.spyOn\u0060) against 1 real object(s) of its own, and its only verification is 3 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/test/package-manager.test.ts"},"region":{"startLine":923}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b6edd6e58b0087e380ebbe0e6175096644fa8647c48238928231406fad30d3e"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: should repair missing git package dependencies when the checkout is already current: This test sets up 3 test doubles (for example \u0060vi.spyOn\u0060) against 0 real object(s) of its own, and its only verification is 2 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/test/package-manager.test.ts"},"region":{"startLine":1074}}}],"partialFingerprints":{"codehealthFindingId/v1":"1974f3b65f9f0a6e048ff64df305d74d682d093f1ffb7cee2318c4b25647f8d9"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: cycles through fullscreen settings: This test sets up 4 test doubles (for example \u0060vi.fn\u0060) against 1 real object(s) of its own, and its only verification is 4 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/test/settings-selector.test.ts"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb883b2468dad952ba226462cb7a07006a7887f137c4677f4673ce34015b500e"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: disables terminal appearance updates when disposed: This test sets up 3 test doubles (for example \u0060a double assigned in a shared setup\u0060) against 0 real object(s) of its own, and its only verification is 2 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/test/theme-controller.test.ts"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8c7bdd270b41572c7dbe5e8b7562135bb01034fc5c7a9471c60d8a9cecb6398"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: completes interactive login before its bounded background refresh: This test sets up 9 test doubles (for example \u0060vi.spyOn\u0060) against 2 real object(s) of its own, and its only verification is 3 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/test/suite/regressions/7027-credential-refresh-hang.test.ts"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"3284c15ffb1f84769d07a1c4b76306459373f7f6ddf4379a2baf1cff84b9f5e6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/ai/scripts/generate-models.ts: packages/ai/scripts/generate-models.ts changed 92 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 225 in generate-models.loadModelsDevData at line 1821. 59 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/ai/scripts/generate-models.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/ai/scripts/generate-models.ts"},"region":{"startLine":1821}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5ff05d6f995cccfbca60a0eba1f3835453f7e23ff4f953b5511b91c17a5bb8e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/coding-agent/src/modes/interactive/interactive-mode.ts: packages/coding-agent/src/modes/interactive/interactive-mode.ts changed 100 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 84 in InteractiveMode.handleEvent at line 3363. 45 of those changes were fix/bug commits, and the other 55 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/src/modes/interactive/interactive-mode.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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":3363}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa158d0908648c51d06eff7720fe0e28e61fd94402591cf29cb99c7e8e8bd7b0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/ai/src/api/openai-completions.ts: packages/ai/src/api/openai-completions.ts changed 41 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 89 in openai-completions.stream at line 310. 26 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/ai/src/api/openai-completions.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/ai/src/api/openai-completions.ts"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c47a898f548e2e13f4b2eb06f9c9f4fe397b583f07511194d323d7c5556ceb1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/coding-agent/src/main.ts: packages/coding-agent/src/main.ts changed 42 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 81 in main.main at line 574. 12 of those changes were fix/bug commits, and the other 30 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/src/main.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/coding-agent/src/main.ts"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"37aeadd9cb017b62ee13e7fc85f1b3d8d790c3e4fb44c631d152c39605e945c1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/coding-agent/src/extensions/mcp/index.ts: packages/coding-agent/src/extensions/mcp/index.ts changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 221 in index.createMcpExtension at line 279. 7 of those changes were fix/bug commits, and the other 7 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/src/extensions/mcp/index.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/coding-agent/src/extensions/mcp/index.ts"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"a691f7152d734ad0494fe149b66a0a87f571d1b98efdf44fec9f1340b72491b8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/coding-agent/src/cli/args.ts: packages/coding-agent/src/cli/args.ts changed 26 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 111 in args.parseArgs at line 72. 8 of those changes were fix/bug commits, and the other 18 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/src/cli/args.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/coding-agent/src/cli/args.ts"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b6255c80598bb11e9115b963c5ac160dfed789e504c30941ee83b27f0a0c8bc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/ai/src/api/anthropic-messages.ts: packages/ai/src/api/anthropic-messages.ts changed 36 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 79 in anthropic-messages.stream at line 575. 25 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/ai/src/api/anthropic-messages.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/ai/src/api/anthropic-messages.ts"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"47862ac5182a01ed00c4328a251536d631bb4c82ed855c7f4ef3a70ced71a76b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/tui/src/tui-alt-screen.ts: packages/tui/src/tui-alt-screen.ts changed 43 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 53 in TuiAltScreen.doRender at line 1691. 22 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/tui/src/tui-alt-screen.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/tui/src/tui-alt-screen.ts"},"region":{"startLine":1691}}}],"partialFingerprints":{"codehealthFindingId/v1":"27d3a43e0d8fdf48abe06fa0f9ab84900824857ac89214373df300a31e8ee3a4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/coding-agent/src/modes/interactive/components/settings-selector.ts: packages/coding-agent/src/modes/interactive/components/settings-selector.ts changed 31 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 68 in SettingsSelectorComponent.constructor at line 471. 8 of those changes were fix/bug commits, and the other 23 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/src/modes/interactive/components/settings-selector.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/coding-agent/src/modes/interactive/components/settings-selector.ts"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aa8b3de8710a30862042e9333df512fe79bb79d05432750df7075455a2ff6d6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/coding-agent/src/core/agent-session.ts: packages/coding-agent/src/core/agent-session.ts changed 57 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in AgentSession._checkCompaction at line 3011. 34 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/src/core/agent-session.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/coding-agent/src/core/agent-session.ts"},"region":{"startLine":3011}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1975333576e491a3256ec38a9162c13f2ab2bceae99c4dc16da30589cf4a340"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/ai/src/api/openai-responses-shared.ts: packages/ai/src/api/openai-responses-shared.ts changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 87 in openai-responses-shared.processResponsesStream 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/ai/src/api/openai-responses-shared.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/ai/src/api/openai-responses-shared.ts"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"60965257a02f835c616e0c779e06fae7c035e62d2444538fbc822a2837bf8e68"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/ai/src/api/bedrock-converse-stream.ts: packages/ai/src/api/bedrock-converse-stream.ts changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 60 in bedrock-converse-stream.stream at line 132. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/ai/src/api/bedrock-converse-stream.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/ai/src/api/bedrock-converse-stream.ts"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bccd13f03f0d353c0817929e706ea94ed9d822a25a83112ce6d2f8116f2f5a8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/durable/src/harness/scheduler.ts: packages/durable/src/harness/scheduler.ts changed 26 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 41 in TaskScheduler.#observe at line 638. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/durable/src/harness/scheduler.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/durable/src/harness/scheduler.ts"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"98d5f6ca4c09d015835a06954d8ac36cd1b046d90b564dccb015b437b096ae5b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/ai/src/api/openai-codex-responses.ts: packages/ai/src/api/openai-codex-responses.ts changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 54 in openai-codex-responses.stream at line 242. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/ai/src/api/openai-codex-responses.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/ai/src/api/openai-codex-responses.ts"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"20bf13ba8835c58d30e29cb92731a7951787c87fa2a7f5cd36925a8b406d6ba4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/durable/src/harness/events.ts: packages/durable/src/harness/events.ts changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 92 in events.translate at line 226. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/durable/src/harness/events.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/durable/src/harness/events.ts"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"f13d25b3327731ce06ed06302a73c4a2882ac2139a1ecb411d0ac07471bf6056"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/ai/src/api/mistral-conversations.ts: packages/ai/src/api/mistral-conversations.ts changed 22 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in mistral-conversations.consumeChatStream at line 568. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/ai/src/api/mistral-conversations.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/ai/src/api/mistral-conversations.ts"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bd2fce12c8d942d9de150dc4c90272728cb6216637fee3914c810f4a180095b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/chord/src/delta/index.ts: packages/chord/src/delta/index.ts changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 45 in index.assertValidWireOp at line 225. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/chord/src/delta/index.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/chord/src/delta/index.ts"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"48116271e9cddd0ee939292257d2102b7dd5fb09d69f5f764ed169f2f2a4e2a6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/coding-agent/src/core/sdk.ts: packages/coding-agent/src/core/sdk.ts changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 56 in sdk.createAgentSession at line 191. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/src/core/sdk.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/coding-agent/src/core/sdk.ts"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"2903887dfcf29425dda7d37523f8b591e6c42b88685009f9ab4a7cb4fc85887c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/durable/src/storage/jsonl/storage.ts: packages/durable/src/storage/jsonl/storage.ts changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 84 in JsonlStorage.recover at line 537. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/durable/src/storage/jsonl/storage.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/durable/src/storage/jsonl/storage.ts"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"79089d52eb1d9bad1697546fc6a7e329ee8035e39c15200e4909e0c7a0bf9c04"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/ai/src/api/google-generative-ai.ts: packages/ai/src/api/google-generative-ai.ts changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 46 in google-generative-ai.stream at line 59. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/ai/src/api/google-generative-ai.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/ai/src/api/google-generative-ai.ts"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"638ad60528a0216c5c5d9e37044df075512649ab683f626526f94fe7000f6d13"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/durable/src/session/transaction.ts: packages/durable/src/session/transaction.ts changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in Transaction.#assemble at line 892. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/durable/src/session/transaction.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/durable/src/session/transaction.ts"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"b095913dd58c1a0887d504c0cdbcd70a5c6b1fb4704a2d6073dbf1895e859771"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/ai/src/api/google-vertex.ts: packages/ai/src/api/google-vertex.ts changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 46 in google-vertex.stream 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/ai/src/api/google-vertex.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/ai/src/api/google-vertex.ts"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ce69323cf685aa2f94e6b8d6678b85040782a8311b8a8d5b6f7111d001cd257"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/durable/src/harness/generation.ts: packages/durable/src/harness/generation.ts changed 23 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in generation.classify at line 519. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/durable/src/harness/generation.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/durable/src/harness/generation.ts"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3f565c7b216aa781a1118a4ab68366822fc8aa0367ec7560a7c3b7be56c22a8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/tui/src/terminal-image.ts: packages/tui/src/terminal-image.ts changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in terminal-image.detectCapabilitiesFromEnvironment at line 70. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/tui/src/terminal-image.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/tui/src/terminal-image.ts"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"359de981f717bf9298522dc8c85ee03a80e4a5e7a4408455c1b5ec6bcf9bc936"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/coding-agent/src/package-manager-cli.ts: packages/coding-agent/src/package-manager-cli.ts changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 57 in package-manager-cli.handlePackageCommand at line 900. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/src/package-manager-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/coding-agent/src/package-manager-cli.ts"},"region":{"startLine":900}}}],"partialFingerprints":{"codehealthFindingId/v1":"1712fab524769ff5887ebb13f06db16aacabf66a29b9554672072fdec0631415"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/coding-agent/src/core/export-html/template.js: packages/coding-agent/src/core/export-html/template.js changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 69 in template.renderToolCall at line 1006. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/src/core/export-html/template.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/export-html/template.js"},"region":{"startLine":1006}}}],"partialFingerprints":{"codehealthFindingId/v1":"de8557a40644cfbd777cffc8cc11fac896053b7b0980894b129ba3678b2ec95b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/ai/src/api/openai-responses.ts: packages/ai/src/api/openai-responses.ts changed 24 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in openai-responses.buildParams at line 339. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/ai/src/api/openai-responses.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/ai/src/api/openai-responses.ts"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"08235f7cde91a801328961a6845966e6e39fcc9364522f1827a3572207009b68"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/coding-agent/src/core/extensions/loader.ts: packages/coding-agent/src/core/extensions/loader.ts changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in loader.createExtensionAPI 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/src/core/extensions/loader.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/coding-agent/src/core/extensions/loader.ts"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"efb0d11671dfcdcb6c5b5dc4271cfef0dcb9894a0d465f5dbd7868a19d6c033b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/coding-agent/src/extensions/codemode/execute.ts: packages/coding-agent/src/extensions/codemode/execute.ts changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in execute.checkClassifierContext at line 176. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/src/extensions/codemode/execute.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/coding-agent/src/extensions/codemode/execute.ts"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"c98fd2170e277e9bea3abfc1f375e6f7d9ee2584db8ff868dc17560a18a76504"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/tui/src/tui-main-screen.ts: packages/tui/src/tui-main-screen.ts changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 69 in TuiMainScreen.doRender 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/tui/src/tui-main-screen.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/tui/src/tui-main-screen.ts"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ae629a876bad74de3fba577219367720d190f9abc8e98d005efec2e7c173bfd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/coding-agent/src/core/resource-loader.ts: packages/coding-agent/src/core/resource-loader.ts changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in DefaultResourceLoader.reload at line 540. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/src/core/resource-loader.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/coding-agent/src/core/resource-loader.ts"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"78943b47ba8ebc1cef3fbd3ed42f79b9dae42f67e17f952eeea706e7c24ce7fe"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/ai/src/api/google-shared.ts: packages/ai/src/api/google-shared.ts changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in google-shared.convertMessages 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/ai/src/api/google-shared.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/ai/src/api/google-shared.ts"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cd67331167e1ee500fc68ee1a7e65f47271cbad3aeaf43b7b89f27b09ec7592"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/tui/src/tui.ts: packages/tui/src/tui.ts changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in TuiBase.showOverlay at line 752. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/tui/src/tui.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/tui/src/tui.ts"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2e9ca37e103d533abbaf57b9a34842f39d982e754b02a92960a19cf6cab1c51"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/durable/src/harness/tool.ts: packages/durable/src/harness/tool.ts changed 23 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in tool.finalResult at line 549. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/durable/src/harness/tool.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/durable/src/harness/tool.ts"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eb6e72b8cb2d4850c1d10f4a20c4cb53e804dcb4bdfd0953147d225769caf74"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/durable/src/env/node.ts: packages/durable/src/env/node.ts changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 64 in NodeExecutionEnv.exec at line 661. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/durable/src/env/node.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/durable/src/env/node.ts"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c71b2c206cff35609ba7996652e0413361cc547f5838a74963fe7929c33ab49"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/coding-agent/src/core/provider-composer.ts: packages/coding-agent/src/core/provider-composer.ts changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in provider-composer.composeModelProvider at line 547. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/src/core/provider-composer.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/coding-agent/src/core/provider-composer.ts"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ef81b77350ad45ef0a3444faacd696c77c694cb4c9b6f7abef3c1b6c5e016e7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/coding-agent/src/modes/rpc/rpc-mode.ts: packages/coding-agent/src/modes/rpc/rpc-mode.ts changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 88 in rpc-mode.runRpcMode 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/src/modes/rpc/rpc-mode.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/coding-agent/src/modes/rpc/rpc-mode.ts"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebc60dae154bda074ae289f9a3afa7dc6f2d499ecb28c6fc0f6f2ef2f7a137c6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/tui/src/components/markdown.ts: packages/tui/src/components/markdown.ts changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 52 in Markdown.renderToken at line 486. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/tui/src/components/markdown.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/tui/src/components/markdown.ts"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"74512f052ecb44f8841401d788e8bb1383f6ee19aff6f7139ba0c2745b1218ec"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/ai/src/models.ts: packages/ai/src/models.ts changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in models.createProvider at line 1077. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/ai/src/models.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/ai/src/models.ts"},"region":{"startLine":1077}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c4abd9e20ff2ff0253b1546f6694e7d9cff056a2b6df74a0d02669fcaabfbf7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/coding-agent/src/core/model-resolver.ts: packages/coding-agent/src/core/model-resolver.ts changed 25 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in model-resolver.resolveModelScopeFromModels at line 332. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/src/core/model-resolver.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/coding-agent/src/core/model-resolver.ts"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbef4e609e3c914b6dcf4d8bb66436159f8730d84e3efefbed28adebd9441639"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/durable/src/storage/memory.ts: packages/durable/src/storage/memory.ts changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in MemoryStorage.applyPreparedCommit at line 332. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/durable/src/storage/memory.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/durable/src/storage/memory.ts"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cefb772c8b4b5cfd875017981b3ee55d5486c15dada9950b5bbc67c59d2501a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/coding-agent/examples/extensions/subagent/index.ts: packages/coding-agent/examples/extensions/subagent/index.ts changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 124 in index.default at line 469. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/examples/extensions/subagent/index.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/coding-agent/examples/extensions/subagent/index.ts"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"15fa24b4f1503c67dd76afc0320531b4f38734b3f20cfffdd3a64b9cd8a90db9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/tui/src/latex.ts: packages/tui/src/latex.ts changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 73 in LatexParser.parseCommand at line 1014. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/tui/src/latex.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/tui/src/latex.ts"},"region":{"startLine":1014}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b789604cdd1a8ecf05ae5d4c7dcc9317681c4c67e51bef599e0d7f8e97e1191"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/durable/src/storage/sqlite/storage.ts: packages/durable/src/storage/sqlite/storage.ts changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in SqliteStorage.prepareDocumentActions at line 693. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/durable/src/storage/sqlite/storage.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/durable/src/storage/sqlite/storage.ts"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcf0ddd9522ce0b7433ad7b7a9845f409248287380b796554a70a6b75a4d46b1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/durable/src/session/session.ts: packages/durable/src/session/session.ts changed 23 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in SessionImpl.#runCommit at line 760. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/durable/src/session/session.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/durable/src/session/session.ts"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aae318c8442d0911b468f79354abe02514bfc2e403c01110171079b138455fb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/coding-agent/src/core/mcp-servers.ts: packages/coding-agent/src/core/mcp-servers.ts changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in mcp-servers.validateMcpServerConfig at line 248. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/src/core/mcp-servers.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/coding-agent/src/core/mcp-servers.ts"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"76ec682d44e51e7159774743bec732d18d0cd23c4b4685590c45f5df99aa43e6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/coding-agent/src/core/tools/bash.ts: packages/coding-agent/src/core/tools/bash.ts changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in bash.createShellToolDefinition.execute at line 261. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/src/core/tools/bash.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/coding-agent/src/core/tools/bash.ts"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"f440d2e3527495c99a0f507e3ec0fd87944f1cc8cbebc4f98e18062c3ecf00e5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/coding-agent/src/core/session-manager.ts: packages/coding-agent/src/core/session-manager.ts changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in SessionManager.listAll at line 1932. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/src/core/session-manager.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/coding-agent/src/core/session-manager.ts"},"region":{"startLine":1932}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f266447d8029d8271cab89360ce7ea8586f10ca1ca32dde8e83ebf55cb39a70"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/coding-agent/src/modes/interactive/components/tool-execution.ts: packages/coding-agent/src/modes/interactive/components/tool-execution.ts changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in ToolExecutionComponent.updateDisplay at line 278. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/src/modes/interactive/components/tool-execution.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/coding-agent/src/modes/interactive/components/tool-execution.ts"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2e41ebf7ccce067ad6f13a793efccf0a2ae26f7a1b5ae3b3ce13084fc3d9541"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/agent/src/agent-loop.ts: packages/agent/src/agent-loop.ts changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in agent-loop.runLoop at line 172. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/agent/src/agent-loop.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/agent/src/agent-loop.ts"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aae1f6f225329610e615d8fd9c3eee7047c0bd2d75c4cf942f3de0aeecc3c54"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/durable/src/codemode/codemode.ts: packages/durable/src/codemode/codemode.ts changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in CodemodeCall.execute at line 371. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/durable/src/codemode/codemode.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/durable/src/codemode/codemode.ts"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cfbf5e152a88e11906f4cafd515e6447b04f59ba269d0f3e1f949a0ea6ca067"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/coding-agent/src/extensions/mcp/cli.ts: packages/coding-agent/src/extensions/mcp/cli.ts changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in cli.add at line 277. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/src/extensions/mcp/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/coding-agent/src/extensions/mcp/cli.ts"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1213b67f3b001db432764b28f15720b700962ba9badf59e366631ffc58ef307"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/coding-agent/src/core/package-manager.ts: packages/coding-agent/src/core/package-manager.ts changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in DefaultPackageManager.resolvePackageSources at line 1298. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/src/core/package-manager.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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":1298}}}],"partialFingerprints":{"codehealthFindingId/v1":"4539b6eb50ffd15d8e4835c9bb0b545cc2147e18de99d44a678a4c460bcaae63"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/coding-agent/src/core/auth-storage.ts: packages/coding-agent/src/core/auth-storage.ts changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in ReadOnlyAuthStorage.load at line 212. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/src/core/auth-storage.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/coding-agent/src/core/auth-storage.ts"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"643bd3aed8eea04622d4291dc0833b4d3b2bf93f4b27a9bc851dfaa8a3c7a545"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/coding-agent/src/utils/clipboard.ts: packages/coding-agent/src/utils/clipboard.ts changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in clipboard.copyToClipboard at line 86. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/src/utils/clipboard.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/coding-agent/src/utils/clipboard.ts"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"fea3e4eca2ba7704dae69377f544fddef6c6dbd8218d06ce14e9ee424197212d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/coding-agent/src/core/extensions/runner.ts: packages/coding-agent/src/core/extensions/runner.ts changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in ExtensionRunner.bindCore at line 417. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/src/core/extensions/runner.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/coding-agent/src/core/extensions/runner.ts"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"78cfad520bd1bcf1e68ccb91c94ccdb9958c0fdb650e9284f1f96ea34edfc2de"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/coding-agent/src/core/tools/find.ts: packages/coding-agent/src/core/tools/find.ts changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 40 in find.createFindToolDefinition.execute at line 81. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/src/core/tools/find.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/coding-agent/src/core/tools/find.ts"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a66aa6b41afcf28249b2fc8f6e947e75fab9dafb56b65f8400feb354839aad9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/coding-agent/src/core/tools/grep.ts: packages/coding-agent/src/core/tools/grep.ts changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 47 in grep.createGrepToolDefinition.execute at line 81. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/src/core/tools/grep.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/coding-agent/src/core/tools/grep.ts"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"b37b620476d977e1249700cff518f5aaf8b70d8390d6fd150e13991d297564a7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/coding-agent/examples/rpc-extension-ui.ts: packages/coding-agent/examples/rpc-extension-ui.ts changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 55 in rpc-extension-ui.main at line 255. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/examples/rpc-extension-ui.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/coding-agent/examples/rpc-extension-ui.ts"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c4538359dd7c2b9ec6dce6b416039160da770c288b614321f137fa9fb431db1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/durable/src/harness/submissions.ts: packages/durable/src/harness/submissions.ts changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in submissions.admitSubmission at line 195. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/durable/src/harness/submissions.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/durable/src/harness/submissions.ts"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"11e6b0f8fccdd96fd61660c5cbdb0e107b7bacbd7f6a69efedd27528599618bb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/mcp/src/oauth/flow.ts: packages/mcp/src/oauth/flow.ts changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in flow.runFlow at line 323. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/mcp/src/oauth/flow.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/mcp/src/oauth/flow.ts"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9d52fd9559c3c77fc5e372eef10618f8266e0b920fbe94615a38f8be238b550"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/tui/src/layout.ts: packages/tui/src/layout.ts changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in layout.layoutComponent at line 106. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/tui/src/layout.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/tui/src/layout.ts"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"c93ff1d0f75a96f45f6e8ad59f0529ca25dda516ce1cdfa2712af8bc50f278f5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/chord/src/connection.ts: packages/chord/src/connection.ts changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in Connection.#dispatch at line 753. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/chord/src/connection.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/chord/src/connection.ts"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bb94217c87aab76a04dd602253e52e0ae77449fdc865ba4f9dbd8386297c12e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/tui/src/utils.ts: packages/tui/src/utils.ts changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in utils.graphemeWidth 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/tui/src/utils.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/tui/src/utils.ts"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a479ed7493773bf189b5efe073a49c4aa03dfdb82ae27f72d4aaf43e9839845"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/coding-agent/src/modes/interactive/components/model-selector.ts: packages/coding-agent/src/modes/interactive/components/model-selector.ts changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in ModelSelectorComponent.handleInput at line 364. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/src/modes/interactive/components/model-selector.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/coding-agent/src/modes/interactive/components/model-selector.ts"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"0639a8a02458a73909bb0f8a90823b3758fc9d82fa986e610f9f55270f9310a4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/chord/src/object.ts: packages/chord/src/object.ts changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in ObjectImpl.call at line 1555. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/chord/src/object.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/chord/src/object.ts"},"region":{"startLine":1555}}}],"partialFingerprints":{"codehealthFindingId/v1":"52c7e42ea2daa2f55eb45c154603c0bf718dea22b02dbd6e664ad53379d1b755"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/durable/src/testing/env-conformance.ts: packages/durable/src/testing/env-conformance.ts changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in env-conformance.createEnvConformance at line 114. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/durable/src/testing/env-conformance.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/durable/src/testing/env-conformance.ts"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"0114d980b06602a7c9eb74df556121e51426b36079166c732e46bf138bcd7343"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/coding-agent/src/extensions/llama/provider.ts: packages/coding-agent/src/extensions/llama/provider.ts changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in provider.createLlamaProvider at line 166. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/src/extensions/llama/provider.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/coding-agent/src/extensions/llama/provider.ts"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3bdd3746a0326a8f3f0510e40ec407e9ccbf153b99142d90a152c8a6773176f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/coding-agent/src/core/tools/read.ts: packages/coding-agent/src/core/tools/read.ts changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in read.createReadToolDefinition.execute at line 102. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/src/core/tools/read.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/coding-agent/src/core/tools/read.ts"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"21cfa409b9deee6866b2174b73d049bfbd12e51b92cda90c91656b216c84e7d4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/tui/src/autocomplete.ts: packages/tui/src/autocomplete.ts changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in CombinedAutocompleteProvider.getSuggestions at line 311. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/tui/src/autocomplete.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/tui/src/autocomplete.ts"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"878b1aaf36ee4e345c5dee7ea28371d0509569c49af20a7f238b91ba689872c4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/durable/src/harness/view.ts: packages/durable/src/harness/view.ts changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in view.advance at line 172. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/durable/src/harness/view.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/durable/src/harness/view.ts"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"73ed1e798dbbbdc6030f7297eaeb2d82b498cbc54cade9cf2ceda376c897618d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/durable/src/tools/read.ts: packages/durable/src/tools/read.ts changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in read.readText at line 222. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/durable/src/tools/read.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/durable/src/tools/read.ts"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"4870e18297879c1d1f87fbfb78b3052befec54cac8982cfda36352e90343e6a2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/ai/src/api/pi-messages.ts: packages/ai/src/api/pi-messages.ts changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in pi-messages.createEventConverter at line 184. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/ai/src/api/pi-messages.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/ai/src/api/pi-messages.ts"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5c57b0dd2769ef4547c3b44f2a32c65459a6d316c1bdafe2df9d1f839a703ca"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/agent/src/proxy.ts: packages/agent/src/proxy.ts changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in proxy.streamProxy at line 106. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/agent/src/proxy.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/agent/src/proxy.ts"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"740e7e0b9da20fbafe38b49c9b8dfc733533bbf1e7c0cd2123a39c1d8961d1aa"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/coding-agent/examples/extensions/custom-provider-anthropic/index.ts: packages/coding-agent/examples/extensions/custom-provider-anthropic/index.ts changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 52 in index.streamCustomAnthropic at line 338. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/examples/extensions/custom-provider-anthropic/index.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/coding-agent/examples/extensions/custom-provider-anthropic/index.ts"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"626c7302f2dd74cda6da5f434227e6ac5921bb0662c1ab1f15421fad56dfe247"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/env/daemon/src/main.rs: packages/env/daemon/src/main.rs changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in Server::dispatch at line 135. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/env/daemon/src/main.rs\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/env/daemon/src/main.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"46271f68b6f19eaee4d1b3eea86be831f9c0065302f49fbee32ed03126fb5e72"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/coding-agent/src/modes/interactive/components/footer.ts: packages/coding-agent/src/modes/interactive/components/footer.ts changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in FooterComponent.render at line 157. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/src/modes/interactive/components/footer.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/coding-agent/src/modes/interactive/components/footer.ts"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c48ddd262e0701a4abba90276ac8ddaf251c5ecfebecf939c54219343aeefd8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/coding-agent/src/core/system-prompt.ts: packages/coding-agent/src/core/system-prompt.ts changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in system-prompt.buildSystemPromptSections at line 128. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/src/core/system-prompt.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/coding-agent/src/core/system-prompt.ts"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8ea78bff1c4b9b5a5b9242a994001f77fa16b74312aa581afad4c0068dfe17b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/tui/src/components/editor.ts: packages/tui/src/components/editor.ts changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in Editor.handleMouse at line 633. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/tui/src/components/editor.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/tui/src/components/editor.ts"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"ace1c97033df3e6c9e1d323d2bfde737855e92280ddb93b2caffbd9bf98adaca"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/chord/src/contract.ts: packages/chord/src/contract.ts changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in contract.coverage at line 289. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/chord/src/contract.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/chord/src/contract.ts"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"c88a11e9288e142f9b7ab01cef7a08c9eeb424aae13fcf1c96185a368b2d2c8a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/chord/src/reload.ts: packages/chord/src/reload.ts changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in Reload.#publish at line 587. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/chord/src/reload.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/chord/src/reload.ts"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"7165812dcf1b70da7b2d9edede25998b46b94ef0b66b6cf1ee04eff0dae68974"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/evals/src/harness.ts: packages/evals/src/harness.ts changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in harness.runPiCodingAgent at line 272. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/evals/src/harness.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/evals/src/harness.ts"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb4b43f60fc63d46539adccc9e297a23f6a546150fd786fbca50ae058828060c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/coding-agent/src/modes/interactive/components/assistant-message.ts: packages/coding-agent/src/modes/interactive/components/assistant-message.ts changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in AssistantMessageComponent.updateContent at line 97. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/src/modes/interactive/components/assistant-message.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/coding-agent/src/modes/interactive/components/assistant-message.ts"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"753e6cb9bb0c194977e22671a35a85f0262caf5cc2bc16a9209133d3a1cda649"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/coding-agent/src/extensions/mcp/config.ts: packages/coding-agent/src/extensions/mcp/config.ts changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in config.readConfigFile at line 92. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/src/extensions/mcp/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/coding-agent/src/extensions/mcp/config.ts"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7dcfdce623da419c98333511a412c4e4eaab4081a09eb974523af7df8c49d8b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/ai/src/api/transform-messages.ts: packages/ai/src/api/transform-messages.ts changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in transform-messages.transformMessages at line 91. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/ai/src/api/transform-messages.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/ai/src/api/transform-messages.ts"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed373606f860ca1677a900c7ef45d326ceb9c1f55e54e5c166add4763f1da359"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/coding-agent/examples/extensions/minimal-mode.ts: packages/coding-agent/examples/extensions/minimal-mode.ts changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 53 in minimal-mode.default 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/examples/extensions/minimal-mode.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/coding-agent/examples/extensions/minimal-mode.ts"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"c24c17e6aa8850bf48f2d200cbde5a8616352dfe71c6db9a63ac701b5695b01c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/coding-agent/test/suite/mcp-oauth-server.ts: packages/coding-agent/test/suite/mcp-oauth-server.ts changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in handle at line 86. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/test/suite/mcp-oauth-server.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/coding-agent/test/suite/mcp-oauth-server.ts"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce6147636b3402c77c25f1d3d693374b24bd2bc2fb032699ced2bd4eaf8d48be"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/coding-agent/src/core/remote-catalog-provider.ts: packages/coding-agent/src/core/remote-catalog-provider.ts changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in remote-catalog-provider.withRemoteCatalog.refreshModels at line 119. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/src/core/remote-catalog-provider.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/coding-agent/src/core/remote-catalog-provider.ts"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b714b47716dee7b6292a9f3fa8c3d545f26c79e41ed28f3cea04462d26a0635"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/tui/src/components/settings-list.ts: packages/tui/src/components/settings-list.ts changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in SettingsList.handleMouse at line 179. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/tui/src/components/settings-list.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/tui/src/components/settings-list.ts"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"29443b2cc83d48b2bcea00f4d4c2d09e0b9021b42a565e6aa17c1c99582a5749"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/durable/src/testing/storage-benchmark.ts: packages/durable/src/testing/storage-benchmark.ts changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in storage-benchmark.seedStorageBenchmark at line 91. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/durable/src/testing/storage-benchmark.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/durable/src/testing/storage-benchmark.ts"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d6a0184126714ca7f53cb8da101cb67808e7ce45ca23a53d8e6f4cc9b1521d7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/coding-agent/src/modes/interactive/components/tree-selector.ts: packages/coding-agent/src/modes/interactive/components/tree-selector.ts changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in TreeList.applyFilter at line 331. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/src/modes/interactive/components/tree-selector.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/coding-agent/src/modes/interactive/components/tree-selector.ts"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d16767ec9b5546170667adbe652f735bf1fb312ff01b6e07582337c09cd8943"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/coding-agent/src/extensions/llama/index.ts: packages/coding-agent/src/extensions/llama/index.ts changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 47 in index.llamaExtension at line 42. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/src/extensions/llama/index.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/coding-agent/src/extensions/llama/index.ts"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"861aab770c3d39b8f811db12e465a818d4695c8f0d44127f25d6ded5705aa904"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/ai/scripts/openrouter-catalog.ts: packages/ai/scripts/openrouter-catalog.ts changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in openrouter-catalog.buildOpenRouterCatalog at line 31. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/ai/scripts/openrouter-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/ai/scripts/openrouter-catalog.ts"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5799f3e89cf3ae3394f59f456bcecb3b4580148591adec3b54b0925e63e27fe"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/ai/src/api/constrained-sampling.ts: packages/ai/src/api/constrained-sampling.ts changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in constrained-sampling.makeJsonSchemaNodeStrict 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/ai/src/api/constrained-sampling.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/ai/src/api/constrained-sampling.ts"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcedca2b2721ead6ef7c49f08934c10c6452f250d6570bdd168150b141d6fc00"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/coding-agent/src/cli/credential-print.ts: packages/coding-agent/src/cli/credential-print.ts changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in credential-print.resolveCredentialForPrint 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/src/cli/credential-print.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/coding-agent/src/cli/credential-print.ts"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"567c43c6eeb4496d171c44356dbe18e3966408ab9f6e49b2986a06812d0d5f5b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/coding-agent/test/sdk-codex-cache-probe-tool-loop.ts: packages/coding-agent/test/sdk-codex-cache-probe-tool-loop.ts changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in main at line 277. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/test/sdk-codex-cache-probe-tool-loop.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/coding-agent/test/sdk-codex-cache-probe-tool-loop.ts"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"f53436916acfffd27169f33eceefd0bb8a67ee22834df8d3b5ed7cf38dd4dc34"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/codemode/src/declarations.ts: packages/codemode/src/declarations.ts changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in declarations.constraintTags at line 253. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/codemode/src/declarations.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/codemode/src/declarations.ts"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b01f63fe37c8d74257055459739e3afbef07861c554a5b9882c00a1a5d50d7b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/durable/test/examples/22-subagent-background.ts: packages/durable/test/examples/22-subagent-background.ts changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in execute at line 148. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/durable/test/examples/22-subagent-background.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/durable/test/examples/22-subagent-background.ts"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"0321b41b0f2918140bc332d3c7be60cf14156888f743693a61e8ceea8de84735"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/coding-agent/src/core/tools/renderers/bash.ts: packages/coding-agent/src/core/tools/renderers/bash.ts changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in bash.rebuildBashResultRenderComponent at line 27. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/src/core/tools/renderers/bash.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/coding-agent/src/core/tools/renderers/bash.ts"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"aea24e8d79e75d6f0404bb0e2e88223b3408c9cef7f00ac22ace2207eed75f1b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/tui/src/stdin-buffer.ts: packages/tui/src/stdin-buffer.ts changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in StdinBuffer.process at line 320. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/tui/src/stdin-buffer.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/tui/src/stdin-buffer.ts"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6bf46b8d6904b41b1f71464cabe582ab65fdc43b8d31c467c1d544253621bbc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/durable/src/tools/bash.ts: packages/durable/src/tools/bash.ts changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in bash.runCommand at line 87. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/durable/src/tools/bash.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/durable/src/tools/bash.ts"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"b056ee3c0296c55f27b8b98c09459d05b2cfa08d2d03c46890f8e74a7aea1792"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/coding-agent/src/modes/interactive/components/scoped-models-selector.ts: packages/coding-agent/src/modes/interactive/components/scoped-models-selector.ts changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in ScopedModelsSelectorComponent.updateList at line 235. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/src/modes/interactive/components/scoped-models-selector.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/coding-agent/src/modes/interactive/components/scoped-models-selector.ts"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6db0637e3f323f8740b45d6a061934eb148f7f81cc38a43872f554d3d6180e7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/ai/src/api/openrouter-images.ts: packages/ai/src/api/openrouter-images.ts changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in openrouter-images.generateImages at line 43. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/ai/src/api/openrouter-images.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/ai/src/api/openrouter-images.ts"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"efa19522eeca7d00eb3c384dafe86250613f7abe2399feb496d28ed3ffce163c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: scripts/check-runtime-deps.mjs: scripts/check-runtime-deps.mjs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in check-runtime-deps.checkSource at line 26. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- scripts/check-runtime-deps.mjs\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":"scripts/check-runtime-deps.mjs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"3de6be53dd14c45ec46c347a07c246941ad85f43671fbdcc37df6c2d42b27799"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/coding-agent/src/modes/interactive/components/easter-egg-3d.ts: packages/coding-agent/src/modes/interactive/components/easter-egg-3d.ts changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in BlockRaster.render at line 517. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/src/modes/interactive/components/easter-egg-3d.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/coding-agent/src/modes/interactive/components/easter-egg-3d.ts"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb512017d71ab2112e007abfed706e2d68021a845f8260b12896ad4fb5d7db08"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/telemetry/src/testing/conformance.ts: packages/telemetry/src/testing/conformance.ts changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in conformance.createTelemetryAdapterConformance at line 44. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/telemetry/src/testing/conformance.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/telemetry/src/testing/conformance.ts"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cbfddb463f1d7511a565269247f25e027c408a14757d412e473631561534198"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/ai/test/codex-websocket-cached-probe.ts: packages/ai/test/codex-websocket-cached-probe.ts changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in main at line 164. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/ai/test/codex-websocket-cached-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/ai/test/codex-websocket-cached-probe.ts"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1b73f79696c15d19d97fc8741c1aec6eaba06e1c58c2e4154f3d9a65273f76d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/coding-agent/src/utils/management-http.ts: packages/coding-agent/src/utils/management-http.ts changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in management-http.fetchWithRetry at line 27. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/src/utils/management-http.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/coding-agent/src/utils/management-http.ts"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"342284f84bf323195bf95ab935a84efcb7dd4a29f4198da712dd7f7415976722"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/coding-agent/src/modes/print-mode.ts: packages/coding-agent/src/modes/print-mode.ts changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in print-mode.runPrintMode at line 33. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/src/modes/print-mode.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/coding-agent/src/modes/print-mode.ts"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd34a5c437c27aa4ad3c732d82a3cf5ea2010656a761431b08c5ca29ec87d247"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/durable/src/harness/json.ts: packages/durable/src/harness/json.ts changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in json.assignJson at line 20. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/durable/src/harness/json.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/durable/src/harness/json.ts"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad24e864518e5cef0760f2c64b6bd212c67e7b816fe0053c3b70bd013f6d260e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/tui/src/components/image.ts: packages/tui/src/components/image.ts changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in Image.render at line 93. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/tui/src/components/image.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/tui/src/components/image.ts"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"c47715da16218060fb541153510b3bce83564ba7a0c6d6cbe429c580dd6c3e93"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/tui/src/components/select-list.ts: packages/tui/src/components/select-list.ts changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in SelectList.handleMouse at line 109. 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/tui/src/components/select-list.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/tui/src/components/select-list.ts"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"9677afeb8d45b4b4ba5147cd314affcc326a9d914d54cfff450e7cb384c6dc66"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: scripts/publish-release-announcement.mjs: scripts/publish-release-announcement.mjs changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in publish-release-announcement.parseArgs 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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- scripts/publish-release-announcement.mjs\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":"scripts/publish-release-announcement.mjs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ff8dc080a7f9e61ad7ae245ac3c586bbafd894aa4ee9b0f045bf92fbf358546"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/ai/src/utils/retry.ts: packages/ai/src/utils/retry.ts changed 17 times in last 90 days and 15 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 13 (its worst body is retry.retryAssistantCall at line 205), 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(ai): match retryable status codes only as standalone numbers\u201D; \u201Cfix(ai): retry Codex CLI stream disconnect errors relayed by proxies\u201D; \u201Cfix(ai): handle ChatGPT Business workspace usage limit errors\u201D; \u201Cfix(ai): retry more gateway upstream failure errors\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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/ai/src/utils/retry.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/ai/src/utils/retry.ts"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f573e12c9822f2810bbafd48237d8cc9a38afb29f09e7ad2bbb750ea9600c65"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/tui/src/terminal.ts: packages/tui/src/terminal.ts changed 13 times in last 90 days and 7 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 ProcessTerminal.stop at line 473), 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(tui): restore terminal modes when the process exits without stop()\u201D; \u201Cfix(tui): wrap SIGWINCH self-signal so restricted seccomp policies do not crash startup (#8898)\u201D; \u201Cfix(tui): apply PI_TUI_ESC_TIMEOUT only to lone ESC\u201D; \u201Cfix(tui): prevent split Alt\u002BEnter from interrupting (#7899)\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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/tui/src/terminal.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/tui/src/terminal.ts"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e0787a6ec5cd2644cf37636bb179e920d69e68baebd9782ebfd1ebde8984269"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/ai/src/auth/oauth/github-copilot.ts: packages/ai/src/auth/oauth/github-copilot.ts changed 7 times in last 90 days and 7 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 13 (its worst body is github-copilot.fetchWithRateLimitRetry at line 135), 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(ai): prevent copilot policy login rate limits (#8254)\u201D; \u201Cfix(ai): retry Copilot GET /models once on 429 during login\u201D; \u201Cfix(ai): enable Copilot model policies sequentially during login\u201D; \u201Cfix(ai): bound Copilot policy update concurrency\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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/ai/src/auth/oauth/github-copilot.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/ai/src/auth/oauth/github-copilot.ts"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5b013bac9b9c598bcdbc63fbb9b9a1db75fa8f324dfd332925d595e4adaf0d6"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/coding-agent/src/utils/tools-manager.ts: packages/coding-agent/src/utils/tools-manager.ts changed 7 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 12 (its worst body is tools-manager.downloadTool at line 247), 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(coding-agent): skip fd/rg downloads on unsupported architectures\u201D; \u201Cfix(coding-agent): resolve Windows shells from installation directories\u201D; \u201Cfix(coding-agent): download statically linked musl builds of fd and ripgrep on Linux (#9070)\u201D; \u201Cfix(coding-agent): resolve fd/rg release versions without the GitHub API (#8708)\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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/src/utils/tools-manager.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/coding-agent/src/utils/tools-manager.ts"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7719a58efe0f921711f7a8d907eb1ffc95a47c745ff535ee771a46c8c7ec9a1"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/coding-agent/src/extensions/mcp/tools.ts: packages/coding-agent/src/extensions/mcp/tools.ts changed 9 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 14 (its worst body is tools.relocateSchema at line 135), 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(mcp,coding-agent): accept any JSON value as tool structuredContent\u201D; \u201Cfix(coding-agent): keep MCP tools with --tools, add tool patterns and --no-mcp\u201D; \u201Cfix(coding-agent): render MCP tool calls before their server connects\u201D; \u201Cfix(coding-agent): align MCP tool names with codemode identifiers\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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/src/extensions/mcp/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/coding-agent/src/extensions/mcp/tools.ts"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5d326cb47e04d02830315ab1deea718fa172d0ff6c667558c270fe6243d0874"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: scripts/release.mjs: scripts/release.mjs changed 8 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 9 (its worst body is release.assertPackagesAreRegisteredWithNpm at line 57), 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: keep the Nix model catalog pin buildable\u201D; \u201Cfix(coding-agent): keep remote harness dependencies development-only\u201D; \u201Cfix(coding-agent): announce only verified npm releases\u201D; \u201Cfix: verify npm package registration before release\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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- scripts/release.mjs\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":"scripts/release.mjs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"377dc03325846331a468cc89bde7a2c437c867219dcc6ce0c094bca9fb243a84"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/coding-agent/src/core/model-registry.ts: packages/coding-agent/src/core/model-registry.ts changed 8 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 9 (its worst body is ModelRegistry.getApiKeyAndHeaders at line 89), 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(coding-agent): allow extensions to stream from custom providers (#9272)\u201D; \u201Cfix(coding-agent): preserve extension auth endpoints\u201D; \u201Cfix(coding-agent): make model refresh cancellation caller-owned\u201D; \u201Cfix(coding-agent): preserve auth header deletion markers (#7539)\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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/src/core/model-registry.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/coding-agent/src/core/model-registry.ts"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eefebbc628de1f65e031a545a5d687fd2d5ad5f3330024d63d813ca6f1976d8"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/coding-agent/src/utils/shell.ts: packages/coding-agent/src/utils/shell.ts changed 6 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 11 (its worst body is shell.findExecutableOnPath at line 43), 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(coding-agent): stop macOS shell groups before killing them\u201D; \u201Cfix(coding-agent): resolve Windows shells from installation directories\u201D; \u201Cfix(coding-agent): accept Windows Store shell aliases\u201D; \u201Cfix(tui,coding-agent): reduce render cost of theme changes and streaming\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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/src/utils/shell.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/coding-agent/src/utils/shell.ts"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1f483f762f3ef69fa3148f11a5e549968c426813d436b03a463529674fe654d"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/coding-agent/src/core/keybindings.ts: packages/coding-agent/src/core/keybindings.ts changed 6 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 6 (its worst body is keybindings.migrateKeybindingsConfig at line 278), 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(coding-agent,tui): paste Finder file paths instead of icons (#10136)\u201D; \u201Cfix(coding-agent): clarify copy shortcut description (#9745)\u201D; \u201Cfix(coding-agent): selector save keybindings (#9149)\u201D; \u201Cfix(coding-agent): use Windows-friendly keybinding defaults\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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/src/core/keybindings.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/coding-agent/src/core/keybindings.ts"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"3be1b9a24a2b2ba7e24d4ec0f4523cfc90c64d06f4527fc38e34acf484d25b8f"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/ai/src/utils/overflow.ts: packages/ai/src/utils/overflow.ts changed 5 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 14 (its worst body is overflow.isContextOverflow at line 142), 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(ai): recover from Copilot request-size overflow\u201D; \u201Cfix(ai): detect Z.AI CN endpoint context overflow errors\u201D; \u201Cfix(ai): detect z.ai prompt-too-long errors\u201D; \u201Cfix(ai): scope bodyless overflow errors to Cerebras\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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/ai/src/utils/overflow.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/ai/src/utils/overflow.ts"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"9394236528cbe47eec63830fd6e22e5556a9436d65f790e2d3e44f1e8f400acc"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/env/src/ssh.ts: packages/env/src/ssh.ts changed 7 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is ssh.sshArguments at line 77), 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(env): upload to Windows as base64 lines through PowerShell\u0027s input\u201D; \u201Cfix(env): upload to Windows without relying on the end of stdin\u201D; \u201Cfix(env): time out stuck ssh calls and daemon starts\u201D; \u201Cfix(env): detect Windows when its shell garbles the POSIX probe\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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/env/src/ssh.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/env/src/ssh.ts"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"45e484a01a578b9649c0c1262dbced62df278f8578ec095c627d89ce652f4bb1"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/ai/src/utils/transcript.ts: packages/ai/src/utils/transcript.ts changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is transcript.getCurrentSystemMessage at line 73), 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(ai): only list announced removals as still unavailable\u201D; \u201Cfix(ai): keep the prompt cache across tool changes on Responses (#11142)\u201D; \u201Cfix(coding-agent): send forced system prompts without recording them\u201D; \u201Cfix(coding-agent): replace the system prompt when a handler forces it\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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/ai/src/utils/transcript.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/ai/src/utils/transcript.ts"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f60163b43be191bca03113ca811f6bbd2da55d467e6d5c72d3c72ab4cd6d98c"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/codemode/src/runtime/host.ts: packages/codemode/src/runtime/host.ts changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is host.workerLauncher at line 20), 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(coding-agent): keep codemode cancellation prompt and bounded\u201D; \u201Cfix(codemode): ignore Node --watch notifications from the worker\u201D; \u201Cfix(codemode): survive scripts that patch built-ins\u201D; \u201Cfix(coding-agent): load codemode worker in Windows binary\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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/codemode/src/runtime/host.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/codemode/src/runtime/host.ts"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"43269931295ffa38c37fab55dc6cf95a0da1dc274801ef6a4b0801ac1081d617"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/coding-agent/src/core/models-store.ts: packages/coding-agent/src/core/models-store.ts changed 4 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 8 (its worst body is FileModelsStore.readLatest at line 82), 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(coding-agent): normalize UTF-8 BOMs in text inputs\u201D; \u201Cfix(coding-agent): avoid custom store lock convoys\u201D; \u201Cfix(coding-agent): avoid model store read lock contention\u201D; \u201Cfix(coding-agent): make model refresh cancellation caller-owned\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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/src/core/models-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/coding-agent/src/core/models-store.ts"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"e69c6c526d30a42579075894658e66d31a0787efd9768b2a33d32188a17fe334"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/ai/src/auth/oauth/anthropic.ts: packages/ai/src/auth/oauth/anthropic.ts changed 5 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 6 (its worst body is anthropic.formatErrorDetails at line 59), 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(ai): fall back to a free port for Anthropic OAuth callback\u201D; \u201Cfix(coding-agent): only label known subscriptions in footer\u201D; \u201Cfix(coding-agent): make model refresh cancellation caller-owned\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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/ai/src/auth/oauth/anthropic.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/ai/src/auth/oauth/anthropic.ts"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"41d54c2d9d380edc89d60ecfd2a471e051318b425a64e1f5d61ad5dc0fec0991"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/mcp/src/oauth/types.ts: packages/mcp/src/oauth/types.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 5 (its worst body is types.optionalStrings at line 120), 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(mcp): accept only http and https OAuth URLs\u201D; \u201Cfix(mcp): send application_type in OAuth dynamic client registration\u201D; \u201Cfix(mcp): treat empty and null optional OAuth fields as absent\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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/mcp/src/oauth/types.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/mcp/src/oauth/types.ts"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6db3468ff31c2bf76c933be3dbd901f3695d0bde24656042919feb2814640f0"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/chord/src/manager.ts: packages/chord/src/manager.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 manager.processLock at line 82), 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(chord): a failed IPC write ends the link instead of raising an unhandled error\u201D; \u201Cfix(chord): a forked child host no longer inherits its parent\u0027s CHORD2_LOCK\u201D; \u201Cfix(chord): keep the process lock socket path within sun_path on macOS\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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/chord/src/manager.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/chord/src/manager.ts"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ee263ca6030f0b3551f4fc3310505720f1879544965d3f02b5b0c8f157a42e2"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/ai/src/utils/event-stream.ts: packages/ai/src/utils/event-stream.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 5 (its worst body is EventStream.[Symbol.asyncIterator] at line 72), 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(ai): time responses with private fields; use the real stream in proxy and test mocks\u201D; \u201Cfix(ai): keep AssistantMessageEventStream assignable from plain event streams\u201D; \u201Cfix(ai): optimize EventStream queue\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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/ai/src/utils/event-stream.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/ai/src/utils/event-stream.ts"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0df6e8a67648ed9bca71701fec4de08a160eaee9739e90d8b1fdd8dda19286f"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/tui/src/components/box.ts: packages/tui/src/components/box.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 10 (its worst body is Box.render at line 106), 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(coding-agent): apply outputPad to all transcript blocks (#10557)\u201D; \u201Cfix(tui): reduce memory retained per rendered message\u201D; \u201Cfix(tui,coding-agent): reduce render cost of theme changes and streaming\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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/tui/src/components/box.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/tui/src/components/box.ts"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"11336cf38708d37e6b9852b4e72e13f1104b274abfcf449b3259accdb8dab590"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/ai/src/auth/resolve.ts: packages/ai/src/auth/resolve.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 resolve.resolveProviderAuthWithSignal at line 46), 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(ai,coding-agent): persist rotated OAuth tokens when a refresh is cancelled\u201D; \u201Cfix(ai): bound OAuth refresh duration\u201D; \u201Cfix(coding-agent): make model refresh cancellation caller-owned\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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/ai/src/auth/resolve.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/ai/src/auth/resolve.ts"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e8baa1834219fe2b097133dfa6e05d9ac50bda44551b10fa011bc94e508c165"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/coding-agent/src/core/agent-session-runtime.ts: packages/coding-agent/src/core/agent-session-runtime.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 12 (its worst body is AgentSessionRuntime.fork at line 262), 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(coding-agent): save new session file at the first user message\u201D; \u201Cfix(coding-agent): avoid overwriting imported sessions (#8985)\u201D; \u201Cfix(coding-agent): settle active turn before in-memory fork (#8937)\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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/src/core/agent-session-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/coding-agent/src/core/agent-session-runtime.ts"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"9062786a2d632ac9e4f84a5ff45e04410b6196f743b2d748e6ed66038881dd5d"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/ai/src/providers/opencode-go.ts: packages/ai/src/providers/opencode-go.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 1 (its worst body is opencode-go.opencodeGoProvider at line 12), 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(ai): move OpenCode providers to inference endpoints\u201D; \u201Cfix(ai): send OpenCode session header\u201D; \u201Cfix(ai): correct OpenCode Go provider display name from \u0027OpenCode Zen Go\u0027 to \u0027OpenCode Go\u0027\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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/ai/src/providers/opencode-go.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/ai/src/providers/opencode-go.ts"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"37f05f273645b87de2c3ef7c474428a9c34d7d5e0102a71b401c38308914421b"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/mcp/src/client.ts: packages/mcp/src/client.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 12 (its worst body is client.validateListPage at line 94), 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(mcp): do not retry cancelled HTTP requests after an authorization refresh\u201D; \u201Cfix(mcp,coding-agent): accept any JSON value as tool structuredContent\u201D; \u201Cfix(mcp): treat empty and null optional OAuth fields as absent\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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/mcp/src/client.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/mcp/src/client.ts"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"71197f4edd685502a4cbd33a31e6de201330b8ec2409ce5485b61e08887d30cb"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/tui/src/components/text.ts: packages/tui/src/components/text.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 11 (its worst body is Text.render at line 50), 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(coding-agent): apply outputPad to all transcript blocks (#10557)\u201D; \u201Cfix(tui): reduce memory retained per rendered message\u201D; \u201Cfix(tui): fit text padding to narrow widths, closes #8252\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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/tui/src/components/text.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/tui/src/components/text.ts"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"731db3fb0b4bcc576ab139ff73a21fa9467161acda2d8e355633d4a2bfa5a99e"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/coding-agent/test/utilities.ts: packages/coding-agent/test/utilities.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 9 (its worst body is createTestExtensionsResult at line 198), 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(coding-agent): save new session file at the first user message\u201D; \u201Cfix(coding-agent): make model refresh cancellation caller-owned\u201D; \u201Cfix(coding-agent): show system prompt files in startup context (#7266)\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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/test/utilities.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/coding-agent/test/utilities.ts"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccf59545fc431e179c1430476c338fb9f6d416939b5cd4db30af8a8c74594696"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/coding-agent/src/modes/interactive/bug-report.ts: packages/coding-agent/src/modes/interactive/bug-report.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 12 (its worst body is bug-report.reportBug at line 50), 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(coding-agent): allow offline bug report exports (#9841)\u201D; \u201Cfix(coding-agent): reject bug reports offline\u201D; \u201Cfix(coding-agent): preserve multiline bug descriptions\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-28..2026-10-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-28 13:58:51 \u002B01:00\u0027 --until=\u00272026-10-26 13:58:51 \u002B01:00\u0027 --full-history --no-merges -- packages/coding-agent/src/modes/interactive/bug-report.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/coding-agent/src/modes/interactive/bug-report.ts"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"93e90326ce0501f9869d90450d54eaade1e1f5e92068d718a38e1d0a4714f3db"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 25 significant file(s) lose their only recent owner: packages/chord/src/delta/tracker.ts, packages/durable/src/testing/storage-conformance.ts, packages/durable/src/types.ts, packages/durable/src/session/session.ts, packages/durable/src/session/transaction.ts, packages/durable/src/storage/memory.ts, packages/coding-agent/src/extensions/llama/ui.ts, packages/chord/src/delta/diff.ts (\u002B17 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"b8c0c99cbf5d8312daca583bcf1bf5ead2d5097bf14f89c742d16f34405cbce7"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #2: If anonymized user #2 becomes unavailable, 11 significant file(s) lose their only recent owner: packages/coding-agent/src/core/cache-warmer.ts, packages/tui/src/colors.ts, packages/ai/src/utils/transcript.ts, scripts/model-catalog-protocol.ts, packages/ai/src/api/system-one-shared.ts, packages/ai/src/legacy-api-aliases.ts, packages/coding-agent/src/core/crash-log.ts, packages/ai/scripts/openrouter-catalog.ts (\u002B3 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"1e3eb52ad951b769722e79fd07895492bff15ded400f832b85fd94df42eb15cb"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 5 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 (42 single-owned of 435 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; 435 of the 689 production source files in this repository met that bar). They are anonymized user #3 (2 file(s)), anonymized user #4 (1 file(s)), anonymized user #5 (1 file(s)), anonymized user #6 (1 file(s)), anonymized user #7 (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/evals/src/report.ts, packages/evals/evals/documentation-audit.eval.ts, packages/coding-agent/src/modes/interactive/components/settings-submenu.ts, packages/tui/src/word-navigation.ts, packages/ai/src/auth/oauth/device-code.ts, packages/ai/src/api/cloudflare-ai-binding.ts."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(loader): replace with an isolating, evicting loader. Every reload imports fresh module copies under a new \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/src/loader.ts"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcb81e59f78f6c52986d192dd17f09b1613f49357a77cc4b9061e9afdd336904"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Owner-approved exception to the no-dynamic-import rule; see TODO(loader) above. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/src/loader.ts"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f3a6c460024ff711667c462194f7d32e2410cae51f85ecf391c8a26cdbd4afa"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(xiaomi): when a tool_result contains both a descriptive text block \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/test/image-tool-result.test.ts"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"be70de70a98c6e98ed341353940819b32861fd6579db6cb7989e4b746f654d8d"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(xiaomi): see the API-billing block above \u2014 same multimodal-fusion \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/test/image-tool-result.test.ts"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"f507df13edf6737312ccd933d6dd0eb7d0a51c2f22968fa6351b24fd5e07c82c"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(xiaomi): see the API-billing block above \u2014 same multimodal-fusion \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/test/image-tool-result.test.ts"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"55890ac69f8a2f138955eb88bd5b5e82751217fe8c0b63961adfaf3303dd271e"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(xiaomi): see the API-billing block above \u2014 same multimodal-fusion \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/test/image-tool-result.test.ts"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0b09e08ab5194b47be1e175cb7b9abcb64d784e5b1b4fedcaa639adc7df5ff3"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(xiaomi): Xiaomi\u0027s Anthropic-compatible stream does not populate \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/test/tokens.test.ts"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"7243b7bab2df74c73307f7af0a687800067843a1fc8de9c3bdad90daaa6a4dc2"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(xiaomi): see the API-billing block above \u2014 same upstream streaming \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/test/tokens.test.ts"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8dc4594679951cedef85427edadefe5d5bcf3b34e795341250e51a65588a0b5"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(xiaomi): see the API-billing block above \u2014 same upstream streaming \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/test/tokens.test.ts"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9815e0c41b0e5491fb905662f42283bbae72c0fbf3539cf3847088ffe71a4a0"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(xiaomi): see the API-billing block above \u2014 same upstream streaming \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/test/tokens.test.ts"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"672d336a4dcecff74cf3f03526b362b5da12396f454e9fd39c61bbcadbadd069"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: remove this when bun supports proxy envs in websocket. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/src/api/openai-codex-responses.ts"},"region":{"startLine":1015}}}],"partialFingerprints":{"codehealthFindingId/v1":"49c175e3cd1c0ce9c9ec14500e4dca5941633ef080c18c326304dc55c5a490f4"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d2bea044ff79d7d275f5a91a6e2f548586178eaf480274c33960ad020c854631"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Transport (ai \u2192 agent): Transport (context ai) is exposed in agent\u0027s public surface via AgentOptions.transport \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/agent/src/agent.ts"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a5c5f7102789e9e2cdd3694f08225ed90e5ea62fe0723441e2640647838e99a"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Transport (ai \u2192 agent): Transport (context ai) is exposed in agent\u0027s public surface via Agent.transport \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/agent/src/agent.ts"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"9315e1e7996581da6e341b39fd1343364c48490553b6f0bcb0276f2ddc1ddca1"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 ai): ThinkingLevel (context agent) is exposed in ai\u0027s public surface via simple-options.clampReasoning \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/src/api/simple-options.ts"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"90cb0c72543d0f830458a706b06528d6928d44471071d6ba3cf68a677ef7d2c6"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 ai): ThinkingLevel (context agent) is exposed in ai\u0027s public surface via simple-options.thinkingBudgetForLevel \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/src/api/simple-options.ts"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"cabb8359a9056c10b414edc36e066a965df1537315b345b190e6ca458b3d48c3"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 ai): ThinkingLevel (context agent) is exposed in ai\u0027s public surface via simple-options.adjustMaxTokensForThinking \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/src/api/simple-options.ts"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"f30782be1bb1d8aaf9958276fdca3462ecac51bcf54627ae64f7800734b5b80f"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 ai): ThinkingLevel (context agent) is exposed in ai\u0027s public surface via BedrockOptions.reasoning \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/src/api/bedrock-converse-stream.ts"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"25d11a6490b923a1dab840cdc54d6a41fa4b73b3c3a02502b8f1afb53c601280"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 ai): ThinkingLevel (context agent) is exposed in ai\u0027s public surface via google-shared.resolveGoogleThinkingLevel \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/src/api/google-shared.ts"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"153c38bc4ea387fc101fc846c8216c1f53d12c7d85ab6edb77a0a4824b5b4aaf"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 ai): ThinkingLevel (context agent) is exposed in ai\u0027s public surface via PiMessagesOptions.reasoning \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/src/api/pi-messages.ts"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"85839b635232f29e481fa11a7b473eb3b5b64ede98174bf28b0ead11f5f147f6"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 ai): ThinkingLevel (context agent) is exposed in ai\u0027s public surface via SimpleStreamOptions.reasoning \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/src/types.ts"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad05a5d5db026e7544aeda4b5f9564b81db6c23d24b9e223a7c674341cb439b6"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 ai): ThinkingLevel (context agent) is exposed in ai\u0027s public surface via OpenRouterReasoningMetadata.supported_efforts \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/scripts/openrouter-reasoning-options.ts"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb960891eb898810862e7b276eb16fb0f3d0abd4075cb657b9eb8377846425dc"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 ai): ThinkingLevel (context agent) is exposed in ai\u0027s public surface via OpenRouterReasoningMetadata.default_effort \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/scripts/openrouter-reasoning-options.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7ff780ea5fa236674d4ea6db7bcfb1e4b87fc8d70d63151cfeb5ca35f363d73"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Credential (ai \u2192 coding-agent): Credential (context ai) is exposed in coding-agent\u0027s public surface via ReadOnlyAuthStorage.read \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/auth-storage.ts"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"9642444726d40c2d2c56c670b2453f84e718563aae0133092bdf677b69c7964a"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Credential (ai \u2192 coding-agent): Credential (context ai) is exposed in coding-agent\u0027s public surface via ReadOnlyAuthStorage.modify \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/auth-storage.ts"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6df2bfd8d1aa6fdace97a505654cfac9cdc8f91fcc328acb687eb094f6aeaa6"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Credential (ai \u2192 coding-agent): Credential (context ai) is exposed in coding-agent\u0027s public surface via AuthStorage.read \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/auth-storage.ts"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"04ee7fdd05eebb73d48d3702265cf7839e64ff95a56193c6c9c84baa51f2ae5b"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Credential (ai \u2192 coding-agent): Credential (context ai) is exposed in coding-agent\u0027s public surface via AuthStorage.modify \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/auth-storage.ts"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"31c1a42d0a5fd86091d8f5637a50e291c509b15ea48019153a27e8f7a6befedb"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Credential (ai \u2192 coding-agent): Credential (context ai) is exposed in coding-agent\u0027s public surface via auth-storage.readStoredCredential \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/auth-storage.ts"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1f0e36e582abcc2b63569fae99e44d59f7a8ea21d5e1cf52031cf02bab946f7"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via ExtensionOAuthConfig.modifyModels \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/provider-composer.ts"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"82d9b3d1be4469d1fb622ab7667dde6892a5fc50c420d9662c59be804e4dfdb3"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via ProviderChatModelConfig.api \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/provider-composer.ts"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"541da677a03ddd9533d390aac6bd2623834c5811fe3a87b7f7af1da140de95ab"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via ProviderChatModelConfig.thinkingLevelMap \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/provider-composer.ts"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9063673340ae2c099670b49b5f707ac099d38d73b0b880246925dc471d251ed"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via ProviderChatModelConfig.promptCache \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/provider-composer.ts"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"1abc6624b247645ec83864e2b0ca7fb2587546dbf1527be28b24c33e225e06b5"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via ProviderChatModelConfig.samplingParams \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/provider-composer.ts"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"49f22e81565d9d04b90555cf083c64cc7feb36c0e6c918e1f9f0571ebff6ac6f"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via ProviderChatModelConfig.samplingParamsByThinkingLevel \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/provider-composer.ts"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"30941e76a370285283ffefaeb5e532e47156c4bacff6a946efea495dde4d8fc8"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via ProviderChatModelConfig.compat \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/provider-composer.ts"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5f86d51ba52f7276de8fd0e9faadc33551a50c62f71e917f8630e35fefc7c7b"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ImageApi (ai \u2192 coding-agent): ImageApi (context ai) is exposed in coding-agent\u0027s public surface via ProviderImageModelConfig.api \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/provider-composer.ts"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab27dd629860a7fb21c1d55d455b03eb118ea09c257812f94611fdf77cdaf5eb"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ClassifierApi (ai \u2192 coding-agent): ClassifierApi (context ai) is exposed in coding-agent\u0027s public surface via ProviderClassifierModelConfig.api \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/provider-composer.ts"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"819a2f7d6c4ac4d22fcfebb2bd937a946ee32b527987e852ee0e9291de283fe6"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ClassifierApi (ai \u2192 coding-agent): ClassifierApi (context ai) is exposed in coding-agent\u0027s public surface via ProviderClassifierModelConfig.compat \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/provider-composer.ts"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"53f9d208f3f73d8ceb80d652a67f2d9fdaf278d21e1a98f13f6e7bc624752d91"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via ProviderConfigInput.api \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/provider-composer.ts"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"59c130528238c729a0875936f0ac5495de3ba6854eb15199f8b64d47d34c83ab"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via ProviderConfigInput.streamSimple \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/provider-composer.ts"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"53ac67ea31c2eb8d7e88eed3d30a35c4c13764e99309f1f3f84c8ee840007c91"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ImageApi (ai \u2192 coding-agent): ImageApi (context ai) is exposed in coding-agent\u0027s public surface via ProviderConfigInput.images \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/provider-composer.ts"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"212134451bca9163496b8258c17284cca828e2ce15c1e937ad20a980a99fbd38"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ClassifierApi (ai \u2192 coding-agent): ClassifierApi (context ai) is exposed in coding-agent\u0027s public surface via ProviderConfigInput.classifiers \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/provider-composer.ts"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ce929835bd51294f6371dec9a2d5a3a8009655d2c8385dc8d7bc4e2ed823e0a"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Credential (ai \u2192 coding-agent): Credential (context ai) is exposed in coding-agent\u0027s public surface via RuntimeCredentials.read \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/runtime-credentials.ts"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f73b04b1bf973cdf2b08b19eb0d2f00e4b5565ab8cfabe231f78b9ce44d8cff"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Credential (ai \u2192 coding-agent): Credential (context ai) is exposed in coding-agent\u0027s public surface via RuntimeCredentials.modify \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/runtime-credentials.ts"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e4b6c18a3e20d275c9185883f46c7930c022d12a6f204b9623c93ff17d910d3"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type AgentMessage (agent \u2192 coding-agent): AgentMessage (context agent) is exposed in coding-agent\u0027s public surface via messages.convertToLlm \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/messages.ts"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"132a07dcf1f05f7d1693835ddefcffcf4144d7d6adb0dcea6e9c36b668ea1d50"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type AgentMessage (agent \u2192 coding-agent): AgentMessage (context agent) is exposed in coding-agent\u0027s public surface via SessionMessageEntry.message \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/session-manager.ts"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"e56126f3d0534f4c7fdd7f7b4e2a7f0dbe682c64c3d1c0c7250b670c469b593d"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type AgentMessage (agent \u2192 coding-agent): AgentMessage (context agent) is exposed in coding-agent\u0027s public surface via ProjectedSessionEntry.messages \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/session-manager.ts"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c9cce291a078debe88d71beae498684699eb0972872aeebcce97172eeaa91a5"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type AgentMessage (agent \u2192 coding-agent): AgentMessage (context agent) is exposed in coding-agent\u0027s public surface via SessionProjection.messages \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/session-manager.ts"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"f73c6cf71de212f7dc1a5bd7490659456fa315c3febdaff58fde851d94a8e7c9"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type AgentMessage (agent \u2192 coding-agent): AgentMessage (context agent) is exposed in coding-agent\u0027s public surface via SessionContext.messages \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/session-manager.ts"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"584ea6d1d1d7bff5474a872d0b22ea549501fc27d85b1404eea1f61e946abcca"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type AgentMessage (agent \u2192 coding-agent): AgentMessage (context agent) is exposed in coding-agent\u0027s public surface via session-manager.sessionEntryToContextMessages \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/session-manager.ts"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e26d6ec76aecfbe3edd40ff7830ada29e2ee6052d985e62c73e404761ccb9d2"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via ModelRouteRequest.model \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/virtual-models.ts"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ddd459c91de450b24b51435732530ae3ed6a6db3fa12bc18839a2065fc08fbb"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via ModelRouteRequest.previous \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/virtual-models.ts"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"325b65037f10cc99450e77a6a7ec29dd5a371dde6548122bb16583f97e97aaff"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via ModelRouteRequest.failed \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/virtual-models.ts"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"6341185a2babc295209b788a94f7dfcb567754d9538b1d3241d634ba0e8207eb"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via ModelRoute.model \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/virtual-models.ts"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"15c6d249c7c705b5df9cdf24952e6070c52a86f418f5857b96d243bcfabe149a"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type AgentMessage (agent \u2192 coding-agent): AgentMessage (context agent) is exposed in coding-agent\u0027s public surface via virtual-models.findLatestResponse \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/virtual-models.ts"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"a431aa7a986fa5d0e63e2d86e2da5c1d826c3c8d4803e8be7a5150a85b8fc4e9"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via virtual-models.getBranchSelection \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/virtual-models.ts"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e4d74057364c47ef16c21904eafbcd8da27e2a46ab692bee11973414c7adc2f"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via virtual-models.createVirtualModel \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/virtual-models.ts"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"f020ddc95390c8336c89bb251f6a88712e0f062b2255ef8a82ff311e90be5e44"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via virtual-models.withVirtualModels \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/virtual-models.ts"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"89993147240658c8788176bb48a264af2b20e4745ade6a25678f719ed17037fb"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Credential (ai \u2192 coding-agent): Credential (context ai) is exposed in coding-agent\u0027s public surface via CredentialSynchronizationError.credential \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/model-runtime.ts"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"84eccc8d4ecad6d1933ebe0a586b7b0c142ee2f1f316792e6e4ff17c0d6fe247"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Credential (ai \u2192 coding-agent): Credential (context ai) is exposed in coding-agent\u0027s public surface via CredentialSynchronizationError.constructor \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/model-runtime.ts"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"557a2b13e171d33ebc9f272c1b5ced225a54939631b81fe6818a66f942fa21e7"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via ModelRuntime.getModels \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/model-runtime.ts"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"792de5073d4a0c0bc6652988f6efa01ab69760507210f6f8f52170653b1d1f38"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via ModelRuntime.getModel \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/model-runtime.ts"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"157bf9e9f916075b584770daeea403518ff8506079daec707bff73776ec8bc0e"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via ModelRuntime.getAvailable \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/model-runtime.ts"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6fd20114b1329ad491473565353e5461b56a0d491abd894198f7517f9c70f65"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via ModelRuntime.getAvailableSnapshot \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/model-runtime.ts"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cf871c3c8107d7887886469ffff85df9ef7c98edfa738f55b8371cdcf793fe1"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via ModelRuntime.getCompatibilityRequestConfig \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/model-runtime.ts"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee3463a6a987128ca529ae805c5a165aaa80b37690fbe5740a506129b9a7e62a"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via ModelRuntime.streamSimple \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/model-runtime.ts"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f8958f0575b8b726d9e4b12919cc05ada50ce29405d62a62c8c0a492214c596"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via ModelRuntime.completeSimple \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/model-runtime.ts"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"44d3cf3fa2431ba8dbf413d6f6da6b0e382cbb15e51794966f44c85cbb9472d1"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via ModelRuntime.streamDeferred \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/model-runtime.ts"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"220c2606cf9f8b034c81e928f4d404699e0bf3ff4094d45f171be96066182ab1"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via ModelRuntime.fetchDeferred \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/model-runtime.ts"},"region":{"startLine":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"12bc84e74ae2d62c9c231347b7ed975e72a97dd37ad672d7fd5480db7bf00c7d"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via ModelRuntime.cancelDeferred \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/model-runtime.ts"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce4daae6da82c3392b508f6a8af90b32cfe676bbde7435e2ff181cdaa39daa6c"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ImageApi (ai \u2192 coding-agent): ImageApi (context ai) is exposed in coding-agent\u0027s public surface via ModelRuntime.generateImages \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/model-runtime.ts"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"4217ad859b38cec7c76e06b486f49e35ed22838aba62af96081945612bf59653"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ClassifierApi (ai \u2192 coding-agent): ClassifierApi (context ai) is exposed in coding-agent\u0027s public surface via ModelRuntime.classify \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/model-runtime.ts"},"region":{"startLine":816}}}],"partialFingerprints":{"codehealthFindingId/v1":"550f94811a7449ef562666e226f27efe10f1899b57733420719a223bfeebe7c1"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Credential (ai \u2192 coding-agent): Credential (context ai) is exposed in coding-agent\u0027s public surface via ModelRuntime.login \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/model-runtime.ts"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a520c6956f9c8a8df9528b35df5478841b80577a8f56186b29c4d2106062753"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type AuthType (ai \u2192 coding-agent): AuthType (context ai) is exposed in coding-agent\u0027s public surface via ModelRuntime.login \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/model-runtime.ts"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"b71882554e8f449f5d0ddbb07a3113ca743fdd305c6bcd87249829b449bcb870"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via ModelRuntime.resolveModel \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/model-runtime.ts"},"region":{"startLine":1011}}}],"partialFingerprints":{"codehealthFindingId/v1":"05ee0deec99b73f270992ed8a2bd2fc3ba7a703ee24a4c27eb33a5ef94cedc38"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via ModelRuntime.getPhysicalModel \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/model-runtime.ts"},"region":{"startLine":1045}}}],"partialFingerprints":{"codehealthFindingId/v1":"18da3ea692f2bd5bc78ad362d2be6d9c726018ca7344ec96cc25a829e7f9c951"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 custom-provider-gitlab-duo): Api (context ai) is exposed in custom-provider-gitlab-duo\u0027s public surface via index.streamGitLabDuo \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/examples/extensions/custom-provider-gitlab-duo/index.ts"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d4387baa60b9202b53479e6cf0ebba2a992bb5cb78fcfd5257d5f2b684c3c62"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 coding-agent): ThinkingLevel (context agent) is exposed in coding-agent\u0027s public surface via SettingsManager.getDefaultThinkingLevel \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/settings-manager.ts"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"99ba0bb4e7547d058ee0914bf83091e85fc6e03ec47ad226b9f883d4b5655cd8"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 coding-agent): ThinkingLevel (context agent) is exposed in coding-agent\u0027s public surface via SettingsManager.setDefaultThinkingLevel \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/settings-manager.ts"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa6d7ebd41b4b3ea155f4e3e15acff3e700f6345a8776050ccf2702163aa45ff"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 coding-agent): ThinkingLevel (context agent) is exposed in coding-agent\u0027s public surface via SettingsManager.getModelThinkingLevel \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/settings-manager.ts"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaa277f934fcf9aed0ad5a731d99ea0b11fa7e4dc3825c93a2c6e794595566d0"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 coding-agent): ThinkingLevel (context agent) is exposed in coding-agent\u0027s public surface via SettingsManager.getAllModelThinkingLevels \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/settings-manager.ts"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a2a90b2301a8b394d6fb45cb2d95406769aa0ae3e5ba0afd45cbad7f38bd16b"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 coding-agent): ThinkingLevel (context agent) is exposed in coding-agent\u0027s public surface via SettingsManager.setModelThinkingLevel \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/settings-manager.ts"},"region":{"startLine":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bdd5165d175f8ef6e0caa0523f6025dda608ca15d205232adf7d3277d2d6e12"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type TuiMode (tui \u2192 coding-agent): TuiMode (context tui) is exposed in coding-agent\u0027s public surface via SettingsManager.getTuiMode \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/settings-manager.ts"},"region":{"startLine":1256}}}],"partialFingerprints":{"codehealthFindingId/v1":"35a91fdcef346454f3f01cd031b2bd65fde0fe62a0a50623d9a35996ce2e0705"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type TuiMode (tui \u2192 coding-agent): TuiMode (context tui) is exposed in coding-agent\u0027s public surface via SettingsManager.setTuiMode \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/settings-manager.ts"},"region":{"startLine":1260}}}],"partialFingerprints":{"codehealthFindingId/v1":"262d211b717d9b82749eb5890a368eca741e23b13b004771fe96080d69298647"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ScrollViewScrollbar (tui \u2192 coding-agent): ScrollViewScrollbar (context tui) is exposed in coding-agent\u0027s public surface via SettingsManager.getFullscreenScrollbar \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/settings-manager.ts"},"region":{"startLine":1278}}}],"partialFingerprints":{"codehealthFindingId/v1":"e73f95b4cccdfaddc7263b7e1cf7e40ad9983f1b50fdae50b0c66dd796fb1e6d"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ScrollViewScrollbar (tui \u2192 coding-agent): ScrollViewScrollbar (context tui) is exposed in coding-agent\u0027s public surface via SettingsManager.setFullscreenScrollbar \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/settings-manager.ts"},"region":{"startLine":1283}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8fd8324c95c8fbf20ab91155ee7096cbedad73593aab3ed13f07a4274764b9b"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type WheelScrollLines (tui \u2192 coding-agent): WheelScrollLines (context tui) is exposed in coding-agent\u0027s public surface via SettingsManager.getFullscreenWheelScrollLines \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/settings-manager.ts"},"region":{"startLine":1299}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaa9d427da2be5589e6f010f7ebdc1875df33bd01a8645d8977023fddb84a62a"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type WheelScrollLines (tui \u2192 coding-agent): WheelScrollLines (context tui) is exposed in coding-agent\u0027s public surface via SettingsManager.setFullscreenWheelScrollLines \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/settings-manager.ts"},"region":{"startLine":1306}}}],"partialFingerprints":{"codehealthFindingId/v1":"4570d954dbb18bc95dd8c56b4f89afa85f7631f6fc0c47b1082a39d59d3580e4"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Color (tui \u2192 coding-agent): Color (context tui) is exposed in coding-agent\u0027s public surface via ThemeStyle.fg \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/theme/theme.ts"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b590ad3acc511d972b80c5ed9696b87e591aa0b99d1ca4ef810bf352a3f21c0"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Color (tui \u2192 coding-agent): Color (context tui) is exposed in coding-agent\u0027s public surface via ThemeStyle.bg \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/theme/theme.ts"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad272e21c1e50cb6f27f98d2627ccddccab38ccaf19b7fc61e5b35ddd80cddb0"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type TerminalColorMode (tui \u2192 coding-agent): TerminalColorMode (context tui) is exposed in coding-agent\u0027s public surface via Theme.constructor \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/theme/theme.ts"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff4e737b2e0495af9dafc51ffb6a7dec18d66490f1ae8744dbda9ae9ba387e31"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Color (tui \u2192 coding-agent): Color (context tui) is exposed in coding-agent\u0027s public surface via Theme.colors \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/theme/theme.ts"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"3653b6a1511733b070d5c1bdfabc7b6cee0dad98a96ee9c257706e9cbbf2e07a"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type TerminalColorMode (tui \u2192 coding-agent): TerminalColorMode (context tui) is exposed in coding-agent\u0027s public surface via Theme.getColorMode \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/theme/theme.ts"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"045e46aa2b87ea87ee8c34254d36b270a1e36c24bda6ecc07fd82970b71a6ebc"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 coding-agent): ThinkingLevel (context agent) is exposed in coding-agent\u0027s public surface via Theme.getThinkingBorderColor \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/theme/theme.ts"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a2d56a2cca2797c38d9f704eea0c017ded28796c0ccfa7c61ed2a5f3a474767"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type TerminalColorMode (tui \u2192 coding-agent): TerminalColorMode (context tui) is exposed in coding-agent\u0027s public surface via theme.loadThemeFromPath \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/theme/theme.ts"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd7a77ff8efe7968bfe4089da8e973483b3eca135e57cf9a9f302248cd0bb157"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via CacheWarmRequest.model \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/cache-warmer.ts"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"90a96cdc3845114ad5eba890de9383075d09ad20e9b0ebdad68d333e407cf9fe"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via cache-warmer.getPromptCacheTtlMs \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/cache-warmer.ts"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"41f9af86b044fd0bb88013c1358413857cf67cf31877fb31735e2cf08eac6be5"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via cache-warmer.isReplayable \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/cache-warmer.ts"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eda1c4478c4d958a679a92b46f2321db867be33b984ad698f6fd677df6e78a0"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type AgentMessage (agent \u2192 coding-agent): AgentMessage (context agent) is exposed in coding-agent\u0027s public surface via utils.extractFileOpsFromMessage \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/compaction/utils.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b299627bad09e727b210f9c572efc949186edb3906ceee20d5a931852249d10"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type AgentMessage (agent \u2192 coding-agent): AgentMessage (context agent) is exposed in coding-agent\u0027s public surface via CompactionPreparation.messagesToSummarize \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/compaction/compaction.ts"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"72d78d505cfe03fded2d07c9a2cd0b7465c1518beac988c26a39e4556362f2bc"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type AgentMessage (agent \u2192 coding-agent): AgentMessage (context agent) is exposed in coding-agent\u0027s public surface via CompactionPreparation.turnPrefixMessages \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/compaction/compaction.ts"},"region":{"startLine":765}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bfc310bfa3f2e26baf95ae03f0c61b80ac29b26fe36f4dd706abf4826f729c6"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type AgentMessage (agent \u2192 coding-agent): AgentMessage (context agent) is exposed in coding-agent\u0027s public surface via compaction.estimateContextTokens \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/compaction/compaction.ts"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"f15acfdef1e8b975ffb67d553674e5dd1009199cb84690bcb15f0fffa1a619b0"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type AgentMessage (agent \u2192 coding-agent): AgentMessage (context agent) is exposed in coding-agent\u0027s public surface via compaction.estimateTokens \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/compaction/compaction.ts"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"51ba4bd80cb4f9d8950c9268878247c5451171efcfbf178cdec16013e5bd5e50"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 coding-agent): ThinkingLevel (context agent) is exposed in coding-agent\u0027s public surface via compaction.generateSummary \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/compaction/compaction.ts"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"a642e68cf9033ffdb082e9ce38ae64af904c8590e106eb127c05ea5bdf4cbfb4"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type AgentMessage (agent \u2192 coding-agent): AgentMessage (context agent) is exposed in coding-agent\u0027s public surface via compaction.generateSummary \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/compaction/compaction.ts"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"5da7147523974331c8595625d2fd19f8573d6b4fa0f3b02ddf04c1ade5708799"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 coding-agent): ThinkingLevel (context agent) is exposed in coding-agent\u0027s public surface via compaction.generateSummaryWithUsage \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/compaction/compaction.ts"},"region":{"startLine":696}}}],"partialFingerprints":{"codehealthFindingId/v1":"acbd51c5e0e9de6ebd69a77cddcf0822d92d11110b3ce56f4477f5a44e3a9025"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type AgentMessage (agent \u2192 coding-agent): AgentMessage (context agent) is exposed in coding-agent\u0027s public surface via compaction.generateSummaryWithUsage \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/compaction/compaction.ts"},"region":{"startLine":696}}}],"partialFingerprints":{"codehealthFindingId/v1":"e985c9daec7bf5057ade8a7c44a92bad58c041e71f6aa96615dea75333cd6924"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 coding-agent): ThinkingLevel (context agent) is exposed in coding-agent\u0027s public surface via compaction.compact \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/compaction/compaction.ts"},"region":{"startLine":952}}}],"partialFingerprints":{"codehealthFindingId/v1":"b63c34e34400f2690a161895c3832c3949793fcbcd33079b4edf5cfacc131a95"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type AgentMessage (agent \u2192 coding-agent): AgentMessage (context agent) is exposed in coding-agent\u0027s public surface via BranchPreparation.messages \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/compaction/branch-summarization.ts"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c2ecdd25e0a34c3cb64362d8f964c758f5e23b1f86d948dabaaf20a5b516348"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via ModelRegistry.getAll \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/model-registry.ts"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c26cb65fd055eaf951b496e66ff0a6569da3e71a5f88df0499dc04b5fea3a2d"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via ModelRegistry.getAvailable \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/model-registry.ts"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ed4945d270365ae025dec544cd0419466cbddc0f4b4e13330ff86cfd9266b61"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via ModelRegistry.find \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/model-registry.ts"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"8548d894259ca27177d3c9c5dd64445feffff0041f7c468d605f16cb67e79aef"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via ModelRegistry.hasConfiguredAuth \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/model-registry.ts"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2b9a9653b0e84488c6337ab022769a824d2c1d1826e9f3548a8976cd58fd032"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via ModelRegistry.getApiKeyAndHeaders \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/model-registry.ts"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7b73b753542ae34522e82328465b60599ee94217c213cb4ef34963de3d08b22"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via ModelRegistry.streamSimple \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/model-registry.ts"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"bad30987ef7701e7bdd21a80b4073183b330ee73082c6ab0ec932a3fed5a2c04"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ClassifierApi (ai \u2192 coding-agent): ClassifierApi (context ai) is exposed in coding-agent\u0027s public surface via ModelRegistry.classify \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/model-registry.ts"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"49c0783517f7790c85e7500a0e5c040844fb4cd00e2a9bd14185075968a1943c"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ImageApi (ai \u2192 coding-agent): ImageApi (context ai) is exposed in coding-agent\u0027s public surface via ModelRegistry.generateImages \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/model-registry.ts"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"f45ced254bc30fcc15a6ee97b04b203f1e21455a1c6a2928823c84f4a6e2ec6f"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via ModelRegistry.isUsingOAuth \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/model-registry.ts"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b7d14ff3db0d93b617e0b6f8853d6e3f5b76d3d822329fcbdc2111abc2abba2"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via ScopedModel.model \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/model-resolver.ts"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"329844278fa41ef74d780d4d16327b11720fee2cb216ec7c144787c3232eee81"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 coding-agent): ThinkingLevel (context agent) is exposed in coding-agent\u0027s public surface via ScopedModel.thinkingLevel \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/model-resolver.ts"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9c4847b5f591b353941bf2004ebdd9b9092625c205ed28e1e8320a92eb2a140"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via ModelReferenceTarget.providerModels \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/model-resolver.ts"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcc900d648d952e203a0c85499ecbcdf22d4c39a7e35df062d70ff9119f8ae11"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 coding-agent): ThinkingLevel (context agent) is exposed in coding-agent\u0027s public surface via ModelReferenceTarget.thinkingLevel \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/model-resolver.ts"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ac092985744ba662aa222b788a9abc33812724d5f5e40fb9a3152e967f5495d"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via ResolveCliModelResult.model \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/model-resolver.ts"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"12ba7fadd9d7320930573e750e793fb6e00c579cb80e8f761bca11c309140543"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 coding-agent): ThinkingLevel (context agent) is exposed in coding-agent\u0027s public surface via ResolveCliModelResult.thinkingLevel \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/model-resolver.ts"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"499d091c891a07120124c36460317584b02595c2496e324e2a0c4a07dab2a449"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via InitialModelResult.model \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/model-resolver.ts"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"01a165f259d24a5087b2bae62fc37ef437ac2953df66d2c49d18e3f487f25e8f"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 coding-agent): ThinkingLevel (context agent) is exposed in coding-agent\u0027s public surface via InitialModelResult.thinkingLevel \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/model-resolver.ts"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e3e77e25495dbf6233a3b1ec189476dae0bafb9c3aceeb7d933b4020b6d2eb7"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via model-resolver.resolveModelReference \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/model-resolver.ts"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"70626476fe051a781119a047f4405182220da090b4e4bdcf76e71bcd41fc40dc"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via model-resolver.findExactModelReferenceMatch \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/model-resolver.ts"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2810d664b3d25fc6d360c532c3c8123ec1d59886677f9aea3f1ab285ee415e6"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via model-resolver.resolveModelScopeFromModels \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/model-resolver.ts"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"24a7aca9dc4e500faf593f73a6d3528fd1bb6c501305cd221e6805f8e0045401"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 coding-agent): ThinkingLevel (context agent) is exposed in coding-agent\u0027s public surface via model-resolver.resolveCliModel \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/model-resolver.ts"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"3348334fb2ccc4328b15306434699b16496de54523f92e8abf3698eba7236286"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 coding-agent): ThinkingLevel (context agent) is exposed in coding-agent\u0027s public surface via model-resolver.findInitialModel \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/model-resolver.ts"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"3535d6f918911de5ecffd8e2aa9798abe0f41025451e403ae649169d6a81c05b"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via model-resolver.restoreModelFromSession \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/model-resolver.ts"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c2cec606a645a8143d161815b7d9132f42b7e2657a60a2fec7048428173cca3"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 coding-agent): ThinkingLevel (context agent) is exposed in coding-agent\u0027s public surface via ExtensionContext.thinkingLevel \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/types.ts"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"a446a021175b074b27bf8f633322ec70c9794b339045d17d4d18d6dc6981a758"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ConstrainedSamplingConfig (ai \u2192 coding-agent): ConstrainedSamplingConfig (context ai) is exposed in coding-agent\u0027s public surface via ToolDefinition.constrainedSampling \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/types.ts"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a9e35be8d41ac4c4aac52fe4fa44dd1c97ca7a2b05f2bdc52b7e5a9511f4058"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type AgentMessage (agent \u2192 coding-agent): AgentMessage (context agent) is exposed in coding-agent\u0027s public surface via ContextEvent.messages \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/types.ts"},"region":{"startLine":887}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a960b3dd3423a42ee7b7e28e2b2044cf4602813be293d4784735727701ab769"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type AgentMessage (agent \u2192 coding-agent): AgentMessage (context agent) is exposed in coding-agent\u0027s public surface via ContextWithSystemEvent.messages \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/types.ts"},"region":{"startLine":897}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf3ffc697410e4b14278919f72e695b258b98bfc8ccb3f2e8e7a1a0677ad17e4"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ProviderId (ai \u2192 coding-agent): ProviderId (context ai) is exposed in coding-agent\u0027s public surface via ProviderStreamEvent.provider \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/types.ts"},"region":{"startLine":926}}}],"partialFingerprints":{"codehealthFindingId/v1":"f796837d46e81bd05b82b62d1365ee9a4c32f678473ec87664ab3018efb7b243"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via ProviderStreamEvent.api \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/types.ts"},"region":{"startLine":927}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8de4296a00094f29b6fcad44366174aaca259e7baa5cd276f85f516e1f845b0"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type AgentMessage (agent \u2192 coding-agent): AgentMessage (context agent) is exposed in coding-agent\u0027s public surface via AgentEndEvent.messages \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/types.ts"},"region":{"startLine":967}}}],"partialFingerprints":{"codehealthFindingId/v1":"d53cffbfb698282222ec79d2ceb27d0a176bc0bc612e6373f01f0035e2945582"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type AgentMessage (agent \u2192 coding-agent): AgentMessage (context agent) is exposed in coding-agent\u0027s public surface via BoundaryContextPreview.contextMessages \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/types.ts"},"region":{"startLine":1009}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eb75d24a343c5a4e0842cd34d22f86807b5416b37d4fbd764d995a715acd440"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type AgentMessage (agent \u2192 coding-agent): AgentMessage (context agent) is exposed in coding-agent\u0027s public surface via BoundaryContextPreview.pendingMessages \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/types.ts"},"region":{"startLine":1011}}}],"partialFingerprints":{"codehealthFindingId/v1":"0296a56f665eb7422b42149e2c4b9f52193c9a2c41f7e715c48aed0359e867a6"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type AgentMessage (agent \u2192 coding-agent): AgentMessage (context agent) is exposed in coding-agent\u0027s public surface via TurnEndEvent.message \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/types.ts"},"region":{"startLine":1068}}}],"partialFingerprints":{"codehealthFindingId/v1":"99c7fe491d9c77aa340fbfac8b07b299b709de01ee5e3de4f23620e526eaa981"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type AgentMessage (agent \u2192 coding-agent): AgentMessage (context agent) is exposed in coding-agent\u0027s public surface via MessageStartEvent.message \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/types.ts"},"region":{"startLine":1077}}}],"partialFingerprints":{"codehealthFindingId/v1":"c05fd48fd6858d8c2e5eacc247381c8a1a1d7b7d245bcbdab3d1d0f69c519c78"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type AgentMessage (agent \u2192 coding-agent): AgentMessage (context agent) is exposed in coding-agent\u0027s public surface via MessageUpdateEvent.message \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/types.ts"},"region":{"startLine":1083}}}],"partialFingerprints":{"codehealthFindingId/v1":"965640320263f15840cad271d64986eaa3e528d3ec4ccbae95a88fa0461ccca3"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type AssistantMessageEvent (ai \u2192 coding-agent): AssistantMessageEvent (context ai) is exposed in coding-agent\u0027s public surface via MessageUpdateEvent.assistantMessageEvent \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/types.ts"},"region":{"startLine":1084}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f1553a3191d7f297cb4fc4c48a8fbbc522a5b8d0f3bd61f3b957cc00f7fa4f5"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type AgentMessage (agent \u2192 coding-agent): AgentMessage (context agent) is exposed in coding-agent\u0027s public surface via MessageEndEvent.message \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/types.ts"},"region":{"startLine":1090}}}],"partialFingerprints":{"codehealthFindingId/v1":"32ffe97877920ba079e6313e0d18d474317cc2a8c536a9de8b2bbee75ca01203"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 coding-agent): ThinkingLevel (context agent) is exposed in coding-agent\u0027s public surface via ThinkingLevelSelectEvent.level \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/types.ts"},"region":{"startLine":1144}}}],"partialFingerprints":{"codehealthFindingId/v1":"33616f0c74166587c5dd56ee56092b04bc578b838499b9b780a04ec0c8294dc5"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 coding-agent): ThinkingLevel (context agent) is exposed in coding-agent\u0027s public surface via ThinkingLevelSelectEvent.previousLevel \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/types.ts"},"region":{"startLine":1145}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0332fd3e3d61510df35858e3dae494249f0398bc7fa5057ffaea7d15293fbf9"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type AgentMessage (agent \u2192 coding-agent): AgentMessage (context agent) is exposed in coding-agent\u0027s public surface via ContextEventResult.messages \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/types.ts"},"region":{"startLine":1444}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c9ffb2fe3dc26e3bbafec48586a13e34e18df1472d16b242c8928416e6d0d8c"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type AgentMessage (agent \u2192 coding-agent): AgentMessage (context agent) is exposed in coding-agent\u0027s public surface via MessageEndEventResult.message \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/types.ts"},"region":{"startLine":1493}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd3da3c8da366461d8d3faa70f50ce1199aff858aa5aa484c92bbb71f85baccf"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type KeyId (tui \u2192 coding-agent): KeyId (context tui) is exposed in coding-agent\u0027s public surface via ExtensionAPI.registerShortcut \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/types.ts"},"region":{"startLine":1687}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc8a4010d5049d8de61b76b24e5c6e657e110cf2778af157220f23b89297dec6"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 coding-agent): ThinkingLevel (context agent) is exposed in coding-agent\u0027s public surface via ExtensionAPI.getThinkingLevel \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/types.ts"},"region":{"startLine":1798}}}],"partialFingerprints":{"codehealthFindingId/v1":"b959792d0d21544112c026d98d2c24aba5039a32eafc7370f43f9e03cc928d0e"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 coding-agent): ThinkingLevel (context agent) is exposed in coding-agent\u0027s public surface via ExtensionAPI.setThinkingLevel \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/types.ts"},"region":{"startLine":1804}}}],"partialFingerprints":{"codehealthFindingId/v1":"b419b6c4df64437b1d3fe58cf3fb0c5d7a6728b30a45043b93f86e69490cea7b"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via ProviderConfig.api \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/types.ts"},"region":{"startLine":1943}}}],"partialFingerprints":{"codehealthFindingId/v1":"684ae73e3e614b5c499eb6687ac23c7ef0d3e8b9272eeafb4f60e2c3b29bf6c4"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via ProviderConfig.streamSimple \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/types.ts"},"region":{"startLine":1954}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c94952e0004cb6acf5e134d8227f023d7a70b64bf6cf9cbd65851915a717fb0"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ImageApi (ai \u2192 coding-agent): ImageApi (context ai) is exposed in coding-agent\u0027s public surface via ProviderConfig.images \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/types.ts"},"region":{"startLine":1960}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ef3c30a418e88dc801948194abd0b4aed9881e214e58c949ed8f60d7ba40a44"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ClassifierApi (ai \u2192 coding-agent): ClassifierApi (context ai) is exposed in coding-agent\u0027s public surface via ProviderConfig.classifiers \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/types.ts"},"region":{"startLine":1962}}}],"partialFingerprints":{"codehealthFindingId/v1":"83e91b1486af8177be8cfe8bc63f6a59abf81dcda0341ecd6d361b5d920ebc17"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via ProviderConfig.oauth \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/types.ts"},"region":{"startLine":1975}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4c6afbeeff00337da683ba41c8676e3c7ad949188a53fc558ff8865411dd241"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via ProviderChatModelConfig.api \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/types.ts"},"region":{"startLine":2015}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd1e96e3fe67e8d2d3b819657db1c0543ff09f4fd9427c4b84fd2e70c328826b"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via ProviderChatModelConfig.thinkingLevelMap \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/types.ts"},"region":{"startLine":2019}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c07cb0e01678bb785cbe0355a746dbaf250b5d23a07f058b91d6588e6c3c86d"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via ProviderChatModelConfig.promptCache \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/types.ts"},"region":{"startLine":2021}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3faa5aeedba899b693fe67b59b1d7f15fcd0ee0888f597ba667177e470e9c9d"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Api (ai \u2192 coding-agent): Api (context ai) is exposed in coding-agent\u0027s public surface via ProviderChatModelConfig.compat \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/types.ts"},"region":{"startLine":2028}}}],"partialFingerprints":{"codehealthFindingId/v1":"f89ecb8b55dfa853273896bc7f2b83df553bdb07b8d41c5309624823359147f5"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ImageApi (ai \u2192 coding-agent): ImageApi (context ai) is exposed in coding-agent\u0027s public surface via ProviderImageModelConfig.api \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/types.ts"},"region":{"startLine":2034}}}],"partialFingerprints":{"codehealthFindingId/v1":"e783e17d3c10766a36d49bb9f93dfdf7ee0837548161db1689df253b56cea81a"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ClassifierApi (ai \u2192 coding-agent): ClassifierApi (context ai) is exposed in coding-agent\u0027s public surface via ProviderClassifierModelConfig.api \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/types.ts"},"region":{"startLine":2041}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b2e6ee0b98d073ce519ea604ce8506130f721a9a8ae69ea66e72f3c4cfb5ce1"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type KeyId (tui \u2192 coding-agent): KeyId (context tui) is exposed in coding-agent\u0027s public surface via ExtensionShortcut.shortcut \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/types.ts"},"region":{"startLine":2099}}}],"partialFingerprints":{"codehealthFindingId/v1":"58af543fbb21f8973cd154e25c40c9d54da9899309ec202561d7c97d60fb4894"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type KeyId (tui \u2192 coding-agent): KeyId (context tui) is exposed in coding-agent\u0027s public surface via Extension.shortcuts \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/types.ts"},"region":{"startLine":2287}}}],"partialFingerprints":{"codehealthFindingId/v1":"dda85b26e9d86477ffc55d7c6a3e05d103c5be7a9795d40b8556a05cf9428619"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 coding-agent): ThinkingLevel (context agent) is exposed in coding-agent\u0027s public surface via Args.thinking \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/cli/args.ts"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"03a3291bd750572e362f4e714fc5e33ccb62b3dd6c301e151608f350c8e4771c"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Mode (chord \u2192 coding-agent): Mode (context chord) is exposed in coding-agent\u0027s public surface via Args.mode \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/cli/args.ts"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"f04e566125b41c9e3b54ad52c62130e73a9c18e22c7a9cacd375ed10030bb2c6"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type TuiMode (tui \u2192 coding-agent): TuiMode (context tui) is exposed in coding-agent\u0027s public surface via Args.tuiMode \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/cli/args.ts"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa447991a7f9ed8848b7560031b9eca96f0040122afb6c77f5ea809a2cb4130a"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 coding-agent): ThinkingLevel (context agent) is exposed in coding-agent\u0027s public surface via args.isValidThinkingLevel \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/cli/args.ts"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8f6248cce35ea1f6de0c8375fbe8c9d62291ef998e4e55175c3b153a23241ff"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type KeyId (tui \u2192 coding-agent): KeyId (context tui) is exposed in coding-agent\u0027s public surface via ExtensionRunner.getShortcuts \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/runner.ts"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"91af66d703eb7bb955abdfc923807f3b1e14447319adbeaa1cac8f441bb60a1c"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type AgentMessage (agent \u2192 coding-agent): AgentMessage (context agent) is exposed in coding-agent\u0027s public surface via ExtensionRunner.emitMessageEnd \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/runner.ts"},"region":{"startLine":1151}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b6f5a1e6795b0ab6f5d4df09a1a248a93b4518aa253cd482b9e32a52ad6447c"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type AgentMessage (agent \u2192 coding-agent): AgentMessage (context agent) is exposed in coding-agent\u0027s public surface via ExtensionRunner.emitContext \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/runner.ts"},"region":{"startLine":1305}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6d626fef2e85dc3091303521316eeb93de63f9b2b7d13e65e604385ac5a98bd"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 coding-agent): ThinkingLevel (context agent) is exposed in coding-agent\u0027s public surface via CreateAgentSessionOptions.thinkingLevel \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/sdk.ts"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f6d7a425d3d7a052c40ae4d69ae69503aed86715eced46cee3879963250e4bb"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 coding-agent): ThinkingLevel (context agent) is exposed in coding-agent\u0027s public surface via CreateAgentSessionOptions.scopedModels \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/sdk.ts"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"a76299b7bd213a4381818a4b338db6b18a40af313a93cf61818bcf97a4e9c2d4"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ContentBlock (mcp \u2192 coding-agent): ContentBlock (context mcp) is exposed in coding-agent\u0027s public surface via tools.toModelContent \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/extensions/mcp/tools.ts"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"c395a658bd4123be78f58347bfbd7fb8dc7e4522b1448d1399c34fe521333b27"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 coding-agent): ThinkingLevel (context agent) is exposed in coding-agent\u0027s public surface via CreateAgentSessionFromServicesOptions.thinkingLevel \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/agent-session-services.ts"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c420d0e59ff4edc748c3cba24fe168e57a7e247faaaaeab96ac02a7cd9b6b3b"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 coding-agent): ThinkingLevel (context agent) is exposed in coding-agent\u0027s public surface via CreateAgentSessionFromServicesOptions.scopedModels \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/agent-session-services.ts"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"03b2cefef7ee5348e4cccdec0cf5a4a11d122d70f4e3973b172981b682fa6f2f"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ScrollViewScrollbar (tui \u2192 coding-agent): ScrollViewScrollbar (context tui) is exposed in coding-agent\u0027s public surface via ChatViewportOptions.scrollbar \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/chat-viewport.ts"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d43a5aefc8891b83dc73b8d732929436205acdcd04f9d5ad856b67fd0041f11"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Transport (ai \u2192 coding-agent): Transport (context ai) is exposed in coding-agent\u0027s public surface via SettingsConfig.transport \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/components/settings-selector.ts"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d6fef5bafbeb3fce7ed389ed88ff16ab3792041b91b1b640c0f838685b55f65"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 coding-agent): ThinkingLevel (context agent) is exposed in coding-agent\u0027s public surface via SettingsConfig.thinkingLevel \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/components/settings-selector.ts"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"d19de8cccf19649932fbb4dc2542fab9e9165bebb2f30fc504f7c6c639de44f6"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 coding-agent): ThinkingLevel (context agent) is exposed in coding-agent\u0027s public surface via SettingsConfig.availableThinkingLevels \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/components/settings-selector.ts"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"c36c5c38de8ab23ee813e9f7bf336b3bdfeb1ea02634e161f267dd406a5c82e6"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 coding-agent): ThinkingLevel (context agent) is exposed in coding-agent\u0027s public surface via SettingsConfig.modelThinkingLevels \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/components/settings-selector.ts"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"9528c5df6695cb6f6f3cc3a12a1c6efe7d805f3e9827bc206ff96cbdadfa3989"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type TuiMode (tui \u2192 coding-agent): TuiMode (context tui) is exposed in coding-agent\u0027s public surface via SettingsConfig.tuiMode \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/components/settings-selector.ts"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"999b92405cfe83f4a83b6b9a58d22d6ced03f928f86f2baadc7c2955f730094a"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ScrollViewScrollbar (tui \u2192 coding-agent): ScrollViewScrollbar (context tui) is exposed in coding-agent\u0027s public surface via SettingsConfig.fullscreenScrollbar \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/components/settings-selector.ts"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"eef59a009b39672226bebc254270aad1ef4cfdb36d8a2c337dabd06084e5e2ea"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type WheelScrollLines (tui \u2192 coding-agent): WheelScrollLines (context tui) is exposed in coding-agent\u0027s public surface via SettingsConfig.fullscreenWheelScrollLines \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/components/settings-selector.ts"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0e0ea3438a8bed61eff79a7e888c8a7d6d258faec949b47825a89925c8e3eb3"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Transport (ai \u2192 coding-agent): Transport (context ai) is exposed in coding-agent\u0027s public surface via SettingsCallbacks.onTransportChange \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/components/settings-selector.ts"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca9a93ffeb00ef4e8eb8cb28a4224ee68892e669d5542009e07121e85f009522"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 coding-agent): ThinkingLevel (context agent) is exposed in coding-agent\u0027s public surface via SettingsCallbacks.onModelThinkingLevelChange \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/components/settings-selector.ts"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"f62d26ac243a76c7cec24f8c3344673f4d1e12cef1dccd60831c37e073249876"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type TuiMode (tui \u2192 coding-agent): TuiMode (context tui) is exposed in coding-agent\u0027s public surface via SettingsCallbacks.onTuiModeChange \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/components/settings-selector.ts"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"661217e0d31a8e21986f3fc8250ca78343df1a8e2c42bdd46cb5dda497e1965d"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ScrollViewScrollbar (tui \u2192 coding-agent): ScrollViewScrollbar (context tui) is exposed in coding-agent\u0027s public surface via SettingsCallbacks.onFullscreenScrollbarChange \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/components/settings-selector.ts"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"b48f407fc797f70b11d2fe5f466dd3cfe28cb636642e473ba39bc86a716af0e1"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type WheelScrollLines (tui \u2192 coding-agent): WheelScrollLines (context tui) is exposed in coding-agent\u0027s public surface via SettingsCallbacks.onFullscreenWheelScrollLinesChange \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/components/settings-selector.ts"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"f33dc2a460a933c3f800ffe0c3ab30887bdd4c3703c3c15f0ef83e4377385672"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 coding-agent): ThinkingLevel (context agent) is exposed in coding-agent\u0027s public surface via ThinkingSelectorComponent.constructor \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/components/thinking-selector.ts"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7ddae0225c98231fb4c5101c04b2911bc8610e36c1b7bc2ac2844a902852a76"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type WheelScrollLines (tui \u2192 coding-agent): WheelScrollLines (context tui) is exposed in coding-agent\u0027s public surface via InteractiveTuiOptions.fullscreenWheelScrollLines \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/tui-renderer.ts"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"1510e3f8132b8406c866c3b2cd2e386701f5461f1fe8167e070ce44f18c1ed2f"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type TuiMode (tui \u2192 coding-agent): TuiMode (context tui) is exposed in coding-agent\u0027s public surface via InteractiveModeOptions.tuiMode \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9a93a80110956cdbc50472c685e8d6e03f82648143ef9e8dcbc6f7f5a5f1595"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 coding-agent): ThinkingLevel (context agent) is exposed in coding-agent\u0027s public surface via RpcSessionState.thinkingLevel \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/rpc/rpc-types.ts"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8595fe52ba4f5120ffc0b71a0e66ac76048737305e31cf1fabf99237da9eed2"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 coding-agent): ThinkingLevel (context agent) is exposed in coding-agent\u0027s public surface via RpcClient.cycleModel \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/rpc/rpc-client.ts"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6b7b694334f66accf98717765dc2f4fa9870d787f866ee3c2509c5654994398"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 coding-agent): ThinkingLevel (context agent) is exposed in coding-agent\u0027s public surface via RpcClient.setThinkingLevel \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/rpc/rpc-client.ts"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bfb605622d162b4ff2c7d4a830e6d6f37480216bcdae4f023c98382c5dfc566"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 coding-agent): ThinkingLevel (context agent) is exposed in coding-agent\u0027s public surface via RpcClient.cycleThinkingLevel \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/rpc/rpc-client.ts"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee9f0168fadca58b539b98515061312ff3b3406a6597fa068bbaa745d76533a5"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 coding-agent): ThinkingLevel (context agent) is exposed in coding-agent\u0027s public surface via RpcClient.getAvailableThinkingLevels \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/rpc/rpc-client.ts"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3b77e8e03ad13b57b0c9de74a528084ed484f68189880e3adfeb3139fcea7e3"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type AgentMessage (agent \u2192 coding-agent): AgentMessage (context agent) is exposed in coding-agent\u0027s public surface via RpcClient.getMessages \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/rpc/rpc-client.ts"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d606d7f1f94e1873647fffe2daa9b060e62496150d34d0297d250b43adffa0a"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 coding-agent): ThinkingLevel (context agent) is exposed in coding-agent\u0027s public surface via AgentSessionConfig.scopedModels \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/agent-session.ts"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"a11f7fa5e1eb8ac1ee25b38686a9cbbdd3e7ac681e62ad5e7dd5e64c02d10b0e"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 coding-agent): ThinkingLevel (context agent) is exposed in coding-agent\u0027s public surface via ModelCycleResult.thinkingLevel \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/agent-session.ts"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b598f336c5f6cbdf1c8aaee654d886dd50de3594c2d6022d9073efc8f796c63"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 coding-agent): ThinkingLevel (context agent) is exposed in coding-agent\u0027s public surface via AgentSession.thinkingLevel \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/agent-session.ts"},"region":{"startLine":1466}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4209a42d9d44394e6907d92efaa000c51085d7ae99ef8d5451ca2ac6e1f0c54"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 coding-agent): ThinkingLevel (context agent) is exposed in coding-agent\u0027s public surface via AgentSession.routedModel \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/agent-session.ts"},"region":{"startLine":1471}}}],"partialFingerprints":{"codehealthFindingId/v1":"de55d430ec608f19535fdd627029bca59a1b77524fd453b30648d947f83d890e"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type AgentMessage (agent \u2192 coding-agent): AgentMessage (context agent) is exposed in coding-agent\u0027s public surface via AgentSession.messages \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/agent-session.ts"},"region":{"startLine":1652}}}],"partialFingerprints":{"codehealthFindingId/v1":"092e0745ac3e37ed47229d9ce018b64faae58502a5cce9984377dec59dcc3986"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 coding-agent): ThinkingLevel (context agent) is exposed in coding-agent\u0027s public surface via AgentSession.scopedModels \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/agent-session.ts"},"region":{"startLine":1682}}}],"partialFingerprints":{"codehealthFindingId/v1":"705b7a4b94288f01e10d20943ee913cbe2670df16bd73b0669a0eaecd115f8d1"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 coding-agent): ThinkingLevel (context agent) is exposed in coding-agent\u0027s public surface via AgentSession.setScopedModels \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/agent-session.ts"},"region":{"startLine":1687}}}],"partialFingerprints":{"codehealthFindingId/v1":"53f9aea2bc46c7200cc1cd278fd31646f194d4d9baa8884c39eedc9cc11452b0"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 coding-agent): ThinkingLevel (context agent) is exposed in coding-agent\u0027s public surface via AgentSession.setThinkingLevel \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/agent-session.ts"},"region":{"startLine":2676}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5130bec6ae82bda1ff1d74f02161e03ad36d5be47174949dec47e27583b99e0"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 coding-agent): ThinkingLevel (context agent) is exposed in coding-agent\u0027s public surface via AgentSession.cycleThinkingLevel \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/agent-session.ts"},"region":{"startLine":2705}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f27b5442a7c21ba5d204dd63d7efd782ebfb4b91323ef9fb80b3d3d06a735d2"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type ThinkingLevel (agent \u2192 coding-agent): ThinkingLevel (context agent) is exposed in coding-agent\u0027s public surface via AgentSession.getAvailableThinkingLevels \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/agent-session.ts"},"region":{"startLine":2721}}}],"partialFingerprints":{"codehealthFindingId/v1":"e880821e8c058696c08e79d15841d9fb292338f779c68650759854df458be35a"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Op (chord \u2192 durable): Op (context chord) is exposed in durable\u0027s public surface via Transaction.holdable \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/session/transaction.ts"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"22c3e40196c9d894f4b0499f2b50a1501f90ff1a0f5500d8c544dc81ae3263e5"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Op (chord \u2192 durable): Op (context chord) is exposed in durable\u0027s public surface via transaction.storeHeld \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/session/transaction.ts"},"region":{"startLine":1192}}}],"partialFingerprints":{"codehealthFindingId/v1":"014fcb548f14597be77c39096ca529361b245eaad82f3575c176ec7c10a2d009"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type AssistantMessageEvent (ai \u2192 durable): AssistantMessageEvent (context ai) is exposed in durable\u0027s public surface via PartialChanges.observe \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/harness/partial-changes.ts"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"a106da6303b5a8b8deb659e01e0abc54d47134a2a25da9936d0bb78b0454fc46"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type CodemodeJsonSchema (codemode \u2192 durable): CodemodeJsonSchema (context codemode) is exposed in durable\u0027s public surface via describe.declarationOf \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/codemode/describe.ts"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"0094a768899a3ab1f016bc66e59cbf66cd9725588726db94c1affbe7f1528474"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type CodemodeResult (codemode \u2192 durable): CodemodeResult (context codemode) is exposed in durable\u0027s public surface via output.formatResult \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/codemode/output.ts"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e809ff9fe78d6f4c4a4d934d92d28bc11d17bbf440b42a0b5ac5d4c5985b49f"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type WatchEnd (chord \u2192 durable): WatchEnd (context chord) is exposed in durable\u0027s public surface via AgentEventStream.stop \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/harness/events.ts"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed4645b1a341a7811098fcb57a021d812b30bd2f94dd6e81c32149bd7b183aef"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type WatchEnd (chord \u2192 durable): WatchEnd (context chord) is exposed in durable\u0027s public surface via AgentEventStream.closed \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/harness/events.ts"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"cae480f5040e26bfb1305bc9c3a4599b098212ca84d288daa37f275003838a4f"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Result (durable \u2192 env): Result (context durable) is exposed in env\u0027s public surface via errors.abortResult \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/env/src/errors.ts"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"e679683f46a99593cb61883017dc81715a2621472737b107285dde845b3b9fc8"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Result (durable \u2192 env): Result (context durable) is exposed in env\u0027s public surface via LocalExecutionEnv.listFiles \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/env/src/list-files.ts"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"41bd77da5334b1498763f50a3dad09048975fffaad13796c51e9603d37851694"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Result (durable \u2192 env): Result (context durable) is exposed in env\u0027s public surface via list-files.listFilesOver \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/env/src/list-files.ts"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cf127b22cb9a5a0b77a8affcb8afe39250cadc4ceb091e87e3496a7a55875a3"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type WatchChange (durable \u2192 env): WatchChange (context durable) is exposed in env\u0027s public surface via RemoteWatcher.open \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/env/src/watch.ts"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"47bf8c973e2d534e2a11724d9e996a91065e45cb747b278adf8f257628709f2d"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Result (durable \u2192 env): Result (context durable) is exposed in env\u0027s public surface via RemoteExecutionEnv.absolutePath \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/env/src/remote-env.ts"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"63d2249e707a41c331020a30c46e4287cffdc3d4a2b987f5759b12449078ba85"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Result (durable \u2192 env): Result (context durable) is exposed in env\u0027s public surface via RemoteExecutionEnv.joinPath \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/env/src/remote-env.ts"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fd21cc8871c9cf4495a301e25360fcd254e2c1cfde5c7448f21b8316ca6efb7"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Result (durable \u2192 env): Result (context durable) is exposed in env\u0027s public surface via RemoteExecutionEnv.readTextFile \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/env/src/remote-env.ts"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"d305cff97432944a331cd27d1c9d94e61e7f4c72cfb453ee58126b543bc761f4"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Result (durable \u2192 env): Result (context durable) is exposed in env\u0027s public surface via RemoteExecutionEnv.readBinaryFile \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/env/src/remote-env.ts"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"50fe0b5d64d48a7dc8148385a90b0f56a5404c040b22e3859646d6394f312d9a"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Result (durable \u2192 env): Result (context durable) is exposed in env\u0027s public surface via RemoteExecutionEnv.openBinaryReader \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/env/src/remote-env.ts"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"315b0f6277d0ac520b2107dff9f789e879f6c1adb95bc8ebe6e78b49e3ca6629"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Result (durable \u2192 env): Result (context durable) is exposed in env\u0027s public surface via RemoteExecutionEnv.openTextLineReader \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/env/src/remote-env.ts"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"592eed67dce0e55e484bb1ef079e6c3ef617a49e5c488f0e9d4ffdec2cd6cdcf"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Result (durable \u2192 env): Result (context durable) is exposed in env\u0027s public surface via RemoteExecutionEnv.readTextLines \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/env/src/remote-env.ts"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"b57001e8a081c00918fd5b9de153db0795cd2077120e685950a09ec0e76522e2"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Result (durable \u2192 env): Result (context durable) is exposed in env\u0027s public surface via RemoteExecutionEnv.writeFile \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/env/src/remote-env.ts"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2ce9436bb330b09705910b41d74288e0d8d6f63a4400f3fe2b796043933608f"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Result (durable \u2192 env): Result (context durable) is exposed in env\u0027s public surface via RemoteExecutionEnv.appendFile \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/env/src/remote-env.ts"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c80daca5f761c67876165445c212309d3cc203d180654b8373d4974159fb7cd"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Result (durable \u2192 env): Result (context durable) is exposed in env\u0027s public surface via RemoteExecutionEnv.truncateFile \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/env/src/remote-env.ts"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4724554d26a193c53317606e80b5a8d8f604b60ac05898d3f9f79b1fcea1dbc"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Result (durable \u2192 env): Result (context durable) is exposed in env\u0027s public surface via RemoteExecutionEnv.flushFile \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/env/src/remote-env.ts"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"94365950c08246e2bdb845ef16970006aaef17143d0c944b8b5bf200a5178095"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Result (durable \u2192 env): Result (context durable) is exposed in env\u0027s public surface via RemoteExecutionEnv.renameFile \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/env/src/remote-env.ts"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"67847b0fc4cebbea7dedffda2412e95b29eb5f25807e9539d270710ddda9ff8b"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Result (durable \u2192 env): Result (context durable) is exposed in env\u0027s public surface via RemoteExecutionEnv.fileInfo \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/env/src/remote-env.ts"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"c132e75ffac46bae62f0d1b557c64819b1957e4f88a3c4e83a1c41d902a11e30"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Result (durable \u2192 env): Result (context durable) is exposed in env\u0027s public surface via RemoteExecutionEnv.listDir \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/env/src/remote-env.ts"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"c28729a10e35c63ad008da52cc3db5ca174297f1b4b7e53e59ccab0ca7d65765"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Result (durable \u2192 env): Result (context durable) is exposed in env\u0027s public surface via RemoteExecutionEnv.listFiles \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/env/src/remote-env.ts"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"d17ef3c4a3ccf096ff8e7040a0d46053fefd90739fbe5b1a621943994f17567b"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Result (durable \u2192 env): Result (context durable) is exposed in env\u0027s public surface via RemoteExecutionEnv.openDirReader \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/env/src/remote-env.ts"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bc4c470670548b4973ea92df0d506ba664ec1c86564857bcf9650cb04194030"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Result (durable \u2192 env): Result (context durable) is exposed in env\u0027s public surface via RemoteExecutionEnv.canonicalPath \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/env/src/remote-env.ts"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"a378aebfa2d5a06febf87c087cc9a451ef2baa99fcbbc7623f6322468203afb5"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Result (durable \u2192 env): Result (context durable) is exposed in env\u0027s public surface via RemoteExecutionEnv.exists \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/env/src/remote-env.ts"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"b731907e5163d0fc676d76b8a37715b6fc5af3ea2a04ef1baadf643ca26d11cf"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Result (durable \u2192 env): Result (context durable) is exposed in env\u0027s public surface via RemoteExecutionEnv.createDir \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/env/src/remote-env.ts"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"98e2949f3df50f67c4edf33b4eb55481577b056936215d2cd25876496df91916"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Result (durable \u2192 env): Result (context durable) is exposed in env\u0027s public surface via RemoteExecutionEnv.remove \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/env/src/remote-env.ts"},"region":{"startLine":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"18a89952d83a6359c60f99a92cce97c13774c179a04a8badaff181eae6b97c97"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Result (durable \u2192 env): Result (context durable) is exposed in env\u0027s public surface via RemoteExecutionEnv.createTempDir \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/env/src/remote-env.ts"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"e443b55a79e232e39490460e618f7e47c4a42b94095ade9fcb4ab17bf2c52dd3"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Result (durable \u2192 env): Result (context durable) is exposed in env\u0027s public surface via RemoteExecutionEnv.createTempFile \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/env/src/remote-env.ts"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"c461061b7d3d08163b10d14c4e7f5a9dab2d410a425de70858456fd7b450c656"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Result (durable \u2192 env): Result (context durable) is exposed in env\u0027s public surface via RemoteExecutionEnv.watch \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/env/src/remote-env.ts"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2c1c487b0638e268cf5981e9ba696fdb805dbaee07788480a6a633f9a856ad2"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type WatchChange (durable \u2192 env): WatchChange (context durable) is exposed in env\u0027s public surface via RemoteExecutionEnv.watch \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/env/src/remote-env.ts"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"98d0e923362f8e933826cf64c0f481f261aa2afa7d1b8742caf2bcd6311267e7"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Result (durable \u2192 env): Result (context durable) is exposed in env\u0027s public surface via RemoteExecutionEnv.exec \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/env/src/remote-env.ts"},"region":{"startLine":852}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd29de0eb9452b2a5c0699780d44abed7942f6bf2f063717309e638a7ab13fc9"}},{"ruleId":"D23","level":"warning","message":{"text":"Cross-context type Result (durable \u2192 mcp): Result (context durable) is exposed in mcp\u0027s public surface via McpClient.request \u2014 couples the contexts."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/mcp/src/client.ts"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"26295bb6a0a48589d1e9853198f111f7caefc98bc8d05d4a2b1c9259d332eec8"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 5 of 13 project(s) overshoot their size bounds, lowering Project Cohesion to 2.3/10. The most over is \u0060packages/coding-agent\u0060 (83269 LoC, 855 module-visible types across 28 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a46bb08c049168672072a0ab3a2af36c67c704d531b88ed8a806fb157aae9024"},"properties":{"commitSha":"c359023c3f90f859fc446fa56e4e8668ddc6e7f1"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a32e20526218f70ca323636f91fc0aa325b290d0571fb6320b80da6e3b3d7c6f"},"properties":{"commitSha":"b6fe07b618b9ccb082d9ea0dd6dbe5661c66ec64"}},{"ruleId":"D28","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a7a6d941f2035fc2670bca25f9ed51302c8bb96aa17b0dce122e9397ddb8e0b4"},"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":"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":"c1147c8aa7c97b09a3f1194b08b1747aa9a14664c5d0b944b018906545a8e6c7"},"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":"f2e30be1ea37cae959461480a57af417e20d3df476d0240842fe3ae7c616154a"},"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":"1917fef1a9bc5ea69af38a8ab6153e0fb81b169c36e6e564c10e8db5d3ca7014"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06: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":"1fa935440d2a4d14d6b3e1c96c79772f089bfea42b7c02458db36b09d8c73bae"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06: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":"5cc08a9da85b0108f76073478e4a29e5d1205938433b674597257a7600360d01"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06: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":"2e61ad9950793543cbe14e9ce992e70751909a2a38e09ba5418b9ad54d4bd90d"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06: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":"6c7ee2d8b2a1bde6d355a6426773979fa3d308ee7116259464ae130940fc0dd3"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06: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":"4d63d2cabca1e34a4144e60a3bca23d0500a01c760a987fedbd5c9c0965ed6a4"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06: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":"29ab5627084c3916a820b999a0c9fcc65a57f490c76b14bee29a4f65e3f54cb4"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06: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":"1ee7fd6f4daf73b689a52153f197c05ad401142a5d8f5baf890a022c652ae3f3"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06: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":"70c21d5819644743912bdd5c99080f2c77f137284c1fc0d6932b40701c089efc"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06: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":"28760a8e6bceaeb97ffc86bec8fdd61ed06a4a1af4243dc67ccfc25925dadca4"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06: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":"92cfceeb5279310465651a576650b1a781793ad4297f66c79f8df9316f544b79"},"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":"a9ac29f171d70c32a03ba6227c2cfb18a42c0c462ceb747e482ab9909ba09ef5"},"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":"9ac1ba41951c14fa7559838cad6d1a1cf0a9310a4262869f403266f796f5054f"},"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":"47f058d8c45a31df0ecebb9e5c2c6653f95c00a7535e080d6818b188ca9e26b6"},"taxa":[{"id":"CWE-117","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A09: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":"abc1d92b94e2e01b9aa15597b4e581c0abd813965a69796c379c40c2aa5a2a98"},"taxa":[{"id":"CWE-79","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":"3e121301d66babaad3c22e1c7262fda066d1aa21a49392af64a4ed4822b56af0"},"taxa":[{"id":"CWE-79","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":"fcba1c441f81843d8688a0cc128b3afb471b07780e04e5f9d71984e20893a9b0"},"taxa":[{"id":"CWE-79","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":"47fded139beb96ddba4a6d4eba7520d099ac9bb0079cf39943a9d4f2773ed76f"},"taxa":[{"id":"CWE-79","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":"99bbc70805d273961a7f98a44cafc39cb72c86bff0baa75ed4207120d8a4c220"},"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":"430a8853545160c804db69530bf6d37112893955c66f0d8fe6775499a1efd465"},"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":"c0d5aeac93c632bf75737566b2e5d5d6cbe17bdfd323529994e0a3a0b07cd809"},"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":"353562da4bd9412fdd891ac843fdfe31d646c98508a5ee996283202db2a852cd"},"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":"fc86b8fd673e6de6c73053027459ed2276cff4f372509fd406527afa2359869a"},"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":"79dd2a5c0f9117dcefa20b9be0d86816ea1c61c3a2cdfdc4908fde85e618bc88"},"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":"0d936a08cf9826507beba19284d7c3e15c3e0fce9a76ceea5db9c6906b1a7109"},"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":"60bf03cef73a273f9626b7838a911c6200b0f779395813cb5e0999e524bd82c4"},"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":"0a01e357bb0ecc172c2bd3e05db132d55ecc31a4067a02bc6b08060256a81fe1"},"taxa":[{"id":"CWE-117","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A09: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":"00848aeaac4abc97c1313b814595099900dd28a1999d45f886f770f889ac82e7"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05: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":"d43a38829a53cdbbab37c4bca5c13e0cbfe05ffbdd699ac05ba36602c60202ec"},"properties":{"dependency":{"package":"zod","version":"4.6.5","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":"78fb96a9b73e070bb2a0fd2021b2b336d389eff7a220c49054d20fd9c87b9a62"},"properties":{"dependency":{"package":"undici","version":"7.29.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"production","file":"packages/coding-agent/src/core/http-dispatcher.ts","line":2}}}},{"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":"8cbc8c66461681f2304a140d1ad4bbf4d361db349671eceb918f07086a2966b7"},"properties":{"dependency":{"package":"zod","version":"3.25.76","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"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":"b5da0be7ace37b8870061de6f276abb7b1cefae9ca41bb675616fe3c5780751a"}},{"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":"223181267a1a73b3c847383f677f33677546d44a3b2c6899d7f27d9c098b64d5"},"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":"c442fb4993830b7b68d911c0e197f9ed4db713c9983a4a16f2dca69b2cebecec"}},{"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":"8a1401fb6d5f974d0dca7a0762a83ff9399b3aaef07dbeeb30f97a3439bd5d8a"},"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: env-api-keys.ts \u2194 args.ts: \u0060packages/ai/src/env-api-keys.ts\u0060 (context ai) and \u0060packages/coding-agent/src/cli/args.ts\u0060 (context coding-agent) sit in DIFFERENT parts of the tree yet change together 55% of the time (17 of the 31 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 \u0060b73412a3\u0060 feat(ai,coding-agent): add Meta provider with Muse subscription OAuth\u2026; \u006024e5cc04\u0060 fix(ai): support Anthropic bearer token env (#6148); \u0060bbb91fa8\u0060 feat(ai): add Qwen Token Plan as built-in provider (#6858) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/src/env-api-keys.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"17f93d4adfbc035918fc418436d7126dffd86c12cfd2edaf34682c80748d4e1e"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: google-generative-ai.ts \u2192 anthropic-messages.ts, google-vertex.ts, openai-completions.ts: \u0060packages/ai/src/api/google-generative-ai.ts\u0060 changes together with 3 other files \u2014 \u0060packages/ai/src/api/anthropic-messages.ts\u0060, \u0060packages/ai/src/api/google-vertex.ts\u0060, \u0060packages/ai/src/api/openai-completions.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/ai/src/api/google-generative-ai.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa039958778485ecb1f64f48d4851a3e13a47774c7957f2286b1b2e1c6d86d05"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: azure-openai-responses.ts \u2194 openai-responses.ts: \u0060packages/ai/src/api/azure-openai-responses.ts\u0060 and \u0060packages/ai/src/api/openai-responses.ts\u0060 change together 86% of the time (12 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency 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 12 shared commits counted here, the most recent 3 are \u0060caa6967b\u0060 fix(ai): keep the prompt cache across tool changes on Responses (#11142); \u006076dfb88f\u0060 feat(ai): add per-thinking-level sampling parameters (#9776); \u0060c01f687e\u0060 fix(ai): apply model samplingParams in direct stream()/complete() calls \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/src/api/azure-openai-responses.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa9c2e7fc4d52b8e6cc966b57a4027fae2d67d24b9a1c67b3d023d1d3de79a13"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: print-mode.ts \u2194 rpc-mode.ts: \u0060packages/coding-agent/src/modes/print-mode.ts\u0060 and \u0060packages/coding-agent/src/modes/rpc/rpc-mode.ts\u0060 change together 84% of the time (37 of the 44 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 37 shared commits counted here, the most recent 3 are \u0060a4475344\u0060 fix(coding-agent): make JSON streaming output linear (#7394); \u0060e9fa5a68\u0060 fix(coding-agent): add settled agent lifecycle event; \u0060e56521e3\u0060 Add extension mode context \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/print-mode.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a34ec09444aaa842f88323c6bf54fc37918a2bd25e4cf4f0777223f27ec2fcb"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: rpc-client.ts \u2194 rpc-mode.ts: \u0060packages/coding-agent/src/modes/rpc/rpc-client.ts\u0060 and \u0060packages/coding-agent/src/modes/rpc/rpc-mode.ts\u0060 change together 76% of the time (19 of the 25 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 19 shared commits counted here, the most recent 3 are \u0060e473b5cd\u0060 feat(coding-agent): report prompt disposition in RPC responses; \u0060a79b3733\u0060 feat(coding-agent): expose RPC queue clearing; \u0060a4475344\u0060 fix(coding-agent): make JSON streaming output linear (#7394) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/rpc/rpc-client.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"44522a606ca47480c75a17bddc67b1624a82ff6d3d83bd5cf7e0818d683a70ed"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: interactive-mode.ts \u2192 print-mode.ts, rpc-mode.ts, rpc-types.ts: \u0060packages/coding-agent/src/modes/interactive/interactive-mode.ts\u0060 changes together with 3 other files \u2014 \u0060packages/coding-agent/src/modes/print-mode.ts\u0060, \u0060packages/coding-agent/src/modes/rpc/rpc-mode.ts\u0060, \u0060packages/coding-agent/src/modes/rpc/rpc-types.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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"19cf412a5f1c1f7969070d90432d877d532b5e9d709b66532dded486170d7368"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: azure-openai-responses.ts \u2194 openai-completions.ts: \u0060packages/ai/src/api/azure-openai-responses.ts\u0060 and \u0060packages/ai/src/api/openai-completions.ts\u0060 change together 71% of the time (10 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency 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 \u0060caa6967b\u0060 fix(ai): keep the prompt cache across tool changes on Responses (#11142); \u006076dfb88f\u0060 feat(ai): add per-thinking-level sampling parameters (#9776); \u0060c01f687e\u0060 fix(ai): apply model samplingParams in direct stream()/complete() calls \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/src/api/azure-openai-responses.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c5a770d4c7cf212868e28aaa9d9d19fed9b45e5631a4aa44b5c44115dd1d1d6"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: memory.ts \u2194 storage.ts: \u0060packages/durable/src/storage/memory.ts\u0060 and \u0060packages/durable/src/storage/sqlite/storage.ts\u0060 change together 71% of the time (10 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 10 shared commits counted here, the most recent 3 are \u0060cae9fd28\u0060 Revert \u0022feat(durable): replicate storages as a commit log\u0022; \u00604c25119f\u0060 feat(durable): replicate storages as a commit log; \u00604dd2af42\u0060 feat(durable): scan conversations, entries, tasks, and submissions in\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/storage/memory.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e48a5f4a5dabc06193df9db0c2e05397671c970ffb0609c0e841880a5d77ac0f"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: markdown.ts \u2194 text.ts: \u0060packages/tui/src/components/markdown.ts\u0060 and \u0060packages/tui/src/components/text.ts\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 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 6 shared commits counted here, the most recent 3 are \u006054c19a25\u0060 fix(tui): reduce memory retained per rendered message; \u006038ac29ac\u0060 Add ANSI-aware word wrapping to TUI components; \u006002a21dd9\u0060 Fix viewport width issues in thinking selector and text rendering \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/tui/src/components/markdown.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7283551b18af16d8495eb1245742754eb5cfb392a92791d9f0898e630c54d36"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: generate-models.ts \u2194 env-api-keys.ts: \u0060packages/ai/scripts/generate-models.ts\u0060 and \u0060packages/ai/src/env-api-keys.ts\u0060 change together 58% of the time (18 of the 31 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 18 shared commits counted here, the most recent 3 are \u0060b73412a3\u0060 feat(ai,coding-agent): add Meta provider with Muse subscription OAuth\u2026; \u0060c03d78bd\u0060 feat(ai): add Qwen Token Plan Individual provider (#7659); \u0060bbb91fa8\u0060 feat(ai): add Qwen Token Plan as built-in provider (#6858) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/scripts/generate-models.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a86a9c162d1329b02b3ac3a8fbccefb0948e7c3169e5a7315836e548e58e1e91"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: editor.ts \u2194 input.ts: \u0060packages/tui/src/components/editor.ts\u0060 and \u0060packages/tui/src/components/input.ts\u0060 change together 58% of the time (15 of the 26 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 15 shared commits counted here, the most recent 3 are \u00601cedd327\u0060 feat(tui,coding-agent): use only the terminal cursor when showHardwar\u2026; \u0060701801de\u0060 fix(tui): align input word segmentation with editor (#5068); \u006044021008\u0060 fix(tui): leverage Intl.Segmenter for proper Unicode word boundaries \u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/tui/src/components/editor.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"afcf31766c00507187ac5557b36a71ad181733517f00dd2bb93684de29560286"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: index.ts \u2194 storage.ts: \u0060packages/durable/src/index.ts\u0060 and \u0060packages/durable/src/storage/sqlite/storage.ts\u0060 change together 57% of the time (8 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u0060cae9fd28\u0060 Revert \u0022feat(durable): replicate storages as a commit log\u0022; \u00604c25119f\u0060 feat(durable): replicate storages as a commit log; \u00604dd2af42\u0060 feat(durable): scan conversations, entries, tasks, and submissions in\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"167a5ee639b59a8e48950d6c90604ba941c978144a776886fc8da11c28604af4"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: agent-session.ts \u2194 print-mode.ts: \u0060packages/coding-agent/src/core/agent-session.ts\u0060 and \u0060packages/coding-agent/src/modes/print-mode.ts\u0060 change together 50% of the time (22 of the 44 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 22 shared commits counted here, the most recent 3 are \u0060e9fa5a68\u0060 fix(coding-agent): add settled agent lifecycle event; \u0060e56521e3\u0060 Add extension mode context; \u00609600ded9\u0060 revert: fix rpc stdout backpressure \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/agent-session.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0395b90b428bc828ef13a8adf9780c14e0f8d77d41a096f60d51fd9347faf0d9"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: anthropic-messages.ts \u2194 google-vertex.ts: \u0060packages/ai/src/api/anthropic-messages.ts\u0060 and \u0060packages/ai/src/api/google-vertex.ts\u0060 change together 50% of the time (6 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency 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 6 shared commits counted here, the most recent 3 are \u006087af49de\u0060 Add pi user-agent to most api adapters (#8361); \u0060e5dde9a7\u0060 feat(ai): add simple tool choice option; \u00607915cdac\u0060 feat(ai): add strict tool schema conversion \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/src/api/anthropic-messages.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7d89ebc2fb4d63770553c56321dff9881d8f83d6160166ec29d30269ef0cb18"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: google-vertex.ts \u2194 openai-completions.ts: \u0060packages/ai/src/api/google-vertex.ts\u0060 and \u0060packages/ai/src/api/openai-completions.ts\u0060 change together 50% of the time (6 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency 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 6 shared commits counted here, the most recent 3 are \u006087af49de\u0060 Add pi user-agent to most api adapters (#8361); \u0060e5dde9a7\u0060 feat(ai): add simple tool choice option; \u00607915cdac\u0060 feat(ai): add strict tool schema conversion \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/src/api/google-vertex.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a4cf8b8620eef7c5c48394efcff2ea0a29ace49d4db74d7cbf721db1d8b8f00"}},{"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":"19d4cbb252a3e4997007fe629a8fde65a6a24e745494155b47ed43cbf523f1eb"},"taxa":[{"id":"CICD-SEC-4","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":"5c5f29652970dda955afb20b4b359c0560c64be8c41fd3fecbad13fb6b095890"},"taxa":[{"id":"CICD-SEC-4","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":"4f1e7684f8281bd255ddef97105c7055c2ebae06964c8745716b83e174debe83"}},{"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":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/export-html/template.js"},"region":{"startLine":1322}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b79d497b23554420c5036622fb6123d0f6c07dcbbe9c8b523cd2e3f7f3ca11f"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/export-html/template.js"},"region":{"startLine":1344}}}],"partialFingerprints":{"codehealthFindingId/v1":"63eca742788cd86b3b41b0f44f26d299fa5099abc4a4ec55c2eb5a7eafd6ae65"}},{"ruleId":"AC1","level":"warning","message":{"text":"\u003Ccanvas\u003E without a text alternative: A \u003Ccanvas\u003E with no aria-label/title and no inner fallback content can\u0027t be described by assistive tech. Add a name or fallback content."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/tool-stats.ts"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0a65e1d4c6d270a99278a3043ba06826bf931b80126af3b631c709786384c33"}},{"ruleId":"AC1","level":"warning","message":{"text":"\u003Ccanvas\u003E without a text alternative: A \u003Ccanvas\u003E with no aria-label/title and no inner fallback content can\u0027t be described by assistive tech. Add a name or fallback content."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/tool-stats.ts"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbd168adede9a81bd0f5ab3f875e434e37ebf583e36f5aaaf8e33bc2e0aead6f"}},{"ruleId":"AC1","level":"warning","message":{"text":"\u003Ccanvas\u003E without a text alternative: A \u003Ccanvas\u003E with no aria-label/title and no inner fallback content can\u0027t be described by assistive tech. Add a name or fallback content."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/tool-stats.ts"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"df2c1677a52470287d5d53101806db1508aae4aeae671bc30bc5823717114c37"}},{"ruleId":"AC1","level":"warning","message":{"text":"\u003Ccanvas\u003E without a text alternative: A \u003Ccanvas\u003E with no aria-label/title and no inner fallback content can\u0027t be described by assistive tech. Add a name or fallback content."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/tool-stats.ts"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"6958bcbb9709308b90be1782445c294fc535ead05f396a66ba3d927c91d15268"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/export-html/template.html"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fbfb4709710632d5128250e7a9a3ca4bea2e0bf5b2d66e0a647410351918fd4"}},{"ruleId":"AC2","level":"error","message":{"text":"Custom control with no accessible name on \u003Cdiv\u003E: This \u003Cdiv\u003E carries a click handler, which makes it a control, but it has no text, aria-label or labelled child (the icon-only case), so assistive tech has no name to announce for it. Note that switching it to \u003Cbutton type=\u0022button\u0022\u003E \u2014 the right fix for its keyboard operability \u2014 does not give it a name either: an icon-only button still needs one. Add visible text or an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/export-html/template.js"},"region":{"startLine":984}}}],"partialFingerprints":{"codehealthFindingId/v1":"dae4e679fc0a8e7c192f863d61b669b5af084966099341fdd185c3fb59e3d8ab"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/issues/ui.html"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"28307c9c519402833a08cd076477f470d48bbcccd27931fff0a384daa3179c4c"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/tool-stats.ts"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"6254daf96053c3caa5df62db8612e26d793de99afe53f423ed937da1f65080fd"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/tool-stats.ts"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"1995bc5895b3fd8af745ea81cee64e8c28325b93afe9f204a2ded5e9f05e34d1"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/tool-stats.ts"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"64de68a857a008e639b47e77074396a181dee4b001d52ed9ce970ba3f63ec6f3"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/export-html/template.js"},"region":{"startLine":984}}}],"partialFingerprints":{"codehealthFindingId/v1":"db02128a8c7b7060c2a7887e641566f6cb4a49dbfe34c7f43cad01a49144189c"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/export-html/template.js"},"region":{"startLine":1150}}}],"partialFingerprints":{"codehealthFindingId/v1":"921c0c1165870400b962bdf814d4303edddab40480f3204c8c54eafe38995c29"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/export-html/template.js"},"region":{"startLine":1310}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d29d0efb430b1779c8ce5a0f41c5658f8621dc877498157dc95775b053086d0"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060#sidebar\u0060 moves (\u0060transition: transform 0.3s\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/coding-agent/src/core/export-html/template.css"},"region":{"startLine":1049}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f441fea3dd4e50e1fb26e84828d3d2addee79c08b0eb34ea353656b712e0815"}},{"ruleId":"AC7","level":"warning","message":{"text":"Accessibility enforcement below the top rung: No accessibility enforcement found \u2014 your Biome config enables no a11y rules and there\u0027s no axe/pa11y/Lighthouse in tests or CI. Start by turning on Biome\u0027s own a11y rule group to catch issues at author time. What was searched, so you can tell an absence from a miss: the 4 markup file(s) this pass actually assessed, the linter configuration checked in beside them, and this repository\u0027s test and CI files \u2014 matched by name against the accessibility checkers this dimension carries. An audit run outside the repository, a hosted scanner, or a check whose name is not one of those, is not seen here."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d46019b86eff5ddad9db289e6802ac158899e980df54c34f67722442787ead62"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: Models (25 required operations): \u0060Models\u0060 declares 25 required operations: \u0060getProviders\u0060, \u0060getProvider\u0060, \u0060getModels\u0060, \u0060getModel\u0060, \u0060getModelsOfType\u0060, \u0060getModelOfType\u0060, \u0060getAllModels\u0060, \u0060refresh\u0060, \u0060checkAuth\u0060, \u0060getAvailable\u0060, \u0060getAvailableOfType\u0060, \u0060getAllAvailable\u0060, \u0060getAuth\u0060, \u0060getAuth\u0060, \u0060login\u0060, \u0060logout\u0060, \u0060stream\u0060, \u0060complete\u0060, \u0060streamSimple\u0060, \u0060completeSimple\u0060, \u0060streamDeferred\u0060, \u0060fetchDeferred\u0060, \u0060cancelDeferred\u0060, \u0060generateImages\u0060, \u0060classify\u0060. Counted over its REQUIRED operations \u2014 a method signature or a function-typed property with no \u0060?\u0060, once per signature; optional members and data properties are not counted, because no implementer is forced to write them. Those 25 declarations carry 24 distinct name(s), so part of the width is overloading rather than separate responsibilities \u2014 but 24 operations clears the \u003E15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/src/models.ts"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2195426996893189ca8095a95eba94a914707812bed42f9669c5ef5d01ac82e"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: ExtensionUIContext (28 required operations): \u0060ExtensionUIContext\u0060 declares 28 required operations: \u0060select\u0060, \u0060confirm\u0060, \u0060input\u0060, \u0060notify\u0060, \u0060onTerminalInput\u0060, \u0060setStatus\u0060, \u0060setWorkingMessage\u0060, \u0060setWorkingVisible\u0060, \u0060setWorkingIndicator\u0060, \u0060setHiddenThinkingLabel\u0060, \u0060setWidget\u0060, \u0060setWidget\u0060, \u0060setFooter\u0060, \u0060setHeader\u0060, \u0060setTitle\u0060, \u0060custom\u0060, \u0060pasteToEditor\u0060, \u0060setEditorText\u0060, \u0060getEditorText\u0060, \u0060editor\u0060, \u0060addAutocompleteProvider\u0060, \u0060setEditorComponent\u0060, \u0060getEditorComponent\u0060, \u0060getAllThemes\u0060, \u0060getTheme\u0060, \u0060setTheme\u0060, \u0060getToolsExpanded\u0060, \u0060setToolsExpanded\u0060. Counted over its REQUIRED operations \u2014 a method signature or a function-typed property with no \u0060?\u0060, once per signature; optional members and data properties are not counted, because no implementer is forced to write them. Those 28 declarations carry 27 distinct name(s), so part of the width is overloading rather than separate responsibilities \u2014 but 27 operations clears the \u003E15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/types.ts"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c525b70460cbbeb6eda5ebc1ca35542d4e640fa76b9b8b45b54058072a6815a"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: ExtensionAPI (73 required operations): \u0060ExtensionAPI\u0060 declares 73 required operations: \u0060on\u0060, \u0060on\u0060, \u0060on\u0060, \u0060on\u0060, \u0060on\u0060, \u0060on\u0060, \u0060on\u0060, \u0060on\u0060, \u0060on\u0060, \u0060on\u0060, \u0060on\u0060, \u0060on\u0060, \u0060on\u0060, \u0060on\u0060, \u0060on\u0060, \u0060on\u0060, \u0060on\u0060, \u0060on\u0060, \u0060on\u0060, \u0060on\u0060, \u0060on\u0060, \u0060on\u0060, \u0060on\u0060, \u0060on\u0060, \u0060on\u0060, \u0060on\u0060, \u0060on\u0060, \u0060on\u0060, \u0060on\u0060, \u0060on\u0060, \u0060on\u0060, \u0060on\u0060, \u0060on\u0060, \u0060on\u0060, \u0060on\u0060, \u0060on\u0060, \u0060on\u0060, \u0060on\u0060, \u0060on\u0060, \u0060on\u0060, and 33 more. Counted over its REQUIRED operations \u2014 a method signature or a function-typed property with no \u0060?\u0060, once per signature; optional members and data properties are not counted, because no implementer is forced to write them. Those 73 declarations carry 32 distinct name(s), so part of the width is overloading rather than separate responsibilities \u2014 but 32 operations clears the \u003E15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/types.ts"},"region":{"startLine":1596}}}],"partialFingerprints":{"codehealthFindingId/v1":"c01909319db85c4694f73438b2ce8b1b5858ffd65ede2cb22728a3b7e8ddfc58"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: SettingsCallbacks (37 required operations): \u0060SettingsCallbacks\u0060 declares 37 required operations: \u0060onAutoCompactChange\u0060, \u0060onShowImagesChange\u0060, \u0060onImageWidthCellsChange\u0060, \u0060onAutoResizeImagesChange\u0060, \u0060onBlockImagesChange\u0060, \u0060onEnableSkillCommandsChange\u0060, \u0060onSteeringModeChange\u0060, \u0060onFollowUpModeChange\u0060, \u0060onTransportChange\u0060, \u0060onSessionShareDestinationChange\u0060, \u0060onHttpIdleTimeoutMsChange\u0060, \u0060onCacheWarmingModeChange\u0060, \u0060onModelThinkingLevelChange\u0060, \u0060onModelThinkingLevelRemove\u0060, \u0060onThemeChange\u0060, \u0060onHideThinkingBlockChange\u0060, \u0060onMermaidRenderingModeChange\u0060, \u0060onShowCacheMissNoticesChange\u0060, \u0060onCollapseChangelogChange\u0060, \u0060onEnableInstallTelemetryChange\u0060, \u0060onDoubleEscapeActionChange\u0060, \u0060onTreeFilterModeChange\u0060, \u0060onShowHardwareCursorChange\u0060, \u0060onEditorPaddingXChange\u0060, \u0060onOutputPadChange\u0060, \u0060onAutocompleteMaxVisibleChange\u0060, \u0060onQuietStartupChange\u0060, \u0060onDefaultProjectTrustChange\u0060, \u0060onClearOnShrinkChange\u0060, \u0060onShowTerminalProgressChange\u0060, \u0060onTuiModeChange\u0060, \u0060onFullscreenExitOutputChange\u0060, \u0060onFullscreenScrollbarChange\u0060, \u0060onFullscreenCopyOnSelectChange\u0060, \u0060onFullscreenWheelScrollLinesChange\u0060, \u0060onWarningsChange\u0060, \u0060onCancel\u0060. Counted over its REQUIRED operations \u2014 a method signature or a function-typed property with no \u0060?\u0060, once per signature; optional members and data properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/components/settings-selector.ts"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d8b69d6da944f394006807e2a79e9a2ccc5841af7508ec92d180b80c25c74a4"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: FileSystem (23 required operations): \u0060FileSystem\u0060 declares 23 required operations: \u0060absolutePath\u0060, \u0060joinPath\u0060, \u0060readTextFile\u0060, \u0060openTextLineReader\u0060, \u0060readTextLines\u0060, \u0060readBinaryFile\u0060, \u0060openBinaryReader\u0060, \u0060writeFile\u0060, \u0060appendFile\u0060, \u0060truncateFile\u0060, \u0060flushFile\u0060, \u0060renameFile\u0060, \u0060fileInfo\u0060, \u0060listDir\u0060, \u0060openDirReader\u0060, \u0060watch\u0060, \u0060canonicalPath\u0060, \u0060exists\u0060, \u0060createDir\u0060, \u0060remove\u0060, \u0060createTempDir\u0060, \u0060createTempFile\u0060, \u0060cleanup\u0060. Counted over its REQUIRED operations \u2014 a method signature or a function-typed property with no \u0060?\u0060, once per signature; optional members and data properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/env/index.ts"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"68856357cd57672a8f0642c6e117da6b6524bce59a8fa487333af2616efe4f18"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: TaskRuntime (18 required operations): \u0060TaskRuntime\u0060 declares 18 required operations: \u0060agent\u0060, \u0060env\u0060, \u0060commit\u0060, \u0060memo\u0060, \u0060memo\u0060, \u0060getTask\u0060, \u0060waitForTask\u0060, \u0060abortOwned\u0060, \u0060ownedTasks\u0060, \u0060outcomes\u0060, \u0060conversation\u0060, \u0060entry\u0060, \u0060entry\u0060, \u0060context\u0060, \u0060now\u0060, \u0060setTimer\u0060, \u0060report\u0060, \u0060sleepUntil\u0060. Counted over its REQUIRED operations \u2014 a method signature or a function-typed property with no \u0060?\u0060, once per signature; optional members and data properties are not counted, because no implementer is forced to write them. Those 18 declarations carry 16 distinct name(s), so part of the width is overloading rather than separate responsibilities \u2014 but 16 operations clears the \u003E15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/types.ts"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c6032cdb6dccef910238b39d53580b60acbe7094ebf0f3bc2c8b8d6fef3dd16"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: Tx (29 required operations): \u0060Tx\u0060 declares 29 required operations: \u0060conversation\u0060, \u0060entry\u0060, \u0060entry\u0060, \u0060task\u0060, \u0060scanConversations\u0060, \u0060scanEntries\u0060, \u0060latestHeadMarker\u0060, \u0060scanTasks\u0060, \u0060submissionByRequest\u0060, \u0060createConversation\u0060, \u0060forkConversation\u0060, \u0060appendEntry\u0060, \u0060appendEntry\u0060, \u0060createTask\u0060, \u0060createSubmission\u0060, \u0060settleSubmission\u0060, \u0060placeSubmission\u0060, \u0060doc\u0060, \u0060doc\u0060, \u0060doc\u0060, \u0060doc\u0060, \u0060doc\u0060, \u0060doc\u0060, \u0060retireDoc\u0060, \u0060retireDoc\u0060, \u0060retireDoc\u0060, \u0060retireDoc\u0060, \u0060retireDoc\u0060, \u0060retireDoc\u0060. Counted over its REQUIRED operations \u2014 a method signature or a function-typed property with no \u0060?\u0060, once per signature; optional members and data properties are not counted, because no implementer is forced to write them. Those 29 declarations carry 17 distinct name(s), so part of the width is overloading rather than separate responsibilities \u2014 but 17 operations clears the \u003E15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/types.ts"},"region":{"startLine":918}}}],"partialFingerprints":{"codehealthFindingId/v1":"faf2e877e645dcfd14510c7e3b8e244768706256885bb9cef5eb0812c3214280"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: Storage (17 required operations): \u0060Storage\u0060 declares 17 required operations: \u0060commit\u0060, \u0060mintId\u0060, \u0060conversation\u0060, \u0060scanConversations\u0060, \u0060entry\u0060, \u0060entry\u0060, \u0060findLatestHeadMarker\u0060, \u0060scanEntries\u0060, \u0060task\u0060, \u0060scanTasks\u0060, \u0060submission\u0060, \u0060scanSubmissions\u0060, \u0060submissionByRequest\u0060, \u0060findDocument\u0060, \u0060document\u0060, \u0060scanDocuments\u0060, \u0060close\u0060. Counted over its REQUIRED operations \u2014 a method signature or a function-typed property with no \u0060?\u0060, once per signature; optional members and data properties are not counted, because no implementer is forced to write them. Those 17 declarations carry 16 distinct name(s), so part of the width is overloading rather than separate responsibilities \u2014 but 16 operations clears the \u003E15 bar on its own, so the row is about responsibilities, not signatures. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/types.ts"},"region":{"startLine":1158}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fa29aeb98a54936270f83512d6b5a32a0ea8a0af584552ed3c3928fea2f8c23"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: TUI (20 required operations): \u0060TUI\u0060 declares 20 required operations: \u0060addChild\u0060, \u0060removeChild\u0060, \u0060clear\u0060, \u0060getShowHardwareCursor\u0060, \u0060setShowHardwareCursor\u0060, \u0060getClearOnShrink\u0060, \u0060setClearOnShrink\u0060, \u0060setFocus\u0060, \u0060showOverlay\u0060, \u0060hideOverlay\u0060, \u0060hasOverlay\u0060, \u0060start\u0060, \u0060stop\u0060, \u0060renderNow\u0060, \u0060requestRender\u0060, \u0060addInputListener\u0060, \u0060removeInputListener\u0060, \u0060onTerminalColorSchemeChange\u0060, \u0060setTerminalColorSchemeNotifications\u0060, \u0060queryTerminalColors\u0060. Counted over its REQUIRED operations \u2014 a method signature or a function-typed property with no \u0060?\u0060, once per signature; optional members and data properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/tui/src/tui.ts"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"a12f6c87415b8a8427da3b593db80d26d160bb273d65ea57abbaa15dc1028f90"}},{"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/ai/src/api/openai-completions.ts"},"region":{"startLine":1390}}}],"partialFingerprints":{"codehealthFindingId/v1":"32ac862bcaf9d0265e547ca4384b87f0e7dfc9a6443756aa39c9ba6fb36b00c0"}},{"ruleId":"IC1","level":"warning","message":{"text":"Fake-async \u2014 async method never awaits: \u0060_queueSteer\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/coding-agent/src/core/agent-session.ts"},"region":{"startLine":2302}}}],"partialFingerprints":{"codehealthFindingId/v1":"c743615146a367c30879bcd3554a495eeb13c0add2fdc6843efbd897db11785a"}},{"ruleId":"IC1","level":"warning","message":{"text":"Fake-async \u2014 async method never awaits: \u0060_queueFollowUp\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/coding-agent/src/core/agent-session.ts"},"region":{"startLine":2319}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c34773c7f3f95975c99030aeb860cce8fa772f030efc883d0645bbd99792dab"}},{"ruleId":"IC1","level":"warning","message":{"text":"Empty method body \u2014 does nothing with its inputs: \u0060ignoreUndiciDispatcherError\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":"packages/coding-agent/src/core/http-dispatcher.ts"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"936fe991362e41c5399a826d763e3eb7fe2f120e3249d0746e552277b4d15282"}},{"ruleId":"IC1","level":"warning","message":{"text":"Fake-async \u2014 async method never awaits: \u0060handleFatalRuntimeError\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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":2120}}}],"partialFingerprints":{"codehealthFindingId/v1":"13979dc2b97e7c971090c9996274f2acaa46ec02128479951a78b6c8af57e16b"}},{"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/coding-agent/src/utils/zip.ts"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"96195a7c1849bd6a63c635008ae8949f1a45d52bb6e3b9701d510024c7d0fc51"}},{"ruleId":"IC1","level":"warning","message":{"text":"Empty method body \u2014 does nothing with its inputs: \u0060drainInput\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":"packages/evals/evals/tui.docs.eval.ts"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d87ad69da1bbf1fe418ead277495ec8c6176b12d7bed3f99e17eef9f91d1a6d"}},{"ruleId":"IC1","level":"warning","message":{"text":"Empty method body \u2014 does nothing with its inputs: \u0060moveBy\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":"packages/evals/evals/tui.docs.eval.ts"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab2b9606a2a3d1dd7b31abcd9d086a168cd3dcf5ad0e464bc3f05ab16903e1e7"}},{"ruleId":"IC1","level":"warning","message":{"text":"Empty method body \u2014 does nothing with its inputs: \u0060setTitle\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":"packages/evals/evals/tui.docs.eval.ts"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f17607d60ac4048b0196a3f8dc0c05ea7fbf0f6c3cdcf18a4ee161e84838862"}},{"ruleId":"IC1","level":"warning","message":{"text":"Empty method body \u2014 does nothing with its inputs: \u0060setProgress\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":"packages/evals/evals/tui.docs.eval.ts"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc8b625c871b283d0c95206cc0d6bc367e356c245a69fcbcb3239cb5d80f4933"}},{"ruleId":"IC1","level":"warning","message":{"text":"Guard cannot change the result \u2014 returns what the code already falls through to: The guard above \u0060return \u0022complete\u0022;\u0060 also returns \u0060\u0022complete\u0022\u0060, so no input can make it matter. Implement the distinction that was intended, or delete the guard."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/tui/src/stdin-buffer.ts"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"69d58febc4091f0815e32ab1ac769c6c99d52c0e829e7460bc584ba3aac53b78"}},{"ruleId":"IC1","level":"warning","message":{"text":"Fake-async \u2014 async method never awaits: \u0060main\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":"scripts/publish-model-catalog.mjs"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"c54d56cae47305f07bc2c1116b1834b78e383a042bd22ccafc4f85361b67b0a8"}},{"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":"packages/ai/test/image-tool-result.test.ts"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"a626694f92b456576ff7cc5910f0a2e364172635838ee68260f600643ce642d2"}},{"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":"packages/ai/test/image-tool-result.test.ts"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"02fadf4166a205f3334e2536fd2b7feb0311740057046753d3d2767cac49b8bc"}},{"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":"packages/ai/test/image-tool-result.test.ts"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"bed35754eb7927256f71af84b5c725cde8596bc96c6806a308baa9ef328810e2"}},{"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":"packages/ai/test/image-tool-result.test.ts"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"58541cdaf90bd5a5ead81a49820857706e00750e35a768cc4919ea1a7494b44f"}},{"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":"packages/ai/test/tokens.test.ts"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"049b8777377ce346a8d02f90953ae4e08875be471fd622a88556834779ba4f7e"}},{"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":"packages/ai/test/tokens.test.ts"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"a382670f42fa79d8aa3415a9b626ce600847f019929c34a1538975678881baa1"}},{"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":"packages/ai/test/tokens.test.ts"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e39375a1a4ed565355b933159ee1d1ba7d49e81e0ff7a6c42d2bff31e67b2df"}},{"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":"packages/ai/test/tokens.test.ts"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad2bb1837e92eadc77f674f93e421630b3ad17fd04346101f6b39866a15fdcd6"}},{"ruleId":"IC1","level":"note","message":{"text":"Empty method body: \u0060notify\u0060 has an empty body \u2014 confirm it\u0027s an intentional no-op and not an unfinished method."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/runner.ts"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec2de300e46039205eccff3ef8a57688ff64fca9e6382964e665ac45d18e2204"}},{"ruleId":"IC1","level":"note","message":{"text":"Empty method body: \u0060setStatus\u0060 has an empty body \u2014 confirm it\u0027s an intentional no-op and not an unfinished method."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/runner.ts"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"7250c15536efedf885b851d9e96daac909f873c37982ac0fc155fd307caf3eea"}},{"ruleId":"IC1","level":"note","message":{"text":"Empty method body: \u0060setWorkingMessage\u0060 has an empty body \u2014 confirm it\u0027s an intentional no-op and not an unfinished method."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/runner.ts"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d698dabd673326561bc9338a77a5de81b2fcf8185267cf6ee31666fc2767f69"}},{"ruleId":"IC1","level":"note","message":{"text":"Empty method body: \u0060setWorkingVisible\u0060 has an empty body \u2014 confirm it\u0027s an intentional no-op and not an unfinished method."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/runner.ts"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"36799013ba5933a6a0564d6ca405da144ed0a97fa476ca71e433c1797c934fa4"}},{"ruleId":"IC1","level":"note","message":{"text":"Empty method body: \u0060setWorkingIndicator\u0060 has an empty body \u2014 confirm it\u0027s an intentional no-op and not an unfinished method."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/runner.ts"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef41bea1d908c92d4d66418a3d11c45c935ac353ce81de26a39f4e8ce94a2f91"}},{"ruleId":"IC1","level":"note","message":{"text":"Empty method body: \u0060setHiddenThinkingLabel\u0060 has an empty body \u2014 confirm it\u0027s an intentional no-op and not an unfinished method."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/runner.ts"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"b18ed736f872d760bd95b0d8f59483fdf94677ab455d094a14fd680d7570ddb8"}},{"ruleId":"IC1","level":"note","message":{"text":"Empty method body: \u0060setWidget\u0060 has an empty body \u2014 confirm it\u0027s an intentional no-op and not an unfinished method."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/runner.ts"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"98e6e764d2398426a8668ad3490f6fde2a3165b8e56d2b539d6082bf8602e3dd"}},{"ruleId":"IC1","level":"note","message":{"text":"Empty method body: \u0060setFooter\u0060 has an empty body \u2014 confirm it\u0027s an intentional no-op and not an unfinished method."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/runner.ts"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fa4a56c4b13eb10bab2a82f764d2ec28d76380b7ef857e02bd2e9831db2faef"}},{"ruleId":"IC1","level":"note","message":{"text":"Empty method body: \u0060setHeader\u0060 has an empty body \u2014 confirm it\u0027s an intentional no-op and not an unfinished method."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/runner.ts"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"72d561350763eb218216c8001082adc554de21f266546178a3fcba245336aea9"}},{"ruleId":"IC1","level":"note","message":{"text":"Empty method body: \u0060setTitle\u0060 has an empty body \u2014 confirm it\u0027s an intentional no-op and not an unfinished method."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/runner.ts"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"59bb5328c5072f4e7daa76f7afb8bf5e9c578f895e50adf2fb0c446bac7ce4ad"}},{"ruleId":"IC1","level":"note","message":{"text":"Empty method body: \u0060pasteToEditor\u0060 has an empty body \u2014 confirm it\u0027s an intentional no-op and not an unfinished method."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/runner.ts"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ab666d8d12604970496fbc0388ab3f554449df5367b028c28b222ce59ba6b1c"}},{"ruleId":"IC1","level":"note","message":{"text":"Empty method body: \u0060setEditorText\u0060 has an empty body \u2014 confirm it\u0027s an intentional no-op and not an unfinished method."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/runner.ts"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"8faf3c5de35d1edca606073677ccf627e50d759b910a57b20dee22acf1cdd7a5"}},{"ruleId":"IC1","level":"note","message":{"text":"Empty method body: \u0060addAutocompleteProvider\u0060 has an empty body \u2014 confirm it\u0027s an intentional no-op and not an unfinished method."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/runner.ts"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"f31b730e89842121baddcab9611cdecffb82bd4c6db5d3f75cbe11c077432cf5"}},{"ruleId":"IC1","level":"note","message":{"text":"Empty method body: \u0060setEditorComponent\u0060 has an empty body \u2014 confirm it\u0027s an intentional no-op and not an unfinished method."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/runner.ts"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"16b68f3965144760e6f0a79f261181a0424435adf2c2d5cee0c5deefc9bb783c"}},{"ruleId":"IC1","level":"note","message":{"text":"Empty method body: \u0060setToolsExpanded\u0060 has an empty body \u2014 confirm it\u0027s an intentional no-op and not an unfinished method."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/runner.ts"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"c33918c249545628521ffd9e24a01cc020e9fa074f7e5343a7b4b73a30be13c0"}},{"ruleId":"IC1","level":"note","message":{"text":"Empty method body: \u0060waitForIdleFn\u0060 has an empty body \u2014 confirm it\u0027s an intentional no-op and not an unfinished method."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/runner.ts"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a78f391b3bd30466dcaa4cd11ccd4b0295dd108280d9991d2e6095aea35981e"}},{"ruleId":"IC1","level":"note","message":{"text":"Empty method body: \u0060abortFn\u0060 has an empty body \u2014 confirm it\u0027s an intentional no-op and not an unfinished method."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/runner.ts"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"692780e8ca9861ae61ac8e795dee343f538a6400c8381d8eb495cc4ec238555c"}},{"ruleId":"IC1","level":"note","message":{"text":"Empty method body: \u0060compactFn\u0060 has an empty body \u2014 confirm it\u0027s an intentional no-op and not an unfinished method."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/runner.ts"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdac1f1eb439e8027b7b4702ba6b1d7656159e0452bca148ce646b025cf7ed32"}},{"ruleId":"IC1","level":"note","message":{"text":"Empty method body: \u0060reloadHandler\u0060 has an empty body \u2014 confirm it\u0027s an intentional no-op and not an unfinished method."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/runner.ts"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2b08f42b4f3d79096dfb5dfe8e361cb49cd0ddc36932f9060163c6f15837681"}},{"ruleId":"IC1","level":"note","message":{"text":"Empty method body: \u0060shutdownHandler\u0060 has an empty body \u2014 confirm it\u0027s an intentional no-op and not an unfinished method."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/runner.ts"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"e86f147a4591cb04c79ac360262c93147565410c8a4965f349bf3cd9bcef4084"}},{"ruleId":"IC1","level":"note","message":{"text":"Empty method body: \u0060#unsubscribeRegistry\u0060 has an empty body \u2014 confirm it\u0027s an intentional no-op and not an unfinished method."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/harness/scheduler.ts"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"59d00dc0fbe016ba9399eb1d062dd8a98c081885b78c0f08329388f147335d3f"}},{"ruleId":"IC1","level":"note","message":{"text":"Empty method body: \u0060hideCursor\u0060 has an empty body \u2014 confirm it\u0027s an intentional no-op and not an unfinished method."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/evals/evals/tui.docs.eval.ts"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed3a3824a2ac3e59bab9d5e87c9f7ce76fec6b2996c07afe4904d3f4ca4c8ae2"}},{"ruleId":"IC1","level":"note","message":{"text":"Empty method body: \u0060showCursor\u0060 has an empty body \u2014 confirm it\u0027s an intentional no-op and not an unfinished method."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/evals/evals/tui.docs.eval.ts"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c7793bc5336c5457f10b875ef0c79f7e2627ad1070211fd7526f7926d26af1a"}},{"ruleId":"IC1","level":"note","message":{"text":"Empty method body: \u0060clearLine\u0060 has an empty body \u2014 confirm it\u0027s an intentional no-op and not an unfinished method."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/evals/evals/tui.docs.eval.ts"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"4143dd8fadfa807c4ad0d8cce9f75515fbc43906881d08ff66b50675b77877f4"}},{"ruleId":"IC1","level":"note","message":{"text":"Empty method body: \u0060clearFromCursor\u0060 has an empty body \u2014 confirm it\u0027s an intentional no-op and not an unfinished method."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/evals/evals/tui.docs.eval.ts"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"314f50a3b286c36c2c71e4773544f43f9149152178fca5ea4e388c790c1bf127"}},{"ruleId":"IC1","level":"note","message":{"text":"Empty method body: \u0060clearScreen\u0060 has an empty body \u2014 confirm it\u0027s an intentional no-op and not an unfinished method."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/evals/evals/tui.docs.eval.ts"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"5031875d84fe7d65afa0c3ecb10f9beeaad88033c77a17c0349539e0b519d90e"}},{"ruleId":"IC1","level":"note","message":{"text":"Empty method body: \u0060addLink\u0060 has an empty body \u2014 confirm it\u0027s an intentional no-op and not an unfinished method."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/telemetry/src/noop.ts"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d66666b4d2b5e1adc0e20a62444df8ed9dd941d6e33f03b5213c6d2e3c78084"}},{"ruleId":"IC1","level":"note","message":{"text":"Empty method body: \u0060addEvent\u0060 has an empty body \u2014 confirm it\u0027s an intentional no-op and not an unfinished method."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/telemetry/src/noop.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"43f9ddb5ebfb727dd029e854c51ef54cdbf6e065355259a1f42ad897fea7f987"}},{"ruleId":"IC1","level":"note","message":{"text":"Empty method body: \u0060setAttributes\u0060 has an empty body \u2014 confirm it\u0027s an intentional no-op and not an unfinished method."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/telemetry/src/noop.ts"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"26a765b5e903a65ff1eaa247af094f12a2aed86141d9354f753b594f7b1d3c0e"}},{"ruleId":"IC1","level":"note","message":{"text":"Empty method body: \u0060setStatus\u0060 has an empty body \u2014 confirm it\u0027s an intentional no-op and not an unfinished method."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/telemetry/src/noop.ts"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"30071b75f971ddb745e701a56f249e317c5b7495e848ed8c83c55e3bd2345397"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"P12","level":"warning","message":{"text":"Runner config excludes tests no gate runs: \u0060test-workers/**\u0060 removes 4 test(s) in 2 file(s) (e.g. \u0060packages/durable/test-workers/storage.test.ts\u0060, \u0060packages/durable/test-workers/wake.test.ts\u0060) from what vitest collects, and no other runner or CI command runs them \u2014 they are dead tests. Run them (another runner, project or job), or delete them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/vitest.config.ts"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8697399eccba7571ba4a0e2eaad6177771f0efe73d1b00addbaa985a9c5e181"}},{"ruleId":"P2","level":"warning","message":{"text":"No structured logging: No logging call was found in the 790 JavaScript/TypeScript, Rust production file(s) this check read across 18 module(s). Each was searched for its ecosystem\u0027s logging libraries (JavaScript/TypeScript: pino, winston, bunyan, log4js, loglevel, consola, the NestJS Logger; Rust: the log and tracing crates (info!/warn!/error!, #[instrument]), slog, env_logger) and for a call on a receiver named \u0060log\u0060/\u0060logger\u0060 (or ending in \u0060Logger\u0060/\u0060_logger\u0060) with a level verb. It cannot see logging through a repo-local wrapper named otherwise, or in source it did not read \u2014 this is \u0027no logging found by this walk\u0027, not a verdict that nothing here logs. If it is right, production issues will be hard to diagnose."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9f10d71351c6778ebe84e761f82a90d4f9ed6c64f5e01975ede8fda7e4e2ebc5"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060init\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/coding-agent/examples/extensions/doom-overlay/doom-engine.ts"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"00af7abc576110660ab4b5912c2f3b25fb8ad897f94387e72801852a26407d4d"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060readFileSync\u0060 in \u0060init\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/coding-agent/examples/extensions/doom-overlay/doom-engine.ts"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"c12ccabfa600ff6c0756fb7c141687c5349fa01710c7a7a1cb09a2fd30a00740"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060readFileSync\u0060 in \u0060init\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/coding-agent/examples/extensions/doom-overlay/doom-engine.ts"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c8f5c82fe26ab58d6ba264740223c9a19e4409a5715baf9d8a4cff18669279c"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060gunzipSync\u0060 in \u0060ensureWadFile\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/coding-agent/examples/extensions/doom-overlay/wad-finder.ts"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"9816cfe06bdd6fb4f75d1b578f6a9a660158b1acc7d0c72def7534f609620ae3"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060writeFileSync\u0060 in \u0060ensureWadFile\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/coding-agent/examples/extensions/doom-overlay/wad-finder.ts"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ab72a391a5433197eb2b4ace04164ce346049a822bf3909de7d75805d760b70"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.readFileSync\u0060 in \u0060callback to fs.watch\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/coding-agent/examples/extensions/file-trigger.ts"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"97fe90b5c73d49cc33e80f9dc2a031e945bfceb53ee561fe1c7c2277de3e79f5"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.writeFileSync\u0060 in \u0060callback to fs.watch\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/coding-agent/examples/extensions/file-trigger.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b27828d6d5d8b48f6566abcc9bed20cfe20f5928eced4744d8946d247f093bf"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060spawnSync\u0060 in \u0060anonymous function\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/coding-agent/examples/extensions/interactive-shell.ts"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee9a9df178b44fa01474ff8b1c53458b907b08ace1d233152b3dc823ccd3e72e"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060exec\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/coding-agent/examples/extensions/sandbox/index.ts"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"06d00dff72099592be30470951ef56bb3aee26258cf90ca66a6629fd1ce71040"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.unlinkSync\u0060 in \u0060runSingleAgent\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/coding-agent/examples/extensions/subagent/index.ts"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9497e6ad1eb88b89f25c61ae9ae0a4398c5f73ba636303be29d47978e13ae19"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.rmdirSync\u0060 in \u0060runSingleAgent\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/coding-agent/examples/extensions/subagent/index.ts"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"07efe11c7121d304c36dbde5a29c4e2905a82821aefda7da4f0ec1df435660d9"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060readFileSync\u0060 in \u0060handler\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/coding-agent/examples/extensions/tool-override.ts"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"53746df2ee38ac34383d7349590c78c7851975684429104c4cc8653611db7b38"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060execSync\u0060 in \u0060execute\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/coding-agent/examples/extensions/truncated-tool.ts"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"402b73b08aa6afed76e004425c4aa6c3f92bf64372125f67fb0547f02ae34198"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060fork\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/coding-agent/src/core/agent-session-runtime.ts"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1ab6735f90c6c3e5021c76c336988b64840332773f517dbe26ed2da25160780"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060importFromJsonl\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/coding-agent/src/core/agent-session-runtime.ts"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c711b3b9210460f0dade728781cc14685e0b0ca94416b09f7a8ddf0f662de37"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060importFromJsonl\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/coding-agent/src/core/agent-session-runtime.ts"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"000a75cc31bba35cd16aa70221d211b537cdb32ebf564c0546b3e084730a2c28"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060mkdirSync\u0060 in \u0060importFromJsonl\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/coding-agent/src/core/agent-session-runtime.ts"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"9008f6bb27e2a0fb6539c811f299f822eb6d0a981146b7f52493fafc73eb31b2"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060importFromJsonl\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/coding-agent/src/core/agent-session-runtime.ts"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"77432ba2831273fa249749e47ce1f65e60e5818684e44600f2f3ebb527145dfd"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060copyFileSync\u0060 in \u0060importFromJsonl\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/coding-agent/src/core/agent-session-runtime.ts"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"674aaf52bdaf524b6ec8029d9b8c746708744803dc2eda6e303718275b2d3afa"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060exportSessionToHtml\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/coding-agent/src/core/export-html/index.ts"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"a082d6485b31a1640a8c8147706cb16662d5d02bed959ff46563530f7c81c17d"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060writeFileSync\u0060 in \u0060exportSessionToHtml\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/coding-agent/src/core/export-html/index.ts"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6d7dcca4258e60ea4bedac73661c91fea0e38be5b3e0085ddd82e799700cb99"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060exportFromFile\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/coding-agent/src/core/export-html/index.ts"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"84da13cbb845e7581c17f1213ca31de4c2e7f85c284ea6fb62bb0010d6109765"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060writeFileSync\u0060 in \u0060exportFromFile\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/coding-agent/src/core/export-html/index.ts"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"137fe3096093ebd0dc5c831a5649faa1d020c776fd36223ecbd1e76b161b9f02"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.existsSync\u0060 in \u0060discoverAndLoadExtensions\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/coding-agent/src/core/extensions/loader.ts"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed3dc5465387db7f4e389524fc91c278aac875affb03d251c1d5e30ef9c793cb"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.statSync\u0060 in \u0060discoverAndLoadExtensions\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/coding-agent/src/core/extensions/loader.ts"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1a5f9e8cec0cf7e7f3c76689e735a22f6d8895ae37780102042772a6c0c1418"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060readFileSync\u0060 in \u0060resolveGitBranchAsync\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/coding-agent/src/core/footer-data-provider.ts"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca5342189ef6cdfc72c8cf8836bf2fc3c8ce4165c62d2a1103aee730ecdb29d6"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060anonymous function\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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":1067}}}],"partialFingerprints":{"codehealthFindingId/v1":"14c92a2c402c6c555e6b419c363c6385cc7fee5513d6ddfcc72016c932a55b56"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060shouldUpdateNpmSource\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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":1199}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6b2d1ed272ec962093b50db747ffca988b280b359e04a0e7a80b6d7a00a3aa6"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060anonymous function\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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":1263}}}],"partialFingerprints":{"codehealthFindingId/v1":"440cb9887b4ce6e018b6d837d29ee32ca81050683fbe9d17d5c0a90bd7614c34"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060anonymous function\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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":1279}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0820dd2ae30dde0d8810e4f5a3d735d32c38b512750e17a5cd5c45ca5b4c216"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060resolvePackageSources\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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":1344}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7999d64298784a004c60529bb4ac5ab595739e8e73bc7e2316c2a78ff6d9e13"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060resolvePackageSources\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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":1358}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e6c3ca6ab867a1189fa0da8fe18669c52711ade0f77d04a992218c5cab5c929"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060uninstallNpm\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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":1905}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1fcdf6e676f5c0bd3d7b957ba1c5b798bff87aa7630ee0b0ca0883c643db7dc"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060realpathSync\u0060 in \u0060uninstallNpm\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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":1909}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e9a909c722a40abbec972a64e6816710744116b3b9225609e2cb5b31da00a6b"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060installGit\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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":1924}}}],"partialFingerprints":{"codehealthFindingId/v1":"e077ab98712ae5b120fd86b70c43fecc985312a294dd0063a68dc4fb99c45f53"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060mkdirSync\u0060 in \u0060installGit\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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":1937}}}],"partialFingerprints":{"codehealthFindingId/v1":"6db02cd5336ac9cd9d57a9f7718460259a0f2ecf2825be5ee269e30abdb2cab7"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060rmSync\u0060 in \u0060installGit\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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":1938}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a11f032aeb1260e76c38092a1c2248f14a05f40a7454d07e1054c34f628fa2a"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060installGit\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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":1946}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab801362a1373e6c7d11130100f3bd20a3b69323f648baa18a90e6cf6b64310b"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060rmSync\u0060 in \u0060installGit\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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":1950}}}],"partialFingerprints":{"codehealthFindingId/v1":"b606f5997c08aaa7d577921ced615dc14543534cd4cbd9e07e8111a42cd2f62d"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060updateGit\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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":1958}}}],"partialFingerprints":{"codehealthFindingId/v1":"d328a9150695ec15c81eebc0cef5cca84ed010db5383521bee0bb5919c1874e7"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060cleanAndInstallGitDependencies\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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":2017}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fc8d13dd2b0d751c70af01caa045f07d61cbbfb9fe225d5692fe8b80cf939e0"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060rmSync\u0060 in \u0060cleanAndInstallGitDependencies\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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":2020}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e3763b9c76febb1e2042bfd6249da73a6a9e9bcbca456e88ce0bf8464355ae3"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060ensureGitRef\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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":2038}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf738c6b5d4cacf10755c086fddad85fad74b36ff5c925db5c741762160ea6cb"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060writeFileSync\u0060 in \u0060ensureGitRef\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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":2046}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd98d2ea962e074b6efdb385786e6d92b1fcff31fdbf846c0697d69d1e5cae04"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060rmSync\u0060 in \u0060removeGit\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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":2066}}}],"partialFingerprints":{"codehealthFindingId/v1":"80ef1d80e9fc84b7af4725bf1d7ec275608fb6e6e56c08c8524c61dd7c73e709"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060rmSync\u0060 in \u0060removeGit\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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":2067}}}],"partialFingerprints":{"codehealthFindingId/v1":"25525ac82796535d65d08dd090cc391b6e4de788f7786b12e2a632a4a5a15671"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060reload\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/coding-agent/src/core/resource-loader.ts"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"930395e6c6d2e0c463553f6e870d4cb2f6a612f55774633baec2bd9c0288d684"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060reload\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/coding-agent/src/core/resource-loader.ts"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"03c6b4cd52d1b562b5e03bf619e4b1229b3e8c8ae2e1cb621ed358f1538b98ec"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060reload\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/coding-agent/src/core/resource-loader.ts"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"858e59eb21144945a8a3276cc113eaeb1b4a14fa2c159915e13c1665652c4d61"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060reload\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/coding-agent/src/core/resource-loader.ts"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b6590aa3d375c0c5f465720578df2ababba73facdb4e2b711137c0f805cc5d2"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060reload\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/coding-agent/src/core/resource-loader.ts"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"60de0e2e611b38b537820de91f511fe6da3c41d7ee5933d766458e0c23d08d8b"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060callback to appendSources.filter\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/coding-agent/src/core/resource-loader.ts"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"adc54c9e00801e31f93e2c8ba228be2d02dc87b19b259cac17bb37d2e78ee315"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060listSessionsFromDir\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/coding-agent/src/core/session-manager.ts"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e992660dbd028a21e31425a31fae814163956da8019143bcbe3e2513024caca"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060listAll\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/coding-agent/src/core/session-manager.ts"},"region":{"startLine":1957}}}],"partialFingerprints":{"codehealthFindingId/v1":"2755a3a54f54abcdc45911cb1d344c1bba829bd2cabf574f9a01789bf4100fe0"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060runMcpCommand\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/coding-agent/src/extensions/mcp/cli.ts"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"37b04f779fa9a6d7786f53d109d3d6cf4711a6c615445d67327cfda962fa9945"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060spawnSync\u0060 in \u0060deleteSessionFile\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/coding-agent/src/modes/interactive/components/session-selector.ts"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bade991b2052f7b705faf9703d280e9beb8ef570be82f9c31bf3de514a89cbf"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060deleteSessionFile\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/coding-agent/src/modes/interactive/components/session-selector.ts"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"45ca105ac72a21521d810ea6c891950b4e29557c1ea18dc16c9b944984a8911f"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060mkdtempSync\u0060 in \u0060editInExternalEditor\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/coding-agent/src/modes/interactive/external-editor.ts"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"5063436a158efa921440f5285b5042907a38716c631cfd234d9f0ba7ed9e7e9c"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060writeFileSync\u0060 in \u0060editInExternalEditor\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/coding-agent/src/modes/interactive/external-editor.ts"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"1841e3ec22b18299203a88ff309fa84d061aab995c4af96fcdf4975de8277261"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060readFileSync\u0060 in \u0060editInExternalEditor\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/coding-agent/src/modes/interactive/external-editor.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dc8d2e9c10258ee40b48a359b9dc79ef648c2c0b53925f44a70cbf1cfb4ba83"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060rmSync\u0060 in \u0060editInExternalEditor\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/coding-agent/src/modes/interactive/external-editor.ts"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"962af59ee8ac521c5e5e9b960f133b6c586dbdda76306d01f476959eca54630c"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.writeFileSync\u0060 in \u0060handleClipboardPaste\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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":3134}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0f341bc0204c6c5ec6ff5f1b8152c00c522581d9074d7483fc5b3175bd86c2e"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.mkdtempSync\u0060 in \u0060shareSession\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/coding-agent/src/modes/interactive/session-share.ts"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"469897fe188a4906d6fe92b471681c5069f5315f73e250fced81ac341caafefb"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060spawnSync\u0060 in \u0060shareSession\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/coding-agent/src/modes/interactive/session-share.ts"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dc37838c819a28f7306533f9ffa4a2576a078042be940cc16161ad12418b44e"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.rmSync\u0060 in \u0060shareSession\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/coding-agent/src/modes/interactive/session-share.ts"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3d0718941fba0a731856841176c82b9440fc2ec6748ffef1ed5aa4ecfacacab"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.readFileSync\u0060 in \u0060tryShareViaRadius\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/coding-agent/src/modes/interactive/session-share.ts"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"b51a82183db89130f33751a3621565ffd46397b343154459eefef4d2461ae091"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060mkdirSync\u0060 in \u0060runManagedSelfUpdate\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/coding-agent/src/package-manager-cli.ts"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b7b0a8842c24b717ccfa9a9c5a0a41e0590c5d90044aa10008f4d9f2dbfe060"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060runManagedSelfUpdate\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/coding-agent/src/package-manager-cli.ts"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eceafd3e53df308cc1e8c4387ed72d1c309e81aff6789cd4512dccb7da17a70"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060mkdirSync\u0060 in \u0060runManagedSelfUpdate\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/coding-agent/src/package-manager-cli.ts"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"d71a5e153b7d93eb625137a013486cf551c83ee2a2fbe1694e8b17a6a0e8286e"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060mkdtempSync\u0060 in \u0060runManagedSelfUpdate\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/coding-agent/src/package-manager-cli.ts"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"3713a993fa38f520a250fd16ae1a0b7578e8a1d7fa034d77577db19a9a3637aa"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060writeFileSync\u0060 in \u0060runManagedSelfUpdate\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/coding-agent/src/package-manager-cli.ts"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"a44f9e7ebb111f311ff76ccdc97b979e8e84cde260bf4b7b66c83d7fccbcb00b"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060writeFileSync\u0060 in \u0060runManagedSelfUpdate\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/coding-agent/src/package-manager-cli.ts"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"82c7f04bdd1628719533ca7831c885bcdf105b0caffb614d23e5941028e9c00b"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060renameSync\u0060 in \u0060runManagedSelfUpdate\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/coding-agent/src/package-manager-cli.ts"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"8349586df55244199a44dab6bae9cd1e9d24ad86cbd04946d0d1e7472453e3ca"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060rmSync\u0060 in \u0060runManagedSelfUpdate\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/coding-agent/src/package-manager-cli.ts"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"458a866e5449f80ff3ea356872fb71cd1bba5a1514cae6210098da1a97c95048"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060readFileSync\u0060 in \u0060readClipboardImageViaPowerShell\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/coding-agent/src/utils/clipboard-image.ts"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"a14fcc975961ba664a5dab5cdb1ce77a7a305f6e4ec842cc2cbffa273499cbcd"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060unlinkSync\u0060 in \u0060readClipboardImageViaPowerShell\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/coding-agent/src/utils/clipboard-image.ts"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"963bf259d7a0e87e8413312a49bcce1b058f30e0d39be310408885d277455d79"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060writeFileSync\u0060 in \u0060copyViaWindowsClipboard\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/coding-agent/src/utils/clipboard.ts"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"02ac3617c0b24767b773a844fa40d6098c55b2bc8145b8956241f0b683828045"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060unlinkSync\u0060 in \u0060copyViaWindowsClipboard\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/coding-agent/src/utils/clipboard.ts"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"00633817846cfd8566091403706d104778925199bf9b5a40bab0f569359f98b9"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060mkdirSync\u0060 in \u0060downloadTool\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/coding-agent/src/utils/tools-manager.ts"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f1b0e93a032417ff15544dd435d2e459040313b6b2d465d7ceb8f54c22cf6d9"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060mkdirSync\u0060 in \u0060downloadTool\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/coding-agent/src/utils/tools-manager.ts"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"52568de32f46b9df6d8593ca05b674195543ff103719b732fd481cdad5c9ff98"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060callback to extractedBinaryCandidates.find\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/coding-agent/src/utils/tools-manager.ts"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed3fb825d0360e96ec787085d338d5477ce1cfee522fb83a1d5893d35aa17781"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060renameSync\u0060 in \u0060downloadTool\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/coding-agent/src/utils/tools-manager.ts"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"7528cceed936702f226e81faf650853801c5229dbc8a68d9281b7b7b6df3f778"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060chmodSync\u0060 in \u0060downloadTool\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/coding-agent/src/utils/tools-manager.ts"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"70ae16c7ec810f900b8c93028e1292f897c65390d7406fc4fc17062cf2dcaef0"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060rmSync\u0060 in \u0060downloadTool\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/coding-agent/src/utils/tools-manager.ts"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e84e798e87a3ae21677ee68ebb6d6fa2bea28d072bdc51a553146d629bcc093"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060rmSync\u0060 in \u0060downloadTool\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/coding-agent/src/utils/tools-manager.ts"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e52c55af4004a8c65fc24e5b1c45324b419fcbe700ea0d451c9e9f96576197e"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060writeFileSync\u0060 in \u0060createHarness\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/coding-agent/test/suite/harness.ts"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"b097d6b21599d2bbbff5fade9848d7dad54b9977ad38d1e52287f84ce154896d"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060cleanup\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/coding-agent/test/suite/harness.ts"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"101eb1e96c56c7acede8400a066c61273bc3eb6e106555f9d6edea5881406feb"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060rmSync\u0060 in \u0060cleanup\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/coding-agent/test/suite/harness.ts"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8395c916010364b07c1511ef73b91a3457d904451d2e333239bd886dd7ac11a"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060cleanup\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/coding-agent/test/test-harness.ts"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b020a94d9e0b65d4e9c585887c5019a20116502b21bd6043f2880332a960670"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060rmSync\u0060 in \u0060cleanup\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/coding-agent/test/test-harness.ts"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"11c8818862a3e052d88873d056a8a3a0a097f3d8e0308a3fdacfc187deea497d"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060mkdirSync\u0060 in \u0060createTestSession\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/coding-agent/test/utilities.ts"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"9620756323f5f06d3c2f0688cff26b51743ccda9d3a048082919fa753ab81230"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060cleanup\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/coding-agent/test/utilities.ts"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c1af60e8960e5f319846f34ac9f60c383452f8cbd419f423c5ae020ab8af305"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060rmSync\u0060 in \u0060cleanup\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/coding-agent/test/utilities.ts"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"a78ca82fa61a55d9d1e3805907fffab914662da659273b33ffe689ce49c8cf82"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060scanHostKey\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/env/src/ssh.ts"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fe5accac9cc7995b2360f30113f8ee1bd23748c969341bafb4b60bb15eec7b7"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060callback to then\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/env/src/ssh.ts"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c5e82897ae95721931e6ec9cb516d4cac24ab8c8a1f819881e5aab78cf77a83"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060deployDaemon\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/env/src/ssh.ts"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"a401b39bb7a12912968de21d84dd8a2eef7389ce3121ec789c780652dea37b8a"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060writeFileSync\u0060 in \u0060sync\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":"scripts/issues/github.ts"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6ba1fda2a591a7f69ec5423f38ae6ccf4a2bbb04c1382507f745bd8aa045240"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060renameSync\u0060 in \u0060sync\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":"scripts/issues/github.ts"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"c66e26d0281b7400e83e24a1ebf3fd4be20d1682a0c038ab1528c3d0665f9677"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060readFileSync\u0060 in \u0060handle\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":"scripts/issues/main.ts"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"50199e53e68ec66400ba446fc6ea48711a7612c87debc2569f8f3fd387c9f574"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 10 sibling directories (94 clone groups): 94 duplicated blocks under packages/ have copies in at least two of the sibling directories agent, ai, chord, codemode, coding-agent, durable (\u002B4 more sibling(s) not listed) \u2014 59 of them are reported below, and 35 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 94 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 94 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 94 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/coding-agent/src/core/tools/edit-diff.ts"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"08f66374fe4e8cdf5247ac80c5cb920a2e12c6fbaa3f27734bc034272c4f58ba"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 5 sibling directories (20 clone groups): 20 duplicated blocks under packages/coding-agent/src/ have copies in at least two of the sibling directories bun, core, extensions, modes, utils \u2014 16 of them are reported below, and 4 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 20 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 20 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 20 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/coding-agent/src/core/agent-session.ts"},"region":{"startLine":3422}}}],"partialFingerprints":{"codehealthFindingId/v1":"157a240c9717f94e1cb9f37ddde61688c075d9c61835f9909459a7601c2d9e51"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 2 sibling directories (6 clone groups): 6 duplicated blocks under the repository root have copies in at least two of the sibling directories packages, scripts \u2014 2 of them are reported below, and 4 are counted here but not reported individually: those copies match on shape but no longer clear R10\u0027s bar for an individually reported row \u2014 either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 6 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 6 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module \u2014 a common library every sibling imports \u2014 rather than 6 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/utils/changelog.ts"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d6bcb6ada48bc3a0620f39624c9ac57f6c94d92dcdd5885c7e038d207c1cd3f"}},{"ruleId":"R10","level":"warning","message":{"text":"Wholesale file copy (288 identical lines \u00D7 2 files): packages/coding-agent/src/core/tools/edit-diff.ts:5 \u00B7 packages/durable/src/tools/edit-diff.ts:5 \u2014 these 2 files are line-for-line copies of one another \u2014 288 lines are identical, in the same order, in every one of them \u2014 so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) \u2014 the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/tools/edit-diff.ts"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d5a7608ef3185945bc865cafe4e76896009d051e39837fc1251dae054b59b96"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (195 lines \u00D7 2 locations): packages/ai/src/api/google-generative-ai.ts:94 \u00B7 packages/ai/src/api/google-vertex.ts:110 \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/ai/src/api/google-generative-ai.ts"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"6926774be08e4cdfb9c1e00847498ef2e59e0010c77e97408b2cd2ce40f32b06"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (150 matched lines \u00D7 2 locations): packages/chord/src/object.ts:619 \u00B7 packages/chord/src/remote.ts:396 \u2014 the two spans are one implementation copied and then locally edited \u2014 1031 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/chord/src/object.ts"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b7ba2d6e172292c71aa99cb06b4eb4106b08878327c03acf38e8354b43fbab8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (113 matched lines \u00D7 2 locations): packages/ai/src/api/azure-openai-responses.ts:81 \u00B7 packages/ai/src/api/openai-responses.ts:210 \u2014 the two spans are one implementation copied and then locally edited \u2014 760 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/ai/src/api/azure-openai-responses.ts"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"a496623ff176ed20f45952a726dffdc06641c74f0ef450ed40d9a52bd33aa896"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (107 matched lines \u00D7 2 locations): packages/durable/src/env/node.ts:932 \u00B7 packages/env/src/remote-env.ts:562 \u2014 the two spans are one implementation copied and then locally edited \u2014 907 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/durable/src/env/node.ts"},"region":{"startLine":932}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff5947287b17d50a9b7b072af07de56517978a36beac333064a8b9602a55c341"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (105 matched lines \u00D7 2 locations): packages/coding-agent/src/core/tools/find.ts:62 \u00B7 packages/coding-agent/src/core/tools/grep.ts:62 \u2014 the two spans are one implementation copied and then locally edited \u2014 618 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/coding-agent/src/core/tools/find.ts"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"beda0c9ac26c3a26295b19eba1729b89694ccf026faff3121cb9ea8728ef562c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (104 matched lines \u00D7 2 locations): packages/durable/src/storage/indexeddb.ts:1018 \u00B7 packages/durable/src/storage/sqlite/storage.ts:744 \u2014 the two spans are one implementation copied and then locally edited \u2014 799 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/durable/src/storage/indexeddb.ts"},"region":{"startLine":1018}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d437c12e4f1566d72945a4e2ab439c7e73350e3ac9b82b63a5fcbd7bec093d6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (75 lines \u00D7 2 locations): packages/ai/scripts/generate-models.ts:709 \u00B7 packages/ai/src/api/openai-completions.ts:1580 \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/ai/scripts/generate-models.ts"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"41ff232641aaf11f6e0236c0904faddf7599bfa5ec166d492d4d152c366bc5ad"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (75 matched lines \u00D7 2 locations): packages/ai/src/api/openai-codex-responses.ts:521 \u00B7 packages/ai/src/api/openai-responses.ts:282 \u2014 the two spans are one implementation copied and then locally edited \u2014 430 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/ai/src/api/openai-codex-responses.ts"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab2caa70964a69143525efce6619e9799839b79fd135a8b4c5de4028997c2a77"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (70 matched lines \u00D7 2 locations): scripts/edit-tool-stats.mjs:709 \u00B7 scripts/read-tool-stats.mjs:427 \u2014 the two spans are one implementation copied and then locally edited \u2014 534 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":"scripts/edit-tool-stats.mjs"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b9c462a1d9fd96f7331af62b6c05f88a82306c02e225a2ef2110ff046e960dc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (61 lines \u00D7 2 locations): packages/ai/src/api/google-generative-ai.ts:364 \u00B7 packages/ai/src/api/google-vertex.ts:469 \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/ai/src/api/google-generative-ai.ts"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c5b0f79693d2ade5b7e06a84cc027ce5f6d4551ffacdfcecce16e380fc39c0e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (59 matched lines \u00D7 2 locations): packages/coding-agent/src/core/prompt-templates.ts:114 \u00B7 packages/coding-agent/src/core/skills.ts:282 \u2014 the two spans are one implementation copied and then locally edited \u2014 348 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/coding-agent/src/core/prompt-templates.ts"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"a35632793a2a4fc104e6fbcd565dd50c5a1b3e61ab4d67dacbe0730c42f091d1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (56 matched lines \u00D7 2 locations): packages/coding-agent/src/utils/child-process.ts:63 \u00B7 packages/durable/src/env/node.ts:329 \u2014 the two spans are one implementation copied and then locally edited \u2014 347 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/coding-agent/src/utils/child-process.ts"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"abbc56e4218571a092dba95f6d58ca98654b749379e773c53a7c678c79e7e77a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (54 lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/components/branch-summary-message.ts:10 \u00B7 packages/coding-agent/src/modes/interactive/components/compaction-summary-message.ts:10 \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/coding-agent/src/modes/interactive/components/branch-summary-message.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"9571c791108c5829447801feddcfe581143ba6b0c7d3af9e504bb95f051601d7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (53 matched lines \u00D7 2 locations): packages/coding-agent/src/extensions/codemode/tool.ts:180 \u00B7 packages/durable/src/codemode/describe.ts:82 \u2014 the two spans are one implementation copied and then locally edited \u2014 523 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/coding-agent/src/extensions/codemode/tool.ts"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"4decb8ec0d168ff3bd473747cf919e16f1207427d52a9081c8cbbbfef4acb03a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (53 matched lines \u00D7 2 locations): packages/coding-agent/src/utils/changelog.ts:26 \u00B7 scripts/release-notes.mjs:149 \u2014 the two spans are one implementation copied and then locally edited \u2014 397 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/coding-agent/src/utils/changelog.ts"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e833e0b962674ac03ee3b3a22291394317d3bfb81d106e0dc39032ef9a8b387"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (53 lines \u00D7 2 locations): packages/coding-agent/src/utils/mime.ts:55 \u00B7 packages/durable/src/tools/image.ts:119 \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/coding-agent/src/utils/mime.ts"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"212458967e002ae908eb01dfdb9c64df06eb5317914d4c577f3f65d0de797518"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (52 matched lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/components/settings-submenu.ts:41 \u00B7 packages/coding-agent/src/modes/interactive/components/thinking-selector.ts:55 \u2014 the two spans are one implementation copied and then locally edited \u2014 422 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/coding-agent/src/modes/interactive/components/settings-submenu.ts"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"006c49ce09d53d9995ad4fc01141e594f3f175d1b07853270ad0e60c604d004e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (50 matched lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/components/extension-editor.ts:23 \u00B7 packages/coding-agent/src/modes/interactive/components/extension-input.ts:15 \u2014 the two spans are one implementation copied and then locally edited \u2014 326 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/coding-agent/src/modes/interactive/components/extension-editor.ts"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf909911f412bf22e8e7a25eeb67a3cb31f6afc9b92313266e6c2bd16a2926c6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (50 matched lines \u00D7 2 locations): scripts/read-tool-stats.mjs:41 \u00B7 scripts/session-context-stats.mjs:20 \u2014 the two spans are one implementation copied and then locally edited \u2014 408 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":"scripts/read-tool-stats.mjs"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"109108953f158607b9a10cb128575db9cf8e73f353957181e2711f97e9683a02"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (48 matched lines \u00D7 2 locations): packages/coding-agent/src/extensions/tool-search/tool.ts:39 \u00B7 packages/durable/src/search.ts:8 \u2014 the two spans are one implementation copied and then locally edited \u2014 581 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/coding-agent/src/extensions/tool-search/tool.ts"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"38a0709554b794ea8e702872a67412e30a09d0a1a87679abcc2f72b22d5c79db"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (46 lines \u00D7 2 locations): packages/durable/src/storage/indexeddb.ts:965 \u00B7 packages/durable/src/storage/sqlite/storage.ts:693 \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/durable/src/storage/indexeddb.ts"},"region":{"startLine":965}}}],"partialFingerprints":{"codehealthFindingId/v1":"be21c27f1457efcd3c4e7ff13ab6ffdc9edc18919dfe815a7eac1cd821d0591c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (43 matched lines \u00D7 2 locations): packages/coding-agent/src/core/auth-storage.ts:393 \u00B7 packages/coding-agent/src/core/models-store.ts:74 \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/coding-agent/src/core/auth-storage.ts"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"55d79c6987a1ac127252fc940b30c38c628d48b20f3c6c9c14362a402db02066"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (41 matched lines \u00D7 2 locations): packages/ai/scripts/generate-models.ts:1829 \u00B7 packages/ai/scripts/generate-models.ts:1984 \u2014 the two spans are one implementation copied and then locally edited \u2014 342 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/ai/scripts/generate-models.ts"},"region":{"startLine":1829}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a2f4b02604fe37be0a3d7c1eb6168521231b99aca15a3c615cb5eb59aa6e77a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (41 matched lines \u00D7 2 locations): packages/ai/src/utils/abort.ts:1 \u00B7 packages/coding-agent/src/utils/abort.ts:1 \u2014 the two spans are one implementation copied and then locally edited \u2014 275 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/ai/src/utils/abort.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"59b074cac4a9cc6ddbddbd9eba3c67a090c61c84072c8cdac6ebda06ada1053a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2 locations): packages/coding-agent/src/core/extensions/types.ts:1975 \u00B7 packages/coding-agent/src/core/provider-composer.ts:41 \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/coding-agent/src/core/extensions/types.ts"},"region":{"startLine":1975}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4117d170a6644116e6b60b53b5bfe328337f5fb60ede091db57b8a2e42bb70e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (39 matched lines \u00D7 2 locations): packages/tui/src/components/markdown.ts:289 \u00B7 packages/tui/src/components/text.ts:36 \u2014 the two spans are one implementation copied and then locally edited \u2014 280 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/tui/src/components/markdown.ts"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"e02b78345c391fd0ff886b6254ad25292bd0508fa549d8a2fab047df779282f6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2 locations): packages/coding-agent/src/core/package-manager.ts:251 \u00B7 packages/coding-agent/src/core/skills.ts:21 \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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"98218870aa84b28b5d4fce49eb5a0c10f088010628fa091800610adb2ddcaf3b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2 locations): packages/ai/src/api/azure-openai-responses.ts:105 \u00B7 packages/ai/src/api/mistral-conversations.ts:155 \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/ai/src/api/azure-openai-responses.ts"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e777c0631202287dbb3452538f01ab44bb8954d623938faa2fd724c38c5e525"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2 locations): packages/coding-agent/src/core/package-manager.ts:505 \u00B7 packages/coding-agent/src/core/package-manager.ts:542 \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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"b893b1ec3fb0ecf4592a92a33a1bfddd6c7e293c9481d59ad9c1ee6bc18d2d33"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (36 matched lines \u00D7 2 locations): packages/coding-agent/src/core/tools/truncate.ts:69 \u00B7 packages/coding-agent/src/core/tools/truncate.ts:160 \u2014 the two spans are one implementation copied and then locally edited \u2014 217 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/coding-agent/src/core/tools/truncate.ts"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"49d8a61f89a43248a041158ac896f9ec54e01caede80808cd186f970319a8392"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (35 matched lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/components/extension-selector.ts:65 \u00B7 packages/coding-agent/src/modes/interactive/components/trust-selector.ts:72 \u2014 the two spans are one implementation copied and then locally edited \u2014 283 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/coding-agent/src/modes/interactive/components/extension-selector.ts"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d78bb60af6cc8ab5996eb45bca8a08508a25b6f7b37b609c8f8420417611037"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2 locations): packages/durable/src/storage/indexeddb.ts:480 \u00B7 packages/durable/src/storage/indexeddb.ts:678 \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/durable/src/storage/indexeddb.ts"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8f380b796e37ebc1281e937ec325489c4e852518088e9b9425e2ec485c3d3f3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2 locations): packages/coding-agent/src/core/tools/renderers/find.ts:33 \u00B7 packages/coding-agent/src/core/tools/renderers/ls.ts:26 \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/coding-agent/src/core/tools/renderers/find.ts"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"225c6640664df2959af8d9c36aeaac5f39b03a1c1ab3b854f53fb49bf1c49d5c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/interactive-mode.ts:3211 \u00B7 packages/coding-agent/src/modes/interactive/interactive-mode.ts:3269 \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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":3211}}}],"partialFingerprints":{"codehealthFindingId/v1":"911a826298714962ed41a0215dd9e0fd96531e24af4c3f6903034c7356e3ae95"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2 locations): packages/ai/src/api/openai-completions.ts:362 \u00B7 packages/ai/src/api/openai-responses.ts:200 \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/ai/src/api/openai-completions.ts"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"19996775cedfbb64ce60cc00c78c8ee417c867d63f3107f93a037671302af564"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/interactive-mode.ts:6208 \u00B7 packages/coding-agent/src/modes/interactive/interactive-mode.ts:6337 \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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":6208}}}],"partialFingerprints":{"codehealthFindingId/v1":"b193953b8206f1d8eda088501bf683982e063602864aaa7db919724748774836"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2 locations): packages/ai/src/auth/oauth/anthropic.ts:29 \u00B7 packages/ai/src/auth/oauth/openai-codex.ts:69 \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/ai/src/auth/oauth/anthropic.ts"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba15dae96ee51247e1aea0fe198902c79236787fe335fced055e98ad90425083"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/components/tree-selector.ts:286 \u00B7 packages/coding-agent/src/modes/interactive/components/tree-selector.ts:522 \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/coding-agent/src/modes/interactive/components/tree-selector.ts"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d165f11710aca0819c622aef50410e4919ac4be8c418e02ce07dce94d0641dd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2 locations): packages/ai/src/api/google-generative-ai.ts:57 \u00B7 packages/ai/src/api/google-vertex.ts:66 \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/ai/src/api/google-generative-ai.ts"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"baca72e39b254ffaebd91196e4056207bcbeabce67ddc84f8340aa838e1c3c3c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (26 matched lines \u00D7 2 locations): packages/ai/src/api/anthropic-messages.ts:576 \u00B7 packages/ai/src/api/openai-responses.ts:155 \u2014 the two spans are one implementation copied and then locally edited \u2014 138 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/ai/src/api/anthropic-messages.ts"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbcddd60856f5f32d3bcb7cdfac1fb6bb66ee56a36b206c4c840cea795f1bc3b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (26 matched lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/components/assistant-message.ts:7 \u00B7 packages/coding-agent/src/modes/interactive/components/user-message.ts:6 \u2014 the two spans are one implementation copied and then locally edited \u2014 132 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/coding-agent/src/modes/interactive/components/assistant-message.ts"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"edc8225717e82e6cd882756237e7d11c9748aecbe2c339edde2011a477c89eab"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2 locations): packages/coding-agent/src/extensions/codemode/execute.ts:348 \u00B7 packages/durable/src/codemode/output.ts:68 \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/coding-agent/src/extensions/codemode/execute.ts"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e1b44a92d9bcdaf36f0a05d1de88457e23d63ecb31f5d18012a22c293883dbc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2 locations): packages/coding-agent/src/extensions/llama/ui.ts:465 \u00B7 packages/coding-agent/src/extensions/mcp/ui.ts:228 \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/coding-agent/src/extensions/llama/ui.ts"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"32fcb8bedfb8e146624c544bdd4964a0426c7f9a2443fd3ed7d4c5e0299c79d7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2 locations): packages/coding-agent/src/modes/print-mode.ts:77 \u00B7 packages/coding-agent/src/modes/rpc/rpc-mode.ts:321 \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/coding-agent/src/modes/print-mode.ts"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"80835c9c1ce657462b3fec4e40ed3ec97e92f198aa33d5e315ceb45e72fae49e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3 locations): packages/durable/src/storage/sqlite/storage.ts:217 \u00B7 packages/durable/src/storage/sqlite/storage.ts:426 \u00B7 packages/durable/src/storage/sqlite/storage.ts:475 \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/durable/src/storage/sqlite/storage.ts"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d9e4618e34dcf7ca98d8abd4fd768a6dc96f8eabbb2fada98572d4a01585ad6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (25 matched lines \u00D7 2 locations): packages/tui/src/components/editor.ts:1641 \u00B7 packages/tui/src/components/editor.ts:1699 \u2014 the two spans are one implementation copied and then locally edited \u2014 303 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/tui/src/components/editor.ts"},"region":{"startLine":1641}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbf1706b954fdb13eb9b53e9d9bf62e88c7dfa320f665b3b1ec829dcdddc51af"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (24 matched lines \u00D7 2 locations): packages/durable/src/session/session.ts:1197 \u00B7 packages/durable/src/storage/jsonl/storage.ts:336 \u2014 the two spans are one implementation copied and then locally edited \u2014 249 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/durable/src/session/session.ts"},"region":{"startLine":1197}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5973ffb939d195b891b3e78c4590107f86114ceb27593b9ed58362d274940b4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2 locations): packages/durable/src/testing/storage-conformance.ts:1059 \u00B7 packages/durable/src/testing/storage-conformance.ts:1102 \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/durable/src/testing/storage-conformance.ts"},"region":{"startLine":1059}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7b56e99ce291bf7251f5bb3b9a822f17ab21778a41d3fc488a560a1e03f1fa0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2 locations): scripts/publish-release-announcement.mjs:329 \u00B7 scripts/publish-release-announcement.mjs:353 \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/publish-release-announcement.mjs"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"38a6e2d2770214b64086a1fce8ea75a2da7ad960e9ddebbc6f5b0b5d36e25d6e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (23 matched lines \u00D7 2 locations): packages/coding-agent/src/core/tools/path-utils.ts:48 \u00B7 packages/coding-agent/src/core/tools/path-utils.ts:86 \u2014 the two spans are one implementation copied and then locally edited \u2014 120 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/coding-agent/src/core/tools/path-utils.ts"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"41c8f030cb299c6ff8230cebbb5f68685efac53fbc10a718c51f56290a1c288c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2 locations): packages/coding-agent/src/extensions/mcp/resources.ts:257 \u00B7 packages/coding-agent/src/extensions/mcp/resources.ts:281 \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/coding-agent/src/extensions/mcp/resources.ts"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"578ad351f2a21366400005f44dfc5bde5080d4b710b744552b7d34af468b8e40"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (23 matched lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/components/extension-input.ts:38 \u00B7 packages/coding-agent/src/modes/interactive/components/extension-selector.ts:32 \u2014 the two spans are one implementation copied and then locally edited \u2014 185 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/coding-agent/src/modes/interactive/components/extension-input.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"9022a218ce448cde791a381e0365709666af64202615db3dcdc8fb3fba34875e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3 locations): packages/ai/src/api/bedrock-converse-stream.ts:135 \u00B7 packages/ai/src/api/google-generative-ai.ts:62 \u00B7 packages/ai/src/api/google-vertex.ts:71 \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/ai/src/api/bedrock-converse-stream.ts"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbc6a4cf428cf89c943385691d10813ca0fa12be7110587dccaf04362dbae56d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2 locations): packages/ai/src/api/google-generative-ai.ts:319 \u00B7 packages/ai/src/api/google-vertex.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/ai/src/api/google-generative-ai.ts"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a7be7e10ae610bde6435164d1d0a113b23df5bc998392c4b1684a022cb18d3a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (22 matched lines \u00D7 2 locations): packages/coding-agent/src/core/tools/edit.ts:114 \u00B7 packages/durable/src/tools/edit.ts:54 \u2014 the two spans are one implementation copied and then locally edited \u2014 225 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/coding-agent/src/core/tools/edit.ts"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"5529f3d7c91795d1d15ab02e92cc169ad4e147d4965f3fe9d3a697b738ccccb4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2 locations): packages/coding-agent/src/core/tools/index.ts:118 \u00B7 packages/coding-agent/src/core/tools/index.ts:141 \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/coding-agent/src/core/tools/index.ts"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a4b2f5ef4f95c553f743c2a200d3e3e21b2e94e989ac763a36bdd5a853d45bc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2 locations): packages/coding-agent/src/core/tools/truncate.ts:104 \u00B7 packages/durable/src/truncate.ts:120 \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/coding-agent/src/core/tools/truncate.ts"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"26d55c3166b1d804f56b6761ee02581da1014691f3692a2139f6cd2de89ba810"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3 locations): packages/durable/src/storage/indexeddb.ts:453 \u00B7 packages/durable/src/storage/indexeddb.ts:589 \u00B7 packages/durable/src/storage/indexeddb.ts:650 \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/durable/src/storage/indexeddb.ts"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f125e050537b154dbcd7c1260884b9036a831334476fc6bcd9479bdd64d4f00"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (21 matched lines \u00D7 2 locations): packages/ai/scripts/generate-models.ts:1954 \u00B7 packages/ai/scripts/generate-models.ts:2034 \u2014 the two spans are one implementation copied and then locally edited \u2014 151 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/ai/scripts/generate-models.ts"},"region":{"startLine":1954}}}],"partialFingerprints":{"codehealthFindingId/v1":"da101998297347c9cc2b0d4ead382c750cc6322728114b38878ba24e6cd1a40f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/interactive-mode.ts:2724 \u00B7 packages/coding-agent/src/modes/interactive/interactive-mode.ts:2781 \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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":2724}}}],"partialFingerprints":{"codehealthFindingId/v1":"2af5907b76c0007d47ff40c3d7b9994fb08ee3746c3aa298d294388789759bd8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): packages/ai/src/api/azure-openai-responses.ts:55 \u00B7 packages/ai/src/api/openai-codex-responses.ts:254 \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/ai/src/api/azure-openai-responses.ts"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d514452c87b29acff3e21dbe095a9671dedaf1a20f63042a0b9d5eb4f73b932"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): packages/ai/src/api/openai-completions.ts:711 \u00B7 packages/ai/src/api/openai-responses.ts:267 \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/ai/src/api/openai-completions.ts"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"199a3d266616540c84ad9a3e80aede311b1c2466dcfb1ba3ada35cef2ace4ce6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (20 matched lines \u00D7 2 locations): packages/chord/src/delta/index.ts:602 \u00B7 packages/chord/src/delta/index.ts:638 \u2014 the two spans are one implementation copied and then locally edited \u2014 128 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/chord/src/delta/index.ts"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"95ff4375cfb20c1b846c09d5b5a1316d0dbbea2a98c1f40573de710610beae39"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): packages/coding-agent/src/core/export-html/template.js:226 \u00B7 packages/coding-agent/src/core/export-html/template.js:599 \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/coding-agent/src/core/export-html/template.js"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"d76d7d8fd2f930bb79aca7ebbc738726298acf833cbe251ba4c1394fc0aff3ec"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): packages/durable/src/storage/memory.ts:540 \u00B7 packages/durable/src/storage/memory.ts:568 \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/durable/src/storage/memory.ts"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"d776b0abb313df0e0097db31620ce4d0d513fa1e8e9ca8a4bddbda1a6bde6636"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): packages/durable/src/storage/indexeddb.ts:56 \u00B7 packages/durable/src/storage/sqlite/schema.ts:21 \u2014 the 2 copies are spread across 2 files, and what repeats is a LIST OF ENTRIES rather than behaviour \u2014 the same entries written out more than once. Extract them into one shared, exported constant and spread that constant into each site, rather than into a function the sites call: a list like this often lives in declarative metadata (a decorator\u0027s options object, a static configuration table) that a build step must be able to read statically, where a function call is not allowed. Adding an entry to one copy and not the other is the failure this prevents."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/storage/indexeddb.ts"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"5771435f50392be3687b73b35df4d6b83f19facc0dd409109e7b572ebb5bbc20"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): packages/tui/src/components/editor.ts:1440 \u00B7 packages/tui/src/components/editor.ts:1805 \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/tui/src/components/editor.ts"},"region":{"startLine":1440}}}],"partialFingerprints":{"codehealthFindingId/v1":"6226ebdff2e7329053e9ac8ec424e4fd32249202ed1a100398ab97020ee4b8dc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (18 matched lines \u00D7 2 locations): packages/ai/src/api/openai-decisions.ts:107 \u00B7 packages/ai/src/api/system-one-shared.ts:87 \u2014 the two spans are one implementation copied and then locally edited \u2014 134 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/ai/src/api/openai-decisions.ts"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"c24a657f8eaeaea690d0523293be3a58bdd9c35862429cf6cf2abc217e0e7bc7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): packages/chord/src/delta/tracker.ts:1593 \u00B7 packages/chord/src/delta/tracker.ts:1618 \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/chord/src/delta/tracker.ts"},"region":{"startLine":1593}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b2401334849e3cbfd8c283a3eab857a464563ff0ee484a4a70f75623099a6ea"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (18 matched lines \u00D7 2 locations): packages/coding-agent/src/core/agent-session.ts:3422 \u00B7 packages/coding-agent/src/modes/rpc/rpc-mode.ts:684 \u2014 the two spans are one implementation copied and then locally edited \u2014 80 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/coding-agent/src/core/agent-session.ts"},"region":{"startLine":3422}}}],"partialFingerprints":{"codehealthFindingId/v1":"79de718aa2f50c4d1def8d86ae2f6ae591ca77a128f087bf12909b77a3c12c31"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (18 matched lines \u00D7 2 locations): packages/coding-agent/src/core/extensions/runner.ts:236 \u00B7 packages/coding-agent/src/core/extensions/types.ts:2245 \u2014 the two spans are one implementation copied and then locally edited \u2014 176 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/coding-agent/src/core/extensions/runner.ts"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cee843de2212f6d6abb7d71beb91de4ff026f8edef4c68e35afabc89a435307"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): packages/coding-agent/src/core/resource-loader.ts:885 \u00B7 packages/coding-agent/src/core/resource-loader.ts:913 \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/coding-agent/src/core/resource-loader.ts"},"region":{"startLine":885}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fd23662a668230671853c6531eb3715d02ce36c59a165ddb224b239df54f010"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (18 matched lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/components/extension-editor.ts:122 \u00B7 packages/coding-agent/src/modes/interactive/interactive-mode.ts:4585 \u2014 the two spans are one implementation copied and then locally edited \u2014 81 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/coding-agent/src/modes/interactive/components/extension-editor.ts"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b81e31ee502fb57e521cf98bd6b52385a44fa6a466e8b313e0d87f2214525d3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): packages/ai/src/api/openai-completions.ts:767 \u00B7 packages/ai/src/api/openai-responses.ts:321 \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/ai/src/api/openai-completions.ts"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbdb6db62b36ea41d3819f5e0ab72003a8a369ff0798bbb0be6baaae7f748657"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): packages/coding-agent/src/core/package-manager.ts:396 \u00B7 packages/coding-agent/src/core/skills.ts:187 \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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"eafd23b02b5cd8c999dfe3b3ba429586cf48f822b7c05047b20556cd8bf3f6b9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): packages/tui/src/stdin-buffer.ts:349 \u00B7 packages/tui/src/stdin-buffer.ts:383 \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/tui/src/stdin-buffer.ts"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"f14fa7aee348b1af403b1803e916f1e05929347494f13e8326c11d6fc7a261f8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): packages/ai/src/auth/oauth/anthropic.ts:160 \u00B7 packages/ai/src/auth/oauth/anthropic.ts:202 \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/ai/src/auth/oauth/anthropic.ts"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"9679334be222996d40468e1d7c5d41ed7fad48c63a73288de6eadc16893e427b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): packages/ai/src/compat.ts:252 \u00B7 packages/ai/src/compat.ts:278 \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/ai/src/compat.ts"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"d65cc953b503e4c7c34d6831742f36c9370561506fdd5451a602eaf1c846f1a7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): packages/ai/src/models-store.ts:28 \u00B7 packages/coding-agent/src/core/models-store.ts:26 \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/ai/src/models-store.ts"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"c681b9748f0580932f736d826acfe4924583018dd7255e2f1c071da60564181d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): packages/coding-agent/src/core/agent-session.ts:2878 \u00B7 packages/coding-agent/src/core/agent-session.ts:3207 \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/coding-agent/src/core/agent-session.ts"},"region":{"startLine":2878}}}],"partialFingerprints":{"codehealthFindingId/v1":"221b7f95fa6e6c0c1f4069f0e138e10e0fe20664f2e1355c3b6ad07d1445d9e8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (16 matched lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/components/show-images-selector.ts:22 \u00B7 packages/coding-agent/src/modes/interactive/components/theme-selector.ts:32 \u2014 the two spans are one implementation copied and then locally edited \u2014 87 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/coding-agent/src/modes/interactive/components/show-images-selector.ts"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc9fd72f239138fba7c1ff7230833160d2d801c57f5debf3475f99f68a1feb3e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/interactive-mode.ts:3322 \u00B7 packages/coding-agent/src/modes/interactive/interactive-mode.ts:4472 \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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":3322}}}],"partialFingerprints":{"codehealthFindingId/v1":"246b364ae8136f7a0ce5547ec4d94ca6eb2fad63f519902573aafffe87bd9686"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): packages/durable/src/env/node.ts:414 \u00B7 packages/env/src/remote-env.ts:311 \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/durable/src/env/node.ts"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"41f835e1a2ded34a796e1953f182f0aef4f96825ffe0324c931c0782f3622ac8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): packages/tui/src/tui.ts:1286 \u00B7 packages/tui/src/tui.ts:1308 \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/tui/src/tui.ts"},"region":{"startLine":1286}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad70d34275ca5476d21500fe58aeb993a67236f04b1a1888c76ae1aeea9dfc76"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (16 matched lines \u00D7 2 locations): scripts/check-runtime-deps.mjs:64 \u00B7 scripts/check-ts-relative-imports.mjs:77 \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":"scripts/check-runtime-deps.mjs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b07d46d97c5bdb39dd38d2241191836bbeb5c394091c202e459b4aa8f4d73ec"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (15 matched lines \u00D7 2 locations): packages/ai/src/auth/oauth/kimi-coding.ts:70 \u00B7 packages/ai/src/auth/oauth/kimi-coding.ts:152 \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/ai/src/auth/oauth/kimi-coding.ts"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"4581bfdb11434b40d168c0a36aeacf409c6d90d8c17e55d9397606762e7ddc5b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/ai/src/models.ts:384 \u00B7 packages/coding-agent/src/core/model-runtime.ts:157 \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/ai/src/models.ts"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c0534b7d074c2328fbb9a0f4794c1cf7ef9ca061feae63197656a0c2909ea97"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (15 matched lines \u00D7 2 locations): packages/ai/src/utils/provider-retry.ts:77 \u00B7 packages/coding-agent/src/extensions/llama/client.ts:73 \u2014 the two spans are one implementation copied and then locally edited \u2014 96 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/ai/src/utils/provider-retry.ts"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bd0aa8f7e4c8e4df969bf662185e093254c53a25161eddef2d0c9777c6dc9d9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/ai/src/utils/validation.ts:61 \u00B7 packages/ai/src/utils/validation.ts:76 \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/ai/src/utils/validation.ts"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe73629a2ceea2b084f4151766cd368f6ca8de3210111503b2cc4146015253d7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/coding-agent/src/core/export-html/ansi-to-html.ts:138 \u00B7 packages/coding-agent/src/core/export-html/ansi-to-html.ts:158 \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/coding-agent/src/core/export-html/ansi-to-html.ts"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"d94803940c48930825e13041e47d014b0a7dad44ce35f11dddff7b7a53956049"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/coding-agent/src/core/settings-manager.ts:204 \u00B7 packages/coding-agent/src/core/trust-manager.ts:147 \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/coding-agent/src/core/settings-manager.ts"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"735112c993388fc16d728f8c91de35429a7e6ef17367e48ebf3b85ccbe1bca9f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/coding-agent/src/extensions/codemode/renderer.ts:127 \u00B7 packages/coding-agent/src/extensions/mcp/tools.ts:366 \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/coding-agent/src/extensions/codemode/renderer.ts"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"834e4d2e371e2b6763480b322e0ea41973a5c963b1369a3821d3783db7075721"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/coding-agent/src/extensions/tool-search/tool.ts:87 \u00B7 packages/durable/src/tool-search/tool-search.ts:32 \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/coding-agent/src/extensions/tool-search/tool.ts"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"03e205f063bacb03993fa45f4ac146e200403ef2f765ccdd51de23c3a0e41dda"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/interactive-mode.ts:3488 \u00B7 packages/coding-agent/src/modes/interactive/interactive-mode.ts:4011 \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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":3488}}}],"partialFingerprints":{"codehealthFindingId/v1":"12f71cea251976e697dc1abe8a61759322718daed4312a23cad5322325445687"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (15 matched lines \u00D7 2 locations): packages/coding-agent/src/utils/clipboard-image.ts:92 \u00B7 packages/coding-agent/src/utils/clipboard-image.ts:175 \u2014 the two spans are one implementation copied and then locally edited \u2014 121 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/coding-agent/src/utils/clipboard-image.ts"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"1453a3a407cfb8eddb103faadd17dd46b9002a87a097bdd46b2068f397410bd7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/coding-agent/src/utils/shell.ts:220 \u00B7 packages/durable/src/env/node.ts:283 \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/coding-agent/src/utils/shell.ts"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"6956eb8b2ad916a44a585bcdfa54cbce0b787fffcbe516c56512aaa79eaac78b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/durable/src/storage/indexeddb.ts:319 \u00B7 packages/durable/src/storage/sqlite/storage.ts:135 \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/durable/src/storage/indexeddb.ts"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"0827c68f75edb5444a354ef1f0f0eafeec928d58adc0384ab4095dd3c3aa32b8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/durable/src/storage/indexeddb.ts:774 \u00B7 packages/durable/src/storage/sqlite/storage.ts:585 \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/durable/src/storage/indexeddb.ts"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"e64b15f79c77dc36dfc0a3ee49231a2198c7500d1918aaf5c16cfed3dd0ccc84"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3 locations): packages/durable/src/storage/memory.ts:432 \u00B7 packages/durable/src/storage/memory.ts:540 \u00B7 packages/durable/src/storage/memory.ts:568 \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/durable/src/storage/memory.ts"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"48cb590ee38ad63ddff0b3b90efd4200593a6f5869a0bb0c4d8440b0b13ecb61"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): packages/tui/src/components/editor.ts:766 \u00B7 packages/tui/src/components/editor.ts:787 \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/tui/src/components/editor.ts"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"40f8296ec613fbdaf4109a8ade070b6ef115b052de46571c0ee8d5b0427230a5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): scripts/edit-tool-stats.mjs:478 \u00B7 scripts/edit-tool-stats.mjs:498 \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":"scripts/edit-tool-stats.mjs"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"27bec5f2b7f3c1708d3718d16a6f2a57a2a6fdb113ad4f518de5a7da4f4841f9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 6 locations): packages/ai/scripts/generate-models.ts:1864 \u00B7 packages/ai/scripts/generate-models.ts:1912 \u00B7 packages/ai/scripts/generate-models.ts:1934 \u00B7 packages/ai/scripts/generate-models.ts:2066 \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/ai/scripts/generate-models.ts"},"region":{"startLine":1864}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae809af11af29c242d537945d613d92fe3a47715db767172738893e6b0ab2639"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/ai/src/api/anthropic-messages.ts:983 \u00B7 packages/ai/src/api/bedrock-converse-stream.ts:563 \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/ai/src/api/anthropic-messages.ts"},"region":{"startLine":983}}}],"partialFingerprints":{"codehealthFindingId/v1":"402cbe6b8c6617e92f5a77629f3613785a4d5948b4a11ad87d374f3f2a302625"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/ai/src/api/classifier-shared.ts:14 \u00B7 packages/ai/src/api/llama-cpp-classify.ts:74 \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/ai/src/api/classifier-shared.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec73191c5f0f2fbb17e2fa3ec2dd60d1bc2066d6776492cff207c9d1679c3bd4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3 locations): packages/ai/src/api/mistral-conversations.ts:640 \u00B7 packages/ai/src/api/mistral-conversations.ts:665 \u00B7 packages/ai/src/api/mistral-conversations.ts:684 \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/ai/src/api/mistral-conversations.ts"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2b3d4a77a6a1ad0b3c6194b1f3db4fa976fb4b7fb87d65016587b4154cb598a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/ai/src/api/openai-completions.ts:84 \u00B7 packages/ai/src/api/openai-responses.ts:58 \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/ai/src/api/openai-completions.ts"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"207bb4055bdc98fc9c65d172be1570e4c9f1ccdb918ff3b5b2048675e440e99c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/ai/src/models.ts:966 \u00B7 packages/coding-agent/src/core/model-runtime.ts:775 \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/ai/src/models.ts"},"region":{"startLine":966}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd0d55827d21561e6d9590275dc5c7ca173c69c78bea92d50e765b5f66b4be11"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/ai/src/models.ts:1002 \u00B7 packages/coding-agent/src/core/model-runtime.ts:810 \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/ai/src/models.ts"},"region":{"startLine":1002}}}],"partialFingerprints":{"codehealthFindingId/v1":"b85826c5e63ae4c3cb4aa3ce50b252eb767235bd7e1a9e4cd58573af0e72cf0b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/ai/src/providers/faux.ts:387 \u00B7 packages/ai/src/providers/faux.ts:410 \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/ai/src/providers/faux.ts"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"d00eb8162b7af311afc83d9b6fb51e76c0e277233b72fb636dc1d41293925788"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3 locations): packages/coding-agent/src/core/extensions/runner.ts:1353 \u00B7 packages/coding-agent/src/core/extensions/runner.ts:1384 \u00B7 packages/coding-agent/src/core/extensions/runner.ts:1412 \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/coding-agent/src/core/extensions/runner.ts"},"region":{"startLine":1353}}}],"partialFingerprints":{"codehealthFindingId/v1":"adfafd1c78f3f33eef62f6dcca874c5fac28447d55a184e63b02fa349bf3034b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4 locations): packages/coding-agent/src/core/package-manager.ts:354 \u00B7 packages/coding-agent/src/core/package-manager.ts:429 \u00B7 packages/coding-agent/src/core/package-manager.ts:629 \u00B7 packages/coding-agent/src/core/skills.ts:233 \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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"b29b9722e30fc19aa96e13d6fb705778ab33cefe91736f7b84de023a8846a167"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/coding-agent/src/extensions/llama/ui.ts:143 \u00B7 packages/coding-agent/src/modes/interactive/components/model-selector.ts:302 \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/coding-agent/src/extensions/llama/ui.ts"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3b47dd4a031135d462769ead1f737f27a46c59369a4a1e07f5d17002e09c25a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/coding-agent/src/extensions/llama/ui.ts:289 \u00B7 packages/coding-agent/src/extensions/mcp/ui.ts:82 \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/coding-agent/src/extensions/llama/ui.ts"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cd8d104acbe09ae1a87e17e3cb0014bc3508c1614df6247660b75a12826b2cc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (14 matched lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/components/bash-execution.ts:60 \u00B7 packages/coding-agent/src/modes/interactive/components/skill-invocation-message.ts:19 \u2014 the two spans are one implementation copied and then locally edited \u2014 64 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/coding-agent/src/modes/interactive/components/bash-execution.ts"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e6b89b720c5a48b68db8bfd3525ad06b095917014986fe8f4f453211a341ce1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/components/config-selector.ts:543 \u00B7 packages/coding-agent/src/modes/interactive/components/config-selector.ts:608 \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/coding-agent/src/modes/interactive/components/config-selector.ts"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"420f36270898ce29b7c77e0b2834df12008933de34a9b5b8a779739e649b505f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (14 matched lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/components/custom-entry.ts:18 \u00B7 packages/coding-agent/src/modes/interactive/components/skill-invocation-message.ts:16 \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/coding-agent/src/modes/interactive/components/custom-entry.ts"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"657a10023589ee321c8908315674240fe2591cde1784fe27ee58a64ed9e4ee9d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/theme/theme.ts:930 \u00B7 packages/coding-agent/src/modes/interactive/theme/theme.ts:1038 \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/coding-agent/src/modes/interactive/theme/theme.ts"},"region":{"startLine":930}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d79c3480863b57ce2d0985b9e4c44dbb6c640ac59eb4874a527daa226a26d4b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/coding-agent/src/utils/exif-orientation.ts:22 \u00B7 packages/durable/src/images/exif.ts:14 \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/coding-agent/src/utils/exif-orientation.ts"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"44702359d74a409bafe61db5f8c9d5ed3e99933fefd4cdac9f4af278369b54e1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/durable/src/codemode/models.ts:256 \u00B7 packages/durable/src/codemode/models.ts:272 \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/durable/src/codemode/models.ts"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"22c89bd22b9e2f10cbc9ef785acbcc3b391d1d33f66f4a622b404a10ce2ce14e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/durable/src/testing/storage-conformance.ts:380 \u00B7 packages/durable/src/testing/storage-conformance.ts:1134 \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/durable/src/testing/storage-conformance.ts"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7535696a35cb3e4483e8d6e78e4404027d0c5f4664dad9f8fa0646bf3cfa2dd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/durable/src/testing/storage-conformance.ts:471 \u00B7 packages/durable/src/testing/storage-conformance.ts:494 \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/durable/src/testing/storage-conformance.ts"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"de631379162ccd38f03d5d3e2d51e8d30f75ebbe47cf7c4753d5468c2f4e45c5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): packages/tui/src/utils.ts:124 \u00B7 packages/tui/src/utils.ts:1211 \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/tui/src/utils.ts"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"27271b94af4d38c6cc48df757782ecebb63726830646590ea87981f25117b9f1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): scripts/check-pinned-deps.mjs:9 \u00B7 scripts/check-ts-relative-imports.mjs:18 \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":"scripts/check-pinned-deps.mjs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"72be3e0b0901d4feb45981d9742915c202098209e5e901253b2cb2db4a1f7931"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (13 matched lines \u00D7 2 locations): packages/ai/src/api/anthropic-messages.ts:1426 \u00B7 packages/ai/src/api/google-shared.ts:225 \u2014 the two spans are one implementation copied and then locally edited \u2014 70 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/ai/src/api/anthropic-messages.ts"},"region":{"startLine":1426}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ece8c71b194b5a3f4a348d0ab4f9313b86a1b17d3f606c3709121ed818e862f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/ai/src/api/llama-cpp-classify.ts:423 \u00B7 packages/ai/src/api/openai-decisions.ts:157 \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/ai/src/api/llama-cpp-classify.ts"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf6fb24bca8ba9f4777bd7b7bc6b4f9708ae1771c9f5f0ac6b79e78f2f537abb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/ai/src/api/openai-codex-responses.ts:182 \u00B7 packages/coding-agent/src/utils/sleep.ts:4 \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/ai/src/api/openai-codex-responses.ts"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a86d0941658ce07d54ec0a1d777e167cb21f3f0724e3224f555e6ecfc4cf713"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/ai/src/api/pi-messages.ts:201 \u00B7 packages/ai/src/api/pi-messages.ts:216 \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/ai/src/api/pi-messages.ts"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"f915020d0eb2feca1f285e7f409ae9f6585ebba07abf65e71789d31649b3e07e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/ai/src/auth/oauth/anthropic.ts:125 \u00B7 packages/ai/src/auth/oauth/anthropic.ts:263 \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/ai/src/auth/oauth/anthropic.ts"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"248699b538ebd762ee16a3bbab6c3eebe4be264c958f88d35b7a520d431e31bf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/ai/src/auth/oauth/radius.ts:104 \u00B7 packages/ai/src/auth/oauth/radius.ts:195 \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/ai/src/auth/oauth/radius.ts"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"852dade61c57517c06cc6c76960dbf81bce145276db6208d015a3fb30f918713"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (13 matched lines \u00D7 2 locations): packages/ai/src/models.ts:807 \u00B7 packages/chord/src/context/index.ts:142 \u2014 the two spans are one implementation copied and then locally edited \u2014 74 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/ai/src/models.ts"},"region":{"startLine":807}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1ba8e61260f1bc9384137198a0dea1a4a4d896c16e1522f8a0509955d8aa7df"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/coding-agent/scripts/generate-references.ts:162 \u00B7 packages/coding-agent/scripts/generate-schemas.ts:149 \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/coding-agent/scripts/generate-references.ts"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f7ddb81af1d07e874f54faf430d883c42237996fa41b5e279bc2826b8685bdd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/coding-agent/src/core/agent-session.ts:2911 \u00B7 packages/coding-agent/src/core/agent-session.ts:3237 \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/coding-agent/src/core/agent-session.ts"},"region":{"startLine":2911}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b34b7acdc351df418aea9c3da764ed0fdfd194b84e9e0b92634a1ff3ebea17e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/coding-agent/src/core/resource-loader.ts:1248 \u00B7 packages/coding-agent/src/core/resource-loader.ts:1262 \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/coding-agent/src/core/resource-loader.ts"},"region":{"startLine":1248}}}],"partialFingerprints":{"codehealthFindingId/v1":"08ad3abaacf634be9f67f26de819d67801bc7bd3fa3bf7820f825dc26e19c5e6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/coding-agent/src/core/tools/find.ts:155 \u00B7 packages/coding-agent/src/core/tools/find.ts:287 \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/coding-agent/src/core/tools/find.ts"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"450e43194886b51e523cc9f1cc31194556056780991f200a9bf0542b70052617"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/components/config-selector.ts:403 \u00B7 packages/coding-agent/src/modes/interactive/components/user-message-selector.ts:34 \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/coding-agent/src/modes/interactive/components/config-selector.ts"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef370acbc32ac3aef26795340e029c6260da95326bcc46fe5438161776480268"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (13 matched lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/components/oauth-selector.ts:194 \u00B7 packages/tui/src/components/settings-list.ts:232 \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/coding-agent/src/modes/interactive/components/oauth-selector.ts"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf6218b78a79289f56599ecddc47f85f2644f8bbbba5b0dabaccdb970d8a5942"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/durable/src/env/node.ts:1010 \u00B7 packages/durable/src/env/node.ts:1026 \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/durable/src/env/node.ts"},"region":{"startLine":1010}}}],"partialFingerprints":{"codehealthFindingId/v1":"c72acdafeff48fbda587673df4420ddf25a5d04bf369e544779af4d8610b03b1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): packages/durable/src/harness/task-graph.ts:103 \u00B7 packages/durable/src/harness/view.ts:113 \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/durable/src/harness/task-graph.ts"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"497ce63a8301a7a9950abc7f0362b34f5ce4b063d94748031e2ecce4f99d27ab"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3 locations): packages/durable/src/session/session.ts:1176 \u00B7 packages/durable/src/storage/indexeddb.ts:512 \u00B7 packages/durable/src/storage/sqlite/storage.ts:254 \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/durable/src/session/session.ts"},"region":{"startLine":1176}}}],"partialFingerprints":{"codehealthFindingId/v1":"a476da1e0e7885b6d22fa50eb08175856656d40c378761b3add7e74ca45811f3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): scripts/profile-coding-agent-node.mjs:394 \u00B7 scripts/profile-coding-agent-node.mjs:454 \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/profile-coding-agent-node.mjs"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"12ad3df467122163eea8123d3109f7fcf7f86a4411648baaad6069c0b2c6f11f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): scripts/release-notes.mjs:116 \u00B7 scripts/release.mjs:131 \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":"scripts/release-notes.mjs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b470c157ae95a84f92a0a20519bd5b8f9d237a8edb29df0ba997835b18ea5ec"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/agent/src/agent-loop.ts:489 \u00B7 packages/agent/src/agent-loop.ts:601 \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/agent/src/agent-loop.ts"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bb081f8174dbab3414959212221803953f7b75c2193658282de9c36cd6df04b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/ai/src/api/azure-openai-responses.ts:183 \u00B7 packages/ai/src/api/openai-codex-responses.ts:549 \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/ai/src/api/azure-openai-responses.ts"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b656e3125bf457b5df5152c98f4f9b4b4b9a1efcce06ff5db9d94bd0a7944a6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3 locations): packages/ai/src/api/bedrock-converse-stream.ts:774 \u00B7 packages/ai/src/api/bedrock-converse-stream.ts:789 \u00B7 packages/ai/src/api/bedrock-converse-stream.ts:806 \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/ai/src/api/bedrock-converse-stream.ts"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"dee6048cd2f222f9ad5f45e52f2b469d4155c46089ceb61ee4823e76e5259e4c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/ai/src/utils/validation.ts:282 \u00B7 packages/coding-agent/src/core/model-config.ts:139 \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/ai/src/utils/validation.ts"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"abfbce4203d87adc278b26b0f0b394392bd7a044254cbc9344d6515c113cf93f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/coding-agent/src/core/agent-session-services.ts:161 \u00B7 packages/coding-agent/src/core/agent-session-services.ts:173 \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/coding-agent/src/core/agent-session-services.ts"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b2c5a354827dc31f97886bf7b9351d8fe8c8e6e7d5c363851e3132fb9ba30cf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/coding-agent/src/core/compaction/compaction.ts:736 \u00B7 packages/coding-agent/src/core/compaction/compaction.ts:1086 \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/coding-agent/src/core/compaction/compaction.ts"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"9af15c5bc17e82fca264036dbd01f78b9f23b9286b262b7942e2245c0c514871"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 6 locations): packages/coding-agent/src/core/extensions/runner.ts:1175 \u00B7 packages/coding-agent/src/core/extensions/runner.ts:1353 \u00B7 packages/coding-agent/src/core/extensions/runner.ts:1384 \u00B7 packages/coding-agent/src/core/extensions/runner.ts:1412 \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/coding-agent/src/core/extensions/runner.ts"},"region":{"startLine":1175}}}],"partialFingerprints":{"codehealthFindingId/v1":"faa5d0974455613ff530d2b242440e4d4a833a804988a5f9b3132967ad71104a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/coding-agent/src/extensions/codemode/execute.ts:131 \u00B7 packages/durable/src/codemode/models.ts:73 \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/coding-agent/src/extensions/codemode/execute.ts"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"43e5d9d02cea2eb98c2a141d5746d96ed35261161d46e3b3b63b3a62c0608357"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/coding-agent/src/extensions/codemode/execute.ts:681 \u00B7 packages/durable/src/codemode/codemode.ts:936 \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/coding-agent/src/extensions/codemode/execute.ts"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"739ab9b157d1e22ed9b962e20501a2463607df065057d9c89a51295c2580d438"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/coding-agent/src/extensions/llama/ui.ts:64 \u00B7 packages/coding-agent/src/extensions/mcp/ui.ts:58 \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/coding-agent/src/extensions/llama/ui.ts"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbf1fae3cc3c30efc434459b99eb262778947f3ec6f6f3b822269c97f46988ef"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/components/armin.ts:299 \u00B7 packages/coding-agent/src/modes/interactive/components/armin.ts:364 \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/coding-agent/src/modes/interactive/components/armin.ts"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"05d78378c597f8e001f609e444e9427a878086970d6b9b69cd63dff23d989764"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (12 matched lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/components/custom-message.ts:23 \u00B7 packages/coding-agent/src/modes/interactive/components/skill-invocation-message.ts:16 \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/coding-agent/src/modes/interactive/components/custom-message.ts"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"10379f97c68f613022d235162b5228b1e3bdea3c736b0363af232a2b4708dc3a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/components/model-selector.ts:40 \u00B7 packages/coding-agent/src/modes/interactive/components/oauth-selector.ts:58 \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/coding-agent/src/modes/interactive/components/model-selector.ts"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7ce59c1495090693ca099e6ae7078cf71102e147d917f0d44c5295e8ef75697"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/coding-agent/src/utils/shell.ts:13 \u00B7 packages/durable/src/env/node.ts:209 \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/coding-agent/src/utils/shell.ts"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"55cbd75b9acfcad8e84fa85ffab8f1d2ccf71f4cc5b6714e3dd1ca30270ab945"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/durable/src/storage/indexeddb.ts:178 \u00B7 packages/durable/src/storage/indexeddb.ts:205 \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/durable/src/storage/indexeddb.ts"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"32e72da8e414139abe7788f4c30fbb5b789c85bc7b19e3254a697f31d2a4a20b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/env/src/remote-env.ts:230 \u00B7 packages/env/src/remote-env.ts:283 \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/env/src/remote-env.ts"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8b76d1beaa83f9c6f88043bcc51d4d8fa5cedd9046faf11a92de90af9287d9c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (12 matched lines \u00D7 2 locations): packages/evals/evals/custom-provider.docs.eval.ts:60 \u00B7 packages/evals/evals/tui.docs.eval.ts:264 \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/evals/evals/custom-provider.docs.eval.ts"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1c2f3b02cf806c560390197379dfcef2692c90996a0477aea696ee9642eaaee"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (12 matched lines \u00D7 2 locations): packages/evals/evals/openai-provider.docs.eval.ts:50 \u00B7 packages/evals/evals/tui.docs.eval.ts:264 \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/evals/evals/openai-provider.docs.eval.ts"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"d242a2e7ad2ecb9164587c8d5a0fa20198f9d63ab413d39f60680ca106aaebef"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/tui/src/autocomplete.ts:468 \u00B7 packages/tui/src/autocomplete.ts:484 \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/tui/src/autocomplete.ts"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"4618b17a9faed0765555b2093cff76f46e9c99a523868157cf9d2b243dfb97d6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 6 locations): packages/tui/src/components/editor.ts:820 \u00B7 packages/tui/src/components/editor.ts:845 \u00B7 packages/tui/src/components/editor.ts:868 \u00B7 packages/tui/src/components/input.ts:125 \u00B7 \u002B2 more site(s) not listed \u2014 the 6 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/tui/src/components/editor.ts"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"87631269635be1d0dd345e99efa9fdf3b14ff31b4c938067d26eedc680f33527"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/tui/src/components/editor.ts:1982 \u00B7 packages/tui/src/components/editor.ts:2176 \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/tui/src/components/editor.ts"},"region":{"startLine":1982}}}],"partialFingerprints":{"codehealthFindingId/v1":"22b5573c60c8bcecd636631d9c9c8b0e5cd2ae373f1d387ba538d08ab6d87151"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): packages/tui/src/terminal-image.ts:600 \u00B7 packages/tui/src/terminal-image.ts:622 \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/tui/src/terminal-image.ts"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8e54dbbb0281ab7ef052bb17d593e51d80e45600640ea4b768bacc033dc9d15"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/agent/vitest.config.ts:6 \u00B7 packages/ai/vitest.config.ts:4 \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/agent/vitest.config.ts"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ea944fd4970cec79d977e16e03a7776f41c402314533a7659d4a257ae2822ed"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3 locations): packages/ai/scripts/generate-models.ts:1907 \u00B7 packages/ai/scripts/generate-models.ts:1929 \u00B7 packages/ai/scripts/generate-models.ts:2084 \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/ai/scripts/generate-models.ts"},"region":{"startLine":1907}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd7d0ec5bc1b5e63b6e7b0792fb58ceb18e78ab9e8f5886a53e753354dec869c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/ai/src/api/bedrock-converse-stream.ts:545 \u00B7 packages/ai/src/api/google-vertex.ts:314 \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/ai/src/api/bedrock-converse-stream.ts"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6062f0eaf95c3c3a8dd9405a585528914424c82ba7d867b7d9282f355de54ed"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/ai/src/api/bedrock-converse-stream.ts:838 \u00B7 packages/ai/src/api/openai-responses.ts:75 \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/ai/src/api/bedrock-converse-stream.ts"},"region":{"startLine":838}}}],"partialFingerprints":{"codehealthFindingId/v1":"518184f271c8a0a8af9629a39e5fe6db801704dea34b14b8c81bc391d585556d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/ai/src/api/openai-codex-responses.ts:1212 \u00B7 packages/ai/src/api/openai-codex-responses.ts:1255 \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/ai/src/api/openai-codex-responses.ts"},"region":{"startLine":1212}}}],"partialFingerprints":{"codehealthFindingId/v1":"c60034abca82a107f4e95abc913d737303c2b2a404acd5fd589a35aea657654b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/ai/src/api/openai-responses-shared.ts:776 \u00B7 packages/ai/src/api/openai-responses-shared.ts:787 \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/ai/src/api/openai-responses-shared.ts"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"1136d208c7edbbcd7b57696aabceddad1687f5763565bb297579da0fc5d5a75b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (11 matched lines \u00D7 2 locations): packages/ai/src/providers/images/register-builtins.ts:18 \u00B7 packages/ai/src/utils/model-operations.ts:55 \u2014 the two spans are one implementation copied and then locally edited \u2014 70 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/ai/src/providers/images/register-builtins.ts"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"07e41bb8af5a0f8a15079e2e4accfc1a2bd2bb18a4d5bc5c6b0dda15c95ff31a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (11 matched lines \u00D7 2 locations): packages/ai/src/utils/provider-env.ts:16 \u00B7 packages/coding-agent/src/bun/restore-sandbox-env.ts:23 \u2014 the two spans are one implementation copied and then locally edited \u2014 77 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/ai/src/utils/provider-env.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4c41b79b5e383b1a2c4c1eb9e2d806bc6a5da5e9e36528f72fca1cb991d5268"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/coding-agent/src/core/agent-session.ts:1381 \u00B7 packages/coding-agent/src/modes/rpc/rpc-client.ts:167 \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/coding-agent/src/core/agent-session.ts"},"region":{"startLine":1381}}}],"partialFingerprints":{"codehealthFindingId/v1":"91d739c0a0acbbcbf64994242fc5cce0bc0cadc91fc85ed92ac773ee50254806"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/coding-agent/src/core/export-html/index.ts:271 \u00B7 packages/coding-agent/src/core/export-html/index.ts:305 \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/coding-agent/src/core/export-html/index.ts"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b2ad2d436da3bb7452e9dc749ad9f48512fc0076ddc711c1fe1118ba6ae8669"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/coding-agent/src/core/export-html/template.js:89 \u00B7 packages/coding-agent/src/core/session-manager.ts:1544 \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/coding-agent/src/core/export-html/template.js"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d7ef6477faaf623f90daf77e4f368b868a3d41a55a3d23009a9ee9492ee0b61"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/coding-agent/src/core/extensions/runner.ts:476 \u00B7 packages/coding-agent/src/core/extensions/runner.ts:493 \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/coding-agent/src/core/extensions/runner.ts"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c52b16bbbae367b55f17f352d28beb022ec937c760c9302fe2bdcac1709fff5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/coding-agent/src/core/model-runtime.ts:805 \u00B7 packages/coding-agent/src/core/model-runtime.ts:823 \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/coding-agent/src/core/model-runtime.ts"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"31a4ff3718f3402f62c2088a932cad06f9e71c3ae80fdbad794a605b4a1d8e2b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/coding-agent/src/core/package-manager.ts:938 \u00B7 packages/coding-agent/src/core/package-manager.ts:1238 \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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":938}}}],"partialFingerprints":{"codehealthFindingId/v1":"346706b22ddc1121fe94d30cb6fd556b649602812bc31878c3d01413bb1c1c87"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/coding-agent/src/core/provider-composer.ts:657 \u00B7 packages/coding-agent/src/core/provider-composer.ts:669 \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/coding-agent/src/core/provider-composer.ts"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8456c27798fad26e46fe389b128e1a614d0989567f0f94e98d9119e880b58cf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/coding-agent/src/core/remote-catalog-provider.ts:121 \u00B7 packages/coding-agent/src/core/remote-catalog-provider.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/coding-agent/src/core/remote-catalog-provider.ts"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"6db282c6e1a3d0353a4318525df601df8a2123f7d10e792851213e9142372e75"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/coding-agent/src/core/resource-loader.ts:1294 \u00B7 packages/coding-agent/src/core/resource-loader.ts:1307 \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/coding-agent/src/core/resource-loader.ts"},"region":{"startLine":1294}}}],"partialFingerprints":{"codehealthFindingId/v1":"81746e02156bbc9482a398403ba701e1a20bdf6c954d2f5fd22e22c41a5af751"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/components/armin.ts:137 \u00B7 packages/coding-agent/src/modes/interactive/components/armin.ts:166 \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/coding-agent/src/modes/interactive/components/armin.ts"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"a066b921c33e7276add58bf2b9c99035cac3e72ecd435109985a674663d729e6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/interactive-mode.ts:3873 \u00B7 packages/coding-agent/src/modes/interactive/interactive-mode.ts:3884 \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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":3873}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ab58702bbdeaeee0cfc73e58ce0f1a69c1f3113a397fabbeed9be459c8a9443"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (11 matched lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/session-share.ts:114 \u00B7 packages/coding-agent/src/modes/interactive/session-share.ts:167 \u2014 the two spans are one implementation copied and then locally edited \u2014 75 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/coding-agent/src/modes/interactive/session-share.ts"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"b383c657efc3e95cc38846b4227319614e214d215097b2f3954d5be1f421509c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/coding-agent/src/modes/print-mode.ts:47 \u00B7 packages/coding-agent/src/modes/rpc/rpc-mode.ts:363 \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/coding-agent/src/modes/print-mode.ts"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"e772b22cff9d9202c89bdaf4a50a1feb6066bb0efc32228284b390ae1c93e33d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (11 matched lines \u00D7 2 locations): packages/coding-agent/src/utils/shell.ts:51 \u00B7 packages/coding-agent/src/utils/shell.ts:66 \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/coding-agent/src/utils/shell.ts"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac7389a729964a3c980761d0eddeae1b0523c658a27208c66cecce9afd7956ee"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/durable/src/env/node.ts:626 \u00B7 packages/env/src/remote-env.ts:825 \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/durable/src/env/node.ts"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ce65d99728038f9ba4b1aad6a33e37a3b7e15c9a114c246d707dc795811c61b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (11 matched lines \u00D7 2 locations): packages/durable/src/harness/harness.ts:328 \u00B7 packages/durable/src/harness/types.ts:829 \u2014 the two spans are one implementation copied and then locally edited \u2014 121 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/durable/src/harness/harness.ts"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f29069f1901c7cd7dc330022076c8ef055fd2e2242b7fea4bde9da905b252cf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/durable/src/storage/indexeddb.ts:76 \u00B7 packages/durable/src/storage/sqlite/storage.ts:52 \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/durable/src/storage/indexeddb.ts"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f83703c2e0423ef6094774944aefa7819f5a81a36b19195931e0ede61572cc6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/durable/src/storage/indexeddb.ts:222 \u00B7 packages/durable/src/storage/sqlite/storage.ts:83 \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/durable/src/storage/indexeddb.ts"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d85253f9e99cc86f6f250177baccbec21c5e6736504b5e0375d92cd44d3c934"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3 locations): packages/durable/src/storage/indexeddb.ts:1076 \u00B7 packages/durable/src/storage/indexeddb.ts:1088 \u00B7 packages/durable/src/storage/indexeddb.ts:1102 \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/durable/src/storage/indexeddb.ts"},"region":{"startLine":1076}}}],"partialFingerprints":{"codehealthFindingId/v1":"69b61d7079152b8fb4a936ef52cdae6d409d6b4b7afe8e617a781b2e770dcb35"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (11 matched lines \u00D7 2 locations): packages/evals/evals/models.docs.eval.ts:30 \u00B7 packages/evals/evals/tui.docs.eval.ts:264 \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/evals/evals/models.docs.eval.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"e718b5e686fb75b95318e86ba10d1032026a3e33040bba9f743fe1486f6dd827"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3 locations): packages/tui/src/components/editor.ts:1243 \u00B7 packages/tui/src/components/editor.ts:1450 \u00B7 packages/tui/src/components/editor.ts:1815 \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/tui/src/components/editor.ts"},"region":{"startLine":1243}}}],"partialFingerprints":{"codehealthFindingId/v1":"9602bff74c6279a4a7ebe492d950611d3fc72df675a9f35f99b261c91734a0de"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/tui/src/components/markdown.ts:414 \u00B7 packages/tui/src/components/markdown.ts:448 \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/tui/src/components/markdown.ts"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"76f3e53ff372c7d39efc804971a79dc969a24fab43d3b5edc1054c08f9022083"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/tui/src/keys.ts:891 \u00B7 packages/tui/src/keys.ts:995 \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/tui/src/keys.ts"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"e794c1f4852536716a1d129f272ec68d00c3b15097207acfb49af0732d5d0619"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/tui/src/keys.ts:919 \u00B7 packages/tui/src/keys.ts:939 \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/tui/src/keys.ts"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"683c9a685559479e11a69975f397318a504e8c4bfd67955b1a7c354d7c9305ad"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 9 locations): packages/tui/src/keys.ts:1006 \u00B7 packages/tui/src/keys.ts:1036 \u00B7 packages/tui/src/keys.ts:1048 \u00B7 packages/tui/src/keys.ts:1060 \u00B7 \u002B5 more site(s) not listed \u2014 all 9 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/tui/src/keys.ts"},"region":{"startLine":1006}}}],"partialFingerprints":{"codehealthFindingId/v1":"f25959fd57cbff252665b0ffa9b2815cb24f76d387ffa93d3bdaaa3700044f51"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4 locations): packages/tui/src/keys.ts:1035 \u00B7 packages/tui/src/keys.ts:1047 \u00B7 packages/tui/src/keys.ts:1059 \u00B7 packages/tui/src/keys.ts:1071 \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/tui/src/keys.ts"},"region":{"startLine":1035}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bb1b589a5002683318b880aac07cc14f412938574c685b78e3bc4d8413f1c74"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): packages/tui/src/layout.ts:178 \u00B7 packages/tui/src/layout.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/tui/src/layout.ts"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a3edff8810a00d45bc9187371a3fcf0121e25459bbfdfe64b309af58a9b6156"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): scripts/edit-tool-stats.mjs:110 \u00B7 scripts/read-tool-stats.mjs:133 \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":"scripts/edit-tool-stats.mjs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"d84612d90e721143b602d3508779006cd0ea07ff2a28a2fd35d06fee03568b38"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (11 matched lines \u00D7 2 locations): scripts/profile-coding-agent-node.mjs:321 \u00B7 scripts/smoke-test-codemode-binary.mjs:139 \u2014 the two spans are one implementation copied and then locally edited \u2014 58 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":"scripts/profile-coding-agent-node.mjs"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9d36c4c4f5020e7f89878c9bdfbc2b7af3f9cdde387a650c02d4a24e7e86ba7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (11 matched lines \u00D7 2 locations): scripts/stats.ts:118 \u00B7 scripts/tool-stats.ts:21 \u2014 the two spans are one implementation copied and then locally edited \u2014 104 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":"scripts/stats.ts"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fc518f9ade215bb85701c35305dd8a61ddda04b48b3a16181258939c16c9a43"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3 locations): packages/ai/src/api/anthropic-messages.ts:73 \u00B7 packages/ai/src/api/bedrock-converse-stream.ts:844 \u00B7 packages/ai/src/api/openai-responses.ts:81 \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/ai/src/api/anthropic-messages.ts"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"001830edba193c9f6380c08773fedddf92e0dbadfcda72d6297720afe510f516"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/ai/src/api/anthropic-messages.ts:495 \u00B7 packages/ai/src/api/anthropic-messages.ts:507 \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/ai/src/api/anthropic-messages.ts"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"452b9cbb425c760b2b14e836d03aeb08e8311bf934cbbfbd31bd7c2e2f538897"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/ai/src/api/mistral-conversations.ts:455 \u00B7 packages/ai/src/api/openai-codex-responses.ts:819 \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/ai/src/api/mistral-conversations.ts"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdfbbdc33d7d8f7d16d87634119895923e00bf13ceae539978cc5079467a48a3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/ai/src/api/openai-completions.ts:749 \u00B7 packages/ai/src/api/openai-responses.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/ai/src/api/openai-completions.ts"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cf4db2069e2f373ae9af8c0d136af09a3445209bea87129f56b909b8e745fa6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/ai/src/api/openai-responses-shared.ts:564 \u00B7 packages/ai/src/api/openai-responses-shared.ts:586 \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/ai/src/api/openai-responses-shared.ts"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"2972526e53575fd4284f27d7447f9c26b69f86f44da5929531613713049683fe"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4 locations): packages/ai/src/api/openai-responses-shared.ts:678 \u00B7 packages/ai/src/api/openai-responses-shared.ts:698 \u00B7 packages/ai/src/api/openai-responses-shared.ts:708 \u00B7 packages/ai/src/api/openai-responses-shared.ts:718 \u2014 all 4 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/ai/src/api/openai-responses-shared.ts"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ff00cf7565e74c26a2ef76d01404a4d571c1995784d55a9e00ef0c557493a49"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): packages/ai/src/api/openai-responses-shared.ts:326 \u00B7 packages/ai/src/api/transform-messages.ts:120 \u2014 the two spans are one implementation copied and then locally edited \u2014 64 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/ai/src/api/openai-responses-shared.ts"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"219d1661ac8ec80d561ba0fef845ac38fcf5282ff2ff9e2b697979cb88d40cbf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/ai/src/auth/oauth/github-copilot.ts:445 \u00B7 packages/ai/src/auth/oauth/kimi-coding.ts:268 \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/ai/src/auth/oauth/github-copilot.ts"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f7dd025239b30ec6d50de9cda4987d35b3ba621e69e7d26cfdb068b05cbc25d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): packages/ai/src/auth/oauth/meta.ts:124 \u00B7 packages/ai/src/auth/oauth/radius.ts:248 \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/ai/src/auth/oauth/meta.ts"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"63db6c08844650da30b5ce9a3d4f9f368c311ab84e62aa11f961959668363753"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): packages/ai/src/auth/oauth/meta.ts:176 \u00B7 packages/ai/src/auth/oauth/xai.ts:201 \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/ai/src/auth/oauth/meta.ts"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bed9b39424880f22091a13c9fd41d288ed58c9315222a171309b831b42e033e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/ai/src/compat.ts:266 \u00B7 packages/ai/src/compat.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/ai/src/compat.ts"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"e20a66c0476bd1eb5b6e0b1b9353d568860616129de850d3e181e58e52a4ce33"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/ai/src/models.ts:1186 \u00B7 packages/ai/src/models.ts:1201 \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/ai/src/models.ts"},"region":{"startLine":1186}}}],"partialFingerprints":{"codehealthFindingId/v1":"62e079f0178f486f71c3a7a7c303c3234b45ea2200e6ff46aaa5933f7af831bb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/ai/src/providers/faux.ts:577 \u00B7 packages/ai/src/providers/faux.ts:646 \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/ai/src/providers/faux.ts"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d8dd1ec5d70873ff197ef19fb13507995b37e19ac7a1c183b29b945c95e35fe"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/chord/src/connection.ts:1048 \u00B7 packages/chord/src/connection.ts:1067 \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/chord/src/connection.ts"},"region":{"startLine":1048}}}],"partialFingerprints":{"codehealthFindingId/v1":"c40dfe8679d05a3b7f2e7b823e5708130e8430e301bf69c98da7912dd8a243a0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): packages/chord/src/object.ts:547 \u00B7 packages/coding-agent/src/modes/interactive/interactive-mode.ts:6287 \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/chord/src/object.ts"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e09c0c7f745fae5a58eb238459390c75cf6eeea68b19d4d6fae5a50d4fab395"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/coding-agent/src/core/agent-session-runtime.ts:300 \u00B7 packages/coding-agent/src/core/agent-session-runtime.ts:340 \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/coding-agent/src/core/agent-session-runtime.ts"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"f07190cb9cdc340b28bd710ce652986441faf753777f1230e7428a7cbca714f1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/coding-agent/src/core/agent-session-runtime.ts:320 \u00B7 packages/coding-agent/src/core/agent-session-runtime.ts:391 \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/coding-agent/src/core/agent-session-runtime.ts"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"d334330e9ce8bc06e92427529412e922c3fa6605d7ddd7a4a33d12a3a75757f3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/coding-agent/src/core/agent-session.ts:177 \u00B7 packages/coding-agent/src/core/export-html/template.js:395 \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/coding-agent/src/core/agent-session.ts"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a7cf1b8f6194b4434d9f17dc4a99c9b0f2d999de9711d5f5d914f207730c890"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/coding-agent/src/core/agent-session.ts:2296 \u00B7 packages/coding-agent/src/core/agent-session.ts:2313 \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/coding-agent/src/core/agent-session.ts"},"region":{"startLine":2296}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b6b4ab9eeeb7b7480da87137e7a783daed00bbb3f35e41931a102da214f0e48"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): packages/coding-agent/src/core/auth-storage.ts:215 \u00B7 packages/coding-agent/src/core/trust-manager.ts:104 \u2014 the two spans are one implementation copied and then locally edited \u2014 80 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/coding-agent/src/core/auth-storage.ts"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"e72609cf6508687c74e47f986957a553e9b1f6854d67a88dc796ca63c827b2d1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/coding-agent/src/core/export-html/ansi-to-html.ts:57 \u00B7 packages/coding-agent/src/core/skills.ts:387 \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/coding-agent/src/core/export-html/ansi-to-html.ts"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"5af323c5ccaf4c7c0037d0a22e96e8602abb5774543ae6cc70049a4dbec426ef"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/coding-agent/src/core/export-html/template.js:914 \u00B7 packages/coding-agent/src/core/tools/render-utils.ts:38 \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/coding-agent/src/core/export-html/template.js"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fad2687a6119edffc8f760c7aba172a9957a9d1258860fab6e8579c56027725"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/coding-agent/src/core/resource-loader.ts:504 \u00B7 packages/coding-agent/src/core/resource-loader.ts:516 \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/coding-agent/src/core/resource-loader.ts"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e414a7feea07e570441f1ed47cf4bed56c7b43b386996cd935e0d69ef56512a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/coding-agent/src/core/resource-loader.ts:1200 \u00B7 packages/coding-agent/src/core/skills.ts:437 \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/coding-agent/src/core/resource-loader.ts"},"region":{"startLine":1200}}}],"partialFingerprints":{"codehealthFindingId/v1":"05d840169e7521731365fc1c9249ef0a77e27226c3324d4f25680f1bc15ec669"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): packages/coding-agent/src/core/tools/renderers/grep.ts:45 \u00B7 packages/coding-agent/src/core/tools/renderers/read.ts:123 \u2014 the two spans are one implementation copied and then locally edited \u2014 115 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/coding-agent/src/core/tools/renderers/grep.ts"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"5264fb60f246eb95c9bb4c7b937ff903a6d0be813b4880c0eb12310f127e155c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/coding-agent/src/core/tools/renderers/read.ts:34 \u00B7 packages/coding-agent/src/core/tools/renderers/write.ts:87 \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/coding-agent/src/core/tools/renderers/read.ts"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"0438a6e8de85eea6eae13eb53c424744c1987ba3258dc696381ad6abaa18b911"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): packages/coding-agent/src/core/tools/renderers/read.ts:124 \u00B7 packages/coding-agent/src/core/tools/renderers/write.ts:111 \u2014 the two spans are one implementation copied and then locally edited \u2014 132 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/coding-agent/src/core/tools/renderers/read.ts"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"6624e40c08c4500e89c79182b03b09390908edc1d66b3c07236274af4b7d9c2a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/coding-agent/src/extensions/codemode/execute.ts:161 \u00B7 packages/durable/src/codemode/models.ts:60 \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/coding-agent/src/extensions/codemode/execute.ts"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"9781c4e82b8040f28677f8333f5faa3fcbce6f7b699bc0ec7d7b1099046a28a1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/coding-agent/src/extensions/codemode/execute.ts:379 \u00B7 packages/durable/src/codemode/output.ts:157 \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/coding-agent/src/extensions/codemode/execute.ts"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"849318ac53a49a8539d772b579a611740b9ba12be69fb89a5ad29b96f95f0a7f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/coding-agent/src/extensions/codemode/execute.ts:463 \u00B7 packages/durable/src/codemode/output.ts:117 \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/coding-agent/src/extensions/codemode/execute.ts"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"f17fc38e2be41218e830751f4d3d6708e676862abf98b5e20428a7f7ddc4ea4f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/coding-agent/src/extensions/codemode/execute.ts:766 \u00B7 packages/durable/src/codemode/models.ts:208 \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/coding-agent/src/extensions/codemode/execute.ts"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6cf0fc8cdbf907ab032cb7718c579d8b0a7d860e5016129bd705fd48ffe222f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): packages/coding-agent/src/extensions/codemode/execute.ts:176 \u00B7 packages/coding-agent/src/extensions/codemode/execute.ts:238 \u2014 the two spans are one implementation copied and then locally edited \u2014 64 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/coding-agent/src/extensions/codemode/execute.ts"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ad11523cdf13d9479ef11ff8f8268aa6678581ab1bfab1d91a0329dadd517c7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): packages/coding-agent/src/extensions/llama/ui.ts:241 \u00B7 packages/coding-agent/src/modes/interactive/components/scoped-models-selector.ts:280 \u2014 the two spans are one implementation copied and then locally edited \u2014 86 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/coding-agent/src/extensions/llama/ui.ts"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"f839af5309b953bf22fa7f00ee6108eadeb48bbc8599753fc6be87111623c40b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/components/diff.ts:35 \u00B7 packages/coding-agent/src/modes/interactive/components/diff.ts:47 \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/coding-agent/src/modes/interactive/components/diff.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4d6d590e097da74c7ba5edf887a3b4aa48414387f6eb692af9e10a6b25e9f9a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/components/easter-egg-3d.ts:675 \u00B7 packages/coding-agent/src/modes/interactive/components/easter-egg-3d.ts: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/coding-agent/src/modes/interactive/components/easter-egg-3d.ts"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a4e3a20dcc958472e054d568b8d62d1229107b95e4b5dafe005a0c02830e015"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/interactive-mode.ts:1920 \u00B7 packages/coding-agent/src/modes/interactive/interactive-mode.ts:1953 \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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":1920}}}],"partialFingerprints":{"codehealthFindingId/v1":"210f7ab5d6680c053cae9363376684a1f4521b786665eed1c4af6baa77d36890"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/interactive-mode.ts:4796 \u00B7 packages/coding-agent/src/modes/interactive/interactive-mode.ts:4836 \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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":4796}}}],"partialFingerprints":{"codehealthFindingId/v1":"699c45b93b27f6590927cac8ef744492f4a51c90bd20efaeae698c516dbf3adb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/durable/src/codemode/codemode.ts:678 \u00B7 packages/durable/src/codemode/codemode.ts:812 \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/durable/src/codemode/codemode.ts"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"59fa7075e2270d5065cf0d82e684ba8e7d564968f96e7646455d0b9c0f6d8de4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): packages/durable/src/session/transaction.ts:680 \u00B7 packages/durable/src/storage/memory.ts:309 \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/durable/src/session/transaction.ts"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"1952a07e16bee22ee614816edae611e8684064fb0f0a6130021469c4219a5932"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/durable/src/storage/indexeddb.ts:282 \u00B7 packages/durable/src/storage/sqlite/storage.ts:101 \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/durable/src/storage/indexeddb.ts"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"130623d23649d85f62add5a0b837f6ac5c3b0cb6230b88529b3b3f99d4ce7913"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/durable/src/storage/jsonl/storage.ts:175 \u00B7 packages/durable/src/storage/jsonl/storage.ts:205 \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/durable/src/storage/jsonl/storage.ts"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"956a587a3cd46fecf7aed50e47956b45526b01fd369ee9758c46951ddefe107b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/durable/src/storage/sqlite/storage.ts:468 \u00B7 packages/durable/src/storage/sqlite/storage.ts:505 \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/durable/src/storage/sqlite/storage.ts"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"aad7472de781a91454df8934a758b6e77adb61309bc09b7420f77e15bf532ac9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/tui/src/components/box.ts:117 \u00B7 packages/tui/src/tui.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/tui/src/components/box.ts"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"57ebaf70de6c51f81b397e9c5595f15375d89b27d9e7bf32de7d4c41736ece48"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/tui/src/components/editor.ts:721 \u00B7 packages/tui/src/components/input.ts:77 \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/tui/src/components/editor.ts"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"d26f75352204ea902f0843e9123df63e637a470814db1f04d8117b850d5e781d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3 locations): packages/tui/src/components/editor.ts:1652 \u00B7 packages/tui/src/components/editor.ts:1684 \u00B7 packages/tui/src/components/editor.ts:1729 \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/tui/src/components/editor.ts"},"region":{"startLine":1652}}}],"partialFingerprints":{"codehealthFindingId/v1":"91a923220c62856a74debad83802d3285c4e5e386c812449be323352ccfc7e32"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/tui/src/components/editor.ts:1710 \u00B7 packages/tui/src/components/editor.ts:1753 \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/tui/src/components/editor.ts"},"region":{"startLine":1710}}}],"partialFingerprints":{"codehealthFindingId/v1":"a535678cfee9cfac6e62df8363eaaf65fe36c34d3829f23150254d0893b01c86"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): packages/tui/src/tui-main-screen.ts:292 \u00B7 packages/tui/src/tui-main-screen.ts:507 \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/tui/src/tui-main-screen.ts"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9a41532cad6c379d6a52fcdeeaa4fd46e714942b76979f83fb20548af90643c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): scripts/publish-release-announcement.mjs:21 \u00B7 scripts/release-notes.mjs:64 \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":"scripts/publish-release-announcement.mjs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"66febc54831d2f16f3355cefad0601518082bbcc72167da4280d30a9ebb22fad"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/agent/src/agent-loop.ts:549 \u00B7 packages/agent/src/agent-loop.ts:604 \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/agent/src/agent-loop.ts"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"8801fd1d4099af1a9007d453dd7a2ecd5ae33f74f23c2fecb1881c999dce76e5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/ai/scripts/generate-models.ts:1633 \u00B7 packages/ai/scripts/generate-models.ts:2535 \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/ai/scripts/generate-models.ts"},"region":{"startLine":1633}}}],"partialFingerprints":{"codehealthFindingId/v1":"77ce7bfe8c4bcda44e8e0ff38de19596e21a1041cead7f02d795e7eb089552e3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): packages/ai/scripts/model-data.ts:58 \u00B7 packages/coding-agent/src/extensions/mcp/config.ts:95 \u2014 the two spans are one implementation copied and then locally edited \u2014 64 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/ai/scripts/model-data.ts"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea97766f056da5aac2abec28508116ad6956573790a0022bac41799ca61ba213"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5 locations): packages/ai/src/api/anthropic-messages.ts:894 \u00B7 packages/ai/src/api/azure-openai-responses.ts:107 \u00B7 packages/ai/src/api/bedrock-converse-stream.ts:339 \u00B7 packages/ai/src/api/mistral-conversations.ts:157 \u00B7 \u002B1 more site(s) not listed \u2014 the 5 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 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/ai/src/api/anthropic-messages.ts"},"region":{"startLine":894}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2257f9af7155551c3530303292a26b9474a841de20e79e45813402032a11599"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): packages/ai/src/api/openai-responses-shared.ts:694 \u00B7 packages/ai/src/api/openai-responses-shared.ts:704 \u00B7 packages/ai/src/api/openai-responses-shared.ts:714 \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/ai/src/api/openai-responses-shared.ts"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"3259d53aad10e13fa12687cda3cfcfb512d180c9cb17f34744ba850eb2460bac"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/ai/src/auth/helpers.ts:14 \u00B7 packages/ai/src/providers/anthropic.ts:24 \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/ai/src/auth/helpers.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8e579e67f2a72850812efc123d180146ee786acab57193b186235b527f7b2ac"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/ai/src/auth/oauth/device-code.ts:35 \u00B7 packages/ai/src/utils/sleep.ts:6 \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/ai/src/auth/oauth/device-code.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e48985a3c3ca3b0a4b674d2f49dcd919952253c09bb63391901b4837bee4a37"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/ai/src/compat.ts:104 \u00B7 packages/ai/src/compat.ts:116 \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/ai/src/compat.ts"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"39c2c7aa889f8e85136bce196a76a3ef854dae514c9fb85dcfc7ae6b1580eb7b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/ai/src/models.ts:921 \u00B7 packages/coding-agent/src/core/model-runtime.ts:723 \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/ai/src/models.ts"},"region":{"startLine":921}}}],"partialFingerprints":{"codehealthFindingId/v1":"6259967d63de7c34c51a0c65d7428bd4447771708af4bea5c189c37db9b48e13"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/ai/src/models.ts:946 \u00B7 packages/coding-agent/src/core/model-runtime.ts:759 \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/ai/src/models.ts"},"region":{"startLine":946}}}],"partialFingerprints":{"codehealthFindingId/v1":"aff35d15fad45d13ff54202c52bddd718f64a8290091447f6dcf064281ceee3b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/ai/src/providers/amazon-bedrock.ts:52 \u00B7 packages/ai/src/providers/google-vertex.ts:62 \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/ai/src/providers/amazon-bedrock.ts"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"e83ead884d2cf6a5d2dbeda6487f8348bf9e0a3f43039610ddf95a5ed170e299"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/ai/src/providers/cloudflare-auth.ts:50 \u00B7 packages/ai/src/providers/cloudflare-auth.ts:70 \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/ai/src/providers/cloudflare-auth.ts"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"342c9d6a8c0a9366e91327b5acc5205c3b35597427e1a0916f043df985890357"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/chord/src/delta/tracker.ts:1232 \u00B7 packages/chord/src/delta/tracker.ts:1241 \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/chord/src/delta/tracker.ts"},"region":{"startLine":1232}}}],"partialFingerprints":{"codehealthFindingId/v1":"33f43ea41c26390eaddfb8511a52ec6dc542150664bf08b63f2b205160df874f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4 locations): packages/chord/src/object.ts:819 \u00B7 packages/chord/src/remote.ts:538 \u00B7 packages/mcp/src/client.ts:281 \u00B7 packages/mcp/src/transports/transport.ts:35 \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/chord/src/object.ts"},"region":{"startLine":819}}}],"partialFingerprints":{"codehealthFindingId/v1":"85591367bb164ec356b2690610276cca7106ac28f55744891cedad4df3a31798"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): packages/coding-agent/src/bun/restore-sandbox-env.ts:23 \u00B7 packages/coding-agent/src/core/package-manager.ts:18 \u2014 the two spans are one implementation copied and then locally edited \u2014 78 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/coding-agent/src/bun/restore-sandbox-env.ts"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"23a278efb82ca0e723421604bd2eeb35ebff5f39e34da28f36f40291b8d115a4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/coding-agent/src/core/agent-session-runtime.ts:210 \u00B7 packages/coding-agent/src/core/agent-session-runtime.ts:389 \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/coding-agent/src/core/agent-session-runtime.ts"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"22a1b1dfbfa28f5a374c1128d74c9d3b96fb9dd078c2563e1cd2900edce9a37e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/coding-agent/src/core/agent-session-runtime.ts:245 \u00B7 packages/coding-agent/src/core/agent-session-runtime.ts:299 \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/coding-agent/src/core/agent-session-runtime.ts"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5aeb3c4c65692f3cfd6224367136da645fb54c6e6f0e5cb646eef5cc22430a0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/coding-agent/src/core/agent-session.ts:3449 \u00B7 packages/coding-agent/src/core/agent-session.ts:3458 \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/coding-agent/src/core/agent-session.ts"},"region":{"startLine":3449}}}],"partialFingerprints":{"codehealthFindingId/v1":"4407a6e7eeab836027a0e23bd6fc58af235605dddcf8018108eb5c12484628c2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/coding-agent/src/core/agent-session.ts:3517 \u00B7 packages/coding-agent/src/modes/interactive/interactive-mode.ts:2272 \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/coding-agent/src/core/agent-session.ts"},"region":{"startLine":3517}}}],"partialFingerprints":{"codehealthFindingId/v1":"251727ffe37b28bd103f632a54e9ae351c446a78414ca89f039bc045441907f4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): packages/coding-agent/src/core/auth-storage.ts:103 \u00B7 packages/coding-agent/src/core/auth-storage.ts:182 \u2014 the two spans are one implementation copied and then locally edited \u2014 62 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/coding-agent/src/core/auth-storage.ts"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"748f09c74150c2509c52356565073994754553146be4868089a3489bd8466ef4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/coding-agent/src/core/export-html/template.js:590 \u00B7 packages/coding-agent/src/modes/interactive/components/tree-selector.ts:511 \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/coding-agent/src/core/export-html/template.js"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"cee1570d2cbcdb97a54f0e02b751b69359ba2290ef1716894dbae787c1272dd7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/coding-agent/src/core/extensions/runner.ts:1057 \u00B7 packages/coding-agent/src/core/extensions/runner.ts:1136 \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/coding-agent/src/core/extensions/runner.ts"},"region":{"startLine":1057}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c1ec3d9180e214405b4da10bde214f7e52f3744c2b8cf3c31c278a0ba5fb387"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/coding-agent/src/core/extensions/runner.ts:1108 \u00B7 packages/coding-agent/src/core/extensions/runner.ts:1460 \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/coding-agent/src/core/extensions/runner.ts"},"region":{"startLine":1108}}}],"partialFingerprints":{"codehealthFindingId/v1":"871f6831250bdaf47e1f1f10812c8d36319c935bbe52e8ed79fe7976c317e05f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/coding-agent/src/core/package-manager.ts:1029 \u00B7 packages/coding-agent/src/core/package-manager.ts:1039 \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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":1029}}}],"partialFingerprints":{"codehealthFindingId/v1":"5517824d6f978530a53753d16b9af1ae8bb4f8222e5149dc8d10141a516294c8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/coding-agent/src/core/package-manager.ts:1049 \u00B7 packages/coding-agent/src/core/package-manager.ts:1078 \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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":1049}}}],"partialFingerprints":{"codehealthFindingId/v1":"e07dd540b87c59ff93cbb05438551ca7d9899a53b30aab27e5539e2e886cbb2e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/coding-agent/src/core/resolve-config-value.ts:135 \u00B7 packages/coding-agent/src/core/resolve-config-value.ts:215 \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/coding-agent/src/core/resolve-config-value.ts"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a2af0325e8558d203e7ac7230af8178accac161553b1d588d34da007d90fa80"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/coding-agent/src/core/resource-loader.ts:1109 \u00B7 packages/coding-agent/src/core/skills.ts:501 \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/coding-agent/src/core/resource-loader.ts"},"region":{"startLine":1109}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8b2f349d197f78d461ca39c2e18b83709026bc7cbbc34f166e40b582f3eb94a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/coding-agent/src/core/session-manager.ts:1125 \u00B7 packages/coding-agent/src/core/session-manager.ts:1176 \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/coding-agent/src/core/session-manager.ts"},"region":{"startLine":1125}}}],"partialFingerprints":{"codehealthFindingId/v1":"f83e1476ab6b83299e8e30f87940ac7c6ee87e1728b6da3a313b47a420eef1b1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): packages/coding-agent/src/extensions/llama/ui.ts:240 \u00B7 packages/tui/src/components/settings-list.ts:219 \u2014 the two spans are one implementation copied and then locally edited \u2014 79 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/coding-agent/src/extensions/llama/ui.ts"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"60bc466b1bbae13f5a2fd30f69d08aca6abf92df84b3dd6c544c44d280f49b03"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/components/config-selector.ts:563 \u00B7 packages/coding-agent/src/modes/interactive/components/config-selector.ts:573 \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/coding-agent/src/modes/interactive/components/config-selector.ts"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"972b26e6c0acb476289c03128f0cea41d622f2f2ee8cf85c67270e6ed2b6a34d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/components/scoped-models-selector.ts:280 \u00B7 packages/tui/src/components/settings-list.ts:220 \u2014 the two spans are one implementation copied and then locally edited \u2014 97 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/coding-agent/src/modes/interactive/components/scoped-models-selector.ts"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"43d04f661a463161b533af9404d62c8aecdfeddb6a2b5c5396dad4dcf6c020b8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/components/session-selector-search.ts:67 \u00B7 packages/coding-agent/src/modes/interactive/components/session-selector-search.ts:88 \u2014 the two spans are one implementation copied and then locally edited \u2014 72 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/coding-agent/src/modes/interactive/components/session-selector-search.ts"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fa2bb08a7eb5fde070580f748273a05825b53cf1d0639aa743d3f2e7619e5ca"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/components/tree-selector.ts:1383 \u00B7 packages/coding-agent/src/modes/interactive/components/user-message-selector.ts:138 \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/coding-agent/src/modes/interactive/components/tree-selector.ts"},"region":{"startLine":1383}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0470228dbe9386d25e81ea8fe9742f57ddc25469441499e7c569068fb70302d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/interactive-mode.ts:2011 \u00B7 packages/coding-agent/src/modes/interactive/interactive-mode.ts:5657 \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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":2011}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8ae8406b08c36fc04b22a2d708d2b147d17ce4d2dfdd4d8a69b0812c0130c7d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/coding-agent/src/utils/git.ts:183 \u00B7 packages/coding-agent/src/utils/git.ts:207 \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/coding-agent/src/utils/git.ts"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"2af0ff062936d2b160c23829ce1d1ed537fa1da1b982555c52797d005051dd06"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/durable/src/env/node.ts:541 \u00B7 packages/durable/src/env/node.ts:597 \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/durable/src/env/node.ts"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0e22913cc33d0d318147cd6070e020f850dd1fecd51954bad77346af225d51e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/durable/src/env/node.ts:659 \u00B7 packages/env/src/remote-env.ts:850 \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/durable/src/env/node.ts"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"e62db2392e6f1b101f8b4f0298e9fbf72ecb38ee32a93b8be59ad26499ecffef"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/durable/src/harness/generation.ts:383 \u00B7 packages/durable/src/harness/generation.ts:604 \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/durable/src/harness/generation.ts"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e5a12e3f533a8f606cf6b3d1250cabaf4b23cf73e87c986531c34877904d752"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/durable/src/storage/memory.ts:369 \u00B7 packages/durable/src/storage/memory.ts:383 \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/durable/src/storage/memory.ts"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb3119f42236f4b590bb246fa2641bf52f2e3449c0f09960a32f3052fd716dba"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/durable/src/storage/memory.ts:678 \u00B7 packages/durable/src/storage/memory.ts:703 \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/durable/src/storage/memory.ts"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"c04bf808b537641090f72e7145e0ef9e519d10b2760722a04070e4da925703c4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/durable/src/storage/sqlite/storage.ts:371 \u00B7 packages/durable/src/storage/sqlite/storage.ts:416 \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/durable/src/storage/sqlite/storage.ts"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aafe4dd4fbb6ae5e440f6296709e34dd900dcfe4e0658356a1975f74fa8103a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): packages/tui/src/terminal.ts:436 \u00B7 packages/tui/src/terminal.ts:487 \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/tui/src/terminal.ts"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"4840cc7a4a05f85e5093f0b91c3ac0c260e37121253895fd4c3a652d9ed329c6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): scripts/profile-coding-agent-node.mjs:633 \u00B7 scripts/profile-coding-agent-node.mjs:654 \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":"scripts/profile-coding-agent-node.mjs"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fe0d180ca00e34cca68e14774a0707eecd4b3b0d446e15678044ec5d18c2285"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/agent/src/agent-loop.ts:85 \u00B7 packages/agent/src/agent-loop.ts:143 \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/agent/src/agent-loop.ts"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"b82e5288fb9ccda3a65a8621fbdeaaed621a227d4e628340fb7285428d9ae976"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/ai/src/api/anthropic-messages.ts:311 \u00B7 packages/ai/src/api/openai-responses.ts:58 \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/ai/src/api/anthropic-messages.ts"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b4e536bb803f5eeb3b1f1d9f6073cfe7c71340fd5fa0f1d0f93f10234d02ee0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): packages/ai/src/api/anthropic-messages.ts:629 \u00B7 packages/ai/src/api/openrouter-images.ts:62 \u2014 the two spans are one implementation copied and then locally edited \u2014 65 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/ai/src/api/anthropic-messages.ts"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"33b38023d93139cded3e2f6c9eb21d0062a98e67893365a4291513185b887c98"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/ai/src/api/mistral-conversations.ts:314 \u00B7 packages/ai/src/api/openai-codex-responses.ts:422 \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/ai/src/api/mistral-conversations.ts"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"e609e9ab5639efef78fd01a487dcbb27c363693e35694d817cca08d3d6c21e8e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): packages/ai/src/auth/credential-store.ts:32 \u00B7 packages/coding-agent/src/core/auth-storage.ts:267 \u2014 the two spans are one implementation copied and then locally edited \u2014 76 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/ai/src/auth/credential-store.ts"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"edafdf089e0032f13bf2437ef20a2ca8d7d2e6bbe72c2c620996f0cd04449a8e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/ai/src/auth/oauth/github-copilot.ts:218 \u00B7 packages/ai/src/auth/oauth/github-copilot.ts:326 \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/ai/src/auth/oauth/github-copilot.ts"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"446d4819109f6a91fc468a89977edb90218b4f55af2e9472106a3b00bb1cac86"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/ai/src/auth/oauth/kimi-coding.ts:49 \u00B7 packages/ai/src/auth/oauth/meta.ts:40 \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/ai/src/auth/oauth/kimi-coding.ts"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d58388f736f0b30e6c588b2d59eb18132835a8f3e7def2d7bc8ae3c8da9092a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): packages/ai/src/utils/provider-retry.ts:77 \u00B7 packages/coding-agent/src/core/tools/ls.ts:71 \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/ai/src/utils/provider-retry.ts"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eb81a463ed73b9884bfeb1a1e5fbf7251c359bc9880411fdb1a9f53bab801c7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): packages/ai/src/utils/retry.ts:167 \u00B7 packages/coding-agent/src/extensions/llama/client.ts:71 \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/ai/src/utils/retry.ts"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cf43014487dd21aa651d9061aa6e3049a1c3da127c1b10af83b236981afdfa4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): packages/chord/src/delta/revision-validator.ts:58 \u00B7 packages/chord/src/json.ts:98 \u2014 the two spans are one implementation copied and then locally edited \u2014 86 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/chord/src/delta/revision-validator.ts"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ee27f9c8db1bcfb39d8f4cbf56e7ab38cd92bb83943f5cf161ed108096244d0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/chord/src/sqlite/cloudflare.ts:30 \u00B7 packages/chord/src/sqlite/node.ts:30 \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/chord/src/sqlite/cloudflare.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"781ee66296739d2b5b7aa4fe44c76e248a7a3ceaca24b5beda7a4a652774667c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): packages/coding-agent/src/config.ts:404 \u00B7 packages/coding-agent/src/config.ts:420 \u00B7 packages/coding-agent/src/config.ts:460 \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/coding-agent/src/config.ts"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"233cb7c565471889baabde09dffe6bcbeea7baa54bbe5cfcb889c3c6374cb9b3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/coding-agent/src/core/exec.ts:97 \u00B7 packages/coding-agent/src/core/exec.ts:106 \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/coding-agent/src/core/exec.ts"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"acb9b5ef8876c45182c18004b5457fc69325ba9de11050869b85c3a5d3f01b7f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/coding-agent/src/core/export-html/template.js:544 \u00B7 packages/coding-agent/src/modes/interactive/components/tree-selector.ts:467 \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/coding-agent/src/core/export-html/template.js"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d418c3717b232ab702828f0614592f717e4437286d386ee5fa590c68cc02e36"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/coding-agent/src/core/model-config.ts:64 \u00B7 packages/coding-agent/src/core/model-config.ts:82 \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/coding-agent/src/core/model-config.ts"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec1a005b25e36b61faaf66e8379bf3511fce665301a4de07704001c8478a5cdd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/coding-agent/src/core/package-manager.ts:57 \u00B7 packages/coding-agent/src/utils/tools-manager.ts:11 \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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdb4488f1baf0bcb95992d26f46776da0199a6d3ff8602738013323b912f2aa4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/coding-agent/src/core/package-manager.ts:425 \u00B7 packages/coding-agent/src/core/package-manager.ts:625 \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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"0292f1de29cca4ad639dbce3584c18a13ddb50afba58ead62f2a799525a36411"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/coding-agent/src/core/package-manager.ts:845 \u00B7 packages/coding-agent/src/core/package-manager.ts:876 \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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":845}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1acec11c26daa48f5a1aa5e2acd387c099e727dbb47af5fbfb97a97f5cb476a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): packages/coding-agent/src/core/package-manager.ts:1434 \u00B7 packages/coding-agent/src/core/package-manager.ts:1445 \u00B7 packages/coding-agent/src/core/package-manager.ts:1748 \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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":1434}}}],"partialFingerprints":{"codehealthFindingId/v1":"c91d66c6e1e8a918ba1e2c2cfc49d8732aa2cd5d9d3fa96ac2f585a690dcb0f1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/coding-agent/src/core/package-manager.ts:1630 \u00B7 packages/coding-agent/src/core/package-manager.ts:1691 \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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":1630}}}],"partialFingerprints":{"codehealthFindingId/v1":"efc8102dbc710b0931c7be10f839873e692f60253aa01a59017ba8b0f5f20adc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/coding-agent/src/core/package-manager.ts:2735 \u00B7 packages/coding-agent/src/modes/interactive/session-share.ts:184 \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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":2735}}}],"partialFingerprints":{"codehealthFindingId/v1":"51f56fc2468b9ac6da9a263f4010bbdf64c539c3e35572a41398b8f23794c4b7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/coding-agent/src/core/prompt-templates.ts:190 \u00B7 packages/coding-agent/src/core/prompt-templates.ts:289 \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/coding-agent/src/core/prompt-templates.ts"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb1323842609d144cbafe49fa5ef4151ea08059d4d597b3c97992e989246bc31"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6 locations): packages/coding-agent/src/core/settings-manager.ts:897 \u00B7 packages/coding-agent/src/core/settings-manager.ts:1199 \u00B7 packages/coding-agent/src/core/settings-manager.ts:1234 \u00B7 packages/coding-agent/src/core/settings-manager.ts:1247 \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/coding-agent/src/core/settings-manager.ts"},"region":{"startLine":897}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bb900f2f917e41763f0a0a28cef2ddf61eff6a81f456534a3515b6a7ed7ab18"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/coding-agent/src/extensions/codemode/execute.ts:627 \u00B7 packages/durable/src/codemode/output.ts:191 \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/coding-agent/src/extensions/codemode/execute.ts"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbdda879069919b843c18d71d48ec3de7d5a61a61740b1d942ff0936ff816f6d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/coding-agent/src/main.ts:330 \u00B7 packages/coding-agent/src/main.ts:340 \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/coding-agent/src/main.ts"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec471d4cf24dc5af099c5b8a247d3e74abd73beae9f4a0fe1b6eb291857168cf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): packages/coding-agent/src/main.ts:941 \u00B7 packages/coding-agent/src/modes/interactive/interactive-mode.ts:1151 \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/coding-agent/src/main.ts"},"region":{"startLine":941}}}],"partialFingerprints":{"codehealthFindingId/v1":"b481a6c1967bfa10e8a337acae69d9ba0a58739228a2d6ce3737f68d42e3d57f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/components/first-time-setup.ts:126 \u00B7 packages/coding-agent/src/modes/interactive/components/oauth-selector.ts:191 \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/coding-agent/src/modes/interactive/components/first-time-setup.ts"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"630a36690b42a3b76caf31060351417efacb31095b7608785ef6993c5beece0c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/components/model-selector.ts:123 \u00B7 packages/coding-agent/src/modes/interactive/components/oauth-selector.ts:112 \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/coding-agent/src/modes/interactive/components/model-selector.ts"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"0590c3beb00a64ebbaa992f9392791a0734cf698a22fb55f142dd3cdb11f233a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/components/scoped-models-selector.ts:335 \u00B7 packages/coding-agent/src/modes/interactive/components/scoped-models-selector.ts:345 \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/coding-agent/src/modes/interactive/components/scoped-models-selector.ts"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"23dd7911fdff745a112edbd6c9958dfb1b6a326ed767437226587c087c4be428"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/components/user-message-selector.ts:75 \u00B7 packages/tui/src/components/select-list.ts:140 \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/coding-agent/src/modes/interactive/components/user-message-selector.ts"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cd2a2413a252df88da7c2559a5d7e17b5ebe9d7496bccdff45ffd15b655fac7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): packages/coding-agent/src/modes/interactive/interactive-mode.ts:4383 \u00B7 packages/coding-agent/src/modes/print-mode.ts:51 \u00B7 packages/coding-agent/src/modes/rpc/rpc-mode.ts:367 \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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":4383}}}],"partialFingerprints":{"codehealthFindingId/v1":"5988533f7a25ea45d1499636abb9931562cb7cb6806b1ac831c6888141b16908"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/coding-agent/src/utils/exif-orientation.ts:125 \u00B7 packages/durable/src/images/index.ts: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/coding-agent/src/utils/exif-orientation.ts"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"69066135ebd8f0ba1119894e2bde92f9545061e5e16727eba6a59db0892e6f1c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/durable/src/env/node.ts:1174 \u00B7 packages/durable/src/env/node.ts:1190 \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/durable/src/env/node.ts"},"region":{"startLine":1174}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eff685a9d34755733f6db2067ee7469ee9bd8594964945e5f0909b5054f7b51"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): packages/durable/src/harness/scheduler.ts:588 \u00B7 packages/durable/src/harness/submissions.ts:107 \u2014 the two spans are one implementation copied and then locally edited \u2014 68 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/durable/src/harness/scheduler.ts"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c075d50b7ff7ab41dd448ca54179e11e5d537674b0d6674934ac96a2c08b059"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/durable/src/testing/storage-conformance.ts:488 \u00B7 packages/durable/src/testing/storage-conformance.ts:514 \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/durable/src/testing/storage-conformance.ts"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"b982fede69876655e1494612a2c1306ba948d1ba20d33dc94d95f10c07035db7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/evals/evals/acme-server.ts:86 \u00B7 packages/evals/evals/acme-server.ts:101 \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/evals/evals/acme-server.ts"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6070b005518140d23ba98e677293cfa0284979545a9376a0c6932bafbbfcb01"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/tui/src/components/input.ts:310 \u00B7 packages/tui/src/components/input.ts:331 \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/tui/src/components/input.ts"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6bc8f3fda6a5a9413fdcc3e08196b4998db7ebcce93bbebb0a3d4061a3a2c34"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): packages/tui/src/components/scroll-view.ts:123 \u00B7 packages/tui/src/components/scroll-view.ts:144 \u2014 the two spans are one implementation copied and then locally edited \u2014 64 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/tui/src/components/scroll-view.ts"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"a40aef84a5fb8fb5d678a7d80e05a92a8b984c4591b44009c3e2ffd3ceacf5da"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): packages/tui/src/tui-alt-screen.ts:782 \u00B7 packages/tui/src/tui-alt-screen.ts:790 \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/tui/src/tui-alt-screen.ts"},"region":{"startLine":782}}}],"partialFingerprints":{"codehealthFindingId/v1":"28bf48184ec150e7152aeecadee9e255f67b28d87d8a7d32456e33808720cbcf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): scripts/edit-tool-stats.mjs:79 \u00B7 scripts/read-tool-stats.mjs:70 \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":"scripts/edit-tool-stats.mjs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"7104f5f130ca9c5bc9b36ea70d0944b714684d006a9561acab177523cd81fa3a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): scripts/edit-tool-stats.mjs:234 \u00B7 scripts/read-tool-stats.mjs:173 \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":"scripts/edit-tool-stats.mjs"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdfb8f55e1f12ff817b5ae492d613055018712c1f6942eb92fa42e0ce13d6623"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): scripts/profile-coding-agent-node.mjs:426 \u00B7 scripts/profile-coding-agent-node.mjs:529 \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":"scripts/profile-coding-agent-node.mjs"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"146971f2c2b3dd2ba66d5ee5467fc40196cfbfe049560670f2493561bf20e353"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): scripts/read-tool-stats.mjs:28 \u00B7 scripts/session-context-stats.mjs:16 \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":"scripts/read-tool-stats.mjs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"89f9a5ddf488501316c70bad4ecea99ccb75fcd85908087275dc05dc7aa37aca"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5 locations): packages/ai/src/api/anthropic-messages.ts:915 \u00B7 packages/ai/src/api/azure-openai-responses.ts:115 \u00B7 packages/ai/src/api/google-generative-ai.ts:283 \u00B7 packages/ai/src/api/google-vertex.ts:298 \u00B7 \u002B1 more site(s) not listed \u2014 the 5 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/ai/src/api/anthropic-messages.ts"},"region":{"startLine":915}}}],"partialFingerprints":{"codehealthFindingId/v1":"a268c927e1484aebff5d47bb5daf8aef51c89fd46f57ceeed8607519c5929e11"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/ai/src/api/anthropic-messages.ts:1500 \u00B7 packages/ai/src/api/bedrock-converse-stream.ts:1100 \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/ai/src/api/anthropic-messages.ts"},"region":{"startLine":1500}}}],"partialFingerprints":{"codehealthFindingId/v1":"1947165264a2c49f4bc526c60088510fb0b887208b4f02f390b9c4c3c54ea7b8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/ai/src/api/bedrock-converse-stream.ts:631 \u00B7 packages/ai/src/api/bedrock-converse-stream.ts:651 \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/ai/src/api/bedrock-converse-stream.ts"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"896b05d644776fc1c21afdfac31069e1a55c3f1491cf865cef58ac79e8e28a9c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): packages/ai/src/api/mistral-conversations.ts:764 \u00B7 packages/chord/src/schema.ts:57 \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/ai/src/api/mistral-conversations.ts"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9ed9ed5a89bdab87b0aa8db4a8aff9e2232a8d79b3c7b275ad15522ed81dc21"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/ai/src/api/openai-codex-responses.ts:841 \u00B7 packages/coding-agent/src/extensions/llama/client.ts:242 \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/ai/src/api/openai-codex-responses.ts"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"33c8a234b373ba8b0cfb4dca89bcd9f889d752a8323840c39c6fff25a59b46bd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): packages/ai/src/auth/credential-store.ts:30 \u00B7 packages/ai/src/auth/types.ts:70 \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/ai/src/auth/credential-store.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"e91ada1d4589a5d9353735b6239f9102acf783c262b2aa0f1dd5bc079a7f683f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/ai/src/auth/oauth/anthropic.ts:182 \u00B7 packages/ai/src/auth/oauth/openai-codex.ts:386 \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/ai/src/auth/oauth/anthropic.ts"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9ba7f305fa9aab5d747d2b4f84b722b9d03da6339cf43bd45fbce62b54e2029"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): packages/ai/src/auth/oauth/openai-codex.ts:292 \u00B7 packages/mcp/src/oauth/flow.ts:192 \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/ai/src/auth/oauth/openai-codex.ts"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"69a0ec517d52ee0abef829506caa2fefff1b3009aea2edf8fa55ca85f035b895"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/ai/src/models.ts:751 \u00B7 packages/coding-agent/src/core/model-runtime.ts:553 \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/ai/src/models.ts"},"region":{"startLine":751}}}],"partialFingerprints":{"codehealthFindingId/v1":"f260be60b5a081c9a9b7dd2e0bdfa6912438f8e63fd271e46020912a82f58bf8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/ai/src/utils/model-operations.ts:25 \u00B7 packages/ai/src/utils/model-operations.ts:37 \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/ai/src/utils/model-operations.ts"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c7965bb01e20ec8a23914f681f6a2410abfc25a94f3e887fa2bd4619f16faa4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/ai/src/utils/transcript.ts:54 \u00B7 packages/ai/src/utils/transcript.ts:166 \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/ai/src/utils/transcript.ts"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"2190b5080934e93c39ce17bb0368b316d4f247e5158c1647ec99e462c04ea73e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): packages/chord/src/json.ts:47 \u00B7 packages/chord/src/json.ts:96 \u2014 the two spans are one implementation copied and then locally edited \u2014 97 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/chord/src/json.ts"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ddb640f7e0ea9f907c70d833009338ffa04734c85bad26458743aaa7f654d64"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): packages/chord/src/reload.ts:387 \u00B7 packages/chord/src/reload.ts:506 \u2014 the two spans are one implementation copied and then locally edited \u2014 75 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/chord/src/reload.ts"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5109f5e3f04ae82c5f66914031bbac3f821b2c4803b0675481e563978abdc8b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): packages/chord/src/remote.ts:296 \u00B7 packages/chord/src/remote.ts:324 \u2014 the two spans are one implementation copied and then locally edited \u2014 54 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/chord/src/remote.ts"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"438ba8098a406ed7192ef2c5cdb7924e664067aa90707543b2e74c4e626a018e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/chord/src/telemetry-sqlite/index.ts:56 \u00B7 packages/telemetry/src/memory.ts:110 \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/chord/src/telemetry-sqlite/index.ts"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"6186932ad8a2e3d7ee243a01c22a70c6a57d617104aa9f33d744f0838c547cfa"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/coding-agent/src/core/agent-session.ts:1769 \u00B7 packages/coding-agent/src/core/agent-session.ts:1804 \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/coding-agent/src/core/agent-session.ts"},"region":{"startLine":1769}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2c76a273458d27d870cd7dc86188c756228ed608b4a6c38c7a00ea0d27a4ed6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/coding-agent/src/core/compaction/branch-summarization.ts:204 \u00B7 packages/coding-agent/src/core/compaction/compaction.ts:70 \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/coding-agent/src/core/compaction/branch-summarization.ts"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"21d3473138b2a19a2df0979fd9238e98d26fc100b4c9a2e9f86fd0bbb25a11ad"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/coding-agent/src/core/export-html/index.ts:64 \u00B7 packages/coding-agent/src/modes/interactive/theme/system-theme.ts:396 \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/coding-agent/src/core/export-html/index.ts"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f075ba6a075bbe520f7b7e277480f0b17e1b2c1c6493005bd9bda722739dc78"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/coding-agent/src/core/export-html/template.js:310 \u00B7 packages/coding-agent/src/core/export-html/template.js: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/coding-agent/src/core/export-html/template.js"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8e469dd7b60b87e424bd68ef3e46b3d44479822c41be98f00d7862f5a780690"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/coding-agent/src/core/extensions/runner.ts:1322 \u00B7 packages/coding-agent/src/core/extensions/runner.ts:1410 \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/coding-agent/src/core/extensions/runner.ts"},"region":{"startLine":1322}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fb9c3a2d511d38ad7d429a6d1ab97ee9c19e7d6f3ad956523bdcf9aa6031535"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/coding-agent/src/core/footer-data-provider.ts:239 \u00B7 packages/coding-agent/src/core/footer-data-provider.ts:253 \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/coding-agent/src/core/footer-data-provider.ts"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5c5e63c2d1ab538fcd78fb5d700b4e1a1a0e583bd237590e68a35b202688d9e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): packages/coding-agent/src/core/model-resolver.ts:594 \u00B7 packages/coding-agent/src/core/model-resolver.ts:655 \u2014 the two spans are one implementation copied and then locally edited \u2014 76 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/coding-agent/src/core/model-resolver.ts"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"76111c1e9bb3dab639da187c1cb44408f13fc06b2968c82b10a4d9d595ae9717"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/coding-agent/src/core/package-manager.ts:678 \u00B7 packages/coding-agent/src/core/package-manager.ts:712 \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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"432e3489aed3e277be89b7ec3649ba654bde0d740c263bd56672b4a75e1e8916"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): packages/coding-agent/src/core/resource-loader.ts:872 \u00B7 packages/coding-agent/src/core/resource-loader.ts:895 \u00B7 packages/coding-agent/src/core/resource-loader.ts:923 \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/coding-agent/src/core/resource-loader.ts"},"region":{"startLine":872}}}],"partialFingerprints":{"codehealthFindingId/v1":"994fcb81d146e1442667c9510c62cd458e1b03b5873dd960ef0ece0f442d4b7d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): packages/coding-agent/src/core/tools/renderers/read.ts:125 \u00B7 packages/coding-agent/src/modes/interactive/components/tool-execution.ts:154 \u2014 the two spans are one implementation copied and then locally edited \u2014 65 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/coding-agent/src/core/tools/renderers/read.ts"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"a09701c6215853be0d321050c67707443e4b307d1097755dcb35fdfd68e26368"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): packages/coding-agent/src/extensions/mcp/oauth.ts:405 \u00B7 packages/mcp/src/oauth/callback.ts:141 \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/coding-agent/src/extensions/mcp/oauth.ts"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"435250a4e3da254dca30e2a1b7098320b1abb3e7cb1b3e5282a75adfd9364b0e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/coding-agent/src/main.ts:305 \u00B7 packages/coding-agent/src/main.ts:320 \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/coding-agent/src/main.ts"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"3adcef3782064c56de1655e752d63352c3e44988d9dc6a4a330f8107ec4876a1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/components/assistant-message.ts:185 \u00B7 packages/coding-agent/src/modes/interactive/components/login-dialog.ts:267 \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/coding-agent/src/modes/interactive/components/assistant-message.ts"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"f14e7df8e572faf900553adb8dce6c08637f782520330aa167850a70422b8d2d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/components/compaction-summary-message.ts:46 \u00B7 packages/coding-agent/src/modes/interactive/components/skill-invocation-message.ts:45 \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/coding-agent/src/modes/interactive/components/compaction-summary-message.ts"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"268a149be47769d988bf0d8384bce78bb6678f99d1be38a31aee96696bc908f5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/components/diff.ts:96 \u00B7 packages/coding-agent/src/modes/interactive/components/diff.ts:105 \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/coding-agent/src/modes/interactive/components/diff.ts"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"66d5a2f6732d05ab4e5ea770755015cde364356fefe86991d1e2e5e9f57d95a2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/components/earendil-announcement.ts:29 \u00B7 packages/coding-agent/src/modes/interactive/components/tree-selector.ts:1374 \u2014 the two spans are one implementation copied and then locally edited \u2014 67 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/coding-agent/src/modes/interactive/components/earendil-announcement.ts"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"31945b8eb344d36ff9a7274bd42f1ae66bd7ba7c62c41e0320ccb4197b7a0f97"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/components/login-dialog.ts:260 \u00B7 packages/coding-agent/src/modes/interactive/components/user-message-selector.ts:122 \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/coding-agent/src/modes/interactive/components/login-dialog.ts"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"66bf33497de9ba3d75dfc55b9755bc6a42d1d825e960ac50410c3167559ce386"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/components/model-selector.ts:333 \u00B7 packages/coding-agent/src/modes/interactive/components/oauth-selector.ts:173 \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/coding-agent/src/modes/interactive/components/model-selector.ts"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e205defc160c633eae923e9aeda952c2bb3f56fb8df96bbf920dfbaf06c7111"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/components/scoped-models-selector.ts:139 \u00B7 packages/coding-agent/src/modes/interactive/components/trust-selector.ts:68 \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/coding-agent/src/modes/interactive/components/scoped-models-selector.ts"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c5fdabd6d9be8174aa3aab22245c3fa9d096f5d39f9638ba41acd3fec34cd0e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/interactive-mode.ts:3638 \u00B7 packages/coding-agent/src/modes/interactive/interactive-mode.ts:3743 \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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":3638}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5e7a40a60e2afb1d7f4eab0d161ff8674d709ee54e71d8a183191a45d90757e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/coding-agent/src/package-manager-cli.ts:921 \u00B7 packages/coding-agent/src/package-manager-cli.ts:943 \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/coding-agent/src/package-manager-cli.ts"},"region":{"startLine":921}}}],"partialFingerprints":{"codehealthFindingId/v1":"b592411a9c59cc2f044c88ccb3c3777edb622a0708cc78e89fbb3386355be28b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/durable/src/codemode/codemode.ts:1027 \u00B7 packages/durable/src/harness/tool.ts:961 \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/durable/src/codemode/codemode.ts"},"region":{"startLine":1027}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f0f3526014f0b90bd8b0cb51425da0f66ecfac0c0664c99a4add315ea30f943"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/durable/src/harness/compaction.ts:472 \u00B7 packages/durable/src/harness/generation.ts:388 \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/durable/src/harness/compaction.ts"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"db387428257dd610f1699a90524771bbdd3652c0af4bda98644a13e2d6b6c14c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/durable/src/harness/events.ts:285 \u00B7 packages/durable/src/harness/events.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/durable/src/harness/events.ts"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d9f738ddc3f957fffc8f667b4afd24d114a1e3021442605a49f94d5c8f53c1a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/durable/src/storage/indexeddb.ts:425 \u00B7 packages/durable/src/storage/sqlite/storage.ts:194 \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/durable/src/storage/indexeddb.ts"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"58f471551d4f5ae000a6f41ae50f7e1484d1814edc1d792d2f95bc77a361ac11"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/durable/src/storage/memory.ts:122 \u00B7 packages/durable/src/storage/sqlite/storage.ts:77 \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/durable/src/storage/memory.ts"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"a47f87f85c003e3746bae245931298c71285c179890894277fc0eb1a6012b29c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/durable/src/storage/memory.ts:346 \u00B7 packages/durable/src/storage/memory.ts:367 \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/durable/src/storage/memory.ts"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cdfba7210d759886ae359e16600dc9c802ba8bd382247019648d8f1c18d7cc4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/durable/src/tools/bash.ts:148 \u00B7 packages/durable/src/tools/bash.ts:172 \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/durable/src/tools/bash.ts"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a461b99d9172908f89d10222676ffbf9e1818b6d250c7bd081f15334b7a8195"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/tui/src/components/h-stack.ts:5 \u00B7 packages/tui/src/components/v-stack.ts:3 \u2014 the 2 copies are spread across 2 files, and each CITED SPAN is a SPECIALISATION DECLARATION \u2014 a type whose \u0060extends\u0060 clause names a base and whose body hands that base its own values through \u0060super(\u2026)\u0060. The shared module this dimension usually asks you to extract already exists: it is that base, every one of these sites already reaches it, and the \u0060super(\u2026)\u0060 call this row matched on is where each site passes its differences in. So do not read this as an extract-a-helper row \u2014 there is no missing helper, and what is left at each site is the declaration of one distinct specialisation, which cannot be deleted without deleting the thing it declares. Read what actually differs between the spans, because two different answers follow. Where the sites differ only in the values they hand the base \u2014 a type argument, a service, an alias, a cache \u2014 the repetition is a TEMPLATE, and the only moves that collapse it are to generate these declarations from the set they enumerate or to replace the repeated construction with one factory each site calls with its own values; where that set is the point, each site pinning one distinct thing, the repetition IS the enumeration and there is nothing to remove. Where instead a span carries logic OUTSIDE the delegation that is the same at every site, that logic is the part to move, and its home is the base type rather than a new module. Reported because the copies still drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/tui/src/components/h-stack.ts"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"54583df9840b02d5cfffa574343834a92a16c74217bb74e54ec0ce507e54befc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/tui/src/components/markdown.ts:1014 \u00B7 packages/tui/src/components/markdown.ts:1037 \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/tui/src/components/markdown.ts"},"region":{"startLine":1014}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e488c3443119353f10727bc28e60842ec3ed1bc6cda926eb2708235a997312d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/tui/src/latex.ts:1277 \u00B7 packages/tui/src/latex.ts:1294 \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/tui/src/latex.ts"},"region":{"startLine":1277}}}],"partialFingerprints":{"codehealthFindingId/v1":"bde0233191c8a088b400e53bf48ca0939de182058c66739af73dad442ef77a25"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/tui/src/terminal-image.ts:95 \u00B7 packages/tui/src/terminal-image.ts:104 \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/tui/src/terminal-image.ts"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a9c7936b86c48b5eddb2d69162b40f6d4b23ff5386a50a999b00aae5c9ceb88"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): packages/tui/src/tui-alt-screen.ts:979 \u00B7 packages/tui/src/tui-alt-screen.ts:991 \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/tui/src/tui-alt-screen.ts"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"276d54530effa93a70e1196247d0c0862c6dbb674d9d50eb3fa781c4365db259"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4 locations): packages/tui/src/utils.ts:341 \u00B7 packages/tui/src/utils.ts:368 \u00B7 packages/tui/src/utils.ts:1290 \u00B7 packages/tui/src/utils.ts:1363 \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/tui/src/utils.ts"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c15e8ab6ed81ff38fc51c44d8fdd7774f1c9738a95eb408d26b3c24e2505829"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): packages/tui/src/word-navigation.ts:32 \u00B7 packages/tui/src/word-navigation.ts:59 \u2014 the two spans are one implementation copied and then locally edited \u2014 58 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/tui/src/word-navigation.ts"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e20e938e25e22b4da9a1a3ff11c6c0fe8a5a5d789a8b4c24a7aa7170a4b5351"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): scripts/check-lockfile-commit.mjs:18 \u00B7 scripts/generate-coding-agent-install-lock.mjs:115 \u2014 the two spans are one implementation copied and then locally edited \u2014 68 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":"scripts/check-lockfile-commit.mjs"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"d61bae8af60512b66fdd3a3c7845f39f4247e2eeb78ebfeebb3ef6afade777f3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): scripts/edit-tool-stats.mjs:585 \u00B7 scripts/read-tool-stats.mjs:347 \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":"scripts/edit-tool-stats.mjs"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1676c900bcfdc6024baa0928fd9e08736815fa205d6a1d4a1fa4fdf00615c77"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): scripts/session-context-stats.mjs:223 \u00B7 scripts/tool-stats.ts:120 \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":"scripts/session-context-stats.mjs"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"5118c418e18ae86a7e3e6df828620b85dec60d7a9426a6d19aa3bd9637c17c89"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): scripts/session-transcripts.ts:204 \u00B7 scripts/session-transcripts.ts:216 \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/session-transcripts.ts"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"4694cf5dc722279a5b806ca8d4c17e71f11df94c71e4002b53e63f7218e1a2d1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3 locations): packages/ai/src/api/anthropic-messages.ts:739 \u00B7 packages/ai/src/api/anthropic-messages.ts:747 \u00B7 packages/ai/src/api/anthropic-messages.ts:756 \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/ai/src/api/anthropic-messages.ts"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ef1417bfefd26e709d43442d2100c30148d085b20286905be13d60613d825ec"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/ai/src/models.ts:715 \u00B7 packages/ai/src/models.ts:737 \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/ai/src/models.ts"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7a52ece6d2941832b1b9116026f37e4f853b82b06c77d29f15293f671dcfd8d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/ai/src/utils/estimate.ts:101 \u00B7 packages/coding-agent/src/core/compaction/compaction.ts:212 \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/ai/src/utils/estimate.ts"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"996ca1725229203c610308f20f5b66d2bc8138a249a19e409f4238747648c7f2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): packages/chord/src/connection.ts:1277 \u00B7 packages/chord/src/object.ts:545 \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/chord/src/connection.ts"},"region":{"startLine":1277}}}],"partialFingerprints":{"codehealthFindingId/v1":"d602c6341441550565ea73689f1fec2e60a32b501dcacd76faa36ee8f2f82a22"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3 locations): packages/chord/src/delta/diff.ts:142 \u00B7 packages/durable/src/storage/memory.ts:130 \u00B7 packages/durable/src/storage/memory.ts:141 \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/chord/src/delta/diff.ts"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"78226717c2a1dd0a1822acf62e7700f9305b77c9d9fe51313d96078c93f39ea4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/chord/src/delta/diff.ts:164 \u00B7 packages/chord/src/delta/diff.ts:173 \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/chord/src/delta/diff.ts"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"d483caedbe2292121d5cc7c3e4b5904072ffaf68775ac316b327b50e48739e79"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/coding-agent/src/cli/args.ts:142 \u00B7 packages/coding-agent/src/cli/args.ts:162 \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/coding-agent/src/cli/args.ts"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2470baf19f9537695969def7def47c2a115e3676d717dd691f88414120c90df"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/coding-agent/src/cli/list-models.ts:96 \u00B7 packages/coding-agent/src/cli/list-models.ts:108 \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/coding-agent/src/cli/list-models.ts"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c154698a5d971efc094320c15220ae4253e9ac5e69675a6edc16bd39e9cdfda"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/coding-agent/src/core/agent-session.ts:552 \u00B7 packages/coding-agent/src/core/agent-session.ts:597 \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/coding-agent/src/core/agent-session.ts"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd33c29b7460fca85f04532607dd72cff908fac6455f0e52460cd794f4333eea"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/coding-agent/src/core/agent-session.ts:2606 \u00B7 packages/coding-agent/src/core/agent-session.ts:2642 \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/coding-agent/src/core/agent-session.ts"},"region":{"startLine":2606}}}],"partialFingerprints":{"codehealthFindingId/v1":"8efa164d3750c9022b5f349e72189aeb1e1ddce468a5826b6618d6e6a3ca9b76"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/coding-agent/src/core/auth-storage.ts:476 \u00B7 packages/coding-agent/src/core/models-store.ts:139 \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/coding-agent/src/core/auth-storage.ts"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"19b100ca064cf86a90633fece1dce77f747e90797372b2e30dab475bdf7d0d85"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3 locations): packages/coding-agent/src/core/export-html/template.js:210 \u00B7 packages/coding-agent/src/core/export-html/template.js:570 \u00B7 packages/coding-agent/src/modes/interactive/components/tree-selector.ts:247 \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/coding-agent/src/core/export-html/template.js"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec8239d0356af2ab33675253de1c052d462fc698f47d539470f87f3872eaa63b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/coding-agent/src/core/nested-tool-calls.ts:154 \u00B7 packages/coding-agent/src/extensions/codemode/execute.ts:127 \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/coding-agent/src/core/nested-tool-calls.ts"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dab66d2176f112425f1d67fa297450ec2722201e618057443494d617295f9f1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/coding-agent/src/core/package-manager.ts:1113 \u00B7 packages/coding-agent/src/core/package-manager.ts:1119 \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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":1113}}}],"partialFingerprints":{"codehealthFindingId/v1":"b02734de8b2736df2a1e747435555857d4a18bb0fc3551f202e23346a6004e9a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/coding-agent/src/core/package-manager.ts:1925 \u00B7 packages/coding-agent/src/core/package-manager.ts:1963 \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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":1925}}}],"partialFingerprints":{"codehealthFindingId/v1":"28d01125f4935aeebd58debcce102e1c4e5e65eb849c3c4c02ada393ab7cc5a5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/coding-agent/src/core/resolve-config-value.ts:257 \u00B7 packages/coding-agent/src/core/resolve-config-value.ts:273 \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/coding-agent/src/core/resolve-config-value.ts"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2dac60519f974f48b7c589606990d4d78bf25d1e92d82c665c5ebb5939d90a5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): packages/coding-agent/src/core/tools/edit-diff.ts:524 \u00B7 packages/coding-agent/src/core/tools/edit.ts:176 \u2014 the two spans are one implementation copied and then locally edited \u2014 66 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/coding-agent/src/core/tools/edit-diff.ts"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"a880a0de3a0f725122f86e7a064b23238bb83f1a8c1262cc6f27e48e384e6730"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/coding-agent/src/core/tools/read.ts:14 \u00B7 packages/durable/src/tools/read.ts:34 \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/coding-agent/src/core/tools/read.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"392df6e624873da237a419a9b488adf37fbd9640d9cf83079c4fa094e34078c6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): packages/coding-agent/src/core/tools/renderers/write.ts:118 \u00B7 packages/coding-agent/src/modes/interactive/components/tool-execution.ts:155 \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/coding-agent/src/core/tools/renderers/write.ts"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b84f140310978ec6011eb930f62779c2d37e19d453fae1c6383969bee09cbe6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/coding-agent/src/extensions/llama/client.ts:280 \u00B7 packages/coding-agent/src/extensions/llama/client.ts:324 \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/coding-agent/src/extensions/llama/client.ts"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"e849be6614c13b26f26cd85fe5f51e0d4218ff99ffd2a10e6b4b70d5499bcc89"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/components/earendil-announcement.ts:32 \u00B7 packages/coding-agent/src/modes/interactive/components/settings-selector.ts:340 \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/coding-agent/src/modes/interactive/components/earendil-announcement.ts"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"77478e4ea7a1c9da0f63491168ba63037dd588a721dbd40444f5f7a82c1d5907"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/components/model-selector.ts:385 \u00B7 packages/tui/src/components/select-list.ts:154 \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/coding-agent/src/modes/interactive/components/model-selector.ts"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf518e06f956ed5ec76b138abe49174caff3a2170d97fc9be7c4a8fa36cf778c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/components/scoped-models-selector.ts:245 \u00B7 packages/coding-agent/src/modes/interactive/components/session-selector.ts:452 \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/coding-agent/src/modes/interactive/components/scoped-models-selector.ts"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"18c4b5abc376d43a138b6403c3d8d0580c815181cbb360eec1514b71a5b99733"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/components/status-indicator.ts:33 \u00B7 packages/coding-agent/src/modes/interactive/components/status-indicator.ts:76 \u2014 the two spans are one implementation copied and then locally edited \u2014 58 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/coding-agent/src/modes/interactive/components/status-indicator.ts"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"31e767e14537fb66175bca0cc60629f164c9bc1e1b03fee5d5177eeca9af71dd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/components/tree-selector.ts:995 \u00B7 packages/coding-agent/src/modes/interactive/components/user-message-selector.ts:79 \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/coding-agent/src/modes/interactive/components/tree-selector.ts"},"region":{"startLine":995}}}],"partialFingerprints":{"codehealthFindingId/v1":"caeb2f96e7e6dffd6e7f0804f48d6ce8963b182b61993c6473bcc14d69ce6dba"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/components/tree-selector.ts:1062 \u00B7 packages/coding-agent/src/modes/interactive/components/tree-selector.ts:1069 \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/coding-agent/src/modes/interactive/components/tree-selector.ts"},"region":{"startLine":1062}}}],"partialFingerprints":{"codehealthFindingId/v1":"646eb98b660ddd177135ddf2fb039c210c357aaf07e1418455f3da6042dc695a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/interactive-mode.ts:1867 \u00B7 packages/coding-agent/src/modes/interactive/interactive-mode.ts:1881 \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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":1867}}}],"partialFingerprints":{"codehealthFindingId/v1":"f66b60f7fc754d0afcd4c9909e34c6d73983e6b5cb108adce9f76e0b22348385"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/model-search.ts:4 \u00B7 packages/coding-agent/src/modes/interactive/model-search.ts:33 \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/coding-agent/src/modes/interactive/model-search.ts"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1837ec4462938baca4f129b779250d6afcbd61d423602e4d41f7d6522041227"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/coding-agent/src/utils/git.ts:24 \u00B7 packages/coding-agent/src/utils/git.ts:39 \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/coding-agent/src/utils/git.ts"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"2068061d2c506f16765a7df00253c9ee2fea09e9e278f7cefb1f423cbb1d02bb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): packages/durable/src/harness/json.ts:52 \u00B7 packages/durable/src/harness/partial-changes.ts:174 \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/durable/src/harness/json.ts"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fd405272e8c72fd94be090de209b8e72d9b1f452c32c50edb9e9d147d178cb9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): packages/durable/src/harness/registry.ts:33 \u00B7 packages/durable/src/harness/types.ts:390 \u2014 the two spans are one implementation copied and then locally edited \u2014 87 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/durable/src/harness/registry.ts"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d89a29d76e4f7e1610703f42aa9b971084fdae2127220920d8b082ebd59003c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/durable/src/storage/indexeddb.ts:609 \u00B7 packages/durable/src/storage/indexeddb.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/durable/src/storage/indexeddb.ts"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"86c5f6d276e1bd1df5247fabe61f536da7b8a6e58896b28d7059530eeac864bc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3 locations): packages/durable/src/storage/memory.ts:454 \u00B7 packages/durable/src/storage/memory.ts:557 \u00B7 packages/durable/src/storage/memory.ts:586 \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/durable/src/storage/memory.ts"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"40d74c84b92115fa085fef24d836def12f7646afa5e0819dfae8ce3f37e845b8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/durable/src/storage/memory.ts:697 \u00B7 packages/durable/src/storage/memory.ts:719 \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/durable/src/storage/memory.ts"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"8044bc5ac4abdefb60fc797fac5e88710df41dacb60a4c3c36de3d94d7c18ddd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/durable/src/testing/storage-conformance.ts:286 \u00B7 packages/durable/src/testing/storage-conformance.ts:302 \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/durable/src/testing/storage-conformance.ts"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f3fade12c1f81a641614f630a4fe15d6452485a13426b1a5fead45a3e29d136"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/evals/docker/entrypoint.ts:38 \u00B7 packages/evals/docker/install-runtime.mjs:44 \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/evals/docker/entrypoint.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"4855aae6a858c24422dbaf91a68113ae000d1e3948f5f81dba35b0356ca35d79"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/tui/src/colors.ts:81 \u00B7 packages/tui/src/colors.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/tui/src/colors.ts"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"24ef836825fd1ae11eff0cfa409a5ca76cca1708a6e3eeb6f878810e6c1e9388"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): packages/tui/src/components/input.ts:354 \u00B7 packages/tui/src/components/input.ts:373 \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/tui/src/components/input.ts"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3df03bfc172bab31b9077737294505bc3315f48ca475c542e975c496d2ebdd8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): packages/tui/src/oklab.ts:114 \u00B7 packages/tui/src/oklab.ts:136 \u2014 the two spans are one implementation copied and then locally edited \u2014 72 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/tui/src/oklab.ts"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"425cfb4c83a23d8ca3e7abd7e8c4578696604e552a41ccfa2a0602f645a3fcef"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): scripts/check-package-install.mjs:14 \u00B7 scripts/local-release.mjs:122 \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":"scripts/check-package-install.mjs"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"3754346fb22bcc29dc3c5303b07f4627346d98c65a17100e4f91b34c03bbfc5a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): scripts/diff-model-catalog.mjs:26 \u00B7 scripts/release-notes.mjs:48 \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":"scripts/diff-model-catalog.mjs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b27ba3369e88c90944b43a5099d2ce719f8dc913ed3177f4413e4bd640f7a9b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): scripts/edit-tool-stats.mjs:103 \u00B7 scripts/read-tool-stats.mjs:127 \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":"scripts/edit-tool-stats.mjs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"55ea073dc25fb5ef5cfe0d3eeb94c7c2ae9212a8f8cfa0f14ada4ff462cd40aa"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): scripts/edit-tool-stats.mjs:694 \u00B7 scripts/read-tool-stats.mjs:421 \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":"scripts/edit-tool-stats.mjs"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"86948a2883a3e430982a44a5ee4ce56929b38a6c15beabbda8d250de665e4411"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): scripts/read-tool-stats.mjs:362 \u00B7 scripts/read-tool-stats.mjs:369 \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/read-tool-stats.mjs"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"87a9ff956b8ec08a0166b716c392bef7c4379d46f142e5a9e092678a4b4a9424"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): scripts/read-tool-stats.mjs:376 \u00B7 scripts/read-tool-stats.mjs:383 \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/read-tool-stats.mjs"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"12c1322991201549614f00240e621f48d4209ddd13a75c0505878e61c48aca78"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/ai/src/api/llama-cpp-classify.ts:137 \u00B7 packages/ai/src/api/openai-decisions.ts:44 \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/ai/src/api/llama-cpp-classify.ts"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"973ddc5dff07f2ca31692d4b4371c1b25e0209f1a43692c82362368a31482d28"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (5 matched lines \u00D7 2 locations): packages/ai/src/auth/oauth/github-copilot.ts:155 \u00B7 packages/ai/src/utils/provider-retry.ts:60 \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/ai/src/auth/oauth/github-copilot.ts"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd8b8115884c53f60ba99a74b68e01c78360bfa2949b2ecf2669091c09af3fae"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/chord/src/delta/diff.ts:27 \u00B7 packages/chord/src/delta/tracker.ts:2213 \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/chord/src/delta/diff.ts"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2b4b9f7d0dab6256890952fc9c662b50c1a86e2de318457528d8bba41133727"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3 locations): packages/chord/src/delta/tracker.ts:1300 \u00B7 packages/chord/src/delta/tracker.ts:1596 \u00B7 packages/chord/src/delta/tracker.ts:1621 \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/chord/src/delta/tracker.ts"},"region":{"startLine":1300}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecbe8ac49db92ecdc76926e8e8a1cfa6801945853df70601795b2cac7ebc5ebe"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (5 matched lines \u00D7 2 locations): packages/chord/src/sqlite/cloudflare.ts:146 \u00B7 packages/chord/src/sqlite/database.ts:12 \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/chord/src/sqlite/cloudflare.ts"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"60657ebb2d8fea8b0092a583290b4b5e8aa94b9fff44c76049397825dc1d2aac"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/coding-agent/src/cli/args.ts:95 \u00B7 packages/coding-agent/src/cli/args.ts:201 \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/coding-agent/src/cli/args.ts"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"e54d71b09745dcbb2070492f46badc75d30550b69efa9e1ac73c972668b92ba2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (5 matched lines \u00D7 2 locations): packages/coding-agent/src/core/export-html/template.js:884 \u00B7 packages/coding-agent/src/modes/interactive/components/footer.ts:25 \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/coding-agent/src/core/export-html/template.js"},"region":{"startLine":884}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a609816fe4acc875b75bc7dbd389ec081a1fac54450c51b6930cd7c0f3cd9eb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (5 matched lines \u00D7 2 locations): packages/coding-agent/src/core/session-manager.ts:420 \u00B7 packages/coding-agent/src/core/virtual-models.ts:131 \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/coding-agent/src/core/session-manager.ts"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"16bc2ad1c3a008a8ede90c93114bfccc44871a3db7eb05a14dec4bc8f6d0f0cc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/coding-agent/src/core/tools/renderers/edit.ts:81 \u00B7 packages/coding-agent/src/core/tools/renderers/read.ts:30 \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/coding-agent/src/core/tools/renderers/edit.ts"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3119f38cbdb926b89d504068bc8a94ff5f2f2a96a94ad140ec8bdf1f04a7049"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/coding-agent/src/extensions/codemode/execute.ts:200 \u00B7 packages/durable/src/codemode/models.ts:144 \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/coding-agent/src/extensions/codemode/execute.ts"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"076819d1601b529ea8f67461de85fc86c2e80bc4caee4e54ffb18f611b5112c0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/coding-agent/src/extensions/llama/client.ts:206 \u00B7 packages/coding-agent/src/extensions/llama/client.ts:223 \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/coding-agent/src/extensions/llama/client.ts"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd713d0f61e82b3853584323a0bcc105670cd41207188f9268cea469abacf561"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/coding-agent/src/extensions/tool-search/tool.ts:230 \u00B7 packages/durable/src/tool-search/tool-search.ts:63 \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/coding-agent/src/extensions/tool-search/tool.ts"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa09cc08cc4a3c17b5bd65c3e7265d7dc6943d2cc38934991d564db071c7a483"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/components/easter-egg-3d.ts:543 \u00B7 packages/coding-agent/src/modes/interactive/components/easter-egg-3d.ts:551 \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/coding-agent/src/modes/interactive/components/easter-egg-3d.ts"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c360ebee972bdbcf9e4ba58ea18b3c2412976f542544cdaf9e4511eca6420fc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3 locations): packages/coding-agent/src/modes/interactive/components/first-time-setup.ts:54 \u00B7 packages/coding-agent/src/modes/interactive/components/scoped-models-selector.ts:132 \u00B7 packages/coding-agent/src/modes/interactive/components/trust-selector.ts:50 \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/coding-agent/src/modes/interactive/components/first-time-setup.ts"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cd2d279d9ad58e83812fd4295b6db3c4835fae346c55e2c349ab7dae35fc477"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/components/session-selector.ts:626 \u00B7 packages/coding-agent/src/modes/interactive/components/tree-selector.ts:1024 \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/coding-agent/src/modes/interactive/components/session-selector.ts"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"981b9de0e7301fe77165b10123f9e7ba67a6c0e1333c660b87b294a60e39bb53"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/interactive-mode.ts:4612 \u00B7 packages/coding-agent/src/modes/interactive/interactive-mode.ts:4618 \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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":4612}}}],"partialFingerprints":{"codehealthFindingId/v1":"fee3aacee97a119cc87f22ffc9a136c87eaaf12c763f54c554dd355698c65715"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/coding-agent/src/modes/interactive/interactive-mode.ts:4638 \u00B7 packages/coding-agent/src/modes/interactive/interactive-mode.ts:4663 \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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":4638}}}],"partialFingerprints":{"codehealthFindingId/v1":"c70fbbf49c0c1e945f4c088000c1055ac8aec49f581d1d267669a1852780f69b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/durable/src/env/node.ts:1047 \u00B7 packages/durable/src/env/node.ts:1068 \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/durable/src/env/node.ts"},"region":{"startLine":1047}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fcfde69c75eb3e250a61705756e34b6c83cde51227aaaccbcf8b42f6cbc45ef"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/durable/src/harness/submissions.ts:219 \u00B7 packages/durable/src/harness/submissions.ts:268 \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/durable/src/harness/submissions.ts"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ea394a9fd8084126156a5788801dd2bbadde262d1bb83f0084bca898865550a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/durable/src/storage/indexeddb.ts:418 \u00B7 packages/durable/src/storage/sqlite/storage.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/durable/src/storage/indexeddb.ts"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"330b44d050e304615c2ebbdebfa56cc2efb9d12d22903d6231432ec5a9910e4c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/durable/src/storage/memory.ts:735 \u00B7 packages/durable/src/storage/sqlite/storage.ts:670 \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/durable/src/storage/memory.ts"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ce8850ef6db74c9df19459f573ba012f9356137b41860170f94b8027375113b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3 locations): packages/durable/src/testing/storage-conformance.ts:435 \u00B7 packages/durable/src/testing/storage-conformance.ts:536 \u00B7 packages/durable/src/testing/storage-conformance.ts:713 \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/durable/src/testing/storage-conformance.ts"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"42b2db0be594445e417ef4d05b7e7e341490fdad5ce60ffa245869c2b1447a6c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/env/src/ssh.ts:146 \u00B7 scripts/issues/github.ts:155 \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/env/src/ssh.ts"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"7443c16f2caee42d407b5c8fd91af8a57a9691675a80bf6249306be5dccdeadc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/tui/src/components/editor.ts:1424 \u00B7 packages/tui/src/components/editor.ts:2088 \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/tui/src/components/editor.ts"},"region":{"startLine":1424}}}],"partialFingerprints":{"codehealthFindingId/v1":"d539a252a09b957b29588c596e11fe3725d3d8533b0d1c3342649b0f54a72a7d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/tui/src/components/editor.ts:2039 \u00B7 packages/tui/src/components/editor.ts:2046 \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/tui/src/components/editor.ts"},"region":{"startLine":2039}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3ba66122f6eef630a0a44ecb76f1645bc9a15f98b73596c2b13177db92e66cc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/tui/src/components/select-list.ts:110 \u00B7 packages/tui/src/components/settings-list.ts:194 \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/tui/src/components/select-list.ts"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"74ebd1a1de5f65c15b973e3612d496946293d5cabe5a2fb9051eb17a25d24a39"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): packages/tui/src/layout.ts:173 \u00B7 packages/tui/src/layout.ts:200 \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/tui/src/layout.ts"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a26e5c0c12860dbd0d4048b66fd42f86e7879d9290c48187f9499d79510661b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): scripts/local-package-install.mjs:112 \u00B7 scripts/local-package-install.mjs:145 \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/local-package-install.mjs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"08d824b72bc1c58c807fd278e04c36db14613ea1d4f91f1a551ffa0531673e22"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): scripts/read-tool-stats.mjs:158 \u00B7 scripts/session-context-stats.mjs:92 \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":"scripts/read-tool-stats.mjs"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5ad7ac2740b91f0ec7ea709bcf1cc51373099c189a3e6932e4d00be416227c6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): scripts/session-transcripts.ts:215 \u00B7 scripts/session-transcripts.ts:236 \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/session-transcripts.ts"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"8507061af99f5f4dd011fb43c3094732ff40dae64a89238b8344ae531b56bb37"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:test-cross-package-internals]: packages/ai/test/codex-websocket-cached-probe.ts:12 reaches past another workspace package\u0027s public entry into its internals with a relative path (../../coding-agent/src/core/model-runtime.ts) \u2014 the test is coupled to a file layout that package makes no promise about, so a refactor behind its entry point breaks the suite. Import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/test/codex-websocket-cached-probe.ts"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ea87c44c3b6127534ed9695c5e273f3be326e8906cb6d53b592be80ffacff4f"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:test-cross-package-internals]: packages/chord/test/telemetry-sqlite.test.ts:9 reaches past another workspace package\u0027s public entry into its internals with a relative path (../../telemetry/src/testing/index.ts) \u2014 the test is coupled to a file layout that package makes no promise about, so a refactor behind its entry point breaks the suite. Import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/test/telemetry-sqlite.test.ts"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"d19883b237557d85683b1ef2e7bc84d547f77ec3d4f49bfffff98b1831f59abb"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: packages/coding-agent/src/utils/syntax-highlight.ts:1 imports highlight.js/lib/core.js, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/utils/syntax-highlight.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"de7a786132d6966a815e2921580f94e98b4a8475af77df056ff76a73c1479c37"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: packages/coding-agent/src/utils/syntax-highlight.ts:2 imports highlight.js/lib/languages/bash.js, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/utils/syntax-highlight.ts"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"95384ca34a5fc672e08dc5f87e355fd762bdc4c921c1ecb0f457f45b660d5435"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: packages/coding-agent/src/utils/syntax-highlight.ts:3 imports highlight.js/lib/languages/c.js, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/utils/syntax-highlight.ts"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5b9c9a9fa036485bfbd933f0eeb6c5da7b4a736d9a53c31d1ffe24979160031"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: packages/coding-agent/src/utils/syntax-highlight.ts:4 imports highlight.js/lib/languages/cpp.js, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/utils/syntax-highlight.ts"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"269e0372a0140bc783fc55771a3da74613288b55b9f734a47389e51c0af39690"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: packages/coding-agent/src/utils/syntax-highlight.ts:5 imports highlight.js/lib/languages/csharp.js, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/utils/syntax-highlight.ts"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"f78aa258e7a1a04be5441c5c3f0bbf837c6a4d3b4f0494c0b5e0797c7909a0a5"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: packages/coding-agent/src/utils/syntax-highlight.ts:6 imports highlight.js/lib/languages/dart.js, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/utils/syntax-highlight.ts"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e60a1bb1363becc816fe4418694afe2e94cd8c547c6746a625953acc5fbdb9e"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: packages/coding-agent/src/utils/syntax-highlight.ts:7 imports highlight.js/lib/languages/go.js, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/utils/syntax-highlight.ts"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ce7443cb47f6e1bbf8ac222d77cf2c6d2e8303b6cb03c8995397fa618122e55"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: packages/coding-agent/src/utils/syntax-highlight.ts:8 imports highlight.js/lib/languages/groovy.js, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/utils/syntax-highlight.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"5085cb320d493e9ef08f6e5093ccd32da987ef4103bd2185aabc8187b59aed2d"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: packages/coding-agent/src/utils/syntax-highlight.ts:9 imports highlight.js/lib/languages/java.js, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/utils/syntax-highlight.ts"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"146757046cffa8ea5d2a5a73d4b4bfb996d2d47ff4fc7e9bd0af93c6d6fc39c9"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: packages/coding-agent/src/utils/syntax-highlight.ts:10 imports highlight.js/lib/languages/javascript.js, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/utils/syntax-highlight.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"4243b3586750e327da17afb6065609843a522315b6bc4a041b3a7006a8017e0c"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: packages/coding-agent/src/utils/syntax-highlight.ts:11 imports highlight.js/lib/languages/json.js, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/utils/syntax-highlight.ts"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"a66afc02a62e831ba6033345fee62586c672b402c058759ec6253a54ce2fe0dd"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: packages/coding-agent/src/utils/syntax-highlight.ts:12 imports highlight.js/lib/languages/kotlin.js, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/utils/syntax-highlight.ts"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e715287f2ff211ef1dd98453f0757bfb40bad1b6a7870b12037d3ea660f7bc4"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: packages/coding-agent/src/utils/syntax-highlight.ts:13 imports highlight.js/lib/languages/lua.js, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/utils/syntax-highlight.ts"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6f5d3119b6166acef1886c4439bf0c532a849c695361176219dff5559926cd3"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: packages/coding-agent/src/utils/syntax-highlight.ts:14 imports highlight.js/lib/languages/nix.js, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/utils/syntax-highlight.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"034bd079c2526eb589b91b505492230c89c7f427d47f9b9d99cb3fdfc55e3837"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: packages/coding-agent/src/utils/syntax-highlight.ts:15 imports highlight.js/lib/languages/perl.js, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/utils/syntax-highlight.ts"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"22345f4a031f171ddb1152cd603bdd33b4d4ef3a0957e3b787dd135f59226f34"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: packages/coding-agent/src/utils/syntax-highlight.ts:16 imports highlight.js/lib/languages/php.js, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/utils/syntax-highlight.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"862def89f8707bc68faff9ac0aa99e857a43ce86460af9f9e08cbc96405792aa"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: packages/coding-agent/src/utils/syntax-highlight.ts:17 imports highlight.js/lib/languages/python.js, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/utils/syntax-highlight.ts"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aba7dfee9fb354264e527fd5867d7eead794ec68a888de09252b9b4e7d34d52"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: packages/coding-agent/src/utils/syntax-highlight.ts:18 imports highlight.js/lib/languages/ruby.js, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/utils/syntax-highlight.ts"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7e7f045df5acc3d4c7ebd1601d8679ab40658901868b0ee060aeaea3a896579"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: packages/coding-agent/src/utils/syntax-highlight.ts:19 imports highlight.js/lib/languages/rust.js, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/utils/syntax-highlight.ts"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef6adfe1814e09a218cc8fa53df995afc4c3998fbca7b3fb50494c69319e5c77"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: packages/coding-agent/src/utils/syntax-highlight.ts:20 imports highlight.js/lib/languages/scala.js, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/utils/syntax-highlight.ts"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce7e62a55494045f4db86edd88750da40539bdcb65aa4348f025203b794ece25"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: packages/coding-agent/src/utils/syntax-highlight.ts:21 imports highlight.js/lib/languages/swift.js, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/utils/syntax-highlight.ts"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"21503a30c4bf19b762095ec948feabf6cfe757a3a4d7ca90a2af653f7d9ac0b7"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: packages/coding-agent/src/utils/syntax-highlight.ts:22 imports highlight.js/lib/languages/typescript.js, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/utils/syntax-highlight.ts"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9a9bf96b5b9051695505e2862fd258608a632fe59ceaa468e53f87f748debcb"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: packages/coding-agent/src/utils/syntax-highlight.ts:59 imports highlight.js/lib/index.js, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/utils/syntax-highlight.ts"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"c25f925ab27c76abd9ee02a2276039a38a6ef74f814b6d8d12cd6d1974ccc0e7"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:test-cross-package-internals]: packages/coding-agent/test/interactive-mode-status.test.ts:5 reaches past another workspace package\u0027s public entry into its internals with a relative path (../../tui/src/tui.ts) \u2014 the test is coupled to a file layout that package makes no promise about, so a refactor behind its entry point breaks the suite. Import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/test/interactive-mode-status.test.ts"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"af7c69117df50f8337b9c20d209995b1d00ed018fe4d008f59b45f44e7b6e1d8"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:test-cross-package-internals]: packages/coding-agent/test/interactive-mode-status.test.ts:6 reaches past another workspace package\u0027s public entry into its internals with a relative path (../../tui/src/tui-main-screen.ts) \u2014 the test is coupled to a file layout that package makes no promise about, so a refactor behind its entry point breaks the suite. Import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/test/interactive-mode-status.test.ts"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7314ebf8ca2599db9f4e951cbed8050376af205ab83c3cac1474c30f612f004"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:test-cross-package-internals]: packages/coding-agent/test/sdk-codex-cache-probe-tool-loop.ts:26 reaches past another workspace package\u0027s public entry into its internals with a relative path (../../ai/src/api/openai-codex-responses.ts) \u2014 the test is coupled to a file layout that package makes no promise about, so a refactor behind its entry point breaks the suite. Import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/test/sdk-codex-cache-probe-tool-loop.ts"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"258017b9f402bc70bc482cbf0db8a01d5442d06e3e0af67e6a8637b83caa7405"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:test-cross-package-internals]: packages/durable/test/provider-session-cache-e2e.test.ts:13 reaches past another workspace package\u0027s public entry into its internals with a relative path (../../ai/src/api/openai-codex-responses.ts) \u2014 the test is coupled to a file layout that package makes no promise about, so a refactor behind its entry point breaks the suite. Import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/test/provider-session-cache-e2e.test.ts"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"c716a0ed465f5ce1779a6ed9c147dca4c73b25307d0f2d925c371a97fccf7b43"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:test-cross-package-internals]: packages/durable/test/system-order-cache-e2e.test.ts:22 reaches past another workspace package\u0027s public entry into its internals with a relative path (../../ai/src/api/anthropic-messages.ts) \u2014 the test is coupled to a file layout that package makes no promise about, so a refactor behind its entry point breaks the suite. Import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/test/system-order-cache-e2e.test.ts"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"30223b154b909d20be6a80069350881f3f420a8ee7e4a6823a08ce77bb664cf9"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:relative-cross-package]: packages/evals/docker/install-runtime.mjs:5 reaches into another package with a relative path (../../../scripts/local-package-install.mjs) \u2014 import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/evals/docker/install-runtime.mjs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a0347407394b68402fd2ef2517bd03a68a3320f646c826f3cbdf8e483d46458"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:relative-cross-package]: packages/evals/docker/install-runtime.mjs:6 reaches into another package with a relative path (../../../scripts/package-artifacts.mjs) \u2014 import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/evals/docker/install-runtime.mjs"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b31f65ee09599251fee1bd3b9317e51d69ace99755caea5a291440eb84259f1"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:relative-cross-package]: packages/evals/docker/install-runtime.mjs:7 reaches into another package with a relative path (../../../scripts/coding-agent-smoke.mjs) \u2014 import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/evals/docker/install-runtime.mjs"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfc129cb9ce2a6db70835a4059c1d48c735687ae5fc0f38f50a13c4b6c882154"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:test-cross-package-internals]: packages/evals/test/harness.test.ts:4 reaches past another workspace package\u0027s public entry into its internals with a relative path (../../coding-agent/src/core/system-prompt.ts) \u2014 the test is coupled to a file layout that package makes no promise about, so a refactor behind its entry point breaks the suite. Import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/evals/test/harness.test.ts"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"02aa799eb20c17c2c8bc022c605ea792782c99f45cb4c603e9f14f65c8be3528"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:relative-cross-package]: scripts/generate-thinking-capabilities.mjs:5 reaches into another package with a relative path (../packages/ai/src/models.ts) \u2014 import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/generate-thinking-capabilities.mjs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5df49b8b5082141b8891864c64f09ec5871aded66134b875791f2d979e35afd"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:relative-cross-package]: scripts/issues/triage.ts:10 reaches into another package with a relative path (../../packages/coding-agent/src/core/auth-storage.ts) \u2014 import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/issues/triage.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"95570953951620feeb1f47f311be9d2fcef9de7950f85ca6a9ef0a420ed256e2"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:relative-cross-package]: scripts/issues/triage.ts:11 reaches into another package with a relative path (../../packages/durable/src/index.ts) \u2014 import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/issues/triage.ts"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"753e9691b018ad47f7373509cd550faf1117c308266cfd4dd8f4c75f0d4f50ae"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:relative-cross-package]: scripts/issues/triage.ts:21 reaches into another package with a relative path (../../packages/durable/src/storage/sqlite/node.ts) \u2014 import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/issues/triage.ts"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"73b7466177683ec0d6b9c4e66e036b32159c083e321c620b458cc7366dd8c733"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:relative-cross-package]: scripts/repro-5893-wsl-bash.mjs:3 reaches into another package with a relative path (../packages/coding-agent/src/core/tools/bash.ts) \u2014 import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/repro-5893-wsl-bash.mjs"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cbfa4f46f16023ea7f54a2a2590de0c43cc6df7791f119ca43231eeecb87719"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:relative-cross-package]: scripts/session-transcripts.ts:17 reaches into another package with a relative path (../packages/coding-agent/src/core/session-manager.ts) \u2014 import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/session-transcripts.ts"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"b98bee518fe4efae0d1768e958026e146bd3a12adb33f90b99f88c28f19f067d"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:relative-cross-package]: scripts/tool-stats.ts:6 reaches into another package with a relative path (../packages/coding-agent/src/utils/open-browser.ts) \u2014 import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/tool-stats.ts"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"236976cb2b6d1d3cd30fddea5db59e244afaef1eb44354ef9c16eddf7bc22bb1"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:relative-cross-package]: scripts/update-model-catalog-pin.mjs:8 reaches into another package with a relative path (../packages/ai/scripts/hydrate-model-catalog.ts) \u2014 import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/update-model-catalog-pin.mjs"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"24aefdeb7c5bb9119aefe8599b87802ccf5b44c4e5950bdccac97486a09c8b01"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:relative-cross-package]: scripts/update-model-catalog-pin.mjs:9 reaches into another package with a relative path (../packages/ai/scripts/model-data.ts) \u2014 import the package by name instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/update-model-catalog-pin.mjs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf210a5113b19a16d465cac7cc268377e92be73359d3a7fdac5711c096336562"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function loadModelsDevData (cyclomatic 239, cognitive 437): loadModelsDevData has cyclomatic complexity 239 and cognitive complexity 437; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/scripts/generate-models.ts"},"region":{"startLine":1821}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f398cec4c6c081f034a680df0a63ed72437cec7bcf1aaecd29d851552b2f805"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function matchesKey (cyclomatic 166, cognitive 201): matchesKey has cyclomatic complexity 166 and cognitive complexity 201; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/tui/src/keys.ts"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"21612d78f12ce9369cb85258185e6240ae8f3ee23fa209218f8bbeca43c1f6d4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseArgs (cyclomatic 116, cognitive 149): parseArgs has cyclomatic complexity 116 and cognitive complexity 149; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/cli/args.ts"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"c410413a8e65c0fb19240abce4bf86c684c891ae5d481c394e23fa2a3eafd9f7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function translate (cyclomatic 100, cognitive 128): translate has cyclomatic complexity 100 and cognitive complexity 128; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/harness/events.ts"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd9a84aeea39fef17884fdb5a5ddff399820af5390a4cfd83c5bdafa69e08049"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildParams (cyclomatic 91, cognitive 120): buildParams has cyclomatic complexity 91 and cognitive complexity 120; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/src/api/openai-completions.ts"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"22cbc8d52aee80553045fa00612fef39aa12a08c0c9f539519dc17600c7aa3da"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function generateModels (cyclomatic 90, cognitive 133): generateModels has cyclomatic complexity 90 and cognitive complexity 133; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/scripts/generate-models.ts"},"region":{"startLine":2782}}}],"partialFingerprints":{"codehealthFindingId/v1":"bad2c093502d01637fee6fa636181f4968bc786d043e6ad36aa4946e6aeef2db"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyThinkingLevelMetadata (cyclomatic 86, cognitive 82): applyThinkingLevelMetadata has cyclomatic complexity 86 and cognitive complexity 82; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/scripts/generate-models.ts"},"region":{"startLine":1063}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0ac610720d868d7dc8dd7f04b7f446a0ee57e6e8aca7159acfd734657aced07"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parsePackageCommand (cyclomatic 84, cognitive 132): parsePackageCommand has cyclomatic complexity 84 and cognitive complexity 132; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/package-manager-cli.ts"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"b58f7a8939fe95d6c14bdd322163c92333e1fb0f3c91bcd75f81049a9275bfb6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleEvent (cyclomatic 82, cognitive 141): handleEvent has cyclomatic complexity 82 and cognitive complexity 141; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":3363}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf42fb650cd4a6b3b8c453c68f088f2f4b95e1a2b2f84aabb6b7e1116ecdac34"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 81, cognitive 154): (anonymous) has cyclomatic complexity 81 and cognitive complexity 154; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/src/api/anthropic-messages.ts"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe193eb240fdb708a89d5c42993d49fef5e56942b8654be15434e029f930b1aa"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleInput (cyclomatic 81, cognitive 111): handleInput has cyclomatic complexity 81 and cognitive complexity 111; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/tui/src/components/editor.ts"},"region":{"startLine":696}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddb297268fac55d79a95e3db7c0ea86d69d7d02ca77f7a111a8342e5ac713663"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function recover (cyclomatic 80, cognitive 145): recover has cyclomatic complexity 80 and cognitive complexity 145; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/storage/jsonl/storage.ts"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d9314829c34a9d7c4888e7ab1b289cb56638c66e7e9dddc5e39f0605eab8343"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseCommand (cyclomatic 76, cognitive 83): parseCommand has cyclomatic complexity 76 and cognitive complexity 83; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/tui/src/latex.ts"},"region":{"startLine":1014}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d483f53f39cca663824f335bb0a93a1f0b4293bbddac1e7e53cc1a0f642a5b6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function main (cyclomatic 71, cognitive 94): main has cyclomatic complexity 71 and cognitive complexity 94; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/main.ts"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"752f9af865deb6e292ec497de95c51bc0419d750f435316e839cc201944cda49"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseKey (cyclomatic 66, cognitive 70): parseKey has cyclomatic complexity 66 and cognitive complexity 70; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/tui/src/keys.ts"},"region":{"startLine":1292}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a5c42842a97ca94975eecafb5649a9a9a5a9b85b3baf6376b3333863a7bc8a6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function detectOpenAICompletionsCompat (cyclomatic 63, cognitive 29): detectOpenAICompletionsCompat has cyclomatic complexity 63 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/ai/scripts/generate-models.ts"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"8243a3da12b63d7ebb4b7e1ccf92e9d3bfdfda5716410385e34c264be1af809e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 62, cognitive 117): (anonymous) has cyclomatic complexity 62 and cognitive complexity 117; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/src/api/openai-completions.ts"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebf94051eb75527ed70ba29bf0bf58f78efb05147087fb05a01b75e51318fd45"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 62, cognitive 73): (anonymous) has cyclomatic complexity 62 and cognitive complexity 73; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/src/api/bedrock-converse-stream.ts"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"088ec5fba501895d5e50c2780e7aa732b980e6c2d0c18a8467e9f67313fc0433"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderResult (cyclomatic 61, cognitive 156): renderResult has cyclomatic complexity 61 and cognitive complexity 156; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/examples/extensions/subagent/index.ts"},"region":{"startLine":765}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2836aa474a9c3d662cf30278c30c10878bcd53bac56faa336b3882a0cdfe49a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function doRender (cyclomatic 61, cognitive 94): doRender has cyclomatic complexity 61 and cognitive complexity 94; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/tui/src/tui-main-screen.ts"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8bb8278d0d9595ac7a4366a8cae6b8d9da0a8c3a76f876a4b03256df114b597"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/coding-agent/src/modes/interactive/interactive-mode.ts: 6482 lines of code: packages/coding-agent/src/modes/interactive/interactive-mode.ts has 6482 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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"66b6aaa27fb525da969ba0dac28a9680e3600fe617b646171621605cef03aa35"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/coding-agent/src/core/agent-session.ts: 4060 lines of code: packages/coding-agent/src/core/agent-session.ts has 4060 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/coding-agent/src/core/agent-session.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ec1ed96703889d6bbce42d37bcceeb9f2595537edf5e87906684af6c3ea5d58"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ai/scripts/generate-models.ts: 3407 lines of code: packages/ai/scripts/generate-models.ts has 3407 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/ai/scripts/generate-models.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c855654c778b7fa805dd0720069802bcbc9ba0e1a76f3039d31197ba573161c6"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/coding-agent/src/core/package-manager.ts: 2493 lines of code: packages/coding-agent/src/core/package-manager.ts has 2493 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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f70bcd4526057d67e0df62938bd1d0107634d1f707970a822af12e12994216e2"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/durable/src/harness/scheduler.ts: 2396 lines of code: packages/durable/src/harness/scheduler.ts has 2396 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/durable/src/harness/scheduler.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d92566b352796504d007af2a0e895c00c2a5424117213e033a168339c3cd2516"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/chord/src/delta/tracker.ts: 2138 lines of code: packages/chord/src/delta/tracker.ts has 2138 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/chord/src/delta/tracker.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"98dcd6a8e5cb019cd6d5ad291cf72ff842ce848c926f3cf64aa4ac4691ff4fd1"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/tui/src/components/editor.ts: 2113 lines of code: packages/tui/src/components/editor.ts has 2113 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/tui/src/components/editor.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a8c05eababcede3c9cd806d160435d12679d477622845e9385a84006db4c7f2"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/coding-agent/src/core/extensions/types.ts: 2029 lines of code: packages/coding-agent/src/core/extensions/types.ts has 2029 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/coding-agent/src/core/extensions/types.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"13fca72188f6c6e8048502a33d09ef1b85e8cee0899250e2ac6de752fcb81d72"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/coding-agent/src/core/session-manager.ts: 1826 lines of code: packages/coding-agent/src/core/session-manager.ts has 1826 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/coding-agent/src/core/session-manager.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f34f04b4bd04f01a5a39551eb669cf772b983ec564a72f51df8d07b8d28f278"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/coding-agent/src/core/export-html/template.js: 1803 lines of code: packages/coding-agent/src/core/export-html/template.js has 1803 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/coding-agent/src/core/export-html/template.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8030a6c148d5afae588f1e5d01d420245db2cf5e47de3bd12172882d45ec4b34"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/chord/src/object.ts: 1779 lines of code: packages/chord/src/object.ts has 1779 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/chord/src/object.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"55f384c90a41c9041f13eebdfacb5893a4d6287a13d0963f628b511003d00ad6"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/durable/src/testing/storage-conformance.ts: 1733 lines of code: packages/durable/src/testing/storage-conformance.ts has 1733 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/durable/src/testing/storage-conformance.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"399795392a89dfd3c0d1aba66a2c42c3ba932b81f9d80dacc369a21276b3b73a"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/tui/src/tui-alt-screen.ts: 1675 lines of code: packages/tui/src/tui-alt-screen.ts has 1675 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/tui/src/tui-alt-screen.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"76709ef9dc5bb4fc4137f38d95288096da3d6cfea64bb3f397504e9efd743f33"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ai/src/api/openai-completions.ts: 1594 lines of code: packages/ai/src/api/openai-completions.ts has 1594 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/ai/src/api/openai-completions.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d59d3e398f7c93064ec4f2857b2754b71ab05f4a99a12056f29139d9579a5870"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ai/src/api/anthropic-messages.ts: 1575 lines of code: packages/ai/src/api/anthropic-messages.ts has 1575 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/ai/src/api/anthropic-messages.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"78c1ce61f3187f2e7806b2741d55a652e4f92b9f34f5a99f9a6f28a51968ddb7"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ai/src/api/openai-codex-responses.ts: 1557 lines of code: packages/ai/src/api/openai-codex-responses.ts has 1557 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/ai/src/api/openai-codex-responses.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7ae576aa9eae57d6831ab7640840b6242b52945e1d6a159a62c4dc60a130805"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/coding-agent/src/core/extensions/runner.ts: 1430 lines of code: packages/coding-agent/src/core/extensions/runner.ts has 1430 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/coding-agent/src/core/extensions/runner.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b438e3b53aeb69dafc637e29148ae128c899cd1c7869b53c2c8c784cf944309"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/tui/src/latex.ts: 1428 lines of code: packages/tui/src/latex.ts has 1428 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/tui/src/latex.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fa14fa65d2a469c1972e44617247840efa3de4ceed9fda529f36ea55c48f057"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/tui/src/tui.ts: 1381 lines of code: packages/tui/src/tui.ts has 1381 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/tui/src/tui.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"deb27735ca5781797455dbd0d9ad5b946a753618c070156011c9ce15d80281bb"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/tui/src/keys.ts: 1336 lines of code: packages/tui/src/keys.ts has 1336 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/tui/src/keys.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ebf9241ff3c76b6fd01eb42ea23bfed2c7b3d12d99f30b3185e5dc621aff714"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ai/src/api/bedrock-converse-stream.ts: 1302 lines of code: packages/ai/src/api/bedrock-converse-stream.ts has 1302 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/ai/src/api/bedrock-converse-stream.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7db4ba498d190b7e10187c53a14df718ffdb92bb61eb1d8c053c81f5e3d79da"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/coding-agent/src/modes/interactive/components/tree-selector.ts: 1277 lines of code: packages/coding-agent/src/modes/interactive/components/tree-selector.ts has 1277 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/coding-agent/src/modes/interactive/components/tree-selector.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"111ec810316e5d23f67fb441dfeb9b94c9c773b598a898919ae7b47829c26be4"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/coding-agent/src/extensions/mcp/index.ts: 1274 lines of code: packages/coding-agent/src/extensions/mcp/index.ts has 1274 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/coding-agent/src/extensions/mcp/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1558642869cfbc035e9f139702c010042fe672ba30e6880914e6f5e8b402eb51"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/tui/src/utils.ts: 1253 lines of code: packages/tui/src/utils.ts has 1253 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/tui/src/utils.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cf047fe70771dff79966b4f277cdf0ebd3675a9236adf2ca04cd29ccdd6083b"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/chord/src/connection.ts: 1240 lines of code: packages/chord/src/connection.ts has 1240 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/chord/src/connection.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1a240c01b1a380fabda5d53a3a803c53110effffabd5a9fe4ffe9e6adc7bf06"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/coding-agent/src/core/settings-manager.ts: 1237 lines of code: packages/coding-agent/src/core/settings-manager.ts has 1237 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/coding-agent/src/core/settings-manager.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5256593b0381875283e8adef249d5afcbb6e80bfefb7072a0a4284456c87256"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/durable/src/session/session.ts: 1228 lines of code: packages/durable/src/session/session.ts has 1228 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/durable/src/session/session.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b72cb09bf18b3e5b66e99d0609cb99c9f9d500f978a0d987dff870222b4c299"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/coding-agent/src/modes/interactive/components/easter-egg-3d.ts: 1219 lines of code: packages/coding-agent/src/modes/interactive/components/easter-egg-3d.ts has 1219 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/coding-agent/src/modes/interactive/components/easter-egg-3d.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab8b36156ef525ccce229b89d65c1535c9b0e2b859cc32a96cad09ddf751040a"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/chord/src/host.ts: 1196 lines of code: packages/chord/src/host.ts has 1196 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/chord/src/host.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f8e15ce0d70162d961106f1a3a9b48728c063a234ff9cea62f090359d5848e0"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/coding-agent/src/core/resource-loader.ts: 1195 lines of code: packages/coding-agent/src/core/resource-loader.ts has 1195 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/coding-agent/src/core/resource-loader.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7956d47e3ddbf37dada0c5396c1434ee41e98fc96c4400544d2c282da0ad8bbc"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ai/src/models.ts: 1183 lines of code: packages/ai/src/models.ts has 1183 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/ai/src/models.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"70649a9e502d4d020b6d38ff54b7955622a4c55ef7cb94024fc685bfdc1bce8c"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/durable/src/env/node.ts: 1158 lines of code: packages/durable/src/env/node.ts has 1158 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/durable/src/env/node.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ff46fa6670e728660deb624ecd119b0506da67d36ca84439ed11a6ec6149b36"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/durable/src/types.ts: 1156 lines of code: packages/durable/src/types.ts has 1156 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/durable/src/types.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"70674add962461336de15a0ec1d18200aff86830cbf131ec1c96518c7df7046c"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/durable/src/storage/indexeddb.ts: 1143 lines of code: packages/durable/src/storage/indexeddb.ts has 1143 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/durable/src/storage/indexeddb.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dd5f9d75b37a438a3872b7aabe26cc70cdb3f7d8bb8b3c9e2468ccb4e1eae60"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/durable/src/session/transaction.ts: 1132 lines of code: packages/durable/src/session/transaction.ts has 1132 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/durable/src/session/transaction.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"720b997d62af963b0ec8c26e22e304b3a62cac3f5a4ef37ffbe040a2af515aaf"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/coding-agent/src/package-manager-cli.ts: 1040 lines of code: packages/coding-agent/src/package-manager-cli.ts has 1040 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/coding-agent/src/package-manager-cli.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5367142d48889c3e2418ef2f7139ae119cc882c380af0c7fb1c0ec4a5599b6de"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/durable/src/codemode/codemode.ts: 987 lines of code: packages/durable/src/codemode/codemode.ts has 987 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/durable/src/codemode/codemode.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6569764bf9ef605c3a29d00b14f41c9da3be588d0d66ee285d096096da8dfa7e"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/coding-agent/src/core/compaction/compaction.ts: 984 lines of code: packages/coding-agent/src/core/compaction/compaction.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/coding-agent/src/core/compaction/compaction.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"55bce21e8a3f2a54884008d73002695b547d061e637d84f06796c042b5837f64"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/coding-agent/src/core/model-runtime.ts: 980 lines of code: packages/coding-agent/src/core/model-runtime.ts has 980 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/coding-agent/src/core/model-runtime.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2a92f3fac87d9f8de7513ada977dd847ec51257cb6c2c5c452f9ce8b0a89149"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/coding-agent/src/modes/interactive/theme/theme.ts: 978 lines of code: packages/coding-agent/src/modes/interactive/theme/theme.ts has 978 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/coding-agent/src/modes/interactive/theme/theme.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"252a722f1cc452f29b886100b6a1d0d564ac9c8b6b057a7010f4643b6d53092c"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/coding-agent/src/modes/interactive/components/settings-selector.ts: 949 lines of code: packages/coding-agent/src/modes/interactive/components/settings-selector.ts has 949 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/coding-agent/src/modes/interactive/components/settings-selector.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"72a7f8f1e65afa9d352c5e786df70f1f3462c2c0d965db5c3043c976f616a585"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/durable/src/harness/tool.ts: 935 lines of code: packages/durable/src/harness/tool.ts has 935 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/durable/src/harness/tool.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d45144e17aeb33607377efdb65383a4f692525accf8947ee4555a825ebca0a3a"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/tui/src/components/markdown.ts: 934 lines of code: packages/tui/src/components/markdown.ts has 934 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/tui/src/components/markdown.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"35c21b8e2a91a590b9019f152f42015deaeef67c63ced47e40f5fad4a7161bdd"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/coding-agent/src/modes/interactive/components/session-selector.ts: 913 lines of code: packages/coding-agent/src/modes/interactive/components/session-selector.ts has 913 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/coding-agent/src/modes/interactive/components/session-selector.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b516bc3ec1c269dcc5be843b443e3f3c2aeeed33fa0c389e56d3289f3a4d271"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/durable/src/storage/sqlite/storage.ts: 909 lines of code: packages/durable/src/storage/sqlite/storage.ts has 909 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/durable/src/storage/sqlite/storage.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e296fb98d32fd6f259c9384bc901a6fbb55122c6b5f5791cf050573fb40315ba"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/coding-agent/src/main.ts: 906 lines of code: packages/coding-agent/src/main.ts has 906 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/coding-agent/src/main.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0f403709ecaf4b54546c1e4e7b15849e4375c9409f32081fab457e78832653d"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/env/src/remote-env.ts: 895 lines of code: packages/env/src/remote-env.ts has 895 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/env/src/remote-env.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"097f8112c2ce4d614dce7ded7b74106a143a2713cfcf4d8c645bdbc82f58165b"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/agent/src/agent-loop.ts: 870 lines of code: packages/agent/src/agent-loop.ts has 870 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/agent/src/agent-loop.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fa3ceab9e05d0dac42a20dbd92935fd58e883251dbd1dbbb4e76ec185496485"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/durable/src/harness/types.ts: 864 lines of code: packages/durable/src/harness/types.ts has 864 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/durable/src/harness/types.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b3bed22e58f0333a04f5e6f299af7496d033275ac643b2675d1f2d50093c315"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ai/src/api/openai-responses-shared.ts: 848 lines of code: packages/ai/src/api/openai-responses-shared.ts has 848 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/ai/src/api/openai-responses-shared.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"36e590894c09a5630e96a6fb3cda17c78d41b5c598f6813d37b40a244cd72e20"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/coding-agent/src/modes/interactive/components/config-selector.ts: 842 lines of code: packages/coding-agent/src/modes/interactive/components/config-selector.ts has 842 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/coding-agent/src/modes/interactive/components/config-selector.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ed9ec47eda3c09ca90e66665a79823afa581489847fe45535c60d81f6b15d02"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ai/src/types.ts: 837 lines of code: packages/ai/src/types.ts has 837 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/ai/src/types.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"64da60ae2dab3dc15c6ccb626690da1a045de8d84b6c05a6d70f0c461064e4e2"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ai/src/api/mistral-conversations.ts: 831 lines of code: packages/ai/src/api/mistral-conversations.ts has 831 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/ai/src/api/mistral-conversations.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"83c49f95973d12c69cdf66d8136bf44dca8cd42fb6bf32da5bd49974b0534dcc"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/durable/src/storage/memory.ts: 811 lines of code: packages/durable/src/storage/memory.ts has 811 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/durable/src/storage/memory.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb4517403c4526cd01e7a8f85415946299c72178862320e96e199191c56d2656"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/coding-agent/src/extensions/codemode/execute.ts: 805 lines of code: packages/coding-agent/src/extensions/codemode/execute.ts has 805 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/coding-agent/src/extensions/codemode/execute.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"58aab309c43eee7fa50e9fe936bc02153bea4c4e1cdd7e5cf14d17a5661e5580"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/coding-agent/src/core/extensions/loader.ts: 783 lines of code: packages/coding-agent/src/core/extensions/loader.ts has 783 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/coding-agent/src/core/extensions/loader.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a825eb61cf7d7022b3510c9acd6879ed388325e02b46e174f8f46e5cff39a51"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/durable/src/storage/jsonl/storage.ts: 780 lines of code: packages/durable/src/storage/jsonl/storage.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/durable/src/storage/jsonl/storage.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"53bca769d17e49968049477410caf76e33a627751421058e7027e79fa1570970"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/durable/src/harness/generation.ts: 771 lines of code: packages/durable/src/harness/generation.ts has 771 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/durable/src/harness/generation.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d499f7062608d58e1627511b82053f57c1317a4edeef89378b8522bee143a68"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/tui/src/autocomplete.ts: 737 lines of code: packages/tui/src/autocomplete.ts has 737 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/tui/src/autocomplete.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"11b4206a953895158bdb80afa1d11df3f0efa6b63ce2b97820e2b932e148d1c1"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/coding-agent/src/modes/rpc/rpc-mode.ts: 710 lines of code: packages/coding-agent/src/modes/rpc/rpc-mode.ts has 710 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/coding-agent/src/modes/rpc/rpc-mode.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e826b2e20356128b66d691cd7c72443c3de935edb310110512229be1a1f6533"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/coding-agent/src/core/provider-composer.ts: 698 lines of code: packages/coding-agent/src/core/provider-composer.ts has 698 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/coding-agent/src/core/provider-composer.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"73a806caa57ddb443b4e8d8eb28b1b793a7d478ee9148e437cd1a8ccb18978e2"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/chord/src/reload.ts: 691 lines of code: packages/chord/src/reload.ts has 691 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/chord/src/reload.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"56e6f794a8cb0b9f9766d30f36e7cbb2074424331016cbe9ad3bded3372306bf"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/chord/src/delta/index.ts: 687 lines of code: packages/chord/src/delta/index.ts has 687 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/chord/src/delta/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b8b664d9ec86b6f028e6672000b9442cdf28a4997b7b9f4146616775e8f0b6d"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ai/src/providers/faux.ts: 672 lines of code: packages/ai/src/providers/faux.ts has 672 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/ai/src/providers/faux.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"51cbd8f49d99ebc848456e4067ee9cffddabe0fca82ac6a0c10123eae9f6e152"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/tui/src/terminal-image.ts: 666 lines of code: packages/tui/src/terminal-image.ts has 666 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/tui/src/terminal-image.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c753e19f820422e47b4d952a5f06ec6e26e20a7c84b2c5850169a2ab4449b308"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ai/src/providers/compat-schema.ts: 635 lines of code: packages/ai/src/providers/compat-schema.ts has 635 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/ai/src/providers/compat-schema.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b3e2f218889e05763595cee511764a6abe03408dde546cb4cc6d26f5ced5546"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/coding-agent/src/core/model-resolver.ts: 626 lines of code: packages/coding-agent/src/core/model-resolver.ts has 626 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/coding-agent/src/core/model-resolver.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"adce84f18edd4538351a0d45dff5d3dcb4d56921f42266951c2b208c1537fa2b"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/coding-agent/src/modes/interactive/theme/system-theme.ts: 602 lines of code: packages/coding-agent/src/modes/interactive/theme/system-theme.ts has 602 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/coding-agent/src/modes/interactive/theme/system-theme.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc5b38449557570761fca5a7d0360e38969cfff67c4425676162e2b624ff0b94"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/durable/src/testing/env-conformance.ts: 591 lines of code: packages/durable/src/testing/env-conformance.ts has 591 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/durable/src/testing/env-conformance.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9dbec66b123aea365134a0928ebd2c666adaea942a0a0ccdb08c34370e6b702"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/chord/src/remote.ts: 590 lines of code: packages/chord/src/remote.ts has 590 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/chord/src/remote.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3ae9c77624f9046dcd3391ead9814273f16818dc0caf2828fb138976c8af5b9"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/tui/src/tui-main-screen.ts: 590 lines of code: packages/tui/src/tui-main-screen.ts has 590 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/tui/src/tui-main-screen.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7ba4f8d5a35515de77ca848b29f4a5a5f543683965021dd8374fa31ef014582"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/coding-agent/src/config.ts: 587 lines of code: packages/coding-agent/src/config.ts has 587 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/coding-agent/src/config.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0867eb8c487aa148efacc5b013210e0ec8b1657069c96b99a9d4324d758a125f"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/coding-agent/src/extensions/mcp/cli.ts: 564 lines of code: packages/coding-agent/src/extensions/mcp/cli.ts has 564 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/coding-agent/src/extensions/mcp/cli.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1579c759410d12c68c0d56e3bee1c0dacfd5ecea337e878ee13b8330a1ee1b6"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mcp/src/client.ts: 564 lines of code: packages/mcp/src/client.ts has 564 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/mcp/src/client.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c290a58404dd4e455fc792cd4d1282c43fe26b17ff3daa74adce57796f3f7623"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/agent/src/agent.ts: 557 lines of code: packages/agent/src/agent.ts has 557 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/agent/src/agent.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6cbf1763d3f0e6852b94a9f47bbe74805191d9dd44af85565adbca05ef7129a"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/tui/src/terminal.ts: 550 lines of code: packages/tui/src/terminal.ts has 550 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/tui/src/terminal.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a1dbda04d7e1d4a90371cb0da13f959de5ce3704b86ea515d5434ed9d6a4410"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/coding-agent/src/modes/rpc/rpc-client.ts: 538 lines of code: packages/coding-agent/src/modes/rpc/rpc-client.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/coding-agent/src/modes/rpc/rpc-client.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"15fe831aef6504642aaa100cf8bc6834320dcc0db6d80c7db705a9f871c541d6"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/codemode/src/runtime/execution.ts: 531 lines of code: packages/codemode/src/runtime/execution.ts has 531 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/codemode/src/runtime/execution.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"946c5b87187dc343be7e7ee73c83c58e7db51ce147d854a8482a8d6c44cc5d1f"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ai/src/api/google-shared.ts: 528 lines of code: packages/ai/src/api/google-shared.ts has 528 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/ai/src/api/google-shared.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"35f0ccf928415bc05cedfa97658e6640e3bf806c304eb7e2924dc677643e2382"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/coding-agent/src/extensions/mcp/oauth.ts: 522 lines of code: packages/coding-agent/src/extensions/mcp/oauth.ts has 522 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/coding-agent/src/extensions/mcp/oauth.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"030d86f4f959b002e9bacf6e58561c3abd5f9583b01dc9a9aeb1911c51d5dda6"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ai/src/api/google-vertex.ts: 516 lines of code: packages/ai/src/api/google-vertex.ts has 516 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/ai/src/api/google-vertex.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"64a1eda652e4034899e72ee124f77b6b27f4b08628e8c628db4ce68045e2612d"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ai/src/utils/streaming-json.ts: 515 lines of code: packages/ai/src/utils/streaming-json.ts has 515 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/ai/src/utils/streaming-json.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"665e6ec87d2fcba612f61ff5d4f8d5f07db2b78caf0ac3f6b986d713b70b7b2d"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/durable/src/harness/harness.ts: 512 lines of code: packages/durable/src/harness/harness.ts has 512 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/durable/src/harness/harness.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2ad0e419f932bac798dbdfff1de8cc4515d4ab4d6926788a9b3b2800d438943"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/evals/src/harness.ts: 507 lines of code: packages/evals/src/harness.ts has 507 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/evals/src/harness.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a2fd21947d8c073e3b54e99fdff2d92e1da05b5a5b23c748598453dbbfc573b"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/coding-agent/src/extensions/llama/ui.ts: 503 lines of code: packages/coding-agent/src/extensions/llama/ui.ts has 503 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/coding-agent/src/extensions/llama/ui.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"74d598ab72b8db707b46c29e8bd72a623fd36884a4898f3e280719b3ee8f0292"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/agent/src/types.ts: 501 lines of code: packages/agent/src/types.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/agent/src/types.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1937c20d74c896b52b50d48e0ca36246ab74d6794ed89893df4578cc4c8037e7"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/env/src/ssh.ts: 499 lines of code: packages/env/src/ssh.ts has 499 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/env/src/ssh.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e17c77533134d079a8742b97b76a165b696e8006b747d969dcb79eaa20f2c20b"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/chord/src/delta/diff.ts: 493 lines of code: packages/chord/src/delta/diff.ts has 493 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/chord/src/delta/diff.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"598a77f3640a4815652e99b81218047490c04bdba4ff5f8f5786974ccbf90d68"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/coding-agent/src/core/tools/edit-diff.ts: 490 lines of code: packages/coding-agent/src/core/tools/edit-diff.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/coding-agent/src/core/tools/edit-diff.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"467c4e6b9986a482ccc32f9bb3b9bdacedfebe2ede30690ee1547f57bb4c2d2c"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/codemode/src/runtime/prelude-source.ts: 489 lines of code: packages/codemode/src/runtime/prelude-source.ts has 489 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/codemode/src/runtime/prelude-source.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"98212f07529d555664b5f8410661a23c1d36535e96815f4ea9128b0743c44245"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/durable/src/env/node-watch.ts: 485 lines of code: packages/durable/src/env/node-watch.ts has 485 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/durable/src/env/node-watch.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"de7daa705e3d7ff2ca81670cbadc43175e693741a0689230014b5b8599bab742"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/durable/src/harness/events.ts: 481 lines of code: packages/durable/src/harness/events.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/durable/src/harness/events.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f99ee078b1172b32633701f4a24332e838357fb66d0462d79e89ec5516f0896"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mcp/src/transports/streamable-http.ts: 479 lines of code: packages/mcp/src/transports/streamable-http.ts has 479 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/mcp/src/transports/streamable-http.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d906c61206f013437d15c3a09273384aa0d6046102ed59ffc5b9f7b429489c0a"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/mcp/src/oauth/flow.ts: 462 lines of code: packages/mcp/src/oauth/flow.ts has 462 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/mcp/src/oauth/flow.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"19fe6073337eede3b98c928e202b65396f9df3f5aab4a8f959a6b5f3667505b0"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/coding-agent/src/core/settings-schema.ts: 461 lines of code: packages/coding-agent/src/core/settings-schema.ts has 461 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/coding-agent/src/core/settings-schema.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"90a27697f0438916c744ac554695cccca3031402e40d7c3bc47183afddfff55d"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ai/src/auth/oauth/github-copilot.ts: 459 lines of code: packages/ai/src/auth/oauth/github-copilot.ts has 459 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/ai/src/auth/oauth/github-copilot.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1d944fd029f0d999970764f58fb5b232bf38148087a966fec63fa41074903b7"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/coding-agent/src/core/auth-storage.ts: 455 lines of code: packages/coding-agent/src/core/auth-storage.ts has 455 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/coding-agent/src/core/auth-storage.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9cc3b6e37e503da280db998a873b8f339dd7b0c63447a8245c71a2f5cfa26f8"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/evals/src/report.ts: 448 lines of code: packages/evals/src/report.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/evals/src/report.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6d9a9d3c7c07322a60f3bc8a2ef585862546f9fd01659bceba4e771e60c1615"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/durable/src/harness/compaction.ts: 447 lines of code: packages/durable/src/harness/compaction.ts has 447 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/durable/src/harness/compaction.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4e6579fe268d132f71f7204dc7fea4e8d3392e869c394ccaa9056e2c506e0b3"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/coding-agent/src/core/sdk.ts: 444 lines of code: packages/coding-agent/src/core/sdk.ts has 444 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/coding-agent/src/core/sdk.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"33be469e1f466cffd4fe655d7d110aedf1db6427f5bf4fe3c0fb5f635298a571"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/durable/src/tools/edit-diff.ts: 441 lines of code: packages/durable/src/tools/edit-diff.ts has 441 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/durable/src/tools/edit-diff.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddd73405b4c34894405a57c2025ec879245e3fb29a63e0fc3649db184be0f6aa"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/coding-agent/src/cli/args.ts: 440 lines of code: packages/coding-agent/src/cli/args.ts has 440 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/coding-agent/src/cli/args.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a18e5ef49d039c087d37f59fc160edf78b0140182b3c1ca3d2ddd1895218d21c"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/coding-agent/src/core/skills.ts: 438 lines of code: packages/coding-agent/src/core/skills.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/coding-agent/src/core/skills.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"efbb2d15d685b7bfa25d0ccf04afae5eb97454b4b9fc1c68f7e186a51d9e18a4"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ai/src/api/google-generative-ai.ts: 430 lines of code: packages/ai/src/api/google-generative-ai.ts has 430 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/ai/src/api/google-generative-ai.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"db3e0a8dea6c456e33ba82991db41365249d1eb78face84af5e53971ba8a4caf"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/telemetry/src/memory.ts: 429 lines of code: packages/telemetry/src/memory.ts has 429 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/telemetry/src/memory.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fed591165089d660e5e9fa55f640c5f358afa767149eccf360670c99b57330f"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ai/src/api/llama-cpp-classify.ts: 428 lines of code: packages/ai/src/api/llama-cpp-classify.ts has 428 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/ai/src/api/llama-cpp-classify.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c5c65458e4c7596076ddf10b6de97bf3c558b710b0fed760c4a7a2c68e5ea48"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/chord/src/manager.ts: 421 lines of code: packages/chord/src/manager.ts has 421 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/chord/src/manager.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"466bd562c1577ae68171abf47c16acd3649e9ca2614912fe9d6cb650e2188d48"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/coding-agent/src/core/cache-warmer.ts: 419 lines of code: packages/coding-agent/src/core/cache-warmer.ts has 419 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/coding-agent/src/core/cache-warmer.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb6cfabc219928ad21927f3c40435a5a491e845ca68abbbfd1bf4bfaf113b1d3"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/tui/src/layout.ts: 419 lines of code: packages/tui/src/layout.ts has 419 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/tui/src/layout.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"32a161238c93cfb18744119f299a6c9a652766ce1032200394081381bbe349dc"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ai/src/api/pi-messages.ts: 417 lines of code: packages/ai/src/api/pi-messages.ts has 417 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/ai/src/api/pi-messages.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9a943031c586030fef3cf53a7a8f69622c902a03c9357897d7652147eae338b"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/tui/src/components/input.ts: 416 lines of code: packages/tui/src/components/input.ts has 416 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/tui/src/components/input.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"75c106b48a55bfa67286c2cf607faed6cfc1d593662ba8f045f26b8eae414381"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/ai/src/api/openai-responses.ts: 414 lines of code: packages/ai/src/api/openai-responses.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/ai/src/api/openai-responses.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"80e470d0e6e20362e1a9fd75ca5514fc6c207d605ec8d1bfc1ee5058adaea475"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/coding-agent/src/extensions/mcp/runtime.ts: 414 lines of code: packages/coding-agent/src/extensions/mcp/runtime.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/coding-agent/src/extensions/mcp/runtime.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"605f22f0370dda57445f5caefffe5d3c8d5f2f31c058d3ded8f0589aa4fcf786"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/tui/src/stdin-buffer.ts: 411 lines of code: packages/tui/src/stdin-buffer.ts has 411 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/tui/src/stdin-buffer.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee320074fcb2cbf1b61cd1962753e9ac18cb9586b7ad6991c5417ee733f10240"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/coding-agent/src/core/tools/bash.ts: 408 lines of code: packages/coding-agent/src/core/tools/bash.ts has 408 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/coding-agent/src/core/tools/bash.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3a7ade98930faab0b8c38540adf78c56615fe9d93d6b28a63b35be8f25a086c"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/coding-agent/src/core/agent-session-runtime.ts: 406 lines of code: packages/coding-agent/src/core/agent-session-runtime.ts has 406 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/coding-agent/src/core/agent-session-runtime.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9d943833ebeba74c0dc89a070b33d7db8623b8435ca00cf47b398da23e81e89"}},{"ruleId":"R3","level":"warning","message":{"text":"packages/telemetry/src/index.ts: 406 lines of code: packages/telemetry/src/index.ts has 406 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/telemetry/src/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e0c277ed83d5380732890bb9516881510f533a02493a80f4affe795ac95f179"}},{"ruleId":"R4","level":"warning","message":{"text":"This test file cannot be loaded: packages/codemode/test/sandbox.test.ts:824 imports \u0027./does-not-exist.js\u0027, which names no file in this repository \u2014 and no rule in its .gitignore chain could cover one, so no build writes it either. The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/codemode/test/sandbox.test.ts"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"5854a6275022d67aa245e6f50c984e253296037ce3deba655a43d550c265b66c"}},{"ruleId":"R4","level":"warning","message":{"text":"This test file cannot be loaded: packages/tui/test/native-clipboard-linux.test.ts:14 imports \u0027./fixtures/\u0027, which names no file in this repository \u2014 and no rule in its .gitignore chain could cover one, so no build writes it either (1 further unresolvable import(s) in the same file). The import throws as the runner collects this file, so none of its test cases run and nothing it was written to verify is verified. Restore the missing module or delete the test. It is excluded from the reachability measured above, because a file that cannot load reaches nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/tui/test/native-clipboard-linux.test.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"12f8aa37e5abcafcced4bd79d9e33965d70da97e6b77d7c73dcad5a0aeff2c79"}},{"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":"scripts/edit-tool-stats.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3322881449204edf9820df4c1dee10f0ee8d879a8464b40184b2ec5bd5bb667"}},{"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":"scripts/profile-coding-agent-node.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3b4153e6d9b757b0669a43ed129daeb1ecca7e70e1394ef47ace85957fef9fc"}},{"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/coding-agent/examples/rpc-extension-ui.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"26fc8b7e62dad78f67978dc1ebe2709e04271aec27ad3bef0609bd4d0f28db52"}},{"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":"scripts/read-tool-stats.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"58c49df8489ede808a67473e06c7fb9f671ed2ec18a577726e516c7bd057e21c"}},{"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":"scripts/generate-coding-agent-install-lock.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfad70a570e6d129fc4ac133255b7df1094b5f996eb012708ae86d0e31e039dd"}},{"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":"scripts/session-transcripts.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4428e305c9a53b53ae62670f8f8a71e573bcf63a5bee53bd00ce9f4857b4aae5"}},{"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":"scripts/session-context-stats.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1614e1b53bf1cf7067933151c92753a468482128b04aaf5b8af49299d6417ea5"}},{"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":"scripts/release-notes.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a5b801bbc74cc66122dd1ca59c0efbc7e5d7c28c05854da32b4cc0df06bd54d"}},{"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":"scripts/issues/triage.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9568056ada6318c2a1838451a5165e0956e84369de36dc4d3b578359071d382e"}},{"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":"scripts/release.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3c521fc28ff4b84d44ec3724880a355d29bc6caf0fc0f1edcb3a56372ee32a3"}},{"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":"scripts/build-coding-agent-bundle.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b9622594a3e42ce85dfec21a73e5c9d565f5116bed43b82f3a9c1be19bbd622"}},{"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":"scripts/diff-model-catalog.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"09c1bd00f9ef88b56345ac4bbf75061ea06e5219a8260765fd4188c689dfcf3b"}},{"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":"scripts/stats.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bad1a527c8c4812b3b9b32f56f90ad93756cb7d9721490e3fafdf19d516706b"}},{"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/tui/native/win32/build.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e765a671ceaf5e5c19b2789010f7816816cec101f6fb4f6b64f9dfd145bfa30"}},{"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":"scripts/tool-stats.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0430573812ce8084ec9d1755e823f07fbfd245ea276fc8f5229433673ee478f"}},{"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/evals/src/cli.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fab11236bed0c705faaddd3bdf06547482207ee32d27a18019a3ec295016bfc"}},{"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":"scripts/cost.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf7b73ebcedc78cf6a93cd40fda3382be9dc258d084b8b33831854cd702ad579"}},{"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":"scripts/check-entry-graphs.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"984730c83af9c78f68dfc60b7aa6886bdae1791f29593324db7c3a17c70c6742"}},{"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":"scripts/issues/main.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"df0148721a823554f6fd5ea55a4149198bb54588e33292f95a24ac2f5fdf2627"}},{"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/evals/src/docker.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"39e23202e208e60ce04324bf87ccfe772d1542dde896b2eb1ce54f7afeff6f2e"}},{"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":"scripts/issues/github.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c736ed2feac28c5d558fca87a74a59f07b13c83a641d7596dd879f94baf7b61"}},{"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/evals/docker/entrypoint.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfb7dd3419773706460318bac020351aca48c9b4e625d0320d581c5c6cbbf1e3"}},{"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":"scripts/check-model-catalog-compat.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"583097888b2661d58a0b4c9b066a437e3ba7eaf688bfcbd118e376ac528a2dc3"}},{"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":"scripts/biome-check.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7b803c6327b8289b6e098703081abf1a4b0abd86bc94018c86f050d0e1b9025"}},{"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":"scripts/check-lockfile-commit.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"df2b957c6e8fb6eb51541311678fa8a832a100fa3a4c92a8db0b3e2defabc6cc"}},{"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":"scripts/check-ts-relative-imports.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e689c400c45c8bbc446072e774554419c97fcac2d94b3c0095c85e4d2904badb"}},{"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":"scripts/npm-audit.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d298838748854eb8ed4434f07b63086d49b5973afc1288a2ef90cd8ea989f162"}},{"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/ai/src/model-catalog.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d33988d200419d3784359b41f657372b7d828e67373c7ce6d8e202b08d0ad42f"}},{"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/coding-agent/examples/sdk/03-custom-prompt.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"82c74938d46dd4c69725b9001b63b57d178ce7befe1a82c11d93478e9cbfc2b6"}},{"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/coding-agent/examples/sdk/12-full-control.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"92089b5bb6f2246441e478a6771d0a9d0965c2bf67694c06a77c385a51f89523"}},{"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/evals/docker/install-runtime.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d61dd4bebc46e2a57129bcbc718aba89f4cdc1193b5b83f4277c7262d8d92877"}},{"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/coding-agent/examples/sdk/13-session-runtime.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0181276d4d0011165346a89d578093e3aeba94d904d73d6760179733cc212f99"}},{"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":"scripts/publish.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d7fac9d2c6d0507eda29b06fbeb224f310f89270a4a1125c505d5f12e0e5a15"}},{"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/coding-agent/examples/sdk/14-codemode-mcp.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1a6cf2401dae3c77bf02e7223706eae91cbd5b152e41c5cfc2a073242e8367d"}},{"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/coding-agent/examples/sdk/06-extensions.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"899e50da22c37cd160e32bc6aff89d03bbe6dbbd59b1630ad0b295abc8193a49"}},{"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/coding-agent/examples/sdk/04-skills.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"120b323216a5720d76543e335c2ec31892cde6ed9da65865b8a2ae3024171831"}},{"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":"scripts/repro-5893-wsl-bash.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"02d53a3389a625b9cbc92794d90d5c389780ea6bb6cc019c2cf19101b80f52e3"}},{"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/coding-agent/examples/sdk/10-settings.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"799cd9a4da61632dcf98b81b962e05953b73484183c7201ad3508694c9007ddb"}},{"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/coding-agent/examples/sdk/08-prompt-templates.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2686db421e980e2d4b5164b501789963cc90cc0bfc09c2430bf1eba38adc84fb"}},{"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/coding-agent/examples/sdk/02-custom-model.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"087bd3577bac76139019cb582ab2c9651240195040fba54ef9f3b7ab34dbaccc"}},{"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/coding-agent/examples/sdk/05-tools.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7b68367ced1966ff527975f0695c1528e845100cfb2f85d229a8cd8ec222c42"}},{"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/coding-agent/examples/sdk/07-context-files.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"373ecd07fe24d8141d630117a32a7025451a7d1159cb90e72729b9a4cb683fc9"}},{"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/coding-agent/examples/sdk/11-sessions.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7047bcde0ef055ffb080962ee811d21203289b697551e196f4eb07c07b2bb1ac"}},{"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/coding-agent/src/utils/image-resize-worker.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6326f5d34529c14e5978d1f0fc2bc22fdb28603f06690d05b5ead973fbde97d5"}},{"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/coding-agent/examples/rpc-client.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd54c15c67107d06a5a1ea98ffa28bd75f7f3fa77bcd6b0846ea2834465bf65c"}},{"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/durable/src/images/node-worker.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f07da5558ffcfbf3222d24f710d55207c15e70440a41a105928ed519bf66ba5"}},{"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/coding-agent/examples/sdk/09-api-keys-and-oauth.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d27ef0a898debe56efada88e045a7bf38c7507ed3a90843b209af4faa1ebbcd"}},{"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/ai/scripts/generate-test-image.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5ea965427c2ed1234d8aa8223913637e8efe3985baac117eca580ec1ee19de6"}},{"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":"scripts/generate-thinking-capabilities.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"413758c454cbc791fc98ebf539fd9030ecf4b0517e5ec015ad959c59ad2426f2"}},{"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":"scripts/issues/source-hooks.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec7cd3f1a9f749d36ac92c530304aa939744777c70fd3a694d0f38ac34d3b4c6"}},{"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/coding-agent/examples/sdk/01-minimal.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"74436f14820c7e33e4a2308b665a309bbb3bf9eaa5b60c47de66133db45c5538"}},{"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":"scripts/check-package-install.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7b01a4ff8fcf9f84dc0625538be15ab37f5e78f0493747c2cae9a1f8d3a6a4d"}},{"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/ai/scripts/check-model-data.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fadfb5f72e89c5fb4fc2f74ea24810264157bc16155c22118ae59ac8453b9e76"}},{"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/coding-agent/src/utils/deprecation.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b9e825781614a2bbb54af66204fb32af7c45db4956d6c3275f2b347ea2a00e7"}},{"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/coding-agent/src/rpc-entry.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"96c9d9bf691d74936c5731909ecb1a06f8af7937db009bb8a9d51c7142bbbeb5"}},{"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/coding-agent/src/bun/runtime-setup.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"922d68ba768d09b28f6d33314edf95e7ab0a3c89ff1f9882d39473ced4b2a576"}},{"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/coding-agent/src/extensions/codemode/worker.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"94a2f6b8e37023e0eea60ce0f6ede8ce5ef6e8120a104238850fb39e647f46a6"}},{"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/coding-agent/src/bun/cli.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"abeb67bbc303da8fb6b46e852a3195fd27465e2cbcb33d10111d2252f3d5acd0"}},{"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/coding-agent/src/bun/sandbox-env-setup.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"029a209006e1ea394c9ad107e3766d4cd809a7991e3e40cecc6ed485b43c282b"}},{"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":"scripts/issues/register.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecabf34ca81daf50122945cb01457fe8685540c55458c07db01145d3514e9d48"}},{"ruleId":"R5","level":"warning","message":{"text":"Dependency Freshness: 35 outdated package(s); JS/npm CVEs scored in D30"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"7de98450603a813bc7a991bc6e60f440c1deac6f9c9bfd4d0da057afed869bcf"}},{"ruleId":"R6","level":"warning","message":{"text":"The declared test suite includes a file that cannot be loaded: This repository declares test tooling, and the \u2713 above records that declaration \u2014 but packages/codemode/test/sandbox.test.ts and 1 other test file(s) in this workspace cannot be loaded at all: it imports a module that names no file in this repository, so the runner throws while collecting it and none of its cases execute. The wiring is present and the suite it points at does not run as written, which is why the tooling tick must not be read as a statement that the tests pass. Fix the unloadable file(s) \u2014 each one is reported with its failing import under Test Coverage \u2014 then the declared script exercises what it claims to."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/codemode/test/sandbox.test.ts"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f68d767a10e3cb90a7604f200aea3bdbb1d5c25926e16274e784e990825cd2b"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~173 LoC): no import path from any entry point (441 application, 139 tooling, 836 test roots considered), but 2 in-repo import(s) from 2 other file(s) do name it (packages/coding-agent/examples/extensions/doom-overlay/doom-component.ts, packages/coding-agent/examples/extensions/doom-overlay/index.ts) \u2014 every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/examples/extensions/doom-overlay/doom-engine.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f04fa36d55d6d424f02255c3d5fdbb059cc805fc982e63ff020f5290489b4fd8"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~132 LoC): no import path from any entry point (441 application, 139 tooling, 836 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (packages/coding-agent/examples/extensions/doom-overlay/index.ts) \u2014 every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/examples/extensions/doom-overlay/doom-component.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5098d2d07bd9b8e9189e0f080a8baf09950fd691393adf123be87a1481379753"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~104 LoC): no import path from any entry point (441 application, 139 tooling, 836 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (packages/coding-agent/examples/extensions/doom-overlay/doom-component.ts) \u2014 every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/examples/extensions/doom-overlay/doom-keys.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"df6fb63d64c7d308b9bfb18773b6155b9897b1a7272dd75c1f86ced3711f442f"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~82 LoC): no import path from any entry point (441 application, 139 tooling, 836 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/coding-agent/examples/extensions/custom-provider-gitlab-duo/test.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"086a6617ee6d9ae5e18a8c3c55143b05f27d0dab9a804b5eb97cb3de8e24a845"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~75 LoC): no import path from any entry point (441 application, 139 tooling, 836 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/chord/src/delta/revision-validator.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2451adf4004da3d1ca027cac3629294887e7cbbbcbcc84c5322f688fd427ee99"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~75 LoC): no import path from any entry point (441 application, 139 tooling, 836 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/coding-agent/examples/sdk/03-custom-prompt.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e8df78502e8fcf8afc85f7d242c9575bfdde80355efe24846606873509ecc94"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~74 LoC): no import path from any entry point (441 application, 139 tooling, 836 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/coding-agent/examples/extensions/doom-overlay/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"36b04c31270c0c1e360eb965e673e534550ef5f425f18ca23db52d6d35adca29"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~74 LoC): no import path from any entry point (441 application, 139 tooling, 836 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/coding-agent/examples/sdk/12-full-control.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb8111b7a48f9717f81983bed9f531c0232395ab34ae0aa074e7a73732d26b59"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~67 LoC): no import path from any entry point (441 application, 139 tooling, 836 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/coding-agent/examples/sdk/13-session-runtime.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb0686388645ac2c33a7ac0df394d6e6bedd9d5eadbf273f44955518e2aaa2bc"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~61 LoC): no import path from any entry point (441 application, 139 tooling, 836 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/coding-agent/examples/sdk/14-codemode-mcp.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"81cf6beba949b58ba481edc3b3d9fad2b78f9ec3b96c40f6f0bea8ffe5afa516"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~56 LoC): no import path from any entry point (441 application, 139 tooling, 836 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/coding-agent/examples/sdk/06-extensions.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9ddda2f5034b64dc4cf8a453086f16fe478aba5a1fa8757814052e0155cc2b9"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~55 LoC): no import path from any entry point (441 application, 139 tooling, 836 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (packages/coding-agent/examples/extensions/doom-overlay/index.ts) \u2014 every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/examples/extensions/doom-overlay/wad-finder.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0ac9fd2048b53dc3e96b30d2270de5e76e0813a07d257c59e26a4cdc4a5554d"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~55 LoC): no import path from any entry point (441 application, 139 tooling, 836 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/coding-agent/examples/sdk/04-skills.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3b63c0bda2c21acbb706f21a2b3332eb1f8c930f619018ed5fc4742a487642c"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~53 LoC): no import path from any entry point (441 application, 139 tooling, 836 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/coding-agent/examples/sdk/10-settings.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"84c5ee9c1be2f8edfeee37cf4d84fcaa817ae9f5d4837e1de7a12bfa586c9e6e"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~51 LoC): no import path from any entry point (441 application, 139 tooling, 836 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/coding-agent/examples/sdk/08-prompt-templates.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c8f23a87e29e06872a8a9a8861d1a660b426880a1f16d9dc484a224af8ae717"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~49 LoC): no import path from any entry point (441 application, 139 tooling, 836 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/coding-agent/examples/sdk/02-custom-model.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"915e80b52a7f91791f7d5f7fd53deb52ece5f8241a09574ac2d10a0e5ec693e9"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~48 LoC): no import path from any entry point (441 application, 139 tooling, 836 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/coding-agent/examples/sdk/05-tools.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"408a49e44d1e2909601324f16aa0be8db82a6442abe6fd9f6fcf5087b71d6c1c"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~47 LoC): no import path from any entry point (441 application, 139 tooling, 836 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/coding-agent/examples/sdk/07-context-files.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"28ecb2dae16704bfa5264968e79a35f8013cf714fa547b78ea43620c84600087"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~44 LoC): no import path from any entry point (441 application, 139 tooling, 836 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/coding-agent/examples/sdk/11-sessions.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e1d2c88976ecda0d68f3be43cce427c9a2a0b67ae08c004d7e9b72e7d67d8de"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~34 LoC): no import path from any entry point (441 application, 139 tooling, 836 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/coding-agent/examples/sdk/09-api-keys-and-oauth.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"adbc83e9a190b52c67516eefad214d3110e6186f4ef2125537db4760489f07ad"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~26 LoC): no import path from any entry point (441 application, 139 tooling, 836 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/coding-agent/examples/sdk/01-minimal.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"203adf65db49f6067faeadb812aeeb511a311094b483417285b2997eebfd980c"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~15 LoC): no import path from any entry point (441 application, 139 tooling, 836 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/coding-agent/examples/extensions/dynamic-resources/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b99306b1789be2a29f1586bb1002efd3b52ae52f3144f07dc0c93157ba8a99a"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~14 LoC): no import path from any entry point (441 application, 139 tooling, 836 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/coding-agent/src/utils/deprecation.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e882aaf30c73bcfd23da406c5e5d80ab00826fe8cca99595e19f0ad070bc2d17"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~1 LoC): no import path from any entry point (441 application, 139 tooling, 836 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/durable/src/storage/sqlite/database.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb8624d34ff8f0097212cab6e003ff1f39513b38cfbe0a804e1c316454d1a471"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027formatAgentList\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/examples/extensions/subagent/agents.ts"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"beaef1d55f8ce8a78786f3dc613aac34b359219a69763a6f607e9e089b8552a7"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027REMOTE_CATALOG_REFRESH_INTERVAL_MS\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/remote-catalog-provider.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"227ccbb41cf71fd0fe08fc8676f95817cbba09e10576baba72fa9fa9db31e50e"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027getConfigValueEnvVarName\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/resolve-config-value.ts"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"55b2f4afc04946085cab07765920b550d4300db4fb59f9f9154b7cfa89e63aaf"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027resolveHeaders\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/resolve-config-value.ts"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b475aad3982c73ecd4d6e35d533e9e754ad6fe0dc25294b2f7e9159fb73c84e"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027wrapToolDefinitions\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/tools/tool-definition-wrapper.ts"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"c91dff507d76e05b19d65e1beeb6d55b4491c7c2c264de0dc0662449971a9396"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027LlamaModelsResponse\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/extensions/llama/client.ts"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"814c782643276fd39d2c7428b8b15ae236cf3a513ae81d0b67e243c3e4bd9aab"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027ToolSearchInput\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/extensions/tool-search/tool.ts"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"f869dff41ae7de60bbc6eced46f7f7fc7410d171f7a3374f9721448315d5b58d"}},{"ruleId":"R7","level":"note","message":{"text":"Unused module-local declaration \u0027mergeOpenAICompletionsCompat\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/ai/scripts/generate-models.ts"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4df5d2561af6817c996bbde714d964bdc2ab4922727c81c9939727399c180b1"}},{"ruleId":"R7","level":"note","message":{"text":"Unused module-local declaration \u0027extractTextContent\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":"scripts/read-tool-stats.mjs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"588b7efb7f40b5269d44de4849978dbb695d080c3d507a444a2258e8f249289c"}},{"ruleId":"R8","level":"error","message":{"text":"Unlisted import \u0027chalk\u0027: Imported but not declared in any reachable package.json \u2014 installs work only by hoisting accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/session-transcripts.ts"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5fb8f199f9bfc61df88d386bbe663ea3d68ec6df77a885b7b7072b539406dca"}},{"ruleId":"R8","level":"warning","message":{"text":"Unlisted import \u0027@smithy/types\u0027: Imported only as a TYPE and declared in no reachable package.json. The import is erased at compile time, so nothing is installed and no runtime resolution depends on it \u2014 but type-checking a clean clone will fail. Declare the typings it resolves through (or the package itself) in the owning package.json."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/ai/src/api/bedrock-converse-stream.ts"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"9251b33c40fb4d16dd57a179ed7040fa1fc21ea4764196913c6567191d0e7596"}},{"ruleId":"R9","level":"error","message":{"text":"Import cycle (2 files): packages/chord/src/delta/diff.ts \u2192 packages/chord/src/delta/index.ts \u2192 packages/chord/src/delta/diff.ts (one verified cycle inside a mutually-dependent group of 3 files)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/src/delta/diff.ts"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"72fd36739d41c9466a08691af8c2bc5ada75b76f5c89b58da11a13f2c7e0d77a"}},{"ruleId":"R9","level":"error","message":{"text":"Import cycle (5 files): packages/coding-agent/src/core/extensions/loader.ts \u2192 packages/coding-agent/src/core/extensions/virtual-modules.ts \u2192 packages/coding-agent/src/index.ts \u2192 packages/coding-agent/src/core/agent-session.ts \u2192 packages/coding-agent/src/core/extensions/index.ts \u2192 packages/coding-agent/src/core/extensions/loader.ts (one verified cycle inside a mutually-dependent group of 13 files)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/extensions/loader.ts"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"eacdc37ab16dccd1d0b27de8a378b237aaec896afa5d6889ecb06f600345a598"}},{"ruleId":"R9","level":"error","message":{"text":"Import cycle (3 files): packages/coding-agent/src/extensions/codemode/execute.lazy.ts \u2192 packages/coding-agent/src/extensions/codemode/execute.ts \u2192 packages/coding-agent/src/extensions/codemode/tool.ts \u2192 packages/coding-agent/src/extensions/codemode/execute.lazy.ts"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/extensions/codemode/execute.lazy.ts"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6b570143f9dcfecc52d515a2f0aef705d76229686c2d1266404d95c693de618"}},{"ruleId":"R9","level":"error","message":{"text":"Import cycle (3 files): packages/durable/src/harness/compaction.ts \u2192 packages/durable/src/harness/live.ts \u2192 packages/durable/src/harness/generation.ts \u2192 packages/durable/src/harness/compaction.ts (one verified cycle inside a mutually-dependent group of 5 files)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/durable/src/harness/compaction.ts"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"a38ebb07ec17c8ba6de9e9b2f6b933860db58cf8411cdaf5901d1b03085ca958"}},{"ruleId":"S1","level":"warning","message":{"text":"Third-party script without Subresource Integrity: \u0060https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4\u0060 is executed by this page with no Subresource Integrity. Whoever can answer that request \u2014 the CDN, anyone who compromises it, anyone on the network path \u2014 runs arbitrary script in this page\u0027s origin, with its session. 2 such include(s) across the repository\u0027s markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/tool-stats.ts"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"b472f62193740dd6c504d0c75a0a48cb64187ba1abcdbf7d34971e63876a29b4"}},{"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/ai/src/auth/oauth/callback-server.ts"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"4616eab095a6cef7c5ed3a35a363bb7b184970f8873ad65f56783e23051eb307"}},{"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/ai/src/auth/oauth/openai-chatgpt.ts"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfae5bc8aebc9a05138c189be76fad81caa981c396fbc03856f2dae66bf55901"}},{"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/mcp/src/oauth/callback.ts"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"21a6a6ee226f66514f424cc5199b14d38b8b6522c847e8cdc9c6e520ac97451c"}},{"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":"scripts/issues/main.ts"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"16672795a93b5bb76e1eb0950ae448012a35f51bdcdef2367e680f47b38e134d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!Array.isArray(criteria) || !isStrings(criteria)\u0060 appears character-identically in 2 files \u2014 packages/coding-agent/src/extensions/codemode/execute.ts, packages/durable/src/codemode/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/coding-agent/src/extensions/codemode/execute.ts"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"f371f994c2f7fd30f1c391813593d92ce029d3ec7d45b5b6583af96c91075a43"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!Array.isArray(input) || input.length === 0\u0060 appears character-identically in 2 files \u2014 packages/coding-agent/src/extensions/codemode/execute.ts, packages/durable/src/codemode/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/coding-agent/src/extensions/codemode/execute.ts"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"242cead87a77a8d0f5f606c45160f131a908bb1ee75441b1e22cdd34b9dbdf9a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!Array.isArray(input.edits) || input.edits.length === 0\u0060 appears character-identically in 2 files \u2014 packages/coding-agent/src/core/tools/edit.ts, packages/durable/src/tools/edit.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/coding-agent/src/core/tools/edit.ts"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb896accfa912513b935c6a2edd5a09ef8c92374fe23cc80239e71cb1e4fa3d0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!Number.isFinite(timeout) || timeout \u003C= 0\u0060 appears character-identically in 5 files \u2014 packages/coding-agent/src/core/tools/bash.ts, packages/coding-agent/src/extensions/mcp/cli.ts, packages/durable/src/env/node.ts, packages/durable/src/tools/bash.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/coding-agent/src/core/tools/bash.ts"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"20ff35369ec7e266bfa6f0a225bfa1dfa6230aac9bd6141c3076a51543e85211"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!Number.isInteger(version) || version \u003C 1\u0060 appears character-identically in 2 files \u2014 packages/chord/src/contract.ts, packages/chord/src/object.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/chord/src/contract.ts"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"058bedba7dc836d0d6893f77c924ccbfc50c7d901b6bcbab84b44a6c5e8a3f08"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!Number.isSafeInteger(maxEntries) || maxEntries \u003C= 0\u0060 appears character-identically in 2 files \u2014 packages/durable/src/env/node.ts, packages/env/src/remote-env.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/durable/src/env/node.ts"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"376a3dee1c32d5b4754cc4a330b4998d6f273614622c5a998332af87cddd6d7b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!Number.isSafeInteger(offset) || offset \u003C 0 || !Number.isSafeInteger(length) || length \u003C 0\u0060 appears character-identically in 2 files \u2014 packages/durable/src/env/node.ts, packages/env/src/remote-env.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/durable/src/env/node.ts"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"14f1b2446d0e7fa704e1577a5b923cdf83b45e0d430c037a392f0789e8cccf11"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!Number.isSafeInteger(runsPerVariant) || runsPerVariant \u003C 1\u0060 appears character-identically in 2 files \u2014 packages/evals/src/cli.ts, packages/evals/src/plan.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/evals/src/cli.ts"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"311bfb5451545308c04e1d8b8ae2ebb8540824304fed1a1e993553ba1f7cdc4f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!block.thinking || block.thinking.trim() === \u0022\u0022\u0060 appears character-identically in 2 files \u2014 packages/ai/src/api/google-shared.ts, packages/ai/src/api/transform-messages.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/ai/src/api/google-shared.ts"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"952a2baea389eb0e7b5b0d1801c04354e2cd263199711d4f8fc4010df9b2226b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!context.allowNetwork || context.signal.aborted\u0060 appears character-identically in 3 files \u2014 packages/ai/src/models.ts, packages/ai/src/providers/radius.ts, packages/coding-agent/src/core/remote-catalog-provider.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/ai/src/models.ts"},"region":{"startLine":1145}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb3b5bf93523f5cd07bad24e1839c8134581ec3c197ad699dc924f334ea26841"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!currentBlock || (isThinking \u0026\u0026 currentBlock.type !== \u0022thinking\u0022) || (!isThinking \u0026\u0026 currentBlock.type !== \u0022text\u0022)\u0060 appears character-identically in 2 files \u2014 packages/ai/src/api/google-generative-ai.ts, packages/ai/src/api/google-vertex.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/ai/src/api/google-generative-ai.ts"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e929114ea95aed7e8d521c78758df62a5d50e3eb2c44d5176f29b38611c7782"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!isContainer(left) || !isContainer(right) || Array.isArray(left) !== Array.isArray(right)\u0060 appears character-identically in 2 files \u2014 packages/chord/src/delta/diff.ts, packages/chord/src/delta/tracker.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/chord/src/delta/diff.ts"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"fff3ac627b26b51bb04a3bca9f79c242ca802e4cf580c98f5f179677ddba9468"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!isGrok \u0026\u0026 !isZai \u0026\u0026 !isMoonshot \u0026\u0026 !isTogether \u0026\u0026 !isCloudflareAiGateway \u0026\u0026 !isNvidia \u0026\u0026 !isAntLing\u0060 appears character-identically in 2 files \u2014 packages/ai/scripts/generate-models.ts, packages/ai/src/api/openai-completions.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/ai/scripts/generate-models.ts"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"576d95e4690d0199874a3343bafb256c010f0adbc86933ef2fbe999e78c15c92"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!value || typeof value !== \u0022object\u0022 || Array.isArray(value)\u0060 appears character-identically in 3 files \u2014 packages/coding-agent/src/core/tools/edit.ts, packages/durable/src/tools/edit.ts, scripts/local-package-install.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/coding-agent/src/core/tools/edit.ts"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"8390e0f0179472bfc40131c0cebdac0a8875a8ad973da567b3dbc920b683c2d6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(entry.isDirectory() \u0026\u0026 [\u0022docs\u0022, \u0022examples\u0022, \u0022src\u0022, \u0022test\u0022, \u0022tests\u0022].includes(entry.name)) || (entry.isFile() \u0026\u0026 /^(?:readme|changelog)(?:\\.\u2026\u0060 appears character-identically in 2 files \u2014 packages/evals/docker/entrypoint.ts, packages/evals/docker/install-runtime.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/evals/docker/entrypoint.ts"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae2883561b047743d974099ecf584dcb00aaa6d3b56d4c8e276697a08b9b4049"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(entry.type === \u0022branch_summary\u0022 || entry.type === \u0022compaction\u0022) \u0026\u0026 entry.usage\u0060 appears character-identically in 3 files \u2014 packages/coding-agent/src/core/agent-session.ts, packages/coding-agent/src/core/usage-totals.ts, packages/coding-agent/src/modes/interactive/components/footer.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/coding-agent/src/core/agent-session.ts"},"region":{"startLine":4254}}}],"partialFingerprints":{"codehealthFindingId/v1":"da10ae905572c1357978293fb888d7c074763fa7bf75d98776148b44b9d8976e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Number.isFinite(stats.birthtimeMs) \u0026\u0026 stats.birthtimeMs \u003E 0\u0060 appears character-identically in 2 files \u2014 scripts/edit-tool-stats.mjs, scripts/read-tool-stats.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":"scripts/edit-tool-stats.mjs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"eee3b935e464dd815e5538b14ee96902ab17d5faeaa7d700d664b94572e6d3b1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Object.keys(generationConfig).length \u003E 0 \u0026\u0026 generationConfig\u0060 appears character-identically in 2 files \u2014 packages/ai/src/api/google-generative-ai.ts, packages/ai/src/api/google-vertex.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/ai/src/api/google-generative-ai.ts"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e325417db33fa143681e52dc1ae5447733adda17007b433b3821ffd70689fb0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060action.content !== undefined || action.copy !== undefined\u0060 appears character-identically in 2 files \u2014 packages/durable/src/storage/indexeddb.ts, packages/durable/src/storage/sqlite/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/durable/src/storage/indexeddb.ts"},"region":{"startLine":998}}}],"partialFingerprints":{"codehealthFindingId/v1":"96b3ffc043297b0daa83895cbc293df96fe7348e684f98b031c133ea7f8051ad"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060action.copy !== undefined \u0026\u0026 actions.has(action.copy.id)\u0060 appears character-identically in 2 files \u2014 packages/durable/src/storage/indexeddb.ts, packages/durable/src/storage/sqlite/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/durable/src/storage/indexeddb.ts"},"region":{"startLine":1020}}}],"partialFingerprints":{"codehealthFindingId/v1":"87e1ca653419b8dc14a1ccc8162bbf6b7eb10c847f34453add9d05a52c7cc5bd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060action.create !== undefined \u0026\u0026 !action.retire\u0060 appears character-identically in 3 files \u2014 packages/durable/src/storage/indexeddb.ts, packages/durable/src/storage/memory.ts, packages/durable/src/storage/sqlite/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/durable/src/storage/indexeddb.ts"},"region":{"startLine":1039}}}],"partialFingerprints":{"codehealthFindingId/v1":"912616d08a5e42097118b1abcdda36edd3760d94a84d8fc4198424d701580af1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060action.create !== undefined \u0026\u0026 existing !== undefined\u0060 appears character-identically in 3 files \u2014 packages/durable/src/storage/indexeddb.ts, packages/durable/src/storage/memory.ts, packages/durable/src/storage/sqlite/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/durable/src/storage/indexeddb.ts"},"region":{"startLine":1025}}}],"partialFingerprints":{"codehealthFindingId/v1":"178397613e0dfd29e07cd00f8c835e18155959f5ebd4be70e8cd57b08550a506"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060action.create !== undefined || action.content !== undefined || action.copy !== undefined\u0060 appears character-identically in 2 files \u2014 packages/durable/src/storage/indexeddb.ts, packages/durable/src/storage/sqlite/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/durable/src/storage/indexeddb.ts"},"region":{"startLine":984}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d1c09e6d31fa6957a40b11f766ba008c0fd6df9e3759d8140f0baef7333391e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060action.create === undefined \u0026\u0026 existing === undefined\u0060 appears character-identically in 3 files \u2014 packages/durable/src/storage/indexeddb.ts, packages/durable/src/storage/memory.ts, packages/durable/src/storage/sqlite/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/durable/src/storage/indexeddb.ts"},"region":{"startLine":1024}}}],"partialFingerprints":{"codehealthFindingId/v1":"2502d13bb5f8d44eeafa13e9d6b4a6b892d70f7d7ab6ce9aa767f0b5ef9257c3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060after.length \u003E before.length \u0026\u0026 after.slice(0, before.length) === before\u0060 appears character-identically in 2 files \u2014 packages/chord/src/delta/diff.ts, packages/chord/src/delta/tracker.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/chord/src/delta/diff.ts"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebc88ba31927d6c8eb7ca485db6743a29caafd6a19777486671b459ae41c8b40"}},{"ruleId":"X13","level":"warning","message":{"text":"Redirected process stream is never drained (deadlock): \u0060spawn\u0060 pipes \u0060stderr\u0060 here \u2014 it is given no \u0060stdio\u0060 option, or \u0060\u0027pipe\u0027\u0060 \u2014 but nothing in this scope ever reads \u0060child.stderr\u0060, while \u0060child.stdout\u0060 is read and the child\u0027s end is awaited. Node holds an unread pipe\u0027s output only up to its buffer: once the child writes more than that to stderr (measured on Linux: about 128 KB \u2014 the 64 KB pipe plus Node\u0027s 64 KB read-ahead \u2014 and less elsewhere), the child blocks on the write, never exits, and the \u0060close\u0060/\u0060exit\u0060 this code waits for never fires. Nothing fails loudly: the promise never settles, the request never returns, and the stuck child holds its resources until something kills it. Consume both streams (\u0060child.stderr.on(\u0027data\u0027, \u2026)\u0060, or \u0060child.stderr.resume()\u0060 to discard it), or stop piping the one you do not want \u2014 \u0060stdio: [\u0027pipe\u0027, \u0027pipe\u0027, \u0027inherit\u0027]\u0060 or \u0060\u0027ignore\u0027\u0060 in that slot."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/env/src/ssh.ts"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9f5767c919e9a99a6682f2b0ee12040ffb67029471b34e5c168db9d79d17ed3"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060createMcpResultSchema\u0060 is exported, takes a document from its caller (line 159) and hands it to \u0060relocateSchema\u0060, which calls itself at line 136 (\u0060relocateSchema\u0060) with a piece of \u0060schema\u0060 (and at line 146, line 149) \u2014 and nowhere in \u0060relocateSchema\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 \u0060relocateSchema\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/extensions/mcp/tools.ts"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d9c7af6cb52fe8d50fc226d6289146a695da6187bd278010364840d9b94cd1b"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060copyJson\u0060 is exported, takes a document from its caller (line 31) and hands it to \u0060copy\u0060, which calls itself at line 58 (\u0060copy\u0060) with a piece of \u0060value\u0060 (and at line 74) \u2014 and nowhere in \u0060copy\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 \u0060copy\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/src/json.ts"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"be1ce877cac5f0e42f2145e9eecd7877f823ec5da556e6095a3c137b7adbb078"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060isJsonValue\u0060 is exported, takes a document from its caller (line 89) and hands it to \u0060check\u0060, which calls itself at line 109 (\u0060check\u0060) with a piece of \u0060value\u0060 (and at line 127) \u2014 and nowhere in \u0060check\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 \u0060check\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/src/json.ts"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f4b5629e24ccf4a5132a0bdced180f5ba97b05b2a6236b255ec9aff2153a9f3"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060canonicalJson\u0060 is exported and takes \u0060value: unknown\u0060 from its caller, and it calls itself at line 14 (\u0060canonicalJson\u0060) with a piece of \u0060value\u0060 (and at line 18) \u2014 and nowhere in \u0060canonicalJson\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 \u0060canonicalJson\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/src/schema.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca20a873e2b8038708ada587caf2b68da97e21cd20c38fa918809d1aada373f4"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060canonicalIdentity\u0060 is exported, takes a document from its caller (line 53) and hands it to \u0060stripDefaults\u0060, which calls itself at line 60 (\u0060stripDefaults\u0060) with a piece of \u0060value\u0060 (and at line 61, line 69) \u2014 and nowhere in \u0060stripDefaults\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 \u0060stripDefaults\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/src/schema.ts"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf2a826fa0090943031857b2dda628c90adefc4d77670b2d46c9acffe853a424"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060fits\u0060 is exported and takes \u0060subSchema: unknown\u0060 from its caller, and it calls itself at line 141 (\u0060fits\u0060) with a piece of \u0060subSchema\u0060 (and at line 142) \u2014 and nowhere in \u0060fits\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 \u0060fits\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/src/schema.ts"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"06ecf7e7551d1768d92a5d83f9e18d89406ac68062ef3b6e5b2782c8b9fefb3b"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060diffRevisions\u0060 is exported, takes a document from its caller (line 515) and hands it to \u0060jsonCost\u0060, which calls itself at line 469 (\u0060jsonCost\u0060) with a piece of \u0060value\u0060 (and at line 475) \u2014 and nowhere in \u0060jsonCost\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 \u0060jsonCost\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/src/delta/diff.ts"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"357ed65e5279996a9047dab15b2615afe899936f28317d558ef822948c6af261"}},{"ruleId":"X18","level":"warning","message":{"text":"Disposes a dependency it does not own: \u0060#attachment\u0060 is never created by \u0060AttachedReplicatedStateImpl\u0060 \u2014 it is the constructor parameter \u0060attachment\u0060 (line 299), and its declared type \u0060ReplicatedStateSourceAttachment\u0060 is an interface \u2014 yet this class disposes it here (line 323). The instance came from whoever resolved it, and that owner decides when it ends. Disposing it from here reaches outside this object\u0027s lifetime: a dependency shared with the rest of the program is torn down when THIS instance goes away, and the real owner\u0027s later \u0060dispose()\u0060 runs a second time on an object already disposed. Drop the call \u2014 a class disposes what it constructed, and only that. If this dependency genuinely is exclusive to this instance, construct it here (or take an owned factory) so the ownership is stated in the code rather than assumed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/chord/src/state.ts"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aa0625f43554850327a6825c782993d9ee335b8e5a73bb26eba8f6ca8c0bc55"}},{"ruleId":"X2","level":"note","message":{"text":"Not all async functions that make a request accept an AbortSignal: Only 74/85 async functions that make a cancellable request (fetch, axios, ky, ofetch) 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: getOidcToken: \u0060getOidcToken\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":"scripts/preview-packages.mjs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"b24a743399885355c3a770fb341bd4ba7805748a909f7a802d012e2ca253445a"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: call: \u0060call\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":"scripts/preview-packages.mjs"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c4ef8ea938b2abe05d175512f6c035e9dd522fd144f0706c39e041d939cfd2d"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: resolvePackageFromNpm: \u0060resolvePackageFromNpm\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":"scripts/publish-release-announcement.mjs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4eb770f629eb91a53a5bbe84c16f9e3ef689aeccb53ab8c93790bb6939cc921"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: fetchRevision: \u0060fetchRevision\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":"scripts/update-model-catalog-pin.mjs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bb0f77dbcd28547d1aa90de631f122e26ffa0729177278bf3f1cbc7ba578878"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: fetchLiveCatalog: \u0060fetchLiveCatalog\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":"scripts/update-model-catalog-pin.mjs"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"7478c2b9b671be1f7012d818c1c3e413b8d43bdddfde0c3fa8cb2d153890bca5"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: fetchInstallerArtifact: \u0060fetchInstallerArtifact\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/coding-agent/src/package-manager-cli.ts"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"e068801115f0bf5f3812083a11165d1aca3f71852ad0fe0d520084603ac7a74b"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: fetchNvidiaNimModelIds: \u0060fetchNvidiaNimModelIds\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/ai/scripts/generate-models.ts"},"region":{"startLine":1317}}}],"partialFingerprints":{"codehealthFindingId/v1":"53274dd9992b5fc7fab7f216c525cad1b13caea1c1bb62c5e48f22a5043c4ac0"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: fetchOpenRouterList: \u0060fetchOpenRouterList\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/ai/scripts/generate-models.ts"},"region":{"startLine":1339}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5881e180d12711497e23909791703a3bfe2fe56004755fb7f667572f592f361"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: fetchAiGatewayModels: \u0060fetchAiGatewayModels\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/ai/scripts/generate-models.ts"},"region":{"startLine":1384}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fe89857164faf5423b41968b929cdd731e35889679316193462e87e9b0961b4"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: loadModelsDevData: \u0060loadModelsDevData\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/ai/scripts/generate-models.ts"},"region":{"startLine":1821}}}],"partialFingerprints":{"codehealthFindingId/v1":"e707011229f1fec24b848bde034b16e47d1967c200d74567f49ff8bf0d97dffd"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: loadModelsDevClassifierModels: \u0060loadModelsDevClassifierModels\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/ai/scripts/generate-models.ts"},"region":{"startLine":2624}}}],"partialFingerprints":{"codehealthFindingId/v1":"029e65d275671d18df8c3d7948a479818dd39ac9573b1758d95d2457e75884ab"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060rendered.callHtml\u0060 is text this program did not author, and it is written into the text of an element through markup built here 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. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/export-html/template.js"},"region":{"startLine":1143}}}],"partialFingerprints":{"codehealthFindingId/v1":"9449bc785342b4c915bc27e7b951cdeef3be0734c70ddc09ae6edb52ffb89a5a"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060rendered.resultHtmlCollapsed\u0060 is text this program did not author, and it is written into the text of an element through markup built here 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. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/export-html/template.js"},"region":{"startLine":1151}}}],"partialFingerprints":{"codehealthFindingId/v1":"29ff67dfb30b9cecbe5e46d5c12544e2afea73ca7be2736be35e14a5e6082537"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060rendered.resultHtmlExpanded\u0060 is text this program did not author, and it is written into the text of an element through markup built here 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. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/export-html/template.js"},"region":{"startLine":1152}}}],"partialFingerprints":{"codehealthFindingId/v1":"5083dae8d0986addbe0dcb556c47561bad3b1b8900e8c960656fd23f3e54e340"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060rendered.resultHtmlExpanded\u0060 is text this program did not author, and it is written into the text of an element through markup built here 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. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/export-html/template.js"},"region":{"startLine":1156}}}],"partialFingerprints":{"codehealthFindingId/v1":"7009f7887592801128c897b8158cd24778f02751ef1b7e490a42d2b5627dd828"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060originalHtml\u0060 is text this program did not author, and it is written into the text of an element through \u0060innerHTML\u0060 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. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/export-html/template.js"},"region":{"startLine":1270}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5d36065f5e48d97cd0c51018803dc0ff8d4f3f8bf282ee8d484f6b703824dbb"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060safeMarkedParse(skillBlock.content)\u0060 is text this program did not author, and it is written into the text of an element through markup built here 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. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/export-html/template.js"},"region":{"startLine":1313}}}],"partialFingerprints":{"codehealthFindingId/v1":"a96e8bbdbde328050e681381abc661351184053afe74a0a278d7608c8188e3f2"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060safeMarkedParse(skillBlock.userMessage)\u0060 is text this program did not author, and it is written into the text of an element through markup built here 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. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/export-html/template.js"},"region":{"startLine":1327}}}],"partialFingerprints":{"codehealthFindingId/v1":"7049c813d2b95874549d81d1949638f3e9dc6da351b820dda10bf2993063640a"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060safeMarkedParse(text)\u0060 is text this program did not author, and it is written into the text of an element through markup built here 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. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/export-html/template.js"},"region":{"startLine":1351}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5a96efdb4da92266af19070bdef1c7d6b759268e75050df73157d43ea57d4f4"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060safeMarkedParse(block.text)\u0060 is text this program did not author, and it is written into the text of an element through markup built here 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. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/export-html/template.js"},"region":{"startLine":1362}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dd61e76eb21c7ecb6d511169b286c66fe0714c2aa667d9df611697a606e2c5b"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060msg.exitCode\u0060 is text this program did not author, and it is written into the text of an element through markup built here 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. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/export-html/template.js"},"region":{"startLine":1395}}}],"partialFingerprints":{"codehealthFindingId/v1":"704f403b3a8f999be7a836258fac69d9d993a3192d5c2195c26a7dae33e84903"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060html\u0060 is text this program did not author, and it is written into the text of an element through \u0060innerHTML\u0060 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. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/export-html/template.js"},"region":{"startLine":1633}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d44e6bbb29e7e4d7fef80cdf33278c1d37fe840a774f3fee52482225a0ea9a9"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060escapeHtml(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/coding-agent/src/core/export-html/template.js"},"region":{"startLine":1748}}}],"partialFingerprints":{"codehealthFindingId/v1":"abc0898fe1ae0f19fa25f8218e7d23afec112d86580af386d8cf315ce1f352c5"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060escapeHtml(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/coding-agent/src/core/export-html/template.js"},"region":{"startLine":1761}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dd1ca6e8ce5f72669995f09b2ee194a3d3f8b8388d955de603830727152670f"}},{"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":"scripts/cost.ts"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0ff88f965934e2a518da66b8aacbf815e905fc51bdc4c990e8691f5e4732c41"}},{"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":"scripts/session-transcripts.ts"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0b2ccff4b79f5bec821bfa84e83914ee2f30e7849f6e2b19a33b2d6215710a1"}},{"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, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/stats.ts"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"ade4484a0c4a8c1925c8516c8e37cc74d7d8e9576cb1978c0806a65ca1aee20e"}},{"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":"scripts/session-context-stats.mjs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb18240bdbee39f48d27386d9f18f31f872565669e2ce1ea47af2c97ea101bc1"}},{"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":"scripts/session-context-stats.mjs"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7cbb92701bc4cb2400bedb2a385340f52fbea097ef699a42f358820a2dbeaa2"}},{"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/tui/src/autocomplete.ts"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"440cbb21179561c06ae395b99800837cd26c48359e528d1c085daee45f534c40"}},{"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/tui/src/native-module-path.ts"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"dde776b992c62b7ff372fb8cb35cae80bb5a652603e58fe97c37217ca34bf71c"}},{"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/tui/src/native-platform.ts"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec5223b299ef3d4484c6617ec8d3161617ef98b159855e5fe9a9c180b113be05"}},{"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/tui/src/terminal.ts"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"03469900cf72d816c1bd34fc99bb72ff5226cb9ae650ecd81827ed1ea9882ba2"}},{"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/tui/src/terminal.ts"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"05a7e165537d435b10a2de2b5d7ac4797c53ef0970e629fbb6c711ab49e5f8d9"}},{"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/tui/src/terminal.ts"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b04887268ab46dd32ad597acafffc8fde445a333ca0010bd8f15db70f635f6c"}},{"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/tui/src/terminal.ts"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"73f21375b94af4ff13fc1eb5f5cee9aa18aeae8a12043331691d47422b83a185"}},{"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/tui/src/terminal.ts"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"958fce5ca9dd36afb9bfc65ac358a9dd85c12748aacb066f2a633d24c61b8ebd"}},{"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/tui/src/tui-alt-screen.ts"},"region":{"startLine":1042}}}],"partialFingerprints":{"codehealthFindingId/v1":"eee6717a724a784bc47fb3858d9573bcfcda26bf297f255154dd00dc94db2804"}},{"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/tui/src/tui-alt-screen.ts"},"region":{"startLine":1356}}}],"partialFingerprints":{"codehealthFindingId/v1":"11478b86970dc46856c6df26dd0579b00765c614e6bf149dc62c12537dc9efe5"}},{"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/tui/src/tui.ts"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"e869655e274531e2ba487f63d652524e1acb49e4d9317c77c4772df3eb921837"}},{"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/mcp/src/client.ts"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"bae8a7a845a75b64922e3c288ab1bf714dee9906d72f6d8cd8c5130f8cece3c5"}},{"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/mcp/src/transports/stdio.ts"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"6773c5ce9940099bde772557472deec617989a30bc3107e2fcb7bac571ae573f"}},{"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/mcp/src/transports/stdio.ts"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"076b630cc43f3b1f0448b3469149dd11520ad8faf5ad89b2d568642c96fe6bfd"}},{"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/mcp/src/transports/stdio.ts"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"647ec857968e4537c0db39ce624e7f86a06f4cc61b3e1a1930a2db6f9974afd6"}},{"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/mcp/src/transports/streamable-http.ts"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"71f0a921d796be2ecee765e81a5946c29282735b8572999e258df444aa3de006"}},{"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/mcp/src/transports/streamable-http.ts"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dc2a869194c1bc01881da000367748aa31859fb22c3e09171b0c69715b60920"}},{"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/mcp/src/oauth/discovery.ts"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a268264f31d4ffcfca6f282381ef447bea709687d06d54df0a0834b8d62d577"}},{"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/mcp/src/oauth/discovery.ts"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"45c62b9b17630138d935d739d41be4397aff51a6182f073d76b78e09e5270f93"}},{"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/mcp/src/oauth/flow.ts"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"49527e761bf2431964f2a32af57fba4f6622fcf0dc751b2ddc0098f7eefa8891"}},{"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/env/src/connection.ts"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4cc780ad8b2ce88be3df56078cb44839a0aae4aba7f36cebecfa24fceff9cd1"}},{"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/env/src/remote-env.ts"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a41f59957164682f24fadcb6cc3773d33968a8a9d5891a3414404af5c24bbcd"}},{"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/env/src/remote-env.ts"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd2e90568cef79637000722843bb8a10a0c2e537e95eaf1882905a7c0e7fd4d3"}},{"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/env/src/remote-env.ts"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"97836192494fa0cdce9e73733e37cc503645fef79d92d59f37e9a4954f38e8c7"}},{"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/env/src/remote-env.ts"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d0fe26e0c2e2265232016e8ad1afe779528d4db4fa7f2fa912bda346df92f14"}},{"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/env/src/ssh.ts"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"699cb272a516c5bf3c629cdd2e7d9f3859f2102e65ceb49d6e49e0454e55c3c9"}},{"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/env/src/terminal.ts"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebaf7a81e9309c1d0844a182d58c336143ccb4b05dcc1dbbeca386e49ae33d99"}},{"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/env/src/watch.ts"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"491c51772768eba41ab584671c698bd30dd2e950d655a6a0e1b5bc52e08babc4"}},{"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/durable/src/tools/edit.ts"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"12e05d532f5e4eec6bcf48603eff3396c3da59bb3cbc3c77ea1fcd5b089ea064"}},{"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/durable/src/storage/indexeddb.ts"},"region":{"startLine":811}}}],"partialFingerprints":{"codehealthFindingId/v1":"53f95f5b58a1776a32519bbb0f90c237adfb88b5b90c6fed8cb044b59ed834b7"}},{"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/durable/src/storage/indexeddb.ts"},"region":{"startLine":816}}}],"partialFingerprints":{"codehealthFindingId/v1":"06f0696391b30bb32c5625634bd2e7771f3056909064464da0f265e128663baf"}},{"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/durable/src/storage/sqlite/storage.ts"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"a03ec2ba9bebede8aada4e564c0f12ddfc9ea493b84babf9006e1855b4dd0e9a"}},{"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/durable/src/session/session.ts"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8cf89661f78b479385a78b3b00104d6d13f2a69c3648a912da060043b6d171e"}},{"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/durable/src/session/session.ts"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"d18f38abdc28134fd1fc97afb9747533f6e8a34ce8c23c5118bae69e9f28c97f"}},{"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/durable/src/session/session.ts"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5da93d82f9e55bf1af1cf2da3a1f7816d377edb669ff200ba2cec63e396eeca"}},{"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/durable/src/session/session.ts"},"region":{"startLine":951}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4f7bb896bf3c4a43f7d387009c4be063ed5a1e4efec3ba222dabb20e9af1d98"}},{"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/durable/src/harness/harness.ts"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb921756656555b6e434f0d9e06f784adc57d19c1446e6d37c51050595eed7b7"}},{"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/durable/src/harness/scheduler.ts"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"29766f20a040f0d596c51b0af96a8a04b2a27ed9ef9dad040451edc3856a8809"}},{"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/durable/src/harness/scheduler.ts"},"region":{"startLine":994}}}],"partialFingerprints":{"codehealthFindingId/v1":"b56b5c3dbc059e136f2a1bff0ba04b1232170d2a57a1c1a176ee5ce5f045f9a3"}},{"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/durable/src/harness/scheduler.ts"},"region":{"startLine":1405}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed6ce980d0d7a72109f82f620a5dc940cde8bae9fc3c34d3ca8f4dee98b013df"}},{"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/durable/src/harness/scheduler.ts"},"region":{"startLine":2109}}}],"partialFingerprints":{"codehealthFindingId/v1":"10d02b94a11d00d37fe0885fbe414dc75a0b13c239357a02d4bb81a94d64d114"}},{"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/durable/src/harness/task-graph.ts"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aeb7283ce732f6f25a9cc98300c6e011696769cffea60bf0f09495f862d4f52"}},{"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/durable/src/harness/tool.ts"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"019a484e0aa658b2938a292447c83d861994a9dc926d71e8b0a4358dde70d680"}},{"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/durable/src/harness/tool.ts"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e93b94767bbd6c861295279f81e3b4ff084ae1c810280067aed3780758a7a88"}},{"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/durable/src/env/node-watch.ts"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"495710f0b847abf9112f58edc218608a9cba73948fd4c7037baf8c5463d7a613"}},{"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/durable/src/env/node.ts"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3dff6e9f0ea80c822fd7b18fa6bd37d1073cab9de0e9406e40e8fbb7ea92cd3"}},{"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/durable/src/env/node.ts"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ca39197c4b0ba275860dc263c183c91b845528a998d7f7c4fa8e241bba37c3d"}},{"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/durable/src/env/node.ts"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"d52f45cf5366eac7bcc9d7d2ce415b599c8e5302b2db6296c8b9d0ddc362129d"}},{"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/durable/src/env/node.ts"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3af77cf56bd651ee3b221bb1ec1bda0e9279567f30a9479f43d3934f6fec9be"}},{"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/coding-agent/src/main.ts"},"region":{"startLine":946}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe4c89b6386c5ecb6ea23bd85fdf40de6c58c879b929520bd8440b8ae1428b2c"}},{"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/coding-agent/src/migrations.ts"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6eae23a10e83ad92ce9121c661693f9ffa26b5424d62b1e1a020c63630de9f0"}},{"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/coding-agent/src/migrations.ts"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"16d06b79b261ba3c50cfaa9c9e565e508cb2d38afc27cb6c853944374b99332a"}},{"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, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/migrations.ts"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa6283cf1ae965bcf4025d5a7672f97a193ac19d51390afc27f7f08d3515a6fe"}},{"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/coding-agent/src/migrations.ts"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c2811bb6ff5de3a273a53bd2a55702578cd6291bf86a8ce690bd717120a0a89"}},{"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/coding-agent/src/migrations.ts"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f4eec9a6f73b16cd9d968c426ff4dad3e2cb706c1daf97add142ecc9f03dc84"}},{"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/coding-agent/src/migrations.ts"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"1479edb2edc7db9303b72db95c0cc6411eb106254f3d234fbe5931de49be63c8"}},{"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/coding-agent/src/migrations.ts"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"004b8eb5e9bc33d01d5d8ee0ed0698a037ec25fa45674cbd9e875c40504eb47c"}},{"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/coding-agent/src/migrations.ts"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"25d3a95ba70196685dd67f9a9775f975479883154a1127dd3846341a18c05429"}},{"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, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/package-manager-cli.ts"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"93f249e5718fafd50aa4ecf243aa2638d7141c3169eb9b56553eecb3e5e2e0f9"}},{"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/coding-agent/src/package-manager-cli.ts"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"3763a0e25bdf0b168b50ca4acf8613db1e7369fea5a8abf868c99069f5b6f42d"}},{"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/coding-agent/src/package-manager-cli.ts"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dbe63e5c73a16f7763dda6e774320b08d8b6aae210e367291a0c4ab6a1dc73c"}},{"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, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/package-manager-cli.ts"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a2501712fb242460f4c86895e961d217196d49185cb857345bb51cbd3ac8e70"}},{"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/coding-agent/src/package-manager-cli.ts"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f73d298eea1702af62da06c3cac72d80f3c32bd404bebf47d22b43ce3e45a8a"}},{"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/coding-agent/src/utils/abort.ts"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"47d3f042025853d901946e87b2211c5e8c5eeb71a946f065c06c4238c7467fde"}},{"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/coding-agent/src/utils/clipboard-image.ts"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"46a81af0f8a6959e7f74560342d4ad768249e0d88b4dc27303ad11ef9d6adad6"}},{"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/coding-agent/src/utils/clipboard.ts"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"a567148ad8cd527dd8801faf73a5163f4243be47edf5927198dc5fdbef76a41e"}},{"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/coding-agent/src/utils/clipboard.ts"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"4498e0d2222c7a8cfbf75d725bf29e0cf8701a74de17b3c2d63dab69eb3a779b"}},{"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/coding-agent/src/utils/fs-watch.ts"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"baf200fcb6af1e038dcbf92975b5c49c643c0d1461ec96f816bb1666106eae9d"}},{"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/coding-agent/src/utils/image-resize.ts"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a6b5c59ee825b1496a0b14c8118071e1d70e3a47587595ead7f66f8cb0025de"}},{"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/coding-agent/src/utils/management-http.ts"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"db4505492376c01d9aa65ceb91f665c0ca923a6e28a38c2cf7a7d852b179c798"}},{"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/coding-agent/src/utils/shell.ts"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"51e7b0cbec7ebd465908aef6ec170ba18939a8525d0d49150eb7b0c351b56c9b"}},{"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/coding-agent/src/utils/shell.ts"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfad9add4960a6bce2ec3887b6984492cefdeddb1456ccc28d45a907318a016c"}},{"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/coding-agent/src/utils/shell.ts"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbe063dcae82da9b7094e0103f3197b85db7e332c7d71c76ad55496063fb2fba"}},{"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/coding-agent/src/utils/shell.ts"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e84585ef91defe6af6fdb7bf5b8be208ad9ea3cb4f045d3dc4fe27ccbb45949"}},{"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/coding-agent/src/utils/shell.ts"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"27eb4ef4af3bcaef14104a97dd640b1ddf22b065d5d10334db53bf4bd73b06b1"}},{"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/coding-agent/src/utils/tools-manager.ts"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"951c020a9a7adcc69d8d4d414ef1632e07a61f478b15fa8f175950e480bdebcc"}},{"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/coding-agent/src/utils/windows-self-update.ts"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"a10bfbcfe0861672db3c926c744fed07caeb5d0638bda6d8dc762970564ecf70"}},{"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/coding-agent/src/modes/rpc/rpc-client.ts"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"7edea06506955d3785c4d5ada7aa72c3004a0890b3b08e709f6ead22bcb3f034"}},{"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/coding-agent/src/modes/interactive/external-editor.ts"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"83f7520575e6845fe3ffd946e6503abd6f0a558e1bf53e5ad58cd1e6ab029ab3"}},{"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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":1156}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d489451ef4a42ca62df9b4e4625204e006a6ae6a28ec216a1d105929ee0ccaf"}},{"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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":2964}}}],"partialFingerprints":{"codehealthFindingId/v1":"2db96a9668cce3ae0c75d6948c8e0cc7e7c16356bf5c1b2766d89efdd0171eb3"}},{"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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":3104}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c7fa7e619051be8f172d2c5bcb5eb2ceef592811276083d60f3a6f157629642"}},{"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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":4355}}}],"partialFingerprints":{"codehealthFindingId/v1":"eac012dfd5f3e919b62c5a0e5ec0d5ee5f4f23550f1e5cbd5427ef2a26c49f4c"}},{"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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":4358}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4622793920b52852d6010c46881297782ffc98c26e16c04ac78346c57b42478"}},{"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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":4361}}}],"partialFingerprints":{"codehealthFindingId/v1":"0995b4cc88be0896f65f37068dcd8389f54e6021a818faef7bfc55134c96c8b0"}},{"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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":5282}}}],"partialFingerprints":{"codehealthFindingId/v1":"272ec9b352fd08c2bf7a87f74ea6122ed46a3777208164041d052bc008d11688"}},{"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, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":6995}}}],"partialFingerprints":{"codehealthFindingId/v1":"68f948ed9e6d219a91d34a9e06ba19f3d5792e57a144b34efd57ab07b18ae07f"}},{"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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":7081}}}],"partialFingerprints":{"codehealthFindingId/v1":"489e267ddfc4e6d84691533a8d57e09a093ddeace3c6291c7c8001a78b50fc9c"}},{"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/coding-agent/src/modes/interactive/session-share.ts"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"aab61f963b625d3fc4a3eb395af64186f7e7d575dae8985ed2c7e760c4fa6924"}},{"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/coding-agent/src/modes/interactive/theme/theme.ts"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9b79d86565032ab5a405d211203423e290cc5ffe00f17c97843b0d4b8d30eb8"}},{"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/coding-agent/src/modes/interactive/theme/theme.ts"},"region":{"startLine":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"f56db1b6f6b1ae12176f9fe2a79d1f360e3637a77ce0b659a247502869d56990"}},{"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/coding-agent/src/modes/interactive/components/custom-message.ts"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"228ce6e4d3aa98a5f935f9563a2d53142edc6ec4ebae238553324ec878e20281"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.then(\u2026, () =\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/coding-agent/src/modes/interactive/components/easter-egg-3d.lazy.ts"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"986a5aa9a5b1656e69f6ebccb778829fbd28121f038b550cba6af0a32033df43"}},{"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/coding-agent/src/modes/interactive/components/login-dialog.ts"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6fe5adae65321f44f3040f7ec26543ee47097cfeeaa4f41ef0cdbc3f324a577"}},{"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/coding-agent/src/modes/interactive/components/markdown-transform.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"030a711c6032019ce6aadbdc79d7cf547370c85158bd1920af95b47b14e98151"}},{"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/coding-agent/src/extensions/mcp/cli.ts"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"04a8d1e9e2d8d3ad52b01033d13c89f7566a23147a6eb9a9189ee8c207179d94"}},{"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/coding-agent/src/extensions/mcp/index.ts"},"region":{"startLine":1149}}}],"partialFingerprints":{"codehealthFindingId/v1":"c73438b974d5044f817ea3833437644fd8d9e95fd3a59a2e4f1711410470e8a4"}},{"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/coding-agent/src/extensions/mcp/log.ts"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"c67d92d2bfb7dbc0d64c6260c5a2ac87ad9bae14fc778b982b5e6d519d7bf9f3"}},{"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/coding-agent/src/extensions/llama/client.ts"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"74edeeed77a69a758b4cf4f620e0786c032e5049f7e7371501d5b25353772ba3"}},{"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/coding-agent/src/extensions/llama/client.ts"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"59303cec38056a6d5ab638a4cd647d490ca88cc63bc351d5d5b8ecd495b44a96"}},{"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/coding-agent/src/extensions/llama/client.ts"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"88bc4c2e10b0413edb09d0fd92c4dd44ce0b33587063baadbfa9e332cfa72d9e"}},{"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/coding-agent/src/extensions/llama/index.ts"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3450647ed47d63f1db4ed978231aa7951c5a8817ca6122876fd479b628a21e3"}},{"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/coding-agent/src/core/agent-session.ts"},"region":{"startLine":1419}}}],"partialFingerprints":{"codehealthFindingId/v1":"4521600030114c1a7669422936c4cc8b1e6a4cd08efcdd2c4000f3ea8f714c0f"}},{"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/coding-agent/src/core/auth-storage.ts"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"9652aa40c2607bbfb179f1948ef52e2efa9c6ae940ce9657086dcc0db4a07449"}},{"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/coding-agent/src/core/auth-storage.ts"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"3230177aaf425055fb770e7869b291d48883414f2df7e77607db97032d97b7a5"}},{"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/coding-agent/src/core/auth-storage.ts"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eabcf516af1ed8b6e2b27060adcb48f13cd3365ad646646b253007e111e8c0a"}},{"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/coding-agent/src/core/auth-storage.ts"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"8306236c790bd9416c9bcbe85a3ba52334c242cc0f75a6bb2c8bfc5c208c2a50"}},{"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/coding-agent/src/core/cache-warmer.ts"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a82208bd90155820620c5456ae33418c34e7d74a34ea28836f2bffc3847806e"}},{"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/coding-agent/src/core/cache-warmer.ts"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7c147cd22f3c393a8a0e8e258a8eca6e4fa7c629874fdbf8a9aa872bc367972"}},{"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/coding-agent/src/core/crash-log.ts"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fb434160199f78b68bd6a0b95cb28ad9ff7b6789e6afd48dc6466cba5519295"}},{"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/coding-agent/src/core/crash-log.ts"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"89b1e3f76843605a7564daec66ad849322f2821d860cfc9ae18d1cea9669d43a"}},{"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/coding-agent/src/core/model-runtime.ts"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0336d51675110241419c2f3ca3a45c1f885af5b04ecd7e1a7063330e49130a6"}},{"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/coding-agent/src/core/model-runtime.ts"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"737cedd57183a346c586bb242186f9696cda6f718c839299935ec00bd07c7a0d"}},{"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/coding-agent/src/core/model-runtime.ts"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cbd6c23325f78b525372b37a26f202f7968bc6be69f11b2f5d6641e5b46c532"}},{"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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"30a7db466e78a9d390f63193f9804eb7402c31735ee9dfa91ffc32ca3a45fe6e"}},{"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, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/package-manager.ts"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"2badb15db78d73d1664c0955c0d4131013963e76aeea60e3439e525ead35065f"}},{"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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"11017ae6b938478ba0ee21f9d2f44ea83f3a845c66763ad2a3652bb01a597cba"}},{"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, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/package-manager.ts"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd56f65007902a0337e98fff80289fcf031e9d144804f999a8a5fc5a4cda03a7"}},{"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, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/package-manager.ts"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"e34a877b5221eb4882afbfd8277a1b9258e142891f1b11cb11cd550f5f6ace15"}},{"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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"348a9815cd8f2e4bf80cbe0cf22a8105caea72c1a5086e75a5e382f50e488a8d"}},{"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, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/package-manager.ts"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"55c23c8f4678fd34d73260bb06f894d10ce6d111261c0bdcc7f8908ad91e5487"}},{"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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"84f53f44b558e3e4dda428281a6c5862994b36d16b47c4c5ebd8fceb2c06e935"}},{"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, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/package-manager.ts"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"70750ab84f4a351fb8bded2056104c1ad4eeae673e4604a0e5f642dcf96ba709"}},{"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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"02fcd984939def1d0d0d4579811344604454c9017711f456d2a42b634bc3c6e3"}},{"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, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/package-manager.ts"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"67c362c0a6e2127007ce31cb92d1d5bc91c4d876cecaaff11b86170dd6fb462d"}},{"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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b8511500507e6030fefde3fe5fb255dc5518a56146e1c93f796c7925900ff89"}},{"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, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/package-manager.ts"},"region":{"startLine":1414}}}],"partialFingerprints":{"codehealthFindingId/v1":"9169b34f5851b4362e3dd9d9cb01469badd2814f1948486e09b92f102c477dc0"}},{"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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":1660}}}],"partialFingerprints":{"codehealthFindingId/v1":"f44a43375829a4a396c17c0b3ec95e8735326993887f5e6e274688a616c2bc01"}},{"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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":2012}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b1231a344536290763d267763f686f333bb58377b1de116bf2de23227a1f360"}},{"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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":2059}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c5f06c1e7489612c8a6fdbd85b01bb97b8db65b9e4fbacb757ba5cd1562784e"}},{"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, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/package-manager.ts"},"region":{"startLine":2086}}}],"partialFingerprints":{"codehealthFindingId/v1":"a692eebb1b727682f9ee4294687d80eccf0fa6540b4c715f6150b6a0495387a5"}},{"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/coding-agent/src/core/package-manager.ts"},"region":{"startLine":2622}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7ff65490732cf93da7739809d433b9d02d7528ff7186ab5c53a97f9bd3e6c15"}},{"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, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/prompt-templates.ts"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"55a1be30de687fe02685b8305a40c9f34bc772bbe69f4a42ba11c712b86b0c54"}},{"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, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/resource-loader.ts"},"region":{"startLine":1138}}}],"partialFingerprints":{"codehealthFindingId/v1":"111bf3fe6ac9c121e162466c96aca889107a9953ad6c7f72b82289154e269759"}},{"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/coding-agent/src/core/session-manager.ts"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc915be76de0bc97912bb7e86fc5c13bae4b5be0344d95dace5e3ca57d212544"}},{"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/coding-agent/src/core/session-manager.ts"},"region":{"startLine":1893}}}],"partialFingerprints":{"codehealthFindingId/v1":"86b79327e5e4e8e96cac7ad1833e097f86392b148c6c452939b53da6d8df6c1e"}},{"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/coding-agent/src/core/skills.ts"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfc83c2a2cc132b23a311034d3f87e9fe8bf92d0a6a52466b8cdebe443743523"}},{"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, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/skills.ts"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb0f773afd787ed6dc89ea160df58b492f6847b1785ee35f142ea3f5ae78eb14"}},{"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, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/skills.ts"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c7a4c55ca29445943287aed3b995f9cca8da1fc8ad8741e2623b4729601fc46"}},{"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/coding-agent/src/core/skills.ts"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c84b72f2fbd6f46eb62e42d9a2fcdbed0b3d021144e63056c4120a72deb3229"}},{"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/coding-agent/src/core/tools/edit.ts"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"b51c202ff6ecb4626cba3c15cffd625e2e8871ed1e3fdc6afda065f8fe14d652"}},{"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, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/tools/grep.ts"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"49fd89b0484d818321695a1b39f4ae4f4bf18a80f48717d76ddb8cd40d3fa7a9"}},{"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, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/src/core/tools/ls.ts"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"11768a69e39771f7d04dd6e6184c68ff1b4d7d75091911f31e3912c33dcaf027"}},{"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/coding-agent/src/core/export-html/template.js"},"region":{"startLine":1245}}}],"partialFingerprints":{"codehealthFindingId/v1":"32ea5f0870915b6b2c9da49e907bb270e5a5224380153f50c9595f55e5b7390e"}},{"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/coding-agent/src/core/export-html/template.js"},"region":{"startLine":1864}}}],"partialFingerprints":{"codehealthFindingId/v1":"dff4f6f9e3b436a8b6f6d05563c16da09a5d909f7bd0e544f8181084d4a10052"}},{"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/coding-agent/src/cli/startup-ui.ts"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"361b80e157f279580746f01d6567b48142cdd3acf8c291f8e355c36d838c7c9d"}},{"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/coding-agent/src/bun/restore-sandbox-env.ts"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd3cb841b94683c2ddf42e9bf0a04a49464e2415a6d729c8e57c56dc57569fbe"}},{"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/chord/src/connection.ts"},"region":{"startLine":1285}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce229ff07b5e725767c897c8101df35868c096e9669abae2179085fbad77c330"}},{"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/chord/src/host.ts"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1330018c967974b217fc218663acbf634cdc75337c65c1b8b2ef7360fc91aee"}},{"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/chord/src/link.ts"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c88eae111aa0b419de15c9a1e8f197fb9453dafafbb153d7616aeb6d9b5a177"}},{"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/chord/src/manager.ts"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"261920b8f3a9c0e3d17413d468db3e9ad209dbff727914e92c827be25be664c8"}},{"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/chord/src/manager.ts"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"623b2a1f9d1691efa03b4f9661985ca150884922ddbc906fd2ec40f2f5c87001"}},{"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/chord/src/manager.ts"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeab96f66b5d4f0b7f09fdebc0e0b1052b91ae8a4cea5a447c19dbf3ab37cfdb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(noop)\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/chord/src/object.ts"},"region":{"startLine":788}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f3fb5d4a2b0b51a8e414e201b596d727c37d9c9c8869ba8e4824064f4b30f6a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(noop)\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/chord/src/object.ts"},"region":{"startLine":1087}}}],"partialFingerprints":{"codehealthFindingId/v1":"14a6d603c66b94f988aec75ddad17a45fdda4eca050368f700aaca4095dd1668"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(noop)\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/chord/src/object.ts"},"region":{"startLine":1096}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cbc34681b1c4e5ea8437eb1ea9714ed04828bb61079d78f9379f0ee4996571a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(noop)\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/chord/src/object.ts"},"region":{"startLine":1255}}}],"partialFingerprints":{"codehealthFindingId/v1":"791d479c0b1d18964cbede9a9e5a20bb7ab25a71009319b1ee37fded05966f72"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(noop)\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/chord/src/object.ts"},"region":{"startLine":1693}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f6796c5c891a48c4a74398036132c795e7d6018d18a41f63ecb24ffd0cae34e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(noop)\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/chord/src/remote.ts"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"23b2cde3c74c03f364620407e61a355b8e2242f4c0833a75f9c07e142d670703"}},{"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/chord/src/telemetry-sqlite/index.ts"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"92d0077b381a99b00b60b88b11eb9b44f8ff96dba2e6339a18bb59a07334d147"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.then(\u2026, () =\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/chord/src/sqlite/cloudflare.ts"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"dee5dd636b3310fb77cbacfb33048a9cfa093c440abc049f4fecf40ea923c07e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.then(\u2026, ignore)\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/chord/src/sqlite/node.ts"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b9bd60cae35fec6017a1a71bc6f0bd4e2edc8fa94dbe78a9b3f58428a18f985"}},{"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/chord/src/sqlite/node.ts"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8917ae5ea03d34d3a19e088e66b1e49d79bfe360203749388e1bdf298feeec2"}},{"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/ai/src/models.ts"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"0273f83caf12eec7f907cc98cbebfc74fd25ee85263811ac8c63db58477db516"}},{"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/ai/src/models.ts"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"afd44af9b596bc15425bfd6350bccf81919adf0199197c21d4a70714cfc2a3ce"}},{"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/ai/src/models.ts"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"289336fb6c5b6b35163181f8d3e7810ca1f4a9f89e49ecaf04b4c548069f4c79"}},{"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/ai/src/models.ts"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"7487124b3c303d6c0c293f59ec4a0fb04318fd1f0cb7250f1940f21e99e3c945"}},{"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/ai/src/models.ts"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b7b8d0cf9a02399391309358285a07b7023f2d071be4f6545e2276057296eba"}},{"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/ai/src/utils/abort.ts"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"9998301e637e2057348f163f73d75f5d6e4ef80e46c5643c8e29ac53269300b7"}},{"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/ai/src/utils/provider-env.ts"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"acebd34ec89cbb11af9cc755e36832a3b82ad2463d8a035d6b1d63441f1c4a6c"}},{"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/ai/src/auth/credential-store.ts"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"d33a8579c7006e65c1bb34ea1d0e36440341df478fc752c68b824cb06fe71617"}},{"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/ai/src/auth/credential-store.ts"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d8d7e1d26d360611693a8f67e00d93c4115c7e3b18d8c3f9e98461ad0fb0cce"}},{"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/ai/src/auth/oauth/anthropic.ts"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d515a4caf5c80a9537624ee1e8b7dc1e53d5de935d0160041b100d737898102"}},{"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/ai/src/auth/oauth/openai-codex.ts"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"cda9b4defaf5bacde4f356755fbd717f664a491cec9d91b47311872f3d01cc63"}},{"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/ai/src/auth/oauth/openai-codex.ts"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2524d07fb422b2344ec52be2367434c6ed1f6a22397926de5bb3e6219601f2a"}},{"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/ai/src/auth/oauth/openrouter.ts"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfdf056c49dac5d5d1402503deb6484a1e0eafc6a1a690b8f8807c2e71c0d9b1"}},{"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/ai/src/api/mistral-conversations.ts"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"35f2579e0ae6f87d81115edb3ac98c30e00550d0a9260642b5993b11c06b8f46"}},{"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/ai/src/api/mistral-conversations.ts"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"356528eb39c68b4ed5002e843c83a7134dc36aaef4569d95a103969b2f23e71f"}},{"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/ai/src/api/mistral-conversations.ts"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bfac0e9b751e1cf722ed4b759d1f497d90f3caa8e3524c6ed02277d71535b85"}},{"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/ai/src/api/openai-codex-responses.ts"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9da22c889f4339bc7218931589aedefc8a7aa308a751ecd8a09d459625e3b8e"}},{"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/ai/src/api/openai-codex-responses.ts"},"region":{"startLine":871}}}],"partialFingerprints":{"codehealthFindingId/v1":"b52a1d9f9db8cacdac09330b7639ce78a3d1bd21fd8630a5f4881751cbdf557f"}},{"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/ai/src/api/openai-codex-responses.ts"},"region":{"startLine":874}}}],"partialFingerprints":{"codehealthFindingId/v1":"e32aa42deeb159210021b075d5eab4fb5b766d272e98208de030e06569d96031"}},{"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/ai/src/api/openai-codex-responses.ts"},"region":{"startLine":1076}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4877c446fa010f942cd40d6076327d32e491df5ab9496f361c18e787ae5446e"}},{"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/ai/src/api/openai-codex-responses.ts"},"region":{"startLine":1635}}}],"partialFingerprints":{"codehealthFindingId/v1":"74a20c26d0566f55f52c117d386feaa7f78ef0f01354ece8f954b7739db61260"}},{"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/ai/src/api/openai-responses-shared.ts"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b948c8e02b89cdab16ddc9cdab30f006f5d6c802d164b831c963eec7d7fa29a"}},{"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/agent/src/proxy.ts"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"68c13658e8a7339a235097ae2c7eb5dc3326ea029c5abcd4c645391626ce271a"}},{"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/agent/src/proxy.ts"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"d26ae24f9a0d2cf22afcd0119df421e284136df53b6296e51e25348a2cd76f96"}},{"ruleId":"X5","level":"note","message":{"text":"Null assertions (\u0060!\u0060) reduce the strict null checking score: ~3.5 \u0060!\u0060 null assertions per 1k TypeScript source lines \u2014 667 assertion(s) across the 189225 source line(s) of the 675 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/coding-agent/src/modes/interactive/components/easter-egg-3d.ts (117), packages/chord/src/delta/tracker.ts (79), packages/chord/src/delta/diff.ts (47). Each one tells the compiler to trust the author about null, suppressing the very diagnostic \u0060strictNullChecks\u0060 exists to produce."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"edb251d0f8dd1deb75ff6fa12d145c3d5c948a70b0aaf8da052107c857335979"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060getModels\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/ai/src/models.ts"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"6df078743499effffcfa7bf8c5d7ad41442b15f8fdf0e80d39828cea2c536874"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060getAllModels\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/ai/src/models.ts"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"18b2084686b908700302ac7951a62233ca6fe3914ee773be57bc9ea1cf0b16e7"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060safeJsonStringify\u0060 swallows every exception into \u0060return \u0022[unserializable]\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/ai/src/utils/estimate.ts"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fad5d2106390edf5d3468949e933df595e1de44aa189bc445eccbe598d87f78"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060loadAuth\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/ai/src/cli.ts"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8d6a03bdcce97b0419b47b9d268d41d2eb97c6e3cd2b1441d5f7a40b98bc12b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060listAll\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/coding-agent/src/core/session-manager.ts"},"region":{"startLine":1969}}}],"partialFingerprints":{"codehealthFindingId/v1":"d67ce588afc25a8b2aa052c66491ae7d5492942c69c22a71bdf584bb35aeca0c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060loadAuthStorage\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/ai/test/oauth.ts"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"be87eb115d19f9bc862b415751c33a502cd1ef4e443aee2c7999030a65f2cbfe"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060getThemeExportColors\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/coding-agent/src/modes/interactive/theme/theme.ts"},"region":{"startLine":873}}}],"partialFingerprints":{"codehealthFindingId/v1":"99a81e54e699c011563dc9d4078f73b5e946a23adebac29de2d805008de02829"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readCrashLog\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/coding-agent/src/core/crash-log.ts"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a896c35e37b656d05c27fa54bdca573fbc72e45f369029b5229f73f238537dc"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060previewArgs\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/coding-agent/src/extensions/codemode/execute.ts"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2c9ea5005e10681b07262cba2d49988e695c7bf45f9d8d5e9cc4ba2a0017373"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060currentSize\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/coding-agent/src/extensions/mcp/log.ts"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"afe653215eb1d130cfb39c7de822d60ee39360e3928c4ea60a8e67d1a44b88c9"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060checkForPackageUpdates\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/coding-agent/src/modes/interactive/interactive-mode.ts"},"region":{"startLine":1278}}}],"partialFingerprints":{"codehealthFindingId/v1":"486fe1abc3c63851eeb41b3fe85a5047f62dc12d42c3ec87f03ab3da64f80919"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060discoverExtensionsInDir\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/coding-agent/src/core/extensions/loader.ts"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"5324a65ebcfdada8a9fca8ad2da2afbd6510d3e5cc12f63a36efa5c77df50373"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060loadAuthStorage\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/coding-agent/test/utilities.ts"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"9972dc267cc881f52adf2ca89805a0a5c29f586536604d2f7c04d8b00dcd32ad"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060getFileSuggestions\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/tui/src/autocomplete.ts"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c88d141e8b4be0ea9e24ffd640c0b9e340e83c94f01a2b480d9712c5826185e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060getFuzzyFileSuggestions\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/tui/src/autocomplete.ts"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"91101c8bf0b8e9495fa7e69ee524dffcd7aae4a04af2bce179e87140aceab4a2"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060href.startsWith(\u0022//\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060href.startsWith(\u0022//\u0022)\u0060 also satisfies \u0060href.startsWith(\u0022/\u0022)\u0060, so the \u0060||\u0060 chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/coding-agent/test/documentation.test.ts"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"85ffb42ab118a93623fbb782b2a744ebc6985415f7e54bcaa46a0032bcdc95ba"}}],"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-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"id":"CWE-117","guid":"1cfadbc2-a979-485e-b768-c70fc922201e","name":"Improper Output Neutralization for Logs","shortDescription":{"text":"Improper Output Neutralization for Logs"},"helpUri":"https://cwe.mitre.org/data/definitions/117.html"},{"id":"CWE-125","guid":"98717707-96bf-ca5b-9568-8d1d257574c1","name":"CWE-125","shortDescription":{"text":"CWE-125"},"helpUri":"https://cwe.mitre.org/data/definitions/125.html"},{"id":"CWE-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-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-214","guid":"b10ad120-fb22-1351-9348-aa23b453e815","name":"CWE-214","shortDescription":{"text":"CWE-214"},"helpUri":"https://cwe.mitre.org/data/definitions/214.html"},{"id":"CWE-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":"A09:2025","guid":"78892bc9-3c98-495d-881c-8af1390d643c","name":"Security Logging \u0026 Alerting Failures","shortDescription":{"text":"Security Logging \u0026 Alerting Failures"},"helpUri":"https://top10.owasp.org/2025/A09_2025-Security_Logging_and_Alerting_Failures/"}]},{"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-4","guid":"c859d8ea-8b24-a157-9406-94929c10397a","name":"Poisoned Pipeline Execution (PPE)","shortDescription":{"text":"Poisoned Pipeline Execution (PPE)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-04-Poisoned-Pipeline-Execution"},{"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-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":47,"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."]}]}