{"$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":"D7","name":"Architectural Integrity","shortDescription":{"text":"Architectural Integrity"},"helpUri":"https://codehealth.canine.dev/dimensions/D7"},{"id":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"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":"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":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D24","name":"Comment Value","shortDescription":{"text":"Comment Value"},"helpUri":"https://codehealth.canine.dev/dimensions/D24"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"],"owasp":"A02:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AC1","name":"Text alternatives","shortDescription":{"text":"Text alternatives"},"helpUri":"https://codehealth.canine.dev/dimensions/AC1"},{"id":"AC2","name":"Forms \u0026 labels","shortDescription":{"text":"Forms \u0026 labels"},"helpUri":"https://codehealth.canine.dev/dimensions/AC2"},{"id":"AC3","name":"Page structure","shortDescription":{"text":"Page structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AC3"},{"id":"AC4","name":"Keyboard semantics","shortDescription":{"text":"Keyboard semantics"},"helpUri":"https://codehealth.canine.dev/dimensions/AC4"},{"id":"AC5","name":"ARIA correctness","shortDescription":{"text":"ARIA correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/AC5"},{"id":"AC6","name":"Visual \u0026 motion safety","shortDescription":{"text":"Visual \u0026 motion safety"},"helpUri":"https://codehealth.canine.dev/dimensions/AC6"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"C1","name":"Data Protection","shortDescription":{"text":"Data Protection"},"helpUri":"https://codehealth.canine.dev/dimensions/C1"},{"id":"C2","name":"Access Controls","shortDescription":{"text":"Access Controls"},"helpUri":"https://codehealth.canine.dev/dimensions/C2"},{"id":"C4","name":"Data Retention","shortDescription":{"text":"Data Retention"},"helpUri":"https://codehealth.canine.dev/dimensions/C4"},{"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":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P5","name":"DR \u0026 Backup","shortDescription":{"text":"DR \u0026 Backup"},"helpUri":"https://codehealth.canine.dev/dimensions/P5"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"R1","name":"Type Safety","shortDescription":{"text":"Type Safety"},"helpUri":"https://codehealth.canine.dev/dimensions/R1"},{"id":"R10","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/R10"},{"id":"R2","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/R2"},{"id":"R3","name":"Large Files","shortDescription":{"text":"Large Files"},"helpUri":"https://codehealth.canine.dev/dimensions/R3"},{"id":"R4","name":"Test Coverage","shortDescription":{"text":"Test Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/R4"},{"id":"R6","name":"Tooling","shortDescription":{"text":"Tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/R6"},{"id":"R7","name":"Dead Code","shortDescription":{"text":"Dead Code"},"helpUri":"https://codehealth.canine.dev/dimensions/R7"},{"id":"R8","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/R8"},{"id":"R9","name":"Circular Imports","shortDescription":{"text":"Circular Imports"},"helpUri":"https://codehealth.canine.dev/dimensions/R9"},{"id":"S1","name":"Web-Security Posture","shortDescription":{"text":"Web-Security Posture"},"helpUri":"https://codehealth.canine.dev/dimensions/S1"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X2","name":"Cancellation propagation","shortDescription":{"text":"Cancellation propagation"},"helpUri":"https://codehealth.canine.dev/dimensions/X2"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"alipay-checkout-dialog.AlipayCheckoutDialog (cyclomatic 169): alipay-checkout-dialog.AlipayCheckoutDialog has cyclomatic complexity 169 (threshold 15). Of this number, 88 points are the body\u0027s own statements and 81 belong to 20 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":"components/payments/alipay-checkout-dialog.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"9226359bd76a133a29c5da11bef8126ba465009bec86310d3bb541caa2abf5b2"}},{"ruleId":"D1","level":"warning","message":{"text":"video-workflow-create.VideoWorkflowCreate (cyclomatic 103): video-workflow-create.VideoWorkflowCreate has cyclomatic complexity 103 (threshold 15). To reduce it, separate the cases: extract each independent 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: 4 other methods here (video-workflow-create.VideoWorkflowCreate::handleFile, video-workflow-create.VideoWorkflowCreate::startBreakdown, video-workflow-create.VideoWorkflowCreate::rewriteScene, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 5 times rather than 5 independent problems. Splitting this body alone leaves the other 4 exactly as they are. Where these are variations on one operation, the change that clears all 5 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":"components/workflow/video-workflow-create.tsx"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d2e4140092b6c48860a59c4647b57c7eec06815fc95150a96a9f0e340fdfbe7"}},{"ruleId":"D1","level":"warning","message":{"text":"page.DashboardPage (cyclomatic 94): page.DashboardPage has cyclomatic complexity 94 (threshold 15). Of this number, 63 points are the body\u0027s own statements and 31 belong to 11 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":"app/dashboard/page.tsx"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e520879a16e57fa8b133970d615edee4788e7c9b94e9c6c9f50c1724e613cc0"}},{"ruleId":"D1","level":"warning","message":{"text":"ReferenceVideoComposer.ReferenceVideoComposer (cyclomatic 93): ReferenceVideoComposer.ReferenceVideoComposer has cyclomatic complexity 93 (threshold 15). To reduce it, separate the cases: extract each independent 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 (ReferenceVideoComposer.ReferenceVideoComposer::submitGenerationJob) 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":"components/reference-video/ReferenceVideoComposer.tsx"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"372f80beb5fcd67a0c82bc28014a4aaae2923e72821df309ce994e4ee76f0e70"}},{"ruleId":"D1","level":"warning","message":{"text":"pricing-v6.estimateGeneration (cyclomatic 84): pricing-v6.estimateGeneration has cyclomatic complexity 84 (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":"lib/billing/pricing-v6.ts"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e2b6d31f7ee16ef501ea6bab755a7f7abdf67c726780645a1b18d4e404df7ab"}},{"ruleId":"D1","level":"warning","message":{"text":"billing-account.BillingAccount (cyclomatic 73): billing-account.BillingAccount 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. This shape REPEATS in the file: one other method here (billing-account.BillingAccount::refund) 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":"components/payments/billing-account.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4095753addd9031e68915c3f1a4281bee1237492a1a6b06d72a1ef1f2110757"}},{"ruleId":"D1","level":"warning","message":{"text":"video-workflow-create.VideoWorkflowCreate::startBreakdown (cyclomatic 69): video-workflow-create.VideoWorkflowCreate::startBreakdown has cyclomatic complexity 69 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: 4 other methods here (video-workflow-create.VideoWorkflowCreate, video-workflow-create.VideoWorkflowCreate::handleFile, video-workflow-create.VideoWorkflowCreate::rewriteScene, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 5 times rather than 5 independent problems. Splitting this body alone leaves the other 4 exactly as they are. Where these are variations on one operation, the change that clears all 5 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":"components/workflow/video-workflow-create.tsx"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"a80731cc0be21acc88327eb44d6f9b9a4abf97608d0cd1776aa313c434b548a4"}},{"ruleId":"D1","level":"warning","message":{"text":"route.GET (cyclomatic 66): route.GET has cyclomatic complexity 66 (threshold 15). Of this number, 59 points are the body\u0027s own statements and 7 belong to 4 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/commercial/tasks/[id]/route.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb595ba24bbb692519b863229d792eea73a47776fdf36ecee37a412664d60349"}},{"ruleId":"D1","level":"warning","message":{"text":"generation-history.GenerationHistory (cyclomatic 63): generation-history.GenerationHistory has cyclomatic complexity 63 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 40 belong to 5 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":"components/reference-video/generation-history.tsx"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c4fd37af61c8d0aef9f3134c2a5e73853d91149aeff59722e372c2785ea528f"}},{"ruleId":"D1","level":"warning","message":{"text":"admin-financial-records.AdminFinancialRecords (cyclomatic 61): admin-financial-records.AdminFinancialRecords has cyclomatic complexity 61 (threshold 15). Of this number, 31 points are the body\u0027s own statements and 30 belong to 6 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/admin-financial-records.tsx"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"d24fa16531209ab0aa9abed8d7e6bcc9dc8e49c8e9318ea85965b8f05a3a55a3"}},{"ruleId":"D1","level":"warning","message":{"text":"analysis-quote-panel.AnalysisQuotePanel (cyclomatic 60): analysis-quote-panel.AnalysisQuotePanel has cyclomatic complexity 60 (threshold 15). To reduce it, separate the cases: extract each independent 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 (analysis-quote-panel.AnalysisQuotePanel::post) 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":"components/payments/analysis-quote-panel.tsx"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b23879b914a7f7523cff861a949ec457c892d2c8ce58f50c7f1a4510e244cca"}},{"ruleId":"D1","level":"warning","message":{"text":"analysis-quote-panel.AnalysisQuotePanel::post (cyclomatic 59): analysis-quote-panel.AnalysisQuotePanel::post has cyclomatic complexity 59 (threshold 15). To reduce it, separate the cases: extract each independent 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 (analysis-quote-panel.AnalysisQuotePanel) 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":"components/payments/analysis-quote-panel.tsx"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"7537c0e817b3aad999c94cd5024125f4d3960b5902b14829e445ba601d2da679"}},{"ruleId":"D1","level":"warning","message":{"text":"history-list.AnalysisHistory (cyclomatic 57): history-list.AnalysisHistory has cyclomatic complexity 57 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 38 belong to 10 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":"components/history-list.tsx"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9f089366fba485db189feb324100af1a56f692ae54eaad44333aec25e6fbaca"}},{"ruleId":"D1","level":"warning","message":{"text":"admin-user-directory.AdminUserDirectory (cyclomatic 55): admin-user-directory.AdminUserDirectory has cyclomatic complexity 55 (threshold 15). Of this number, 28 points are the body\u0027s own statements and 27 belong to 11 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/admin-user-directory.tsx"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"eafa4ca0a848b6f6daaa5aac887f608c2ff5e8e5ce458aa0bf48f165b74445fb"}},{"ruleId":"D1","level":"warning","message":{"text":"analysis-tasks.runAnalysisTaskStep (cyclomatic 54): analysis-tasks.runAnalysisTaskStep has cyclomatic complexity 54 (threshold 15). Of this number, 43 points are the body\u0027s own statements and 11 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":"lib/workflow/analysis-tasks.ts"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ca26a26f45f4ac664376ba5079b1c7542ee1d008eb5d065c2c69929077164cb"}},{"ruleId":"D1","level":"warning","message":{"text":"generation-payload.buildMarketGenerationPayload (cyclomatic 53): generation-payload.buildMarketGenerationPayload has cyclomatic complexity 53 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ai/generation-payload.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"90e2b9be1c7527a6582b9ae9256773a0de426cdd1a1be1899a64ab356cb54ea8"}},{"ruleId":"D1","level":"warning","message":{"text":"route.POST (cyclomatic 50): route.POST has cyclomatic complexity 50 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/workflow/projects/[id]/scenes/[sceneVersionId]/rewrite/route.ts"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b2911644153335ac134ce44dc57962640dd25f84e0ca455b1e11e90148cf884"}},{"ruleId":"D1","level":"warning","message":{"text":"route.POST (cyclomatic 49): route.POST has cyclomatic complexity 49 (threshold 15). Of this number, 46 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":"app/api/generation-jobs/route.ts"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"57f37f9bd8ab9934eaa3f31526f8ed545f7c9e1f72a8a81ad75ea22c4fad6426"}},{"ruleId":"D1","level":"warning","message":{"text":"commercial-generation.buildCommercialGenerationPayload (cyclomatic 49): commercial-generation.buildCommercialGenerationPayload has cyclomatic complexity 49 (threshold 15). Of this number, 47 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/billing/commercial-generation.ts"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"595141ad8d04e1878a673a916d1ef39650b635fc8412abd16dfada9911552acc"}},{"ruleId":"D1","level":"warning","message":{"text":"agent-composer.AgentComposer (cyclomatic 46): agent-composer.AgentComposer has cyclomatic complexity 46 (threshold 15). Of this number, 25 points are the body\u0027s own statements and 21 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":"components/agent/agent-composer.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"751b1b4230ad8dc50586b9e5f40afbd796e2b37cf9507da0fe241d681525674f"}},{"ruleId":"D1","level":"warning","message":{"text":"page.BillingTaskPage (cyclomatic 45): page.BillingTaskPage has cyclomatic complexity 45 (threshold 15). Of this number, 29 points are the body\u0027s own statements and 16 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":"app/billing/tasks/[id]/page.tsx"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ac5c9b6dcedfe2eb848b132b93adb22a7330037e4863c0e26b073cc625df9ba"}},{"ruleId":"D1","level":"warning","message":{"text":"independent-scene-analysis.saveSceneCheckpoint (cyclomatic 44): independent-scene-analysis.saveSceneCheckpoint has cyclomatic complexity 44 (threshold 15). Most of this is not in the body itself: 5 of the 44 points are its own statements and the rest belongs to one function literal inside it that branches (line 59). 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":"lib/billing/independent-scene-analysis.ts"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b5aa385f3413505c3012f9d6c0e565607bae0be9cc405371cd1432cabac30b5"}},{"ruleId":"D1","level":"warning","message":{"text":"page.CommercialReviewPage (cyclomatic 43): page.CommercialReviewPage has cyclomatic complexity 43 (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 (page.CommercialReviewPage::act) 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":"app/billing/review/page.tsx"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"c30bb4e25882aab960e09b9cdbc7c9861de1ebe06d5622ac8ddd879ed91f2898"}},{"ruleId":"D1","level":"warning","message":{"text":"kie-veo.getKieVeoGenerationStatus (cyclomatic 42): kie-veo.getKieVeoGenerationStatus 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":"lib/reference-video/kie-veo.ts"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c794587d9c8499990e36a0f3941e365486fd93b6c7b5b420f32b7297b8afff9"}},{"ruleId":"D1","level":"warning","message":{"text":"route.loadOverview (cyclomatic 41): route.loadOverview has cyclomatic complexity 41 (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":"app/api/admin/overview/route.ts"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"885eed60a4fa59ea613a791b8c23521fe3978080d3e721196110038b65bc82dd"}},{"ruleId":"D1","level":"warning","message":{"text":"analysis-task-details.AnalysisTaskDetails (cyclomatic 41): analysis-task-details.AnalysisTaskDetails has cyclomatic complexity 41 (threshold 15). Of this number, 34 points are the body\u0027s own statements and 7 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":"components/payments/analysis-task-details.tsx"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3b830b62b1a630ad702bfeb7bc7d8f19986381a25142743e548a69ca23dc824"}},{"ruleId":"D1","level":"warning","message":{"text":"probeRemoteVideoCodec::read (cyclomatic 40): probeRemoteVideoCodec::read 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":"workers/ffmpeg-worker/remote-video-codec.mjs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"a561b62a0e2bec9b9c63b5f5e9542cb47f1ad0952dc81493e5e1ded01967fd75"}},{"ruleId":"D1","level":"warning","message":{"text":"credit-rules.creditRuleTopics (cyclomatic 38): credit-rules.creditRuleTopics has cyclomatic complexity 38 (threshold 15). Of this number, 28 points are the body\u0027s own statements and 10 belong to 6 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":"app/guide/credit-rules.ts"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5e398fc71f767408d0c0fd6aabaeb174f100b19c09452baa7e501d36c8ab2cb"}},{"ruleId":"D1","level":"warning","message":{"text":"admin-overview-panel.AdminOverviewPanel (cyclomatic 37): admin-overview-panel.AdminOverviewPanel has cyclomatic complexity 37 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 19 belong to 6 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/admin-overview-panel.tsx"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"e63bd8359d629a5418bc3c9b4ef6fae5dc10041a2e7fa47d7dd4e9b8b990b7be"}},{"ruleId":"D1","level":"warning","message":{"text":"agent-chat-page.AgentChatPage (cyclomatic 37): agent-chat-page.AgentChatPage has cyclomatic complexity 37 (threshold 15). Most of this is not in the body itself: 8 of the 37 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 55, submitFollowUp, a function literal at line 87, \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":"components/agent/agent-chat-page.tsx"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"54fe0c1d5882dcdafa0d89194a0e8bc83c87fb9ddcf1064f800e65e20ed7e94c"}},{"ruleId":"D1","level":"warning","message":{"text":"route.POST (cyclomatic 36): route.POST has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/admin/payments/commercial/route.ts"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"fad2138a7333c7bc0bea7585dee3f4bab8e9df82ee41da8ee42ecf4a088c1a9b"}},{"ruleId":"D1","level":"warning","message":{"text":"login-client.LoginClient (cyclomatic 36): login-client.LoginClient has cyclomatic complexity 36 (threshold 15). Most of this is not in the body itself: 12 of the 36 points are its own statements and the rest belongs to 5 function items inside it that branch (handleSendCode, handleVerifyCode, a function literal at line 32, \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":"app/login/login-client.tsx"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"39d84070066653221dd89324c86360cbe8e6569e131133fefe2db72f5220270e"}},{"ruleId":"D1","level":"warning","message":{"text":"pricing-section.PricingSection (cyclomatic 36): pricing-section.PricingSection has cyclomatic complexity 36 (threshold 15). Most of this is not in the body itself: 15 of the 36 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 28, 42, 68, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/landing/pricing-section.tsx"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"28a8867e55e3de43558796258c3b3cd01280c928f3fe5f70a609e3e4da3ee830"}},{"ruleId":"D1","level":"warning","message":{"text":"commercial-analysis.executeCommercialAnalysis (cyclomatic 36): commercial-analysis.executeCommercialAnalysis has cyclomatic complexity 36 (threshold 15). Most of this is not in the body itself: 13 of the 36 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 159, 187). 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":"lib/billing/commercial-analysis.ts"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"781133a9bd4fd80133d7bf61863cf1ba796ffea6a297daba88fa0762264900a5"}},{"ruleId":"D1","level":"warning","message":{"text":"scene-video-preview.SceneVideoPlayer (cyclomatic 35): scene-video-preview.SceneVideoPlayer 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. This shape REPEATS in the file: one other method here (scene-video-preview.SceneVideoPlayer::togglePlayback) 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":"components/workflow/scene-video-preview.tsx"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"d70cf5cfef67e4f4da74f8868d11b5a64ce99133a64867363813653f630f4585"}},{"ruleId":"D1","level":"warning","message":{"text":"analysis-task-progress.AnalysisTaskProgress (cyclomatic 34): analysis-task-progress.AnalysisTaskProgress has cyclomatic complexity 34 (threshold 15). Of this number, 32 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":"components/payments/analysis-task-progress.tsx"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f66a204a10521a1bed890948a3b3c4dfd49440f7cbb447e7be0b64508ef9976"}},{"ruleId":"D1","level":"warning","message":{"text":"independent-scene-analysis.runIndependentSceneJob (cyclomatic 34): independent-scene-analysis.runIndependentSceneJob has cyclomatic complexity 34 (threshold 15). Of this number, 27 points are the body\u0027s own statements and 7 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":"lib/billing/independent-scene-analysis.ts"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"ced31a73c0de2534746f311db13e0a7079e89df06dccbd6f06c5598b948b7a3e"}},{"ruleId":"D1","level":"warning","message":{"text":"agent-run-panel.AgentRunPanel (cyclomatic 33): agent-run-panel.AgentRunPanel has cyclomatic complexity 33 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 16 belong to 7 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/agent/agent-run-panel.tsx"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"77cd5e16b174fd91a6efa527ca3f2ebc1aaf1049ba5879cdb3c11fafac5ccfb8"}},{"ruleId":"D1","level":"warning","message":{"text":"generation-credit-preview.generationCreditPreview (cyclomatic 33): generation-credit-preview.generationCreditPreview has cyclomatic complexity 33 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/billing/generation-credit-preview.ts"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dba927e5bc21d231ed5210a8ec54082032e623de6b4b530ecc42f2cb79111bd"}},{"ruleId":"D1","level":"warning","message":{"text":"project-history-details.ProjectHistoryDetails (cyclomatic 32): project-history-details.ProjectHistoryDetails has cyclomatic complexity 32 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 12 belong to 4 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":"components/workflow/project-history-details.tsx"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9c2d247c7cfa048af8f32c5cdb1e10839bbc3f6f4fd777d76f8bd7abe6a8e00"}},{"ruleId":"D1","level":"warning","message":{"text":"audio-analyze-tab.AudioAnalyzeTab (cyclomatic 31): audio-analyze-tab.AudioAnalyzeTab has cyclomatic complexity 31 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: one other method here (audio-analyze-tab.AudioAnalyzeTab::handleAnalyze) 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":"components/audio-analyze-tab.tsx"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c3c543ef2e1805ac5077ec3f03d6cb635215b18a95bb28d7c615032502d913d"}},{"ruleId":"D1","level":"warning","message":{"text":"video-workflow-create.VideoWorkflowCreate::retryFailedScene (cyclomatic 31): video-workflow-create.VideoWorkflowCreate::retryFailedScene 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. This shape REPEATS in the file: 4 other methods here (video-workflow-create.VideoWorkflowCreate, video-workflow-create.VideoWorkflowCreate::handleFile, video-workflow-create.VideoWorkflowCreate::startBreakdown, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 5 times rather than 5 independent problems. Splitting this body alone leaves the other 4 exactly as they are. Where these are variations on one operation, the change that clears all 5 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":"components/workflow/video-workflow-create.tsx"},"region":{"startLine":788}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bf94156f1f4381bd1fc806efee95d3d15c5bd7c05bce53b426f218a1d0f837b"}},{"ruleId":"D1","level":"warning","message":{"text":"commercial-generation.quoteCommercialGeneration (cyclomatic 31): commercial-generation.quoteCommercialGeneration has cyclomatic complexity 31 (threshold 15). Of this number, 27 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":"lib/billing/commercial-generation.ts"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"aed912b12da9d400170b300bfa94fafbcdc7a42f316b030e0a4c3255a2c1db49"}},{"ruleId":"D1","level":"warning","message":{"text":"prompt-lens-rewrite-demo.PromptLensRewriteDemo (cyclomatic 30): prompt-lens-rewrite-demo.PromptLensRewriteDemo has cyclomatic complexity 30 (threshold 15). Of this number, 29 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, 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":"remotion/prompt-lens-rewrite-demo.tsx"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"83aa08c7392fc99d97ba4a1855ff69992c315c8587aadbb6050600b9be9f0e4f"}},{"ruleId":"D1","level":"warning","message":{"text":"page.GuidePage (cyclomatic 29): page.GuidePage has cyclomatic complexity 29 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 11 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":"app/guide/page.tsx"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"af4da14de9a97003938a83e54cbd7a7df395559595a9fcb11db7092e3ff1c2c4"}},{"ruleId":"D1","level":"warning","message":{"text":"video-workflow-create.AnalysisProgressPanel (cyclomatic 29): video-workflow-create.AnalysisProgressPanel has cyclomatic complexity 29 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 13 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/workflow/video-workflow-create.tsx"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"a49b08643840981231beb1a01676fe1d79e9deee25f7c6ab1c01dce1c7c3fb99"}},{"ruleId":"D1","level":"warning","message":{"text":"mock-data.runMockSearch (cyclomatic 28): mock-data.runMockSearch has cyclomatic complexity 28 (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":"lib/agent/mock-data.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"9488e66d0a11681d5144010056049f174850b955906666de0f7f553668f7897b"}},{"ruleId":"D1","level":"warning","message":{"text":"infistar-video.buildInfistarVideoPayload (cyclomatic 28): infistar-video.buildInfistarVideoPayload has cyclomatic complexity 28 (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":"lib/ai/adapters/infistar-video.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c390044e8e2d52a8b2689e2dad1ef0b71eaea68ca482c3fc35c8eae5921d7fd"}},{"ruleId":"D1","level":"warning","message":{"text":"scene-analysis.rewriteSceneBlueprint (cyclomatic 28): scene-analysis.rewriteSceneBlueprint has cyclomatic complexity 28 (threshold 15). Of this number, 25 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":"lib/workflow/scene-analysis.ts"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"0251ba034485244a515017c83a76538e7393e1788cb7f9f080726b8e1f9d8b74"}},{"ruleId":"D1","level":"warning","message":{"text":"route.POST (cyclomatic 27): route.POST has cyclomatic complexity 27 (threshold 15). Of this number, 25 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":"app/api/commercial/analysis/route.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"310b8ce05f9ae6175d13c10ea7cefa55736d5373eb2008b3f20b84a02e86cb60"}},{"ruleId":"D1","level":"warning","message":{"text":"route.GET (cyclomatic 27): route.GET 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":"app/api/generation-jobs/route.ts"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf243c66aec43d838840857c2c8502a2f9ed9dd7866aa47330110763e493b5e5"}},{"ruleId":"D1","level":"warning","message":{"text":"ReferenceVideoComposer.ReferenceVideoComposer::submitGenerationJob (cyclomatic 27): ReferenceVideoComposer.ReferenceVideoComposer::submitGenerationJob 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. This shape REPEATS in the file: one other method here (ReferenceVideoComposer.ReferenceVideoComposer) 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":"components/reference-video/ReferenceVideoComposer.tsx"},"region":{"startLine":1076}}}],"partialFingerprints":{"codehealthFindingId/v1":"198c304c68c11b023ef20eb9784010eebceead1940ba1e2485780e92ae0936b1"}},{"ruleId":"D1","level":"warning","message":{"text":"video-edit-tab.VideoEditTab (cyclomatic 26): video-edit-tab.VideoEditTab has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: one other method here (video-edit-tab.VideoEditTab::handleEdit) 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":"components/video-edit-tab.tsx"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7a71e9ebb1bb4f9d2b8d93572388f610c4653337bc288c7c4ec9771b01bd7c5"}},{"ruleId":"D1","level":"warning","message":{"text":"kie-client.readChatResponse (cyclomatic 26): kie-client.readChatResponse has cyclomatic complexity 26 (threshold 15). Of this number, 23 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":"lib/ai/kie-client.ts"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"96a161429c43f770451a0088989b49d68c45af6fb685993572a43d9bd2cdf2b5"}},{"ruleId":"D1","level":"warning","message":{"text":"kie-client.requestKieChat (cyclomatic 26): kie-client.requestKieChat has cyclomatic complexity 26 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 13 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":"lib/ai/kie-client.ts"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca1bf1c06380a01d55b1fcfc9ffa0b23eab8008bc34c269005ece4ee6513f26a"}},{"ruleId":"D1","level":"warning","message":{"text":"easydown.selectEasyDownMedia (cyclomatic 26): easydown.selectEasyDownMedia has cyclomatic complexity 26 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 10 belong to 4 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":"lib/media-resolver/easydown.ts"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"7beb526fd1c4511d0bf8a1b9a6462287f9efedf81e888d5257fb5b14d6069dd9"}},{"ruleId":"D1","level":"warning","message":{"text":"route.handleImport (cyclomatic 25): route.handleImport 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":"app/api/media/resolve-link/route.ts"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"05165ebdad8f4edf1d2adb581d54b6f4f2f19ff9b60f3e3f6c4cbd3b235f16a5"}},{"ruleId":"D1","level":"warning","message":{"text":"samples-gallery.SamplesGallery (cyclomatic 25): samples-gallery.SamplesGallery has cyclomatic complexity 25 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 12 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":"components/samples-gallery.tsx"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"bebe686f14538e5ced551dbce9ac21194537bacc6a0800fb9bed97f3706590b5"}},{"ruleId":"D1","level":"warning","message":{"text":"commercial-analysis.prepareCommercialAnalysis (cyclomatic 25): commercial-analysis.prepareCommercialAnalysis has cyclomatic complexity 25 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 5 belong to one function literal inside it that branches. To reduce it, split the body: 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":"lib/billing/commercial-analysis.ts"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"276e4f7e63f3e43b9d2f2a19249a9af4577fab7cdb8d3b4fc09b8897ed842374"}},{"ruleId":"D1","level":"warning","message":{"text":"executor.executeRun (cyclomatic 25): executor.executeRun has cyclomatic complexity 25 (threshold 15). Of this number, 23 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":"lib/agent/executor.ts"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"66d316834770615fbf680068da771207cc551a364c0ecc1e7f443fb95148a346"}},{"ruleId":"D1","level":"warning","message":{"text":"task-failure-message.taskFailureMessage (cyclomatic 25): task-failure-message.taskFailureMessage 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":"lib/billing/task-failure-message.ts"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"456c802c0f5d00cf5f32ba1b03f6822bbbabfce38509b4c4db3cd6c2ce779289"}},{"ruleId":"D1","level":"warning","message":{"text":"credit-checkout.settlePaidCreditOrder (cyclomatic 25): credit-checkout.settlePaidCreditOrder has cyclomatic complexity 25 (threshold 15). 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 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":"lib/payments/credit-checkout.ts"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1dc6507afcbf5b31614d75febc0f6c4fc6cb85f22418ae000efc8ae652961f1"}},{"ruleId":"D1","level":"warning","message":{"text":"alipay-reconciliation.reconcileAlipayOrder (cyclomatic 25): alipay-reconciliation.reconcileAlipayOrder 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":"lib/payments/alipay-reconciliation.ts"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"c02444518a18903790ff841275a83134a4765e71ec858eb7ea48882ea99b9cff"}},{"ruleId":"D1","level":"warning","message":{"text":"prepare_video.main (cyclomatic 25): prepare_video.main has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/prompt-lens-video-remix/scripts/prepare_video.py"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"33efb1890618c0c8d41c3db07edcde301d80e70d8bafbbdbca41bed9ca77154a"}},{"ruleId":"D1","level":"warning","message":{"text":"payment-return-client.PaymentReturnClient (cyclomatic 24): payment-return-client.PaymentReturnClient has cyclomatic complexity 24 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 10 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/billing/payment/return/payment-return-client.tsx"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"d68c611eb8f70f569ff2e381052699a6bc805dce846c15dc9b76bb1de895e7e8"}},{"ruleId":"D1","level":"warning","message":{"text":"create-with-agent.CreateWithAgent (cyclomatic 24): create-with-agent.CreateWithAgent has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 7 of the 24 points are its own statements and the rest belongs to 7 function items inside it that branch (handleSubmit, a function literal at line 85, a function literal at line 165, \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":"components/agent/create-with-agent.tsx"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae2e02da0593fe1a724ed7ad73c72395ad75bf66dabbe1d2c805e66451158be3"}},{"ruleId":"D1","level":"warning","message":{"text":"commercial-analysis.recoverCommercialAnalysisTasks (cyclomatic 24): commercial-analysis.recoverCommercialAnalysisTasks has cyclomatic complexity 24 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 12 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":"lib/billing/commercial-analysis.ts"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"132fb84895109a5f7c88c790d06258fe44c94bb2c3c6b93761798c74cc712af6"}},{"ruleId":"D1","level":"warning","message":{"text":"kie-responses.readKieResponses (cyclomatic 24): kie-responses.readKieResponses has cyclomatic complexity 24 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 10 belong 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":"lib/ai/kie-responses.ts"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"b138e1b5197da67478e666dc9fe1918f59d9c2d279f6b5a2efbbc249ea9217f6"}},{"ruleId":"D1","level":"warning","message":{"text":"commercial-refunds.reviewCommercialRefund (cyclomatic 24): commercial-refunds.reviewCommercialRefund has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 11 of the 24 points are its own statements and the rest belongs to one function literal inside it that branches (line 47). 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":"lib/payments/commercial-refunds.ts"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"29edd05ee8cb3c3fb14915b89a82406c07d98530bcffc1c9dee5327ab5c0eb7d"}},{"ruleId":"D1","level":"warning","message":{"text":"commercial-generation-submit.submitCommercialGeneration (cyclomatic 24): commercial-generation-submit.submitCommercialGeneration 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":"lib/reference-video/commercial-generation-submit.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"efef84a6e42bfc2b012d71aa176800dfe6ef284b0a631fbbf75e22ed1d31e915"}},{"ruleId":"D1","level":"warning","message":{"text":"scene-analysis.callAnalysisChatJson (cyclomatic 24): scene-analysis.callAnalysisChatJson 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":"lib/workflow/scene-analysis.ts"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"6beb67d5718c85fba4f724b4ce4481bb39aa425ca378f6dbd0cbc74dad04d50d"}},{"ruleId":"D1","level":"warning","message":{"text":"analysis-tasks.recoverAnalysisTasks (cyclomatic 24): analysis-tasks.recoverAnalysisTasks has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 10 of the 24 points are its own statements and the rest belongs to one function literal inside it that branches (line 267). 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":"lib/workflow/analysis-tasks.ts"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"a18e7dd1406e5b187f786976fa81d784bafdab1e158e4a7c42a5fcb9a828a02c"}},{"ruleId":"D1","level":"warning","message":{"text":"route.GET (cyclomatic 23): route.GET has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 7 of the 23 points are its own statements and the rest belongs to one function literal inside it that branches (line 23). 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":"app/api/admin/payments/commercial/route.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"349fb35ca90a3e34e8fd40656cc38638720562c16279ad51a52287e75f8774bb"}},{"ruleId":"D1","level":"warning","message":{"text":"infistar-video.getInfistarVideoStatus (cyclomatic 23): infistar-video.getInfistarVideoStatus 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":"lib/ai/adapters/infistar-video.ts"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0ed29d52cf4adb3abafb2cef9cf7c9a9788b514944dfa86c47908dbe66a4ba1"}},{"ruleId":"D1","level":"warning","message":{"text":"analysis-tasks.settleAnalysisTask (cyclomatic 23): analysis-tasks.settleAnalysisTask 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 one function literal inside it that branches (line 93). 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":"lib/workflow/analysis-tasks.ts"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f2ff6dc6594a74e7c7cdece6e72ff5b090551b9c7d474815b7308eb2121fd88"}},{"ruleId":"D1","level":"warning","message":{"text":"route.POST (cyclomatic 22): route.POST has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/upload/complete/route.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc9070b7ac06d9c1f8b84a9dee12d0708c16b9f7987105c5642c587b33b0b223"}},{"ruleId":"D1","level":"warning","message":{"text":"route.POST (cyclomatic 22): route.POST has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/video-generate/route.ts"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad1f0a2e174d418d56055b986b8c2bf4b608f5271d26e5af50518bb4b689bae8"}},{"ruleId":"D1","level":"warning","message":{"text":"agent-artifact-panel.ArtifactContent (cyclomatic 22): agent-artifact-panel.ArtifactContent has cyclomatic complexity 22 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 4 belong to 2 function literals inside it that branch. To reduce it, 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":"components/agent/agent-artifact-panel.tsx"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"deb8c65c29c2758b1ec48340e725aef2e3353a762950e16289c5844bcee6f6be"}},{"ruleId":"D1","level":"warning","message":{"text":"commercial-wallet.reserveCommercialTaskInTransaction (cyclomatic 22): commercial-wallet.reserveCommercialTaskInTransaction has cyclomatic complexity 22 (threshold 15). Of this number, 19 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":"lib/billing/commercial-wallet.ts"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"27e71588624d8c9a84e9891ca0a8e0d40f0ac8c8f9893b40d0092b69f6347ec9"}},{"ruleId":"D1","level":"warning","message":{"text":"scene-assets.prepareIndependentSceneAsset (cyclomatic 22): scene-assets.prepareIndependentSceneAsset has cyclomatic complexity 22 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 9 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":"lib/billing/scene-assets.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"cedcc0cf2a6e84f1a66ff9a5e169bc40ce3598c755fe3953f6fccfdc37ea68fd"}},{"ruleId":"D1","level":"warning","message":{"text":"recreation-prompt.buildRecreationPrompt (cyclomatic 22): recreation-prompt.buildRecreationPrompt has cyclomatic complexity 22 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 5 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/workflow/recreation-prompt.ts"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"27b4a3ea0880372de2e2f12973e12b630dc7356bc3a177ae9a54e6c35e1da1d8"}},{"ruleId":"D1","level":"warning","message":{"text":"scene-refine.refine_video (cyclomatic 22): scene-refine.refine_video 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":"workers/ffmpeg-worker/scene-refine.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"500d84e8c5b0444e0393e299b43f7b0fa78c47888f3fd6bd7f7dd78dbb7ab822"}},{"ruleId":"D1","level":"warning","message":{"text":"route.POST (cyclomatic 21): route.POST has cyclomatic complexity 21 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 4 belong to 4 function literals inside it that branch. To reduce it, split the body: 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":"app/api/commercial/confirm/route.ts"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"16fdee5018e13bb243365d3141ce118eb7c3570d70893254ba8ca7b601aaa06c"}},{"ruleId":"D1","level":"warning","message":{"text":"agent-step-card.AgentStepCard (cyclomatic 21): agent-step-card.AgentStepCard 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":"components/agent/agent-step-card.tsx"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d185459412c610eedee2069a0744e08297bb73f03bf478c639bc9398eee9bf4"}},{"ruleId":"D1","level":"warning","message":{"text":"site-header.SiteHeader (cyclomatic 21): site-header.SiteHeader 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, 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":"components/landing/site-header.tsx"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"535f07eeac923c6ad6625a97e3868da2a0ccbff8e66d773a31dc007d1dc50e1b"}},{"ruleId":"D1","level":"warning","message":{"text":"video-edit-tab.VideoEditTab::handleEdit (cyclomatic 21): video-edit-tab.VideoEditTab::handleEdit 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. This shape REPEATS in the file: one other method here (video-edit-tab.VideoEditTab) 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":"components/video-edit-tab.tsx"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"695119219d33e10d27e7ea3ef7a149c04add345e2accc314c86e2b485f2893ef"}},{"ruleId":"D1","level":"warning","message":{"text":"credit-balance-link.CreditBalanceLink (cyclomatic 21): credit-balance-link.CreditBalanceLink 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":"components/workflow/credit-balance-link.tsx"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d8127f0334570723a3172e94e87f163c88db1743a4e3ebc855f62b8ae191018"}},{"ruleId":"D1","level":"warning","message":{"text":"commercial-task-runner.runCommercialTask (cyclomatic 21): commercial-task-runner.runCommercialTask 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":"lib/billing/commercial-task-runner.ts"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d581ba837580553b6bb3bbddb0f3130f7bc21ff98d3035e1340292c601aeb76"}},{"ruleId":"D1","level":"warning","message":{"text":"route.POST (cyclomatic 20): route.POST 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":"app/api/commercial/analysis/[id]/shots/[sceneId]/route.ts"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"b791cbb01c040992482c4a0026c2b6f97edded9e964b37ddb42493ec094fe6b3"}},{"ruleId":"D1","level":"warning","message":{"text":"route.POST (cyclomatic 20): route.POST has cyclomatic complexity 20 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 8 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":"app/api/internal/analysis-run/route.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d4ee291cbf679a9502d634d9ba3e184240818ed092d3e1c1951036874a49869"}},{"ruleId":"D1","level":"warning","message":{"text":"route.deferredPOST (cyclomatic 20): route.deferredPOST 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":"app/api/video-edit/route.ts"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac474dd3719d7b6d15c4a2b7b038916bd57517846585d2f5b8815784cc11e95d"}},{"ruleId":"D1","level":"warning","message":{"text":"video-workflow-create.VideoWorkflowCreate::rewriteScene (cyclomatic 20): video-workflow-create.VideoWorkflowCreate::rewriteScene has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: 4 other methods here (video-workflow-create.VideoWorkflowCreate, video-workflow-create.VideoWorkflowCreate::handleFile, video-workflow-create.VideoWorkflowCreate::startBreakdown, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 5 times rather than 5 independent problems. Splitting this body alone leaves the other 4 exactly as they are. Where these are variations on one operation, the change that clears all 5 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":"components/workflow/video-workflow-create.tsx"},"region":{"startLine":747}}}],"partialFingerprints":{"codehealthFindingId/v1":"604e52950ff5dd39b574f5cc05691ea01074a67181a494a3c1dfcd42a13d2368"}},{"ruleId":"D1","level":"warning","message":{"text":"pricing-v6.validateAnalysis (cyclomatic 20): pricing-v6.validateAnalysis 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":"lib/billing/pricing-v6.ts"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"6afcd5ecd337b340c68262f933dfe35dfedc4328571ed0df2fe38bff052ea8c2"}},{"ruleId":"D1","level":"warning","message":{"text":"commercial-analysis.quoteCommercialAnalysisRetry (cyclomatic 20): commercial-analysis.quoteCommercialAnalysisRetry has cyclomatic complexity 20 (threshold 15). Of this number, 18 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":"lib/billing/commercial-analysis.ts"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"553efe1bc1da28ab8ab5bddadd6da0fbd824d07adb29c14883614ee686b69a0b"}},{"ruleId":"D1","level":"warning","message":{"text":"kie-video.buildKIEJobPayload (cyclomatic 20): kie-video.buildKIEJobPayload 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":"lib/ai/adapters/kie-video.ts"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7631f92273b9ceaa72e37b9b63f30b148e8f30a37cefd31ca0a2c65b6f184ba"}},{"ruleId":"D1","level":"warning","message":{"text":"analysis-tasks.enqueueAnalysis (cyclomatic 20): analysis-tasks.enqueueAnalysis has cyclomatic complexity 20 (threshold 15). 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: 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":"lib/workflow/analysis-tasks.ts"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e2c31f3abaf27046979373d9966a89abfd38c4234e263795257abf398632da0"}},{"ruleId":"D1","level":"warning","message":{"text":"remote-video-codec.probeRemoteVideoCodec (cyclomatic 20): remote-video-codec.probeRemoteVideoCodec 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":"workers/ffmpeg-worker/remote-video-codec.mjs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7773ad51ba650e5266b00b0535766b7ddff5c2e5decd54b7408690a8e78ce19"}},{"ruleId":"D1","level":"warning","message":{"text":"video-inspection.inspectVideoProbe (cyclomatic 20): video-inspection.inspectVideoProbe has cyclomatic complexity 20 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 7 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"workers/ffmpeg-worker/video-inspection.mjs"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"1399c9f2868d86fbc313b24161bdf12a13b077506ddcd7fa8320f77a306bbc69"}},{"ruleId":"D1","level":"warning","message":{"text":"handleCommercialMedia (cyclomatic 20): handleCommercialMedia has cyclomatic complexity 20 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 5 belong to 4 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":"workers/ffmpeg-worker/server.mjs"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee1da4bf4da26df65f933dd9c25d3b50ddf44d3003bdd46bc1fb63700ed71bff"}},{"ruleId":"D1","level":"warning","message":{"text":"route.POST (cyclomatic 19): route.POST 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":"app/api/admin/credits/grant/route.ts"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d363a5ebf393bd38c72ccf6171ae6b1f58e8af228b9c5c0b0fec36bbb9b3744"}},{"ruleId":"D1","level":"warning","message":{"text":"api-key-settings.ApiKeySettings::action (cyclomatic 19): api-key-settings.ApiKeySettings::action 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":"components/api-key-settings.tsx"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa9d2aa2f64918f62ef965df23a2592e2d087022397c435eef246521e9ba2a64"}},{"ruleId":"D1","level":"warning","message":{"text":"samples-gallery.SampleCard (cyclomatic 19): samples-gallery.SampleCard 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":"components/samples-gallery.tsx"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f2d46d20ea61d94bfd72a1137d8d4343cff61e3f5bbb925c4d94d20e0dc9b2b"}},{"ruleId":"D1","level":"warning","message":{"text":"commercial-review.releaseUnfulfilledCommercialAnalysis (cyclomatic 19): commercial-review.releaseUnfulfilledCommercialAnalysis has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 8 of the 19 points are its own statements and the rest belongs to 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":"lib/billing/commercial-review.ts"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"efada80621dd8f4d8827a07c3596af7c59dd97b23c97ec22d6bf64d0e30a19a0"}},{"ruleId":"D1","level":"warning","message":{"text":"middleware.middleware (cyclomatic 19): middleware.middleware 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":"middleware.ts"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"edbc0d0744537d5f06c9339381d98be97d0beb5a07d5b13e444703455be9e9b5"}},{"ruleId":"D1","level":"warning","message":{"text":"billing-account.BillingAccount::refund (cyclomatic 18): billing-account.BillingAccount::refund has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (billing-account.BillingAccount) 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":"components/payments/billing-account.tsx"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d325daadbb8c5879c99f1f7314409a60c47b4d4a7d1083f0a858726be04d79e"}},{"ruleId":"D1","level":"warning","message":{"text":"analyzed-shot-preview.ShotPreview (cyclomatic 18): analyzed-shot-preview.ShotPreview 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":"components/workflow/analyzed-shot-preview.tsx"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fcdeccf8805ef017d4841ab49f464475a7fb27e115298bf5d288253ebdfabed"}},{"ruleId":"D1","level":"warning","message":{"text":"service.validateAttachments (cyclomatic 18): service.validateAttachments has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 3 of the 18 points are its own statements and the rest belongs to one function literal inside it that branches (line 34). 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":"lib/agent/service.ts"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"c52d4c90b100e9e880a6be8bd63acb742941837ac1258bb66c3957b9d2c2acce"}},{"ruleId":"D1","level":"warning","message":{"text":"import-progress.readLinkImportResponse (cyclomatic 18): import-progress.readLinkImportResponse 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":"lib/media-resolver/import-progress.ts"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"33a61c87dcffeae7994fd617c81557cfe80f614d0df96ea30d7d7d43dfc54a2a"}},{"ruleId":"D1","level":"warning","message":{"text":"route.GET (cyclomatic 17): route.GET has cyclomatic complexity 17 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 3 belong to 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":"app/api/cron/analysis-dispatch/route.ts"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"e457a20d463311d5f71c9d6fe4003e0dd554ab03f21ba1d4fdc9b9df7be698e3"}},{"ruleId":"D1","level":"warning","message":{"text":"route.GET (cyclomatic 17): route.GET has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/cron/commercial-reconciliation/route.ts"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"74abe1884fc2d751d8c570f298cbb4ca861fd6158c6d23e0cefd3d52e79fdd4b"}},{"ruleId":"D1","level":"warning","message":{"text":"route.POST (cyclomatic 17): route.POST has cyclomatic complexity 17 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/settings/api-key/route.ts"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"d36bc2f21e6af767006ff9b702f289dbea921b18a68ea51080900e7cad127127"}},{"ruleId":"D1","level":"warning","message":{"text":"page.CommercialReviewPage::act (cyclomatic 17): page.CommercialReviewPage::act 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 shape REPEATS in the file: one other method here (page.CommercialReviewPage) 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":"app/billing/review/page.tsx"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6817df31361a114ada341921af775d1cccf92af4d3105d7509c67afdd28f82d"}},{"ruleId":"D1","level":"warning","message":{"text":"agent-artifact-panel.artifactToText (cyclomatic 17): agent-artifact-panel.artifactToText has cyclomatic complexity 17 (threshold 15). Of this number, 9 points are the body\u0027s own statements and 8 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":"components/agent/agent-artifact-panel.tsx"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"65e6931cfed8857fdda5a6de8ebeacfecc219c6bcea28c949c1d1db119174520"}},{"ruleId":"D1","level":"warning","message":{"text":"audio-analyze-tab.AudioAnalyzeTab::handleAnalyze (cyclomatic 17): audio-analyze-tab.AudioAnalyzeTab::handleAnalyze has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: one other method here (audio-analyze-tab.AudioAnalyzeTab) 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":"components/audio-analyze-tab.tsx"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"74bd2e4e9a547dcc31f9f3699666fb7dd01e84899b5a30f5cc5c9790126ef212"}},{"ruleId":"D1","level":"warning","message":{"text":"sample-project-detail.ProjectBundleView (cyclomatic 17): sample-project-detail.ProjectBundleView has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 5 of the 17 points are its own statements and the rest belongs to one function literal inside it that branches (line 202). 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":"components/sample-project-detail.tsx"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"182554c3b13d98f6fe07624d8936703408b7cf1ebcdb5a88b5369ae6e17515dc"}},{"ruleId":"D1","level":"warning","message":{"text":"scene-video-preview.SceneVideoPlayer::togglePlayback (cyclomatic 17): scene-video-preview.SceneVideoPlayer::togglePlayback 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 shape REPEATS in the file: one other method here (scene-video-preview.SceneVideoPlayer) 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":"components/workflow/scene-video-preview.tsx"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"9723e59bbed18a1579caf6394685270dfaec2d7d82a05be46e8a89744092e73b"}},{"ruleId":"D1","level":"warning","message":{"text":"video-workflow-create.VideoWorkflowCreate::handleFile (cyclomatic 17): video-workflow-create.VideoWorkflowCreate::handleFile 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 shape REPEATS in the file: 4 other methods here (video-workflow-create.VideoWorkflowCreate, video-workflow-create.VideoWorkflowCreate::startBreakdown, video-workflow-create.VideoWorkflowCreate::rewriteScene, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 5 times rather than 5 independent problems. Splitting this body alone leaves the other 4 exactly as they are. Where these are variations on one operation, the change that clears all 5 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":"components/workflow/video-workflow-create.tsx"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d745fa68abcd3439a5b6c9faffcb0d74ed07aff4e60df8b05c5b6d02564af53"}},{"ruleId":"D1","level":"warning","message":{"text":"task-diagnostics.taskErrorDetails (cyclomatic 17): task-diagnostics.taskErrorDetails 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":"lib/billing/task-diagnostics.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"aabff97446dd6584fea78fd2882d531a4ad070c8ed7d271771debf8e94923ae0"}},{"ruleId":"D1","level":"warning","message":{"text":"analysis-diagnostics.buildAnalysisDiagnostics (cyclomatic 17): analysis-diagnostics.buildAnalysisDiagnostics 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":"lib/billing/analysis-diagnostics.ts"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"b486d84d5d4d970373ede8f81d497125ef5a2927d3039326fa950d1012c97990"}},{"ruleId":"D1","level":"warning","message":{"text":"source-platform.sourcePlatform (cyclomatic 17): source-platform.sourcePlatform 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":"lib/media-resolver/source-platform.ts"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"f18ba2c23ecd6079bc92eb3adce668b7e5e0bd58b804fedb5aa9c777a7283c05"}},{"ruleId":"D1","level":"warning","message":{"text":"commercial-refunds.requestCommercialRefund (cyclomatic 17): commercial-refunds.requestCommercialRefund has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 3 of the 17 points are its own statements and the rest belongs to one function literal inside it that branches (line 8). 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":"lib/payments/commercial-refunds.ts"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"718d9ed7c03137f19d96dce05903b4e016e27ae900533f0cd85666b2057b7eed"}},{"ruleId":"D1","level":"warning","message":{"text":"downloadStorageMedia (cyclomatic 17): downloadStorageMedia has cyclomatic complexity 17 (threshold 15). 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, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"workers/ffmpeg-worker/storage-media-download.mjs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b4d0de6608d92f7ac0ae2e52fe30950732646be4e2e403733b4e038fab4468c"}},{"ruleId":"D1","level":"warning","message":{"text":"route.POST (cyclomatic 16): route.POST has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/payments/webhooks/creem/route.ts"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"78e593b0e765a5505ddbe0136f66d18aab81424633ae815ec404e10991372b68"}},{"ruleId":"D1","level":"warning","message":{"text":"route.POST (cyclomatic 16): route.POST has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/project-assets/route.ts"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce057231048b7030d20c15dd881a42354ca451f5f16da7fa0a1206e608a1755f"}},{"ruleId":"D1","level":"warning","message":{"text":"route.deferredPOST (cyclomatic 16): route.deferredPOST 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":"app/api/workflow/projects/[id]/edit/route.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"21bf0edee29ab64effdb7841dd336cfab9471710f6e6de48f635e127d8a8a3ac"}},{"ruleId":"D1","level":"warning","message":{"text":"agent-artifact-panel.AgentArtifactPanel (cyclomatic 16): agent-artifact-panel.AgentArtifactPanel 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 items inside it that branch (a function literal at line 173, toggleFavorite, copy). 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":"components/agent/agent-artifact-panel.tsx"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff90ee1d8dee6ddabe4bc5bc0ab5cf4c3a75d8fb102fea432177a1abbeaabaef"}},{"ruleId":"D1","level":"warning","message":{"text":"commercial-wallet.getIncludedLinkImportUsage (cyclomatic 16): commercial-wallet.getIncludedLinkImportUsage has cyclomatic complexity 16 (threshold 15). Of this number, 8 points are the body\u0027s own statements and 8 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/billing/commercial-wallet.ts"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd7860a5ea211db79d0a6129e0bce3c518664a21654114336f697a74240b6bf3"}},{"ruleId":"D1","level":"warning","message":{"text":"commercial-wallet.settleCommercialTaskInTransaction (cyclomatic 16): commercial-wallet.settleCommercialTaskInTransaction 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":"lib/billing/commercial-wallet.ts"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"35ac8111a2784441ea43b698a3765361e4b5b6a85e500a451b78385c8346c472"}},{"ruleId":"D1","level":"warning","message":{"text":"user-directory.queryUserDirectory (cyclomatic 16): user-directory.queryUserDirectory 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":"lib/admin/user-directory.ts"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"1add8adcc4ee8c606a89427d3dbafa43680c4c2c2c50a62288f86c1f83587719"}},{"ruleId":"D1","level":"warning","message":{"text":"infistar-media.readInfistarMedia (cyclomatic 16): infistar-media.readInfistarMedia 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":"lib/ai/infistar-media.ts"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"55e315a83c03861483095c69079484e7bf4a24635afa79abad02cf8899d4a336"}},{"ruleId":"D1","level":"warning","message":{"text":"generation-models.resolveGenerationModel (cyclomatic 16): generation-models.resolveGenerationModel 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":"lib/ai/generation-models.ts"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"d322c57bd78bbd585faf92c234c6f6dcb11e3e39a27c34a4ae15ad269345ceff"}},{"ruleId":"D1","level":"warning","message":{"text":"commercial-task-runner.confirmCommercialTaskInTransaction (cyclomatic 16): commercial-task-runner.confirmCommercialTaskInTransaction 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":"lib/billing/commercial-task-runner.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"8580d011cfc867e5a397b190563ed06cc8b821b737423e9aaa65d3903bf47bfd"}},{"ruleId":"D1","level":"warning","message":{"text":"easydown.douyinVideoCodecs (cyclomatic 16): easydown.douyinVideoCodecs has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 7 of the 16 points are its own statements and the rest belongs to one function item inside it that branches (add). 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":"lib/media-resolver/easydown.ts"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3811cbe6023cef3cd93bba4e6c0f83fbacf3ede234cc9f64e869d2b5a2da0cd"}},{"ruleId":"D2","level":"warning","message":{"text":"ReferenceVideoComposer.ReferenceVideoComposer (cognitive 132): ReferenceVideoComposer.ReferenceVideoComposer has cognitive complexity 132 (threshold 15). Drivers by points: ternaries 123 (235 pts), if/else 87 (107 pts), boolean chains 87, error handling 9 (13 pts), loops 2 (nesting depth added 136). To reduce it, split the body into named stages: move each independent 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 (ReferenceVideoComposer.ReferenceVideoComposer::submitGenerationJob, ReferenceVideoComposer.ReferenceVideoComposer::createVideo) 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":"components/reference-video/ReferenceVideoComposer.tsx"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"e92a96ff2472355ea8bca96fe46c75bdbc1cd205f77b66d300c00609cf29fd37"}},{"ruleId":"D2","level":"warning","message":{"text":"alipay-checkout-dialog.AlipayCheckoutDialog (cognitive 130): alipay-checkout-dialog.AlipayCheckoutDialog has cognitive complexity 130 (threshold 15). Drivers by points: ternaries 28 (50 pts), boolean chains 44, if/else 30 (33 pts), error handling 3 (nesting depth added 25). Of this number, 36 points are the body\u0027s own statements and 94 belong to 20 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":"components/payments/alipay-checkout-dialog.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cebefccdc9b5202eb937019de06ed7bd45c99863e83d468c16377c988b92ad2"}},{"ruleId":"D2","level":"warning","message":{"text":"video-workflow-create.VideoWorkflowCreate (cognitive 114): video-workflow-create.VideoWorkflowCreate has cognitive complexity 114 (threshold 15). Drivers by points: ternaries 127 (240 pts), boolean chains 106, if/else 64 (74 pts), error handling 14 (17 pts) (nesting depth added 126). To reduce it, split the body into named stages: move each independent 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: 4 other methods here (video-workflow-create.VideoWorkflowCreate::handleFile, video-workflow-create.VideoWorkflowCreate::startBreakdown, video-workflow-create.VideoWorkflowCreate::rewriteScene, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 5 times rather than 5 independent problems. Splitting this body alone leaves the other 4 exactly as they are. Where these are variations on one operation, the change that clears all 5 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":"components/workflow/video-workflow-create.tsx"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"f918a00e5ba4fa78910c85b393d1aa791e53e620bffc20a63621b304170e90ec"}},{"ruleId":"D2","level":"warning","message":{"text":"analysis-task-progress.AnalysisTaskProgress (cognitive 98): analysis-task-progress.AnalysisTaskProgress has cognitive complexity 98 (threshold 15). Drivers by points: ternaries 20 (92 pts), boolean chains 5, if/else 1 (nesting depth added 72). Of this number, 96 points are the body\u0027s own statements and 2 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":"components/payments/analysis-task-progress.tsx"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ec3084d18eae53fb357fe7e9da9e1db96f5c4fe3856960d0d71e4458cb00fee"}},{"ruleId":"D2","level":"warning","message":{"text":"route.GET (cognitive 93): route.GET has cognitive complexity 93 (threshold 15). Drivers by points: ternaries 23 (48 pts), boolean chains 19, error handling 7 (14 pts), if/else 11 (12 pts) (nesting depth added 33). Of this number, 76 points are the body\u0027s own statements and 17 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":"app/api/commercial/tasks/[id]/route.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9a3319f15db388c4a19f9864d077a8caf5be68879c8de1e0cb83227a2f898f7"}},{"ruleId":"D2","level":"warning","message":{"text":"route.POST (cognitive 90): route.POST has cognitive complexity 90 (threshold 15). Drivers by points: ternaries 26 (64 pts), if/else 9 (12 pts), boolean chains 11, error handling 2 (3 pts) (nesting depth added 42). 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":"app/api/workflow/projects/[id]/scenes/[sceneVersionId]/rewrite/route.ts"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"daa2e06f0fb2ca87c07ad3b523f69b962f752704d313194c2207b3a69dbeac63"}},{"ruleId":"D2","level":"warning","message":{"text":"analysis-quote-panel.AnalysisQuotePanel::post (cognitive 84): analysis-quote-panel.AnalysisQuotePanel::post has cognitive complexity 84 (threshold 15). Drivers by points: ternaries 18 (48 pts), boolean chains 18, if/else 17, error handling 1 (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. This shape REPEATS in the file: 2 other methods here (analysis-quote-panel.AnalysisQuotePanel, analysis-quote-panel.AnalysisQuotePanel::confirmAnalysis) 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":"components/payments/analysis-quote-panel.tsx"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea1e68c0ecec338e9807e0d0eb99df7f914499774887d9968758f2dfa96ac573"}},{"ruleId":"D2","level":"warning","message":{"text":"admin-user-directory.AdminUserDirectory (cognitive 82): admin-user-directory.AdminUserDirectory has cognitive complexity 82 (threshold 15). Drivers by points: ternaries 27 (60 pts), boolean chains 16, if/else 4 (5 pts), error handling 1 (nesting depth added 34). Of this number, 37 points are the body\u0027s own statements and 45 belong to 11 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/admin-user-directory.tsx"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcc8cd9f3d18e8995fb0e2b64523acf2483f76bb0e04277d2f9d2575e3f29063"}},{"ruleId":"D2","level":"warning","message":{"text":"page.DashboardPage (cognitive 79): page.DashboardPage has cognitive complexity 79 (threshold 15). Drivers by points: boolean chains 30, ternaries 27 (30 pts), if/else 17 (19 pts) (nesting depth added 5). Of this number, 47 points are the body\u0027s own statements and 32 belong to 11 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":"app/dashboard/page.tsx"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b792d85fe957ec39fb263dfe97a78d5eb1a630ed8a21a0189e3313c0241be20"}},{"ruleId":"D2","level":"warning","message":{"text":"history-list.AnalysisHistory (cognitive 78): history-list.AnalysisHistory has cognitive complexity 78 (threshold 15). Drivers by points: ternaries 16 (36 pts), if/else 17 (20 pts), boolean chains 18, error handling 4 (nesting depth added 23). Of this number, 22 points are the body\u0027s own statements and 56 belong to 10 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":"components/history-list.tsx"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e324d9eda30a94987466b9e3837e5886e4d8f61b244d13709213fc152e572fc"}},{"ruleId":"D2","level":"warning","message":{"text":"video-workflow-create.VideoWorkflowCreate::startBreakdown (cognitive 73): video-workflow-create.VideoWorkflowCreate::startBreakdown has cognitive complexity 73 (threshold 15). Drivers by points: ternaries 26 (39 pts), boolean chains 23, if/else 10, error handling 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 4 other methods here (video-workflow-create.VideoWorkflowCreate, video-workflow-create.VideoWorkflowCreate::handleFile, video-workflow-create.VideoWorkflowCreate::rewriteScene, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 5 times rather than 5 independent problems. Splitting this body alone leaves the other 4 exactly as they are. Where these are variations on one operation, the change that clears all 5 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":"components/workflow/video-workflow-create.tsx"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ac9135cd070e2408297a2ff1ddfdf80cf7671fc100593cf4d2d135aeac56f65"}},{"ruleId":"D2","level":"warning","message":{"text":"independent-scene-analysis.saveSceneCheckpoint (cognitive 69): independent-scene-analysis.saveSceneCheckpoint has cognitive complexity 69 (threshold 15). Drivers by points: ternaries 14 (29 pts), if/else 11 (24 pts), boolean chains 13, error handling 1 (2 pts), loops 1 (nesting depth added 29). Most of this is not in the body itself: 7 of the 69 points are its own statements and the rest belongs to one function literal inside it that branches (line 59). 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":"lib/billing/independent-scene-analysis.ts"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a98f152dbd825ef8fd7d50e7507684e63a21fdc3dcc5b69afaf8830878d6e13"}},{"ruleId":"D2","level":"warning","message":{"text":"analysis-tasks.runAnalysisTaskStep (cognitive 69): analysis-tasks.runAnalysisTaskStep has cognitive complexity 69 (threshold 15). Drivers by points: if/else 20 (34 pts), boolean chains 17, ternaries 5 (11 pts), error handling 3 (5 pts), loops 1 (2 pts) (nesting depth added 23). Of this number, 50 points are the body\u0027s own statements and 19 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":"lib/workflow/analysis-tasks.ts"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"e894d5e387c491fb50d8808b4ce4a3b99429a638b63dd56e82501d7b72466241"}},{"ruleId":"D2","level":"warning","message":{"text":"admin-financial-records.AdminFinancialRecords (cognitive 64): admin-financial-records.AdminFinancialRecords has cognitive complexity 64 (threshold 15). Drivers by points: ternaries 25 (42 pts), boolean chains 17, if/else 5 (nesting depth added 17). Of this number, 34 points are the body\u0027s own statements and 30 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":"components/admin-financial-records.tsx"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"6602d6925b5f771c57a446cc747f4b937f7ade96ccde1a67aeb01cce780f15eb"}},{"ruleId":"D2","level":"warning","message":{"text":"generation-payload.buildMarketGenerationPayload (cognitive 64): generation-payload.buildMarketGenerationPayload has cognitive complexity 64 (threshold 15). Drivers by points: ternaries 14 (27 pts), if/else 14 (19 pts), boolean chains 18 (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":"lib/ai/generation-payload.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5dee1c8349debd3b667102c761a435b3d92083b4bb61487d2c162f9b5d1ec46"}},{"ruleId":"D2","level":"warning","message":{"text":"generation-history.GenerationHistory (cognitive 63): generation-history.GenerationHistory has cognitive complexity 63 (threshold 15). Drivers by points: ternaries 24 (38 pts), if/else 11 (12 pts), boolean chains 11, error handling 2 (nesting depth added 15). Most of this is not in the body itself: 12 of the 63 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 66, a function literal at line 22, status, \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":"components/reference-video/generation-history.tsx"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ae9644182896a57ac045ea63ccec8c4cda56c7a29db721ba7dd72517a94fe5c"}},{"ruleId":"D2","level":"warning","message":{"text":"route.POST (cognitive 59): route.POST has cognitive complexity 59 (threshold 15). Drivers by points: ternaries 15 (21 pts), if/else 13 (20 pts), boolean chains 17, error handling 1 (nesting depth added 13). Of this number, 58 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":"app/api/generation-jobs/route.ts"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"92e828266a4ada74b08969af9860fa72cc83b57a9adcb416f7e84f72063462e5"}},{"ruleId":"D2","level":"warning","message":{"text":"analysis-task-details.AnalysisTaskDetails (cognitive 50): analysis-task-details.AnalysisTaskDetails has cognitive complexity 50 (threshold 15). Drivers by points: ternaries 22 (38 pts), boolean chains 12 (nesting depth added 16). Of this number, 44 points are the body\u0027s own statements and 6 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":"components/payments/analysis-task-details.tsx"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"fad2f6480d86cea87667188033d77bf0b917729660db21b5ce18c1194af01db2"}},{"ruleId":"D2","level":"warning","message":{"text":"kie-veo.getKieVeoGenerationStatus (cognitive 47): kie-veo.getKieVeoGenerationStatus has cognitive complexity 47 (threshold 15). Drivers by points: ternaries 15 (28 pts), boolean chains 14, if/else 5 (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":"lib/reference-video/kie-veo.ts"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e182f5dce383a9457ad0740d70fa31f4d429c1178c78358844dbf3c4ae17572"}},{"ruleId":"D2","level":"warning","message":{"text":"agent-chat-page.AgentChatPage (cognitive 46): agent-chat-page.AgentChatPage has cognitive complexity 46 (threshold 15). Drivers by points: ternaries 14 (25 pts), boolean chains 11, if/else 8, error handling 2 (nesting depth added 11). Most of this is not in the body itself: 7 of the 46 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 55, a function literal at line 87, submitFollowUp, \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":"components/agent/agent-chat-page.tsx"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"00ebd8a074ffcca8cd1d94df418b88038e1df9ef4227ea9c28d9089e9f2dd2eb"}},{"ruleId":"D2","level":"warning","message":{"text":"video-workflow-create.AnalysisProgressPanel (cognitive 45): video-workflow-create.AnalysisProgressPanel has cognitive complexity 45 (threshold 15). Drivers by points: ternaries 21 (38 pts), boolean chains 6, if/else 1 (nesting depth added 17). Of this number, 26 points are the body\u0027s own statements and 19 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":"components/workflow/video-workflow-create.tsx"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e284a92cd6f77269571ababe32e61db507bc40823647b2ff016e823caadc47a"}},{"ruleId":"D2","level":"warning","message":{"text":"route.loadOverview (cognitive 44): route.loadOverview has cognitive complexity 44 (threshold 15). Drivers by points: boolean chains 24, ternaries 11 (13 pts), if/else 3 (5 pts), loops 2 (nesting depth added 4). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/admin/overview/route.ts"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf4810c1f83ba177d696c051a727b809129e3a52977974557745b9176cd0b1d8"}},{"ruleId":"D2","level":"warning","message":{"text":"pricing-v6.estimateGeneration (cognitive 44): pricing-v6.estimateGeneration has cognitive complexity 44 (threshold 15). Drivers by points: if/else 18 (23 pts), boolean chains 17, ternaries 3 (4 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":"lib/billing/pricing-v6.ts"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ac5adb85862526448a6fe00bb11d157eb17ccbccc3c2e0d7e95cac9f3769643"}},{"ruleId":"D2","level":"warning","message":{"text":"credit-rules.creditRuleTopics (cognitive 43): credit-rules.creditRuleTopics has cognitive complexity 43 (threshold 15). Drivers by points: ternaries 37 (43 pts) (nesting depth added 6). Of this number, 27 points are the body\u0027s own statements and 16 belong to 6 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":"app/guide/credit-rules.ts"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"941660455cc6c23efbcf9f36e3769f0ffa60588e3b0b18eeb3c508aa8fd6231b"}},{"ruleId":"D2","level":"warning","message":{"text":"commercial-analysis.executeCommercialAnalysis (cognitive 43): commercial-analysis.executeCommercialAnalysis has cognitive complexity 43 (threshold 15). Drivers by points: if/else 10 (15 pts), ternaries 9 (12 pts), boolean chains 9, loops 2 (4 pts), error handling 2 (3 pts) (nesting depth added 11). Most of this is not in the body itself: 15 of the 43 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 159, 187). 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":"lib/billing/commercial-analysis.ts"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a73d1fa1cb7b992aa5e6384d87d591ba9626fa3706a90ec5def1396573de08d"}},{"ruleId":"D2","level":"warning","message":{"text":"login-client.LoginClient (cognitive 41): login-client.LoginClient has cognitive complexity 41 (threshold 15). Drivers by points: if/else 14 (16 pts), ternaries 9 (12 pts), boolean chains 10, error handling 3 (nesting depth added 5). Most of this is not in the body itself: 14 of the 41 points are its own statements and the rest belongs to 5 function items inside it that branch (handleSendCode, handleOAuthSignIn, handleVerifyCode, \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":"app/login/login-client.tsx"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"d539f776ddc6300a176ab5200e68d651873fd8d71f522bdd3e71cafbbca5660c"}},{"ruleId":"D2","level":"warning","message":{"text":"executor.executeRun (cognitive 41): executor.executeRun has cognitive complexity 41 (threshold 15). Drivers by points: if/else 17 (26 pts), ternaries 2 (7 pts), boolean chains 4, error handling 1 (3 pts), loops 1 (nesting depth added 16). Of this number, 33 points are the body\u0027s own statements and 8 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/agent/executor.ts"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd5a6f24b46a406193e5815863fa61ae7bc3fc8620d0a111629139d7398bc896"}},{"ruleId":"D2","level":"warning","message":{"text":"samples-gallery.SamplesGallery (cognitive 40): samples-gallery.SamplesGallery has cognitive complexity 40 (threshold 15). Drivers by points: ternaries 15 (30 pts), if/else 6 (7 pts), boolean chains 2, error handling 1 (nesting depth added 16). Of this number, 24 points are the body\u0027s own statements and 16 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":"components/samples-gallery.tsx"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0a4c48c056d86cbfd692fa525369d063d557471ad1b12279cf49184775d0a85"}},{"ruleId":"D2","level":"warning","message":{"text":"probeRemoteVideoCodec::read (cognitive 40): probeRemoteVideoCodec::read has cognitive complexity 40 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 11, ternaries 4 (6 pts), other 2, 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":"workers/ffmpeg-worker/remote-video-codec.mjs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d0950b72ca93c5998f2432d9c124c8cf31b83c7e27e0d6f64b630125ed2aa7e"}},{"ruleId":"D2","level":"warning","message":{"text":"route.POST (cognitive 39): route.POST has cognitive complexity 39 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 10, error handling 4 (8 pts), ternaries 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/admin/payments/commercial/route.ts"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"72ecfe9b0a6f588e8ef22ab1d98a1e921aa4481941fc3fbf04bc9fa111a24bdb"}},{"ruleId":"D2","level":"warning","message":{"text":"audio-analyze-tab.AudioAnalyzeTab (cognitive 39): audio-analyze-tab.AudioAnalyzeTab has cognitive complexity 39 (threshold 15). Drivers by points: ternaries 31 (45 pts), boolean chains 31, if/else 17, error handling 6 (7 pts) (nesting depth added 15). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition. This shape REPEATS in the file: one other method here (audio-analyze-tab.AudioAnalyzeTab::handleAnalyze) 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":"components/audio-analyze-tab.tsx"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c1d5673876e65c85f7fc13e6598e1f6c5f66dfadfa25dcc517189a5b8d9e3bb"}},{"ruleId":"D2","level":"warning","message":{"text":"commercial-generation.buildCommercialGenerationPayload (cognitive 39): commercial-generation.buildCommercialGenerationPayload has cognitive complexity 39 (threshold 15). Drivers by points: boolean chains 21, if/else 10 (11 pts), ternaries 6 (7 pts) (nesting depth added 2). Of this number, 38 points are the body\u0027s own statements and 1 belongs to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/billing/commercial-generation.ts"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"c62bfceb524cdb1e96f2ee02850d772bceb0256bf2db16019c0181ad15fd6243"}},{"ruleId":"D2","level":"warning","message":{"text":"route.GET (cognitive 38): route.GET has cognitive complexity 38 (threshold 15). Drivers by points: ternaries 8 (18 pts), if/else 11 (15 pts), boolean chains 4, error handling 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":"app/api/generation-jobs/route.ts"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ed18f624b73b1687bc4b84b019a972dc2621f7fdbcb526bc96ef19037a608a9"}},{"ruleId":"D2","level":"warning","message":{"text":"commercial-generation.quoteCommercialGeneration (cognitive 38): commercial-generation.quoteCommercialGeneration has cognitive complexity 38 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 13, ternaries 3, error handling 1 (2 pts) (nesting depth added 10). Of this number, 33 points are the body\u0027s own statements and 5 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/billing/commercial-generation.ts"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"993564217e1b15d0fd0f8c614c78cb8acbf60f23f38316886e1d3d0aeb34e886"}},{"ruleId":"D2","level":"warning","message":{"text":"scene-analysis.callAnalysisChatJson (cognitive 38): scene-analysis.callAnalysisChatJson has cognitive complexity 38 (threshold 15). Drivers by points: if/else 6 (16 pts), ternaries 6 (12 pts), boolean chains 5, error handling 2 (4 pts), loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/workflow/scene-analysis.ts"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"e961d7b5a4b380cc82a17fdad64889413da1b0f9aa7caf4d417c083950bcc033"}},{"ruleId":"D2","level":"warning","message":{"text":"pricing-section.PricingSection (cognitive 37): pricing-section.PricingSection has cognitive complexity 37 (threshold 15). Drivers by points: ternaries 21 (27 pts), boolean chains 7, if/else 2, error handling 1 (nesting depth added 6). Most of this is not in the body itself: 13 of the 37 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 28, 42, 68, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/landing/pricing-section.tsx"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d11f8fb417c67b7329eb9ca5cb76c4685671a029c54daf72bae854aa812a0ff"}},{"ruleId":"D2","level":"warning","message":{"text":"analysis-diagnostics.buildAnalysisDiagnostics (cognitive 37): analysis-diagnostics.buildAnalysisDiagnostics has cognitive complexity 37 (threshold 15). Drivers by points: ternaries 13 (34 pts), boolean chains 3 (nesting depth added 21). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/billing/analysis-diagnostics.ts"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"a01445fd1d692e7f79bd49d8a59b34cb8700fce090e5c2f8949d1cb6e3e75e00"}},{"ruleId":"D2","level":"warning","message":{"text":"route.POST (cognitive 36): route.POST has cognitive complexity 36 (threshold 15). Drivers by points: ternaries 7 (16 pts), if/else 9 (12 pts), boolean chains 7, error handling 1 (nesting depth added 12). Of this number, 34 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":"app/api/commercial/analysis/route.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"d972b98729eee82c84dacd6744d04cdc34df0d1d2e8de9cc5633440d912a2ca1"}},{"ruleId":"D2","level":"warning","message":{"text":"payment-return-client.PaymentReturnClient (cognitive 36): payment-return-client.PaymentReturnClient has cognitive complexity 36 (threshold 15). Drivers by points: ternaries 13 (25 pts), if/else 6 (7 pts), boolean chains 3, error handling 1 (nesting depth added 13). Of this number, 22 points are the body\u0027s own statements and 14 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":"app/billing/payment/return/payment-return-client.tsx"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"135efe212a40226a972451aa8ace5caa4882549c36ef37af396f7679c424094a"}},{"ruleId":"D2","level":"warning","message":{"text":"route.handleImport (cognitive 35): route.handleImport has cognitive complexity 35 (threshold 15). Drivers by points: if/else 15 (23 pts), ternaries 5 (8 pts), error handling 3, 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":"app/api/media/resolve-link/route.ts"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"b770a4ebdf3705b81fd41334a8a68504f65aefa010a03f71a2b1538ca8620191"}},{"ruleId":"D2","level":"warning","message":{"text":"page.BillingTaskPage (cognitive 35): page.BillingTaskPage has cognitive complexity 35 (threshold 15). Drivers by points: boolean chains 12, ternaries 8 (11 pts), if/else 9 (10 pts), error handling 2 (nesting depth added 4). Most of this is not in the body itself: 15 of the 35 points are its own statements and the rest belongs to 3 function items inside it that branch (a function literal at line 25, retry, a function literal at line 62). 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":"app/billing/tasks/[id]/page.tsx"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"030d9f689e184fe349e76ae1ae73c8b6aa8bb4fb2a4c891fce5df3de425fd82e"}},{"ruleId":"D2","level":"warning","message":{"text":"ReferenceVideoComposer.ReferenceVideoComposer::submitGenerationJob (cognitive 35): ReferenceVideoComposer.ReferenceVideoComposer::submitGenerationJob has cognitive complexity 35 (threshold 15). Drivers by points: ternaries 8 (15 pts), if/else 7 (9 pts), boolean chains 8, 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. This shape REPEATS in the file: 2 other methods here (ReferenceVideoComposer.ReferenceVideoComposer, ReferenceVideoComposer.ReferenceVideoComposer::createVideo) 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":"components/reference-video/ReferenceVideoComposer.tsx"},"region":{"startLine":1076}}}],"partialFingerprints":{"codehealthFindingId/v1":"571f8e9946781b46e95e42b5e9aedfe1afdb82d0ff9d70257bf9750c75833b8b"}},{"ruleId":"D2","level":"warning","message":{"text":"video-workflow-create.VideoWorkflowCreate::retryFailedScene (cognitive 35): video-workflow-create.VideoWorkflowCreate::retryFailedScene has cognitive complexity 35 (threshold 15). Drivers by points: ternaries 8 (17 pts), if/else 8 (11 pts), boolean chains 6, error handling 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 4 other methods here (video-workflow-create.VideoWorkflowCreate, video-workflow-create.VideoWorkflowCreate::handleFile, video-workflow-create.VideoWorkflowCreate::startBreakdown, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 5 times rather than 5 independent problems. Splitting this body alone leaves the other 4 exactly as they are. Where these are variations on one operation, the change that clears all 5 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":"components/workflow/video-workflow-create.tsx"},"region":{"startLine":788}}}],"partialFingerprints":{"codehealthFindingId/v1":"e08904f249e95a0c13ec7d2b296f9d42594729ea13f22fea576e58dccf7c728b"}},{"ruleId":"D2","level":"warning","message":{"text":"independent-scene-analysis.runIndependentSceneJob (cognitive 35): independent-scene-analysis.runIndependentSceneJob has cognitive complexity 35 (threshold 15). Drivers by points: if/else 13 (14 pts), ternaries 6 (10 pts), boolean chains 7, error handling 3 (4 pts) (nesting depth added 6). Of this number, 28 points are the body\u0027s own statements and 7 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":"lib/billing/independent-scene-analysis.ts"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"42eddfda635def3b7430b2d06343124687b423a84da8d24f7c5ce7194137907a"}},{"ruleId":"D2","level":"warning","message":{"text":"remote-video-codec.probeRemoteVideoCodec (cognitive 35): remote-video-codec.probeRemoteVideoCodec has cognitive complexity 35 (threshold 15). Drivers by points: if/else 26 (49 pts), boolean chains 15, ternaries 4 (6 pts), loops 2, error handling 1 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"workers/ffmpeg-worker/remote-video-codec.mjs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ae40f3669f8148c3a6433dbbb351964e50fd2f0e0863d9ae8aaca1956af030d"}},{"ruleId":"D2","level":"warning","message":{"text":"page.CommercialReviewPage (cognitive 34): page.CommercialReviewPage has cognitive complexity 34 (threshold 15). Drivers by points: boolean chains 32, ternaries 16 (32 pts), if/else 8, error handling 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. This shape REPEATS in the file: one other method here (page.CommercialReviewPage::act) 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":"app/billing/review/page.tsx"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"d61f1797d4dd8f1d38c862ea5ccdde5ca998951e1b80ec7e1dc8f73c2cda87f4"}},{"ruleId":"D2","level":"warning","message":{"text":"agent-run-panel.AgentRunPanel (cognitive 34): agent-run-panel.AgentRunPanel has cognitive complexity 34 (threshold 15). Drivers by points: boolean chains 16, ternaries 6 (10 pts), if/else 4 (5 pts), error handling 3 (nesting depth added 5). Of this number, 16 points are the body\u0027s own statements and 18 belong to 7 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/agent/agent-run-panel.tsx"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cd27c6c4dfecb6fd5ff646a1139fb1412a9ccb283137dbfd769cd4ef1da2743"}},{"ruleId":"D2","level":"warning","message":{"text":"video-edit-tab.VideoEditTab::handleEdit (cognitive 34): video-edit-tab.VideoEditTab::handleEdit has cognitive complexity 34 (threshold 15). Drivers by points: if/else 9 (14 pts), ternaries 6 (12 pts), boolean chains 4, error handling 2 (4 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. This shape REPEATS in the file: one other method here (video-edit-tab.VideoEditTab) 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":"components/video-edit-tab.tsx"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"103f6ff366e87068358d3069715e30e1d496faa1a5e18b0be63018bf3743f405"}},{"ruleId":"D2","level":"warning","message":{"text":"kie-client.readChatResponse (cognitive 34): kie-client.readChatResponse has cognitive complexity 34 (threshold 15). Drivers by points: if/else 9 (11 pts), ternaries 4 (11 pts), error handling 3 (5 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 12). Of this number, 31 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":"lib/ai/kie-client.ts"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5f45ac1f1adf1f6a3a976ec185884866d26d24abfd77785d4b7ef946eadd5d6"}},{"ruleId":"D2","level":"warning","message":{"text":"billing-account.BillingAccount (cognitive 33): billing-account.BillingAccount has cognitive complexity 33 (threshold 15). Drivers by points: ternaries 19 (36 pts), boolean chains 30, if/else 5, error handling 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. This shape REPEATS in the file: one other method here (billing-account.BillingAccount::refund) 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":"components/payments/billing-account.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"d21637a796ee46f372eb01122c7536ccb7ffe1ccce42ddcd25bdbc8b8609caf9"}},{"ruleId":"D2","level":"warning","message":{"text":"commercial-analysis.recoverCommercialAnalysisTasks (cognitive 33): commercial-analysis.recoverCommercialAnalysisTasks has cognitive complexity 33 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 8, error handling 2 (5 pts), loops 2 (3 pts), ternaries 2 (nesting depth added 12). Of this number, 16 points are the body\u0027s own statements and 17 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":"lib/billing/commercial-analysis.ts"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4672ca759dc3ffa6c36abe1cb9209ba34a0bf9e42e6e2ac1335c1f65f844e0b"}},{"ruleId":"D2","level":"warning","message":{"text":"downloadStorageMedia (cognitive 33): downloadStorageMedia has cognitive complexity 33 (threshold 15). Drivers by points: if/else 4 (10 pts), ternaries 4 (10 pts), error handling 3 (8 pts), boolean chains 4, loops 1 (nesting depth added 17). Of this number, 31 points are the body\u0027s own statements and 2 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"workers/ffmpeg-worker/storage-media-download.mjs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"1035a590f265ae5b2c6cf71405c5648627ee66716aaed6d2b71e6abd8787c296"}},{"ruleId":"D2","level":"warning","message":{"text":"scene-analysis.rewriteSceneBlueprint (cognitive 32): scene-analysis.rewriteSceneBlueprint has cognitive complexity 32 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 8, ternaries 4 (8 pts), error handling 1, loops 1 (nesting depth added 10). Of this number, 30 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":"lib/workflow/scene-analysis.ts"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"e457c5dcd01f92c7ff3cd044d0c00ae08eb670cb1aae576ae2b66866f759307b"}},{"ruleId":"D2","level":"warning","message":{"text":"create-with-agent.CreateWithAgent (cognitive 31): create-with-agent.CreateWithAgent has cognitive complexity 31 (threshold 15). Drivers by points: if/else 6 (9 pts), error handling 7 (8 pts), ternaries 5 (8 pts), boolean chains 6 (nesting depth added 7). Most of this is not in the body itself: 6 of the 31 points are its own statements and the rest belongs to 7 function items inside it that branch (handleSubmit, a function literal at line 165, a function literal at line 69, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/agent/create-with-agent.tsx"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"b451a6f79850c8ab394668dab89704d540d29c94686e920fd29086f543a000bf"}},{"ruleId":"D2","level":"warning","message":{"text":"commercial-task-runner.runCommercialTask (cognitive 31): commercial-task-runner.runCommercialTask has cognitive complexity 31 (threshold 15). Drivers by points: ternaries 6 (14 pts), if/else 7 (9 pts), boolean chains 5, error handling 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/billing/commercial-task-runner.ts"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"c292413347c909ae845b42da234f64ac99d99bf18268f53147798d3938fceae7"}},{"ruleId":"D2","level":"warning","message":{"text":"commercial-generation-submit.submitCommercialGeneration (cognitive 31): commercial-generation-submit.submitCommercialGeneration has cognitive complexity 31 (threshold 15). Drivers by points: if/else 7 (13 pts), ternaries 4 (12 pts), boolean chains 4, error handling 1, loops 1 (nesting depth added 14). 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":"lib/reference-video/commercial-generation-submit.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d2d1ad97aa4ef6b3404a32db3d34fefa4b90b10f9c630349070bde64f48a67f"}},{"ruleId":"D2","level":"warning","message":{"text":"kie-client.requestKieChat (cognitive 30): kie-client.requestKieChat has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (13 pts), ternaries 4 (9 pts), error handling 4 (5 pts), boolean chains 2, loops 1 (nesting depth added 11). Most of this is not in the body itself: 12 of the 30 points are its own statements and the rest belongs to one function literal inside it that branches (line 155). 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":"lib/ai/kie-client.ts"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdf1559b8404ee62c1c3c2fa62a34a03c25c111bfa8fbb9d9bd6b014af0507e8"}},{"ruleId":"D2","level":"warning","message":{"text":"analysis-tasks.recoverAnalysisTasks (cognitive 30): analysis-tasks.recoverAnalysisTasks has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 6, error handling 2 (5 pts), loops 1 (nesting depth added 11). Of this number, 16 points are the body\u0027s own statements and 14 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/workflow/analysis-tasks.ts"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"69eed4a7db80d7b3f41e9dde99258104718b92e88eb95c2a2791df1b8dbf8eb8"}},{"ruleId":"D2","level":"warning","message":{"text":"scene-refine.refine_video (cognitive 30): scene-refine.refine_video has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 7, 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":"workers/ffmpeg-worker/scene-refine.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e0a7881f0b2492abcba38f36d08307a5be45697ccf9d238dbd0233f7f0e46cb"}},{"ruleId":"D2","level":"warning","message":{"text":"infistar-video.getInfistarVideoStatus (cognitive 29): infistar-video.getInfistarVideoStatus has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 5, ternaries 4 (5 pts), error handling 1 (2 pts), loops 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ai/adapters/infistar-video.ts"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcc40851eb3fc39e1fb297b133c1afe209f0e1d28b4f237485d7b6009c06ab67"}},{"ruleId":"D2","level":"warning","message":{"text":"import-progress.readLinkImportResponse (cognitive 29): import-progress.readLinkImportResponse has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (21 pts), boolean chains 5, loops 2 (3 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":"lib/media-resolver/import-progress.ts"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c712df2ba5fe57eb8fbd59ea2c814288389c511d6bc47d7704074a2bfcd442a"}},{"ruleId":"D2","level":"warning","message":{"text":"prompt-lens-rewrite-demo.PromptLensRewriteDemo (cognitive 29): prompt-lens-rewrite-demo.PromptLensRewriteDemo has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 18 (19 pts), boolean chains 10 (nesting depth added 1). 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, 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":"remotion/prompt-lens-rewrite-demo.tsx"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b4cd9576c769951332af13e222bee729575fc26b6bbd15dbbbc3a3809059e43"}},{"ruleId":"D2","level":"warning","message":{"text":"prepare_video.main (cognitive 29): prepare_video.main has cognitive complexity 29 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 7, loops 2 (3 pts), ternaries 2 (3 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":"skills/prompt-lens-video-remix/scripts/prepare_video.py"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"52befeb31b4516df087e5d3885c26613601939e7e09ed451bb6fef1c3ca2a182"}},{"ruleId":"D2","level":"warning","message":{"text":"billing-account.BillingAccount::refund (cognitive 28): billing-account.BillingAccount::refund has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 10 (24 pts), if/else 2, boolean chains 1, error handling 1 (nesting depth added 14). 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. This shape REPEATS in the file: one other method here (billing-account.BillingAccount) 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":"components/payments/billing-account.tsx"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"791d5603052e2ef065ac91fc9340c555c0cb25e2b7199fb4a77a92243c89ad1c"}},{"ruleId":"D2","level":"warning","message":{"text":"alipay-reconciliation.reconcileAlipayOrder (cognitive 28): alipay-reconciliation.reconcileAlipayOrder has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (20 pts), boolean chains 6, error handling 1, ternaries 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/payments/alipay-reconciliation.ts"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e41035db18164cfc39fb04ec2bb39ca3166750952699ba689d8d1c50c4ea175"}},{"ruleId":"D2","level":"warning","message":{"text":"analysis-quote-panel.AnalysisQuotePanel (cognitive 27): analysis-quote-panel.AnalysisQuotePanel has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 42 (97 pts), if/else 52 (68 pts), boolean chains 61, error handling 5 (nesting depth added 71). To reduce it, split the body into named stages: move each independent 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 (analysis-quote-panel.AnalysisQuotePanel::post, analysis-quote-panel.AnalysisQuotePanel::confirmAnalysis) 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":"components/payments/analysis-quote-panel.tsx"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d057bae2774a3d3384be56f5c3ee497779b5351167c5c0a7cf76e36d3fce6c9"}},{"ruleId":"D2","level":"warning","message":{"text":"video-edit-tab.VideoEditTab (cognitive 27): video-edit-tab.VideoEditTab has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 24 (35 pts), if/else 29 (34 pts), boolean chains 20, error handling 3 (5 pts), loops 1 (nesting depth added 18). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level. This shape REPEATS in the file: one other method here (video-edit-tab.VideoEditTab::handleEdit) 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":"components/video-edit-tab.tsx"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"36ad80fab2e3a843d7e8ba9c73e19e205382e94d3302b399ed13b1ef08dcb28c"}},{"ruleId":"D2","level":"warning","message":{"text":"credit-checkout.settlePaidCreditOrder (cognitive 27): credit-checkout.settlePaidCreditOrder has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 12, ternaries 2 (nesting depth added 3). Most of this is not in the body itself: 1 of the 27 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":"lib/payments/credit-checkout.ts"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecfab3151a2e28ec464bf5e68668e3869702f0e4e838f410d4476c0a0a5104d9"}},{"ruleId":"D2","level":"warning","message":{"text":"page.CommercialReviewPage::act (cognitive 26): page.CommercialReviewPage::act has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 8 (18 pts), if/else 6, boolean chains 1, error handling 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (page.CommercialReviewPage) 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":"app/billing/review/page.tsx"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"5123846532d4a7041cac99214306c62336fc60cee6b1e1ee49b4f0709b2fc0d3"}},{"ruleId":"D2","level":"warning","message":{"text":"page.GuidePage (cognitive 26): page.GuidePage has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 19, boolean chains 7. Of this number, 17 points are the body\u0027s own statements and 9 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":"app/guide/page.tsx"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a881b8ecfeda42f21158586ff2cdf3201bd22c5a7bf83a3724e7378f028f64c"}},{"ruleId":"D2","level":"warning","message":{"text":"agent-composer.AgentComposer (cognitive 26): agent-composer.AgentComposer has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 15 (19 pts), boolean chains 15, if/else 11 (15 pts), loops 1 (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition. This shape REPEATS in the file: one other method here (agent-composer.AgentComposer::handleFiles) 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":"components/agent/agent-composer.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6637a410e0c14457287c8833cf21a3f85b5d7fd4d7a9006cb0fcd849368ec14"}},{"ruleId":"D2","level":"warning","message":{"text":"service.rewriteSceneVersion (cognitive 26): service.rewriteSceneVersion has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (17 pts), ternaries 3 (7 pts), boolean chains 1, error handling 1 (nesting depth added 12). Of this number, 23 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/workflow/service.ts"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"28a2b274d8845fba102f19fb019e42d3de3dfa2fc907d262bd471fe055f4ac4b"}},{"ruleId":"D2","level":"warning","message":{"text":"analysis-tasks.settleAnalysisTask (cognitive 26): analysis-tasks.settleAnalysisTask has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 10, if/else 8 (10 pts), ternaries 5 (6 pts) (nesting depth added 3). None of this is in the body itself: all 26 points belong to one function literal inside it that branches (line 93). 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":"lib/workflow/analysis-tasks.ts"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca8b4caace0b34c391c666eb23084afcd0c1b615b1d072ff2392aa935e4c65e3"}},{"ruleId":"D2","level":"warning","message":{"text":"project-list-client.fetchProjectList (cognitive 26): project-list-client.fetchProjectList has cognitive complexity 26 (threshold 15). Drivers by points: if/else 5 (11 pts), ternaries 4 (9 pts), boolean chains 3, error handling 1 (2 pts), loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/workflow/project-list-client.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7d9b33dccc8774ebaf7b6a5d2b243ddefcbc49ae2f1fba2fedf03511cab7c6c"}},{"ruleId":"D2","level":"warning","message":{"text":"middleware.middleware (cognitive 26): middleware.middleware has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (18 pts), ternaries 4 (5 pts), boolean chains 3 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"middleware.ts"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d90e958dd4deed43b61a698ff9f299704bf0719ea42f8e4a80edb174314715a"}},{"ruleId":"D2","level":"warning","message":{"text":"api-key-settings.ApiKeySettings::action (cognitive 25): api-key-settings.ApiKeySettings::action has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 10 (17 pts), if/else 4, boolean chains 3, 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":"components/api-key-settings.tsx"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d2e11877cbe177ba9bcfaba28f407d5996d14391f44a242d898ed62a9039555"}},{"ruleId":"D2","level":"warning","message":{"text":"user-directory.queryUserDirectory (cognitive 25): user-directory.queryUserDirectory has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 5 (11 pts), if/else 5 (7 pts), boolean chains 5, loops 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/admin/user-directory.ts"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce14a345800e77e1cc5a2980873c522f0fb4ad4d4da80843fe3cdc625bf10657"}},{"ruleId":"D2","level":"warning","message":{"text":"recreation-prompt.buildRecreationPrompt (cognitive 25): recreation-prompt.buildRecreationPrompt has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 11 (17 pts), if/else 3 (4 pts), boolean chains 3, loops 1 (nesting depth added 7). 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, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/workflow/recreation-prompt.ts"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0b0befb76dca0eb3e7ac3dc5112bbde2260ac9db7a91ff26488c13be5a96a9e"}},{"ruleId":"D2","level":"warning","message":{"text":"project-history-details.ProjectHistoryDetails (cognitive 24): project-history-details.ProjectHistoryDetails has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 9, ternaries 5 (8 pts), if/else 4 (5 pts), error handling 2 (nesting depth added 4). Most of this is not in the body itself: 10 of the 24 points are its own statements and the rest belongs to 4 function items inside it that branch (a function literal at line 23, copy, a function literal at line 38, \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":"components/workflow/project-history-details.tsx"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1ff7935cffec02c4e108e1c8e1d2c6504c6e7eb5986a509a26c8f4b72417d48"}},{"ruleId":"D2","level":"warning","message":{"text":"video-workflow-create.VideoWorkflowCreate::handleFile (cognitive 24): video-workflow-create.VideoWorkflowCreate::handleFile has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 6 (13 pts), if/else 5 (6 pts), boolean chains 3, error handling 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 4 other methods here (video-workflow-create.VideoWorkflowCreate, video-workflow-create.VideoWorkflowCreate::startBreakdown, video-workflow-create.VideoWorkflowCreate::rewriteScene, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 5 times rather than 5 independent problems. Splitting this body alone leaves the other 4 exactly as they are. Where these are variations on one operation, the change that clears all 5 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":"components/workflow/video-workflow-create.tsx"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"519d7f5fad7411cded4fa124e2b2774a08a3848557cb4198d3df0a0bceafe294"}},{"ruleId":"D2","level":"warning","message":{"text":"commercial-wallet.reserveCommercialTaskInTransaction (cognitive 24): commercial-wallet.reserveCommercialTaskInTransaction has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 7, loops 1 (nesting depth added 4). Of this number, 21 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":"lib/billing/commercial-wallet.ts"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b41652e9e6f6324c0694440b1bdf963e15a7cdfcbd7e28c38469901fe8e4e99"}},{"ruleId":"D2","level":"warning","message":{"text":"commercial-analysis.prepareCommercialAnalysis (cognitive 24): commercial-analysis.prepareCommercialAnalysis has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (12 pts), ternaries 6 (8 pts), boolean chains 3, error handling 1 (nesting depth added 3). Of this number, 19 points are the body\u0027s own statements and 5 belong to one function literal inside it that branches. To reduce it, 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":"lib/billing/commercial-analysis.ts"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"263c0d9df4b77d44288060394add685fe4611d54b010bfa26e3404680f182739"}},{"ruleId":"D2","level":"warning","message":{"text":"kie-response.getKieResponseText (cognitive 24): kie-response.getKieResponseText has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (15 pts), ternaries 2 (6 pts), boolean chains 3 (nesting depth added 11). Of this number, 17 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":"lib/ai/kie-response.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ef4c87ecb2e97255e573363af0c127bf1e9bc583b62b35af1e875c7a7c0e082"}},{"ruleId":"D2","level":"warning","message":{"text":"kie-responses.readKieResponses (cognitive 24): kie-responses.readKieResponses has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 7, error handling 2 (3 pts), loops 2 (3 pts) (nesting depth added 3). Of this number, 14 points are the body\u0027s own statements and 10 belong to one function item 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":"lib/ai/kie-responses.ts"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"91892f28898a6f973a0d8bca814617446d0653950a5b3cb6bbab16d663959610"}},{"ruleId":"D2","level":"warning","message":{"text":"generation-credit-preview.generationCreditPreview (cognitive 24): generation-credit-preview.generationCreditPreview has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 11, if/else 7 (8 pts), ternaries 2 (3 pts), error handling 2 (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":"lib/billing/generation-credit-preview.ts"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2e613eb80bb345252c53ba8942cb35db41101bac5e5ede30717b16ff4cedb9d"}},{"ruleId":"D2","level":"warning","message":{"text":"task-failure-message.taskFailureMessage (cognitive 24): task-failure-message.taskFailureMessage has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 8 (20 pts), boolean chains 4 (nesting depth added 12). 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":"lib/billing/task-failure-message.ts"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"324e487a482935789197f802e3511b7d0bf0123bcf32070b0ad14111fcf0f24f"}},{"ruleId":"D2","level":"warning","message":{"text":"route.POST (cognitive 23): route.POST has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 7, ternaries 5 (7 pts), 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":"app/api/video-generate/route.ts"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f6ebb6aa1ea1451db1a92952ef1f75c6135dada60a76ab802babe48f972dd74"}},{"ruleId":"D2","level":"warning","message":{"text":"agent-step-card.AgentStepCard (cognitive 23): agent-step-card.AgentStepCard has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 13, ternaries 4 (10 pts) (nesting depth added 6). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/agent/agent-step-card.tsx"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"54c3fbbe2ff76e9dac96abf23c057d631d231e8c4295442049efcad20e74ffa9"}},{"ruleId":"D2","level":"warning","message":{"text":"video-workflow-create.VideoWorkflowCreate::rewriteScene (cognitive 23): video-workflow-create.VideoWorkflowCreate::rewriteScene has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (8 pts), error handling 5 (7 pts), boolean chains 5, ternaries 2 (3 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. This shape REPEATS in the file: 4 other methods here (video-workflow-create.VideoWorkflowCreate, video-workflow-create.VideoWorkflowCreate::handleFile, video-workflow-create.VideoWorkflowCreate::startBreakdown, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 5 times rather than 5 independent problems. Splitting this body alone leaves the other 4 exactly as they are. Where these are variations on one operation, the change that clears all 5 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":"components/workflow/video-workflow-create.tsx"},"region":{"startLine":747}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d87331d1a637c8defccf4112deba97e8bd3e6f64b1a7f62472caa5ae5f350e0"}},{"ruleId":"D2","level":"warning","message":{"text":"kie-video.buildKIEJobPayload (cognitive 23): kie-video.buildKIEJobPayload has cognitive complexity 23 (threshold 15). Drivers by points: if/else 18 (20 pts), boolean chains 2, ternaries 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":"lib/ai/adapters/kie-video.ts"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfff7724042657421e113f004004233fad9c30620d7cac5200f86c9dddfa30ce"}},{"ruleId":"D2","level":"warning","message":{"text":"easydown.selectEasyDownMedia (cognitive 23): easydown.selectEasyDownMedia has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 10 (11 pts), boolean chains 8, if/else 4 (nesting depth added 1). Of this number, 14 points are the body\u0027s own statements and 9 belong to 4 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":"lib/media-resolver/easydown.ts"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"2284c901868a51334ca58beb0c2420f55beb4f5a9854d24af06ba5a74fe5d862"}},{"ruleId":"D2","level":"warning","message":{"text":"route.POST (cognitive 22): route.POST has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 4, error handling 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":"app/api/commercial/analysis/[id]/shots/[sceneId]/route.ts"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c9acb4c1c3f2044743cc0000ef07ead6aacb59d08ab2ff9a29125344abcbed0"}},{"ruleId":"D2","level":"warning","message":{"text":"admin-overview-panel.AdminOverviewPanel::loadOverview (cognitive 22): admin-overview-panel.AdminOverviewPanel::loadOverview has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 3 (10 pts), if/else 6 (8 pts), boolean chains 3, error handling 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (admin-overview-panel.AdminOverviewPanel) 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":"components/admin-overview-panel.tsx"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"465a4787cf5a06638e48df70f80980893d996b068d406ae8c9395257dba4ccd8"}},{"ruleId":"D2","level":"warning","message":{"text":"scene-video-preview.SceneVideoPlayer (cognitive 22): scene-video-preview.SceneVideoPlayer has cognitive complexity 22 (threshold 15). Drivers by points: if/else 18 (22 pts), boolean chains 14, ternaries 6 (12 pts), error handling 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (scene-video-preview.SceneVideoPlayer::togglePlayback) 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":"components/workflow/scene-video-preview.tsx"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"03bb6660a9aa70aaf5269ec9bc1429ef9c14dc7ea1c5a45da7d4a368b4d7bc7a"}},{"ruleId":"D2","level":"warning","message":{"text":"infistar-video.buildInfistarVideoPayload (cognitive 22): infistar-video.buildInfistarVideoPayload has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 12, if/else 7, ternaries 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":"lib/ai/adapters/infistar-video.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"46bc3aac182cc05d76d236e19379e354c27c757d1be6d8d63b657f09be8a4f7e"}},{"ruleId":"D2","level":"warning","message":{"text":"easydown.douyinVideoCodecs (cognitive 22): easydown.douyinVideoCodecs has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 5, loops 3 (4 pts), ternaries 2 (4 pts) (nesting depth added 7). Of this number, 11 points are the body\u0027s own statements and 11 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":"lib/media-resolver/easydown.ts"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d6d28d5038bff32d044d95487cfc7ff21b440d64a9d61310560965c0f173342"}},{"ruleId":"D2","level":"warning","message":{"text":"ingestVideoCandidates (cognitive 22): ingestVideoCandidates has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 3, error handling 1 (2 pts), loops 1, ternaries 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"workers/ffmpeg-worker/video-inspection.mjs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"424eef02c5b4b165ad79fd699a9bf16d4989b3dcb825613046244baf1031eff9"}},{"ruleId":"D2","level":"warning","message":{"text":"route.POST (cognitive 21): route.POST has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 4 (7 pts), if/else 6, boolean chains 4, loops 2 (3 pts), error handling 1 (nesting depth added 4). Of this number, 16 points are the body\u0027s own statements and 5 belong to 4 function literals inside it that branch. To reduce it, split the body: 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":"app/api/commercial/confirm/route.ts"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1b8e7d02be1ed8fdcccbbd77e691debbde5d78b2882ee3985d7bac813cd98dd"}},{"ruleId":"D2","level":"warning","message":{"text":"agent-artifact-panel.ArtifactContent (cognitive 21): agent-artifact-panel.ArtifactContent has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 12, if/else 6, ternaries 2 (3 pts) (nesting depth added 1). Of this number, 16 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":"components/agent/agent-artifact-panel.tsx"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e60132c9ac79a8ce034a7276e360726e140fa7201faf8884802f74f91ce0c08"}},{"ruleId":"D2","level":"warning","message":{"text":"commercial-analysis.quoteCommercialAnalysisRetry (cognitive 21): commercial-analysis.quoteCommercialAnalysisRetry has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 7, ternaries 1 (nesting depth added 2). Of this number, 19 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. To reduce it, split the body: 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":"lib/billing/commercial-analysis.ts"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"7712eed7cc3c23cad47119af5dea83200285bf5f7aa149429de2576cb863a7e5"}},{"ruleId":"D2","level":"warning","message":{"text":"analysis-tasks.enqueueAnalysis (cognitive 21): analysis-tasks.enqueueAnalysis has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (10 pts), ternaries 8, boolean chains 2, error handling 1 (nesting depth added 2). Of this number, 15 points are the body\u0027s own statements and 6 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":"lib/workflow/analysis-tasks.ts"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ad88d99b68afb262f41a4110e4b98002ec6899fd77f9bf1075c1d6f9c4c2ab5"}},{"ruleId":"D2","level":"warning","message":{"text":"route.GET (cognitive 20): route.GET has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 13, ternaries 4, if/else 3. Most of this is not in the body itself: 6 of the 20 points are its own statements and the rest belongs to one function literal inside it that branches (line 23). 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":"app/api/admin/payments/commercial/route.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"8161257a2e57f4501ca4ff2fed3606b265149bbda85f88eb82313b0462be0c35"}},{"ruleId":"D2","level":"warning","message":{"text":"samples-gallery.SampleCard (cognitive 20): samples-gallery.SampleCard has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 12 (17 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":"components/samples-gallery.tsx"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d6f73cff735727e6407e6518fa471bde41f053b8a1cc070681d6130b08af6e2"}},{"ruleId":"D2","level":"warning","message":{"text":"scene-video-preview.SceneVideoPlayer::togglePlayback (cognitive 20): scene-video-preview.SceneVideoPlayer::togglePlayback has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 4, 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. This shape REPEATS in the file: one other method here (scene-video-preview.SceneVideoPlayer) 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":"components/workflow/scene-video-preview.tsx"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cb5d4f7abe02af79bb26d21d26537b987fa5fce27b495dc2e17dd3dbfbe1637"}},{"ruleId":"D2","level":"warning","message":{"text":"kie-client.nativeGeminiBody.parts (cognitive 20): kie-client.nativeGeminiBody.parts has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 4 (14 pts), if/else 4, boolean chains 2 (nesting depth added 10). Most of this is not in the body itself: 2 of the 20 points are its own statements and the rest belongs to one function literal inside it that branches (line 39). 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":"lib/ai/kie-client.ts"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3d1e3099c3d0032bad76ab1ed8394d6a5a8a99937fa8a4a6c1b3ef34e819c4a"}},{"ruleId":"D2","level":"warning","message":{"text":"commercial-task-runner.confirmCommercialTaskInTransaction (cognitive 20): commercial-task-runner.confirmCommercialTaskInTransaction has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (17 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":"lib/billing/commercial-task-runner.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"0515feab347b6ed484bda3090230cb830b3c05cd2e9c97adaf2b23613e0c14c2"}},{"ruleId":"D2","level":"warning","message":{"text":"media-fetch.fetchMedia (cognitive 20): media-fetch.fetchMedia has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 2 (8 pts), if/else 2 (6 pts), boolean chains 3, error handling 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":"workers/ffmpeg-worker/media-fetch.mjs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"2830158ad283c1cdc3ea2c22e3519440e98f7d0f93801b35cedbedf79e6be3a9"}},{"ruleId":"D2","level":"warning","message":{"text":"route.GET (cognitive 19): route.GET has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 5, error handling 2 (5 pts), if/else 4, loops 2 (3 pts), ternaries 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/cron/commercial-reconciliation/route.ts"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fff18d094949441ae83a5ff8384704fa1cc69c88a818a49c36ea75eaee046d0"}},{"ruleId":"D2","level":"warning","message":{"text":"route.GET (cognitive 19): route.GET has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (9 pts), ternaries 3 (4 pts), boolean chains 3, error handling 1 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/models/route.ts"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"946669cf4b7edcc66d39babce5a9806e8e2a965a3273efe27bed19ca171548ed"}},{"ruleId":"D2","level":"warning","message":{"text":"ReferenceVideoComposer.ReferenceVideoComposer::createVideo (cognitive 19): ReferenceVideoComposer.ReferenceVideoComposer::createVideo has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 7 (16 pts), boolean chains 1, error handling 1, if/else 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. This shape REPEATS in the file: 2 other methods here (ReferenceVideoComposer.ReferenceVideoComposer, ReferenceVideoComposer.ReferenceVideoComposer::submitGenerationJob) 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":"components/reference-video/ReferenceVideoComposer.tsx"},"region":{"startLine":1244}}}],"partialFingerprints":{"codehealthFindingId/v1":"08f0abb2e2a84197f3e4b54c64ab0c8895ffe723135db8d57fbc2596005ee807"}},{"ruleId":"D2","level":"warning","message":{"text":"sample-project-detail.ProjectBundleView (cognitive 19): sample-project-detail.ProjectBundleView has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 9 (12 pts), boolean chains 7 (nesting depth added 3). Most of this is not in the body itself: 4 of the 19 points are its own statements and the rest belongs to one function literal inside it that branches (line 202). 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":"components/sample-project-detail.tsx"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3ee1d870133802c515d058fcb37b7150dce6e573fc0c48f72ad7e0707e64ddd"}},{"ruleId":"D2","level":"warning","message":{"text":"shot-download-button.ShotDownloadButton (cognitive 19): shot-download-button.ShotDownloadButton has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 8 (13 pts), boolean chains 4, error handling 1, if/else 1 (nesting depth added 5). Most of this is not in the body itself: 7 of the 19 points are its own statements and the rest belongs to one function item inside it that branches (download). 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":"components/workflow/shot-download-button.tsx"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"097ccbd1ee811277780256a49b7150d18f5adbbdd80e75ffc8342eec5687efa3"}},{"ruleId":"D2","level":"warning","message":{"text":"handleCommercialMedia (cognitive 19): handleCommercialMedia has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8, ternaries 3 (6 pts), boolean chains 3, error handling 1 (2 pts) (nesting depth added 4). Of this number, 17 points are the body\u0027s own statements and 2 belong to 4 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":"workers/ffmpeg-worker/server.mjs"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"94f4ef80bb54a8b4bf7a2c3ccd38fcce8b071d4aa2b04111106d2f5efb46d2e7"}},{"ruleId":"D2","level":"warning","message":{"text":"route.GET (cognitive 18): route.GET has cognitive complexity 18 (threshold 15). Drivers by points: error handling 5 (8 pts), boolean chains 4, if/else 3, ternaries 3 (nesting depth added 3). 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, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/cron/analysis-dispatch/route.ts"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ba8dc658df8af8f469b9de0af03455db7e0764771f938776752017087712ef6"}},{"ruleId":"D2","level":"warning","message":{"text":"route.deferredPOST (cognitive 18): route.deferredPOST has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 8, if/else 8, error handling 2. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/video-edit/route.ts"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1980b08e6172e8a3aaf5a07436256e3d1794b69da4c5e66e26dcc693dee9b1c"}},{"ruleId":"D2","level":"warning","message":{"text":"agent-artifact-panel.artifactToText (cognitive 18): agent-artifact-panel.artifactToText has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (14 pts), boolean chains 4 (nesting depth added 1). Most of this is not in the body itself: 8 of the 18 points are its own statements and the rest belongs to 3 function items inside it that branch (pushValue, a function literal at line 66, a function literal at line 51). 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":"components/agent/agent-artifact-panel.tsx"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f2c21e827388d95b13989b04c8c39c9797d488946de6b280358227d43ece995"}},{"ruleId":"D2","level":"warning","message":{"text":"infistar-video.createInfistarVideo (cognitive 18): infistar-video.createInfistarVideo has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (7 pts), ternaries 3 (6 pts), boolean chains 3, 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":"lib/ai/adapters/infistar-video.ts"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab730e0ca201ed3de0a81ad6c3c2dfeb8244dafda89c399d6ac4f687aa614a74"}},{"ruleId":"D2","level":"warning","message":{"text":"commercial-refunds.reviewCommercialRefund (cognitive 18): commercial-refunds.reviewCommercialRefund has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9, ternaries 4 (5 pts), boolean chains 3, error handling 1 (nesting depth added 1). Of this number, 10 points are the body\u0027s own statements and 8 belong to one function literal inside it that branches. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/payments/commercial-refunds.ts"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"776fe05a7103f2e77ef8b53e2c87367a218cd06067cab437283892377c25822a"}},{"ruleId":"D2","level":"warning","message":{"text":"file-validation.detectFileType (cognitive 18): file-validation.detectFileType has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (11 pts), loops 3 (6 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":"lib/utils/file-validation.ts"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"31da6dc099738653d52cb39b99db44c899cbdf7f12ee52973c2c4e932e14985f"}},{"ruleId":"D2","level":"warning","message":{"text":"extractSceneAssets (cognitive 18): extractSceneAssets has cognitive complexity 18 (threshold 15). Drivers by points: error handling 2 (6 pts), if/else 2 (5 pts), ternaries 2 (4 pts), loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"workers/ffmpeg-worker/server.mjs"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d36e7bfb8199af2635e796af3a673a4ce3d177537033da548f691ca0b2fcb34"}},{"ruleId":"D2","level":"warning","message":{"text":"inspectVideoProbe (cognitive 18): inspectVideoProbe has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 8, if/else 2 (4 pts), ternaries 2 (3 pts), error handling 1 (2 pts), loops 1 (nesting depth added 4). Of this number, 14 points are the body\u0027s own statements and 4 belong to 4 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"workers/ffmpeg-worker/video-inspection.mjs"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9d2b06ab7c328b9092bd1cad4ed12b8eb11930f88a5353a33e2728ba9552422"}},{"ruleId":"D2","level":"warning","message":{"text":"route.POST (cognitive 17): route.POST has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 7, ternaries 4 (5 pts), if/else 4, error handling 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/admin/credits/grant/route.ts"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"259ea20bc06308bc4f90ff518c0e4e624e7535554bd7bc20f309988c4f66c915"}},{"ruleId":"D2","level":"warning","message":{"text":"route.POST (cognitive 17): route.POST has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7, boolean chains 6, ternaries 3, error handling 1. Of this number, 9 points are the body\u0027s own statements and 8 belong to one function literal inside it that branches. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/internal/analysis-run/route.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"e790f1249d7c17f808e007210a428b0182fc22f8f611c4a3783db02f3af7ce67"}},{"ruleId":"D2","level":"warning","message":{"text":"route.POST (cognitive 17): route.POST has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 3, error handling 2 (nesting depth added 1). 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: 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":"app/api/settings/api-key/route.ts"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"1014ff364ffbb02f2d3536c6aface82d397936b2f06373e656d9f2d7a1c950c3"}},{"ruleId":"D2","level":"warning","message":{"text":"route.POST (cognitive 17): route.POST has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 6 (7 pts), if/else 5, boolean chains 4, error handling 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/upload/complete/route.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"476ab9939667fb201e358234cef82369fc072a98f6a661099bc2eb73aecfb365"}},{"ruleId":"D2","level":"warning","message":{"text":"audio-analyze-tab.AudioAnalyzeTab::handleAnalyze (cognitive 17): audio-analyze-tab.AudioAnalyzeTab::handleAnalyze has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 6, boolean chains 4, error handling 3 (4 pts), if/else 3 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: one other method here (audio-analyze-tab.AudioAnalyzeTab) 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":"components/audio-analyze-tab.tsx"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"f144b2ad1eeee8c629adedcc5bb1ac00384ef5d84ea7b84065e1e3e99856a0c0"}},{"ruleId":"D2","level":"warning","message":{"text":"analysis-quote-panel.AnalysisQuotePanel::confirmAnalysis (cognitive 17): analysis-quote-panel.AnalysisQuotePanel::confirmAnalysis has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 3, ternaries 1 (2 pts), error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 2 other methods here (analysis-quote-panel.AnalysisQuotePanel, analysis-quote-panel.AnalysisQuotePanel::post) 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":"components/payments/analysis-quote-panel.tsx"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd47fd5f83e2165dec64bc41f852762daa9f4ab32c23b50b0d7c59e34429a44d"}},{"ruleId":"D2","level":"warning","message":{"text":"pricing-v6.validateAnalysis (cognitive 17): pricing-v6.validateAnalysis has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 7, 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":"lib/billing/pricing-v6.ts"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"841aaca040736fdfaab871e5ddac4c69e5493efc8fe1a5fd77d5e54203b30d07"}},{"ruleId":"D2","level":"warning","message":{"text":"commercial-wallet.settleCommercialTaskInTransaction (cognitive 17): commercial-wallet.settleCommercialTaskInTransaction has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 6, loops 1, ternaries 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":"lib/billing/commercial-wallet.ts"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"93ca276879fdc97504fdfc649b773c8ccda1732d372e00a9ae15189805dc8c06"}},{"ruleId":"D2","level":"warning","message":{"text":"scene-assets.prepareIndependentSceneAsset (cognitive 17): scene-assets.prepareIndependentSceneAsset has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 5, ternaries 2 (3 pts) (nesting depth added 2). Of this number, 10 points are the body\u0027s own statements and 7 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":"lib/billing/scene-assets.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb5a5d635942f99b0a98a5b7d21c173c29784dec2837e9a6a194c9ac3838f3ac"}},{"ruleId":"D2","level":"warning","message":{"text":"client.ingestLinkedMediaWithWorker (cognitive 17): client.ingestLinkedMediaWithWorker has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 4, ternaries 1 (2 pts), error handling 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":"lib/ffmpeg-worker/client.ts"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a96eb225b8fbf780f28cc3409843065a900155c3a68b19c2da7e4872adf810c"}},{"ruleId":"D2","level":"warning","message":{"text":"remote-video-codec.declaredVideoCodecs (cognitive 17): remote-video-codec.declaredVideoCodecs has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 5, 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":"workers/ffmpeg-worker/remote-video-codec.mjs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4c7db28832668f898f76653016fc880c5c106b96c2bd57583bf5521a8f86502"}},{"ruleId":"D2","level":"warning","message":{"text":"server.server (cognitive 17): server.server has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (7 pts), boolean chains 5, ternaries 2 (4 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":"workers/ffmpeg-worker/server.mjs"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"f16cd671894080ecd5c78326a631e09d496a3cf22b7558d8d622ddf001ec94d0"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 17): (anonymous) has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (7 pts), boolean chains 5, ternaries 2 (4 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":"workers/ffmpeg-worker/server.mjs"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb6d6ec1a952831e529bb664e6cd1bd22698595cbdf5adfcc27f871f47f771d8"}},{"ruleId":"D2","level":"warning","message":{"text":"route.GET (cognitive 16): route.GET has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (8 pts), ternaries 3 (5 pts), boolean chains 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":"app/api/video-generate/status/route.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b56f04dbc7d3d3528114cbb8d4c8785b67cdd9ce97528c6879ea3d98eaf6a6e"}},{"ruleId":"D2","level":"warning","message":{"text":"admin-overview-panel.AdminOverviewPanel (cognitive 16): admin-overview-panel.AdminOverviewPanel has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 12 (21 pts), if/else 10 (12 pts), boolean chains 11, error handling 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. This shape REPEATS in the file: one other method here (admin-overview-panel.AdminOverviewPanel::loadOverview) 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":"components/admin-overview-panel.tsx"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"93cda427f8d1f2b4c995c00010e28d712e77870b7c4c4089cf0ec164aed86be6"}},{"ruleId":"D2","level":"warning","message":{"text":"agent-composer.AgentComposer::handleFiles (cognitive 16): agent-composer.AgentComposer::handleFiles has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 4, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (agent-composer.AgentComposer) 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":"components/agent/agent-composer.tsx"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"da34b327c3530743c0df343a27658d7f90b35f20be1f9ded627c8cddc723cf37"}},{"ruleId":"D2","level":"warning","message":{"text":"analyzed-shot-preview.ShotPreview (cognitive 16): analyzed-shot-preview.ShotPreview has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 5 (7 pts), if/else 4 (5 pts), boolean chains 4 (nesting depth added 3). 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":"components/workflow/analyzed-shot-preview.tsx"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"7133ec67e8ff81a92724d0d8de8f51670fbbe5ca44d49113a3c14d55e84fa8eb"}},{"ruleId":"D2","level":"warning","message":{"text":"credit-balance-link.CreditBalanceLink (cognitive 16): credit-balance-link.CreditBalanceLink has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 7 (13 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":"components/workflow/credit-balance-link.tsx"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b26473d83185968b74809142b2060a83bb2e513a31fca5f0bf3d722e49e827e"}},{"ruleId":"D2","level":"warning","message":{"text":"task-diagnostics.taskErrorDetails (cognitive 16): task-diagnostics.taskErrorDetails has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 10 (11 pts), boolean chains 4, if/else 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/billing/task-diagnostics.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"011e7a1b83a7a369f88764b2c5ef460cdf50d09b150d586e7acf4bcbad3fc320"}},{"ruleId":"D2","level":"warning","message":{"text":"service.validateAttachments (cognitive 16): service.validateAttachments has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 7, if/else 6, boolean chains 3. Most of this is not in the body itself: 2 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 34). 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":"lib/agent/service.ts"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"8211f8b06eb690ca56cf27a47a1185f8fcee2e1a597981e26b8ffb056b92c96a"}},{"ruleId":"D2","level":"warning","message":{"text":"infistar-media.readInfistarMedia (cognitive 16): infistar-media.readInfistarMedia has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 5, 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":"lib/ai/infistar-media.ts"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e4256ff03341c79a5f8cb7c942d25c45fbf3c25bc5fdb2f3c3982fca597eb35"}},{"ruleId":"D2","level":"warning","message":{"text":"commercial-generation.executeCommercialGeneration (cognitive 16): commercial-generation.executeCommercialGeneration has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 5 (9 pts), boolean chains 4, if/else 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":"lib/billing/commercial-generation.ts"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"78131759349d4a7558037698342447519241ad070aef46c58b9c78d5854525cc"}},{"ruleId":"D2","level":"warning","message":{"text":"commercial-generation.reconcileCommercialGeneration (cognitive 16): commercial-generation.reconcileCommercialGeneration has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 3, error handling 1 (2 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/billing/commercial-generation.ts"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"f94072027954d36807c9537e6301a97ded6264526aef5265ad74a5fd4c0020ef"}},{"ruleId":"D2","level":"warning","message":{"text":"commercial-review.releaseUnfulfilledCommercialAnalysis (cognitive 16): commercial-review.releaseUnfulfilledCommercialAnalysis has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 5 (nesting depth added 1). Most of this is not in the body itself: 4 of the 16 points are its own statements and the rest belongs to 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":"lib/billing/commercial-review.ts"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"c08ee49e51b0640958d5eacee842f50ce92de42adfcaf42bf20df629d237cdcc"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: ReferenceVideoComposer.ReferenceVideoComposer: FunctionTooLong \u2014 ReferenceVideoComposer runs 1266 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1166 over it, 12.66\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/reference-video/ReferenceVideoComposer.tsx"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"991d343c12a345004ad279eada166298c66af6e5d8b0e941d6440043704f00db"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: video-workflow-create.VideoWorkflowCreate: FunctionTooLong \u2014 VideoWorkflowCreate runs 779 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 679 over it, 7.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":"components/workflow/video-workflow-create.tsx"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cdacfb42c1915b60e0a39b2912b11690150e9bb5e3758c2d6561fde95bc01ea"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: video-edit-tab.VideoEditTab: FunctionTooLong \u2014 VideoEditTab runs 509 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 409 over it, 5.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":"components/video-edit-tab.tsx"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"77a7b2a3cc967b69b2cef820e49ae02125e70067a9382fbe89692718e325e8b6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: audio-analyze-tab.AudioAnalyzeTab: FunctionTooLong \u2014 AudioAnalyzeTab runs 468 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 368 over it, 4.68\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/audio-analyze-tab.tsx"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"c94857238b47aaec440750a99187dc9c311d57650e8aedf469370325173f8a78"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: page.DashboardPage: FunctionTooLong \u2014 DashboardPage runs 424 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 324 over it, 4.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":"app/dashboard/page.tsx"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"71dff4c170a936876cce41b11849398b470c3f0dc1b2b617cf9d474a1e8b1fc6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: history-list.AnalysisHistory: FunctionTooLong \u2014 AnalysisHistory runs 317 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 217 over it, 3.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/history-list.tsx"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4a86220293a1b78ac1a9771c73094f1ce6ecd966281ed9d48850eb10d27947b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ReferenceVideoComposer: ClassTooLong \u2014 1266 significant lines (blank, comment-only and punctuation-only lines excluded), 15 methods. The bar is 400 significant lines; this is 866 over it, 3.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":"components/reference-video/ReferenceVideoComposer.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e4e19aa4f470d34778632bd6875c728fdce94d3d0e865460d0e2c67330d843f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: login-client.LoginClient: FunctionTooLong \u2014 LoginClient runs 306 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 206 over it, 3.06\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/login/login-client.tsx"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"b04f01f94c64c977a9618ec070a403bda03b31b20e89814ed1730aee495e0eb1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: reference-video/ReferenceVideoComposer.tsx: FileTooLong \u2014 1477 significant lines (blank, comment-only and punctuation-only lines excluded), about 86% of them inside a single declaration: ReferenceVideoComposer (279-1792). The bar is 500 significant lines; this is 977 over it, 2.95\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":"components/reference-video/ReferenceVideoComposer.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"31e7cdaa51c123a59c73240798fd04fa2787e286f069b04648704537c3acecf4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: analysis-quote-panel.AnalysisQuotePanel: FunctionTooLong \u2014 AnalysisQuotePanel runs 259 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 159 over it, 2.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":"components/payments/analysis-quote-panel.tsx"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8fe785e077a98bfff95904af42d921fd2aa65a146fe5a8220165fba1a79cb5d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: workflow/video-workflow-create.tsx: FileTooLong \u2014 1094 significant lines (blank, comment-only and punctuation-only lines excluded), about 71% of them inside a single declaration: VideoWorkflowCreate (308-1212). The bar is 500 significant lines; this is 594 over it, 2.19\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":"components/workflow/video-workflow-create.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c9f525e8a41cfa532d0a4e26cb18ec686a68a28ce8c124bf33756bba3d9ecf2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: agent-run-panel.AgentRunPanel: FunctionTooLong \u2014 AgentRunPanel runs 206 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 106 over it, 2.06\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/agent/agent-run-panel.tsx"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd32e7f613491a5cab48972567bbcee9a6484dc2fb9f6e194dad315fab435812"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: create-with-agent.CreateWithAgent: FunctionTooLong \u2014 CreateWithAgent runs 203 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 103 over it, 2.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/agent/create-with-agent.tsx"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"66a49933cb6b4c7505f0d98cfd7fa4e12a511153c874e5c39163f26a52570bde"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: alipay-checkout-dialog.AlipayCheckoutDialog: FunctionTooLong \u2014 AlipayCheckoutDialog runs 198 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 98 over it, 1.98\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/payments/alipay-checkout-dialog.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"e234684206ca336ff8e0075cb0802518a2746d2d67717951ba944ef85bef2fda"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: agent-chat-page.AgentChatPage: FunctionTooLong \u2014 AgentChatPage 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":"components/agent/agent-chat-page.tsx"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c157e465ff64d0ddd42185c5986588b562773256490613f7ecdaa165f9cfbdb"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: executor.executeRun: FunctionTooLong \u2014 executeRun 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":"lib/agent/executor.ts"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf279bac9f80f5e5ba59cde2c97c608a40fa263840d6cf49f5dfd2cf85f13c68"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: db/schema.ts: FileTooLong \u2014 848 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 348 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":"lib/db/schema.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b8959e46506b64824f0d778ab9a2a6a79bb5346fbd6de488d4c5c8722b8032c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: globe.Globe: FunctionTooLong \u2014 Globe runs 169 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 69 over it, 1.69\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/globe.tsx"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ea5735cadf11dfe36c39c61a86b03a2f1e4661f9dda36918156ca3beb126e7c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: login-globe-background.LoginGlobeBackground: FunctionTooLong \u2014 LoginGlobeBackground runs 156 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 56 over it, 1.56\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":"components/login-globe-background.tsx"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"e57d9b730255abd8672f0e9384ac12621db39c405d6152b665d9a917a1da6972"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: agent-composer.AgentComposer: FunctionTooLong \u2014 AgentComposer runs 150 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 50 over it, 1.50\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/agent/agent-composer.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f17faf4b02b1b11c3ba1c7eb9c3449c6b21b274f847d1756817e67c39f2e1c5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: scene-video-preview.SceneVideoPlayer: FunctionTooLong \u2014 SceneVideoPlayer runs 133 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 33 over it, 1.33\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/workflow/scene-video-preview.tsx"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"495d76aa246568ed3cc56d20e07b815a13e1ff27680f4be7ee21bd9a25ce402d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: globe.WorldMapBackground: FunctionTooLong \u2014 WorldMapBackground 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":"components/globe.tsx"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d16aef09ffd2cc53170f01af1dffe9fa7ee3783e6eef9cf643ba84cb8b569f1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: mock-data.runMockSearch: FunctionTooLong \u2014 runMockSearch runs 127 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 27 over it, 1.27\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/agent/mock-data.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfdfba555a259f926e09b1c09214a4268da362ea59670e3b057aa208be511cf0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: reconciliation-scheduler.startReconciliationScheduler: FunctionTooLong \u2014 startReconciliationScheduler runs 122 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"workers/ffmpeg-worker/reconciliation-scheduler.mjs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ccdbf196556252d5d664d2c0f05814b0c0bb85c316cdd88326c4a66453f0311"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: testimonials-section.TestimonialsSection: FunctionTooLong \u2014 TestimonialsSection runs 120 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/landing/testimonials-section.tsx"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"f67e894afe6422a233783e9c604d64cbd0d1cece7b68b2ef1d2b58cd60e61d2f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/video-edit-tab.tsx: FileTooLong \u2014 571 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: VideoEditTab (46-686). The bar is 500 significant lines; this is 71 over it, 1.14\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":"components/video-edit-tab.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fefae35296d6959b3d8f691263c7788351a9dcdb5596a0e76b88031a46c90868"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: credit-rules.creditRuleTopics: FunctionTooLong \u2014 creditRuleTopics 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":"app/guide/credit-rules.ts"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcd3e8608f335e465d8487361f3bdd136585d0da0acf385387cb53041c48a705"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: agent/storage.ts: FileTooLong \u2014 539 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 39 over it, 1.08\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/agent/storage.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dc683868d8101bbbca3cc00d5235ef57de7354f8dc93803e749fea703e92156"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: page.CommercialReviewPage: FunctionTooLong \u2014 CommercialReviewPage runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/billing/review/page.tsx"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ccf92fa1797bc51471c1287216c9da319419e06b5d3d6aeea80262ad00bc6bd"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: admin-user-directory.AdminUserDirectory: FunctionTooLong \u2014 AdminUserDirectory runs 106 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/admin-user-directory.tsx"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"04b93c638ebf08665fcbccd9ca4d79126fa5b775d31c1719cdd50e1ddbbfc15e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: agent-artifact-panel.AgentArtifactPanel: FunctionTooLong \u2014 AgentArtifactPanel runs 106 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/agent/agent-artifact-panel.tsx"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"59734b35b7ef87f5a708a871b50cebbf00fd9cade4fef2454afed05c3f49b29d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: sample-project-detail.ProjectBundleView: FunctionTooLong \u2014 ProjectBundleView 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":"components/sample-project-detail.tsx"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"4010508051df00a4fbcbca6d1f24b4626f0811fa67beb77b7fc775cd9dcdd929"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/audio-analyze-tab.tsx: FileTooLong \u2014 523 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: AudioAnalyzeTab (73-637). The bar is 500 significant lines; this is 23 over it, 1.05\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":"components/audio-analyze-tab.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7000cbeb1dd11a71ac9fb9bb73414f92cf59f2bfb8e586b7fc508b8a4cad1f78"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: kie-veo.getKieVeoGenerationStatus: FunctionTooLong \u2014 getKieVeoGenerationStatus runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 4 over it, 1.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":"lib/reference-video/kie-veo.ts"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"e65acbb3768027ff686e8d542e8c838d8d2f3800d17d90ab48523d1071175348"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: site-header.SiteHeader: FunctionTooLong \u2014 SiteHeader 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":"components/landing/site-header.tsx"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b26662701755994978d35908f6b0a0f2a4d75d190398675e13485f307894422"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: billing-account.BillingAccount: FunctionTooLong \u2014 BillingAccount 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":"components/payments/billing-account.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"41f5d7963dc51a2ab5d9d0c5c647e91e880d3494160abb589dbb1043ae608792"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): skills/prompt-lens-video-remix/scripts/detect_scenes.py:23-59 | workers/ffmpeg-worker/scene-detect.py:21-58 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/prompt-lens-video-remix/scripts/detect_scenes.py"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc4ad3edc25411b42cbfe8e0b8f893a6394e367967a06c5d5fd0c42093edb876"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): skills/prompt-lens-video-remix/scripts/check_environment.py:29-54 | skills/prompt-lens-video-remix/scripts/prepare_video.py:95-120 \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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/prompt-lens-video-remix/scripts/check_environment.py"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0c2ffd7611e6809d1446734efa229deba46f19b58a05025bc04b45d9cfa3b23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201315 lines \u00D7 3): skills/prompt-lens-video-remix/scripts/detect_scenes.py:30-43 | skills/prompt-lens-video-remix/scripts/prepare_video.py:345-348 | workers/ffmpeg-worker/scene-detect.py:28-42 \u2014 before extracting anything, compare \u0060skills/prompt-lens-video-remix/scripts/detect_scenes.py\u0060 and \u0060workers/ffmpeg-worker/scene-detect.py\u0060 as WHOLE FILES: 86% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/prompt-lens-video-remix/scripts/detect_scenes.py"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"fda70c0b4c1f467bc1b325ef93d8f46a7d338f1bfdd9ebc78390d0217a21b372"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): skills/prompt-lens-video-remix/scripts/detect_scenes.py:12-19 | workers/ffmpeg-worker/scene-detect.py:10-17 \u2014 before extracting anything, compare \u0060skills/prompt-lens-video-remix/scripts/detect_scenes.py\u0060 and \u0060workers/ffmpeg-worker/scene-detect.py\u0060 as WHOLE FILES: 86% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/prompt-lens-video-remix/scripts/detect_scenes.py"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eda521b6dec3f41fe7ca5065d893188216f27d6b09736820acd73ecf5ef1ee1"}},{"ruleId":"D8","level":"warning","message":{"text":"Coverage not measured \u2014 JavaScript/TypeScript suite: Coverage NOT MEASURED: the JavaScript/TypeScript half could not be measured \u2014 the repository root runs vitest but declares no coverage provider, so the suite can run and still produce no lcov \u2014 add \u0060@vitest/coverage-v8\u0060 (or \u0060@vitest/coverage-istanbul\u0060) as a devDependency. Coverage is excluded from the score rather than counted as a near-zero. The named suite step is one the repository\u0027s maintainers can perform; once it passes, the real number is measured on the next scan."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"62e63e619c28f057e129f2997c965d32a457366a9ce18ca019ffb6bdfba85c99"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: (unnamed test): Skipped \u2014 switched off by test.skip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/e2e/commercial-checkout.spec.ts"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"01b678c42eef0e3b58703b685efdeaa3125a76049ac557efab7735d1078f59d3"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: (unnamed test): Skipped \u2014 switched off by test.skip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/e2e/commercial-order-cancel.spec.ts"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"86ead7ff630239a87756d6196c4077c83c6491654ebc3ed95e5ec1d5d96e98ce"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: (unnamed test): Skipped \u2014 switched off by test.skip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/e2e/payment-handoff.spec.ts"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce8c1765275825cb9cccaf51438d77e03fb426c1171bcf4355083e980c36ce91"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should navigate to dashboard from primary CTA: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/e2e/app.spec.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"358e847720ad3d3553c7a7e2c2a399813f3555969e339f5fc90e0af21d5d5274"}},{"ruleId":"D12","level":"warning","message":{"text":"Deprecated: @mux/mux-node: @mux/mux-node 12.8.1, declared in package.json, is marked deprecated by its publisher: \u0022@mux/mux-node was renamed to @mux/ts. 15.5.0 is the final release under this name; install @mux/ts for all future releases. Migration guide: https://github.com/muxinc/mux-ts/blob/main/MIGRATION.md\u0022. Replace it with the package or version that message names, or record why this one must stay."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package.json"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcb4999001ee4036fd68a9895a9cc0a9ddbe2d8d7536bb15bcc5c40d4cc42722"}},{"ruleId":"D12","level":"warning","message":{"text":"Deprecated: fluent-ffmpeg: fluent-ffmpeg 2.1.3, declared in package.json, is marked deprecated by its publisher: \u0022Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.\u0022. Replace it with the package or version that message names, or record why this one must stay."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package.json"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bd8bbfac257e81f62e884fbc98369a5a882b589b54095e80be28428806678e1"}},{"ruleId":"D12","level":"warning","message":{"text":"Deprecated: recharts: recharts 2.15.4, declared in package.json, is marked deprecated by its publisher: \u00221.x and 2.x branches are no longer active. Bump to Recharts v3 to receive latest features and bugfixes. See https://github.com/recharts/recharts/wiki/3.0-migration-guide\u0022. Replace it with the package or version that message names, or record why this one must stay."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package.json"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"09fbabe10800430bfd7aafd15a55d48764da877e0c9f85a92f2e889bdbb2ce45"}},{"ruleId":"D12","level":"warning","message":{"text":"Deprecated: eslint: eslint 9.39.4, declared in package.json, is marked deprecated by its publisher: \u0022This version is no longer supported. Please see https://eslint.org/version-support for other options.\u0022. Replace it with the package or version that message names, or record why this one must stay."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package.json"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"e04d6fe6ca46e7c5138acb9303f34c05bf26af5e4732d5aadfd02868b07841a1"}},{"ruleId":"D12","level":"note","message":{"text":"Deprecated: @esbuild-kit/core-utils: @esbuild-kit/core-utils 3.3.2 is resolved in pnpm-lock.yaml and is marked deprecated by its publisher: \u0022Merged into tsx: https://tsx.hirok.io\u0022. This repository does not declare it \u2014 a direct dependency pulls it in, so the move is to upgrade or replace that dependency."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pnpm-lock.yaml"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c9498bd0ae8c4ecb25b0d63b2601beddca92068179af4552b63732a877fa219"}},{"ruleId":"D12","level":"note","message":{"text":"Deprecated: @esbuild-kit/esm-loader: @esbuild-kit/esm-loader 2.6.5 is resolved in pnpm-lock.yaml and is marked deprecated by its publisher: \u0022Merged into tsx: https://tsx.hirok.io\u0022. This repository does not declare it \u2014 a direct dependency pulls it in, so the move is to upgrade or replace that dependency."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pnpm-lock.yaml"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf52f4b10c9b8c5f3a6d99bba51b670fa5d4a3f1511443aa32b1c6276893b074"}},{"ruleId":"D12","level":"note","message":{"text":"Deprecated: crypto-js: crypto-js 4.2.0 is resolved in pnpm-lock.yaml and is marked deprecated by its publisher: \u0022Active development of CryptoJS has been discontinued. This library is no longer maintained.\u0022. This repository does not declare it \u2014 a direct dependency pulls it in, so the move is to upgrade or replace that dependency."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pnpm-lock.yaml"},"region":{"startLine":3017}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8df2be18eb441eecd2d6501a1fdfa5b4071c515ec172996400aa62c18ec4e38"}},{"ruleId":"D12","level":"note","message":{"text":"Deprecated: glob: glob 7.2.3 is resolved in pnpm-lock.yaml and is marked deprecated by its publisher: \u0022Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [e-mail redacted]\u0022. This repository does not declare it \u2014 a direct dependency pulls it in, so the move is to upgrade or replace that dependency."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pnpm-lock.yaml"},"region":{"startLine":3877}}}],"partialFingerprints":{"codehealthFindingId/v1":"06aea5043151b35bb100d36c0729a1ca57c572baa7da27303eacadf44c20a97d"}},{"ruleId":"D12","level":"note","message":{"text":"Deprecated: inflight: inflight 1.0.6 is resolved in pnpm-lock.yaml and is marked deprecated by its publisher: \u0022This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.\u0022. This repository does not declare it \u2014 a direct dependency pulls it in, so the move is to upgrade or replace that dependency."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pnpm-lock.yaml"},"region":{"startLine":3987}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2184d7a11499e8ddfd4472a972a193f33bf06bb5f3b139fced0662b3309d6b5"}},{"ruleId":"D12","level":"note","message":{"text":"Deprecated: node-domexception: node-domexception 1.0.0 is resolved in pnpm-lock.yaml and is marked deprecated by its publisher: \u0022Use your platform\u0027s native DOMException instead\u0022. This repository does not declare it \u2014 a direct dependency pulls it in, so the move is to upgrade or replace that dependency."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pnpm-lock.yaml"},"region":{"startLine":4481}}}],"partialFingerprints":{"codehealthFindingId/v1":"965e1318e0565ac76f22a7234f78fbc3e2c57ef2f7746de66bd1a4300c363e49"}},{"ruleId":"D12","level":"note","message":{"text":"Outdated (npm): @mux/mux-node: @mux/mux-node is pinned at 12.8.1; registry.npmjs.org publishes 15.5.0 as the latest release. Upgrading is a judgement call \u2014 read that package\u0027s changelog for what changed between the two \u2014 but a direct production dependency several releases behind is where security and compatibility debt accumulates silently."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package.json"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f0978968f7439205b1a90832085fc65b9df1d8608a855e5f8f53d3ddc02632f"}},{"ruleId":"D12","level":"note","message":{"text":"Outdated (npm): uuid: uuid is pinned at 11.1.0; registry.npmjs.org publishes 14.0.3 as the latest release. Upgrading is a judgement call \u2014 read that package\u0027s changelog for what changed between the two \u2014 but a direct production dependency several releases behind is where security and compatibility debt accumulates silently."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package.json"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"66de142a6d9a8891ad9f76e903eab0d137ddef095b3a23f61bc2479867f4c8bd"}},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7dd41eb5db0c41c530f6015c108c5fb90e360601678c6a6e732d1bb7516d1167"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"41f6a174e6a311dda2ecff301f769e953f73823f8d890675accc8f536e39c8b7"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4a8bc709543582199f3b7cb8101d401bd4e48243469126774348f7eb5103919d"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D14","level":"error","message":{"text":"Banned license: @ffmpeg-installer/linux-arm: \u0060@ffmpeg-installer/linux-arm\u0060 4.1.3 is published on registry.npmjs.org under \u0060GPL-3.0\u0060 (spelled \u0060GPLv3\u0060 there, which npm\u0027s own validator reads as that id), which this policy bans, and it is not declared by this repository but is installed by one of its production, optional or peer dependencies, as its committed lockfile resolves \u2014 a transitive dependency ships its licence just the same \u2014 so it is installed by everything that depends on this repository, not just by its build toolchain. A package offering SEVERAL licences is a choice and is only charged when every one of them is banned. Replace the package (or the dependency that pulls it in), or record an accepted exception."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pnpm-lock.yaml"},"region":{"startLine":1176}}}],"partialFingerprints":{"codehealthFindingId/v1":"516ada7df17f64271b96a41467a2c20f84cc14d7d5796206e86a17ae2a7d972f"}},{"ruleId":"D14","level":"error","message":{"text":"Banned license: @ffmpeg-installer/linux-arm64: \u0060@ffmpeg-installer/linux-arm64\u0060 4.1.4 is published on registry.npmjs.org under \u0060GPL-3.0\u0060 (spelled \u0060GPLv3\u0060 there, which npm\u0027s own validator reads as that id), which this policy bans, and it is not declared by this repository but is installed by one of its production, optional or peer dependencies, as its committed lockfile resolves \u2014 a transitive dependency ships its licence just the same \u2014 so it is installed by everything that depends on this repository, not just by its build toolchain. A package offering SEVERAL licences is a choice and is only charged when every one of them is banned. Replace the package (or the dependency that pulls it in), or record an accepted exception."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pnpm-lock.yaml"},"region":{"startLine":1171}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b62e5228faaa55ee336d46286dfff038ae0b0267b8d332b6baf0e56572f97a8"}},{"ruleId":"D14","level":"error","message":{"text":"Banned license: @ffmpeg-installer/linux-ia32: \u0060@ffmpeg-installer/linux-ia32\u0060 4.1.0 is published on registry.npmjs.org under \u0060GPL-3.0\u0060 (spelled \u0060GPLv3\u0060 there, which npm\u0027s own validator reads as that id), which this policy bans, and it is not declared by this repository but is installed by one of its production, optional or peer dependencies, as its committed lockfile resolves \u2014 a transitive dependency ships its licence just the same \u2014 so it is installed by everything that depends on this repository, not just by its build toolchain. A package offering SEVERAL licences is a choice and is only charged when every one of them is banned. Replace the package (or the dependency that pulls it in), or record an accepted exception."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pnpm-lock.yaml"},"region":{"startLine":1181}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e4263190bc423b585cfec2f7e79a13c97c28210337bd4339420f7c033710f78"}},{"ruleId":"D14","level":"error","message":{"text":"Banned license: @ffmpeg-installer/linux-x64: \u0060@ffmpeg-installer/linux-x64\u0060 4.1.0 is published on registry.npmjs.org under \u0060GPL-3.0\u0060 (spelled \u0060GPLv3\u0060 there, which npm\u0027s own validator reads as that id), which this policy bans, and it is not declared by this repository but is installed by one of its production, optional or peer dependencies, as its committed lockfile resolves \u2014 a transitive dependency ships its licence just the same \u2014 so it is installed by everything that depends on this repository, not just by its build toolchain. A package offering SEVERAL licences is a choice and is only charged when every one of them is banned. Replace the package (or the dependency that pulls it in), or record an accepted exception."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pnpm-lock.yaml"},"region":{"startLine":1186}}}],"partialFingerprints":{"codehealthFindingId/v1":"f34dba5cd32b0bbdc4a8a7ae701810dc84f129e072b31ba03d615ddee5d829dc"}},{"ruleId":"D14","level":"error","message":{"text":"Banned license: @ffmpeg-installer/win32-ia32: \u0060@ffmpeg-installer/win32-ia32\u0060 4.1.0 is published on registry.npmjs.org under \u0060GPL-3.0\u0060 (spelled \u0060GPLv3\u0060 there, which npm\u0027s own validator reads as that id), which this policy bans, and it is not declared by this repository but is installed by one of its production, optional or peer dependencies, as its committed lockfile resolves \u2014 a transitive dependency ships its licence just the same \u2014 so it is installed by everything that depends on this repository, not just by its build toolchain. A package offering SEVERAL licences is a choice and is only charged when every one of them is banned. Replace the package (or the dependency that pulls it in), or record an accepted exception."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pnpm-lock.yaml"},"region":{"startLine":1191}}}],"partialFingerprints":{"codehealthFindingId/v1":"d81dfbc4f1e45307cffbcec18e0761ba77d9f3757f432e25a8bca63c2f046801"}},{"ruleId":"D14","level":"error","message":{"text":"Banned license: @ffmpeg-installer/win32-x64: \u0060@ffmpeg-installer/win32-x64\u0060 4.1.0 is published on registry.npmjs.org under \u0060GPL-3.0\u0060 (spelled \u0060GPLv3\u0060 there, which npm\u0027s own validator reads as that id), which this policy bans, and it is not declared by this repository but is installed by one of its production, optional or peer dependencies, as its committed lockfile resolves \u2014 a transitive dependency ships its licence just the same \u2014 so it is installed by everything that depends on this repository, not just by its build toolchain. A package offering SEVERAL licences is a choice and is only charged when every one of them is banned. Replace the package (or the dependency that pulls it in), or record an accepted exception."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pnpm-lock.yaml"},"region":{"startLine":1196}}}],"partialFingerprints":{"codehealthFindingId/v1":"71fe653a4aab8f24794701bed49f1399db235b145e3dcaa37d4e2c262a63d7ee"}},{"ruleId":"D14","level":"error","message":{"text":"Banned license: @img/sharp-libvips-darwin-arm64: \u0060@img/sharp-libvips-darwin-arm64\u0060 1.3.4 is published on registry.npmjs.org under \u0060LGPL-3.0-or-later\u0060, which this policy bans, and it is not declared by this repository but is installed by one of its production, optional or peer dependencies, as its committed lockfile resolves \u2014 a transitive dependency ships its licence just the same \u2014 so it is installed by everything that depends on this repository, not just by its build toolchain. A package offering SEVERAL licences is a choice and is only charged when every one of them is banned. Replace the package (or the dependency that pulls it in), or record an accepted exception. \u2605 The licence that makes this row is LGPL-3.0, and unmodified use is often permitted: the LGPL lets your code use an UNMODIFIED copy of the library that stays a separately installed package (its own entry in node_modules, site-packages or the gem path, which a user can replace) without your code coming under the LGPL. What it then asks is that you pass on its licence and notices and let users swap in their own build of it (LGPL-3.0 section 4). Modifying it, copying its code into yours, or merging it into one bundled or statically linked artifact is where the obligations grow, and this policy cannot see which you do \u2014 that is why it denies LGPL-3.0 by default. If you use it unmodified and separately installed, allow it in your repository\u0027s licence policy rather than replacing it: add \u0060LGPL-3.0-only\u0060 / \u0060LGPL-3.0-or-later\u0060 to the allow-list of the licence check your CI runs (\u0060license-checker --onlyAllow\u0060, the \u0060allow-licenses\u0060 input of GitHub\u0027s dependency-review-action, \u0060[licenses] allow\u0060 in cargo-deny\u0027s deny.toml), record why in the same change, and hide this row on the findings page with that reason. This scan\u0027s banned set is not read from that file, so the row stays until it is hidden."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pnpm-lock.yaml"},"region":{"startLine":1270}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cb9cac83efbb8fb5b1b1714cd7ce06ef46586b0cb953bfde13d5cef10838aa9"}},{"ruleId":"D14","level":"error","message":{"text":"Banned license: @img/sharp-libvips-darwin-x64: \u0060@img/sharp-libvips-darwin-x64\u0060 1.3.4 is published on registry.npmjs.org under \u0060LGPL-3.0-or-later\u0060, which this policy bans, and it is not declared by this repository but is installed by one of its production, optional or peer dependencies, as its committed lockfile resolves \u2014 a transitive dependency ships its licence just the same \u2014 so it is installed by everything that depends on this repository, not just by its build toolchain. A package offering SEVERAL licences is a choice and is only charged when every one of them is banned. Replace the package (or the dependency that pulls it in), or record an accepted exception. \u2605 The licence that makes this row is LGPL-3.0, and unmodified use is often permitted: the LGPL lets your code use an UNMODIFIED copy of the library that stays a separately installed package (its own entry in node_modules, site-packages or the gem path, which a user can replace) without your code coming under the LGPL. What it then asks is that you pass on its licence and notices and let users swap in their own build of it (LGPL-3.0 section 4). Modifying it, copying its code into yours, or merging it into one bundled or statically linked artifact is where the obligations grow, and this policy cannot see which you do \u2014 that is why it denies LGPL-3.0 by default. If you use it unmodified and separately installed, allow it in your repository\u0027s licence policy rather than replacing it: add \u0060LGPL-3.0-only\u0060 / \u0060LGPL-3.0-or-later\u0060 to the allow-list of the licence check your CI runs (\u0060license-checker --onlyAllow\u0060, the \u0060allow-licenses\u0060 input of GitHub\u0027s dependency-review-action, \u0060[licenses] allow\u0060 in cargo-deny\u0027s deny.toml), record why in the same change, and hide this row on the findings page with that reason. This scan\u0027s banned set is not read from that file, so the row stays until it is hidden."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pnpm-lock.yaml"},"region":{"startLine":1275}}}],"partialFingerprints":{"codehealthFindingId/v1":"81de28cedeef63f197969d04616e27ba4aeb27e4375cfebf400bfd8540537a9c"}},{"ruleId":"D14","level":"error","message":{"text":"Banned license: @img/sharp-libvips-linux-arm: \u0060@img/sharp-libvips-linux-arm\u0060 1.3.4 is published on registry.npmjs.org under \u0060LGPL-3.0-or-later\u0060, which this policy bans, and it is not declared by this repository but is installed by one of its production, optional or peer dependencies, as its committed lockfile resolves \u2014 a transitive dependency ships its licence just the same \u2014 so it is installed by everything that depends on this repository, not just by its build toolchain. A package offering SEVERAL licences is a choice and is only charged when every one of them is banned. Replace the package (or the dependency that pulls it in), or record an accepted exception. \u2605 The licence that makes this row is LGPL-3.0, and unmodified use is often permitted: the LGPL lets your code use an UNMODIFIED copy of the library that stays a separately installed package (its own entry in node_modules, site-packages or the gem path, which a user can replace) without your code coming under the LGPL. What it then asks is that you pass on its licence and notices and let users swap in their own build of it (LGPL-3.0 section 4). Modifying it, copying its code into yours, or merging it into one bundled or statically linked artifact is where the obligations grow, and this policy cannot see which you do \u2014 that is why it denies LGPL-3.0 by default. If you use it unmodified and separately installed, allow it in your repository\u0027s licence policy rather than replacing it: add \u0060LGPL-3.0-only\u0060 / \u0060LGPL-3.0-or-later\u0060 to the allow-list of the licence check your CI runs (\u0060license-checker --onlyAllow\u0060, the \u0060allow-licenses\u0060 input of GitHub\u0027s dependency-review-action, \u0060[licenses] allow\u0060 in cargo-deny\u0027s deny.toml), record why in the same change, and hide this row on the findings page with that reason. This scan\u0027s banned set is not read from that file, so the row stays until it is hidden."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pnpm-lock.yaml"},"region":{"startLine":1286}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed930a6d1b3ac4b890509506dec0a58727b515b0b43327cc1a4b4298e79514d8"}},{"ruleId":"D14","level":"error","message":{"text":"Banned license: @img/sharp-libvips-linux-arm64: \u0060@img/sharp-libvips-linux-arm64\u0060 1.3.4 is published on registry.npmjs.org under \u0060LGPL-3.0-or-later\u0060, which this policy bans, and it is not declared by this repository but is installed by one of its production, optional or peer dependencies, as its committed lockfile resolves \u2014 a transitive dependency ships its licence just the same \u2014 so it is installed by everything that depends on this repository, not just by its build toolchain. A package offering SEVERAL licences is a choice and is only charged when every one of them is banned. Replace the package (or the dependency that pulls it in), or record an accepted exception. \u2605 The licence that makes this row is LGPL-3.0, and unmodified use is often permitted: the LGPL lets your code use an UNMODIFIED copy of the library that stays a separately installed package (its own entry in node_modules, site-packages or the gem path, which a user can replace) without your code coming under the LGPL. What it then asks is that you pass on its licence and notices and let users swap in their own build of it (LGPL-3.0 section 4). Modifying it, copying its code into yours, or merging it into one bundled or statically linked artifact is where the obligations grow, and this policy cannot see which you do \u2014 that is why it denies LGPL-3.0 by default. If you use it unmodified and separately installed, allow it in your repository\u0027s licence policy rather than replacing it: add \u0060LGPL-3.0-only\u0060 / \u0060LGPL-3.0-or-later\u0060 to the allow-list of the licence check your CI runs (\u0060license-checker --onlyAllow\u0060, the \u0060allow-licenses\u0060 input of GitHub\u0027s dependency-review-action, \u0060[licenses] allow\u0060 in cargo-deny\u0027s deny.toml), record why in the same change, and hide this row on the findings page with that reason. This scan\u0027s banned set is not read from that file, so the row stays until it is hidden."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pnpm-lock.yaml"},"region":{"startLine":1280}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf1b9a31ae3b29118432d1284fc0c855fbfbf2bc26303258aa349bed6999fa27"}},{"ruleId":"D14","level":"error","message":{"text":"Banned license: @img/sharp-libvips-linux-ppc64: \u0060@img/sharp-libvips-linux-ppc64\u0060 1.3.4 is published on registry.npmjs.org under \u0060LGPL-3.0-or-later\u0060, which this policy bans, and it is not declared by this repository but is installed by one of its production, optional or peer dependencies, as its committed lockfile resolves \u2014 a transitive dependency ships its licence just the same \u2014 so it is installed by everything that depends on this repository, not just by its build toolchain. A package offering SEVERAL licences is a choice and is only charged when every one of them is banned. Replace the package (or the dependency that pulls it in), or record an accepted exception. \u2605 The licence that makes this row is LGPL-3.0, and unmodified use is often permitted: the LGPL lets your code use an UNMODIFIED copy of the library that stays a separately installed package (its own entry in node_modules, site-packages or the gem path, which a user can replace) without your code coming under the LGPL. What it then asks is that you pass on its licence and notices and let users swap in their own build of it (LGPL-3.0 section 4). Modifying it, copying its code into yours, or merging it into one bundled or statically linked artifact is where the obligations grow, and this policy cannot see which you do \u2014 that is why it denies LGPL-3.0 by default. If you use it unmodified and separately installed, allow it in your repository\u0027s licence policy rather than replacing it: add \u0060LGPL-3.0-only\u0060 / \u0060LGPL-3.0-or-later\u0060 to the allow-list of the licence check your CI runs (\u0060license-checker --onlyAllow\u0060, the \u0060allow-licenses\u0060 input of GitHub\u0027s dependency-review-action, \u0060[licenses] allow\u0060 in cargo-deny\u0027s deny.toml), record why in the same change, and hide this row on the findings page with that reason. This scan\u0027s banned set is not read from that file, so the row stays until it is hidden."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pnpm-lock.yaml"},"region":{"startLine":1292}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b20c11a65955bafb54a0fe488a53c597a9857c6aea42950b92968a57c6553f1"}},{"ruleId":"D14","level":"error","message":{"text":"Banned license: @img/sharp-libvips-linux-riscv64: \u0060@img/sharp-libvips-linux-riscv64\u0060 1.3.4 is published on registry.npmjs.org under \u0060LGPL-3.0-or-later\u0060, which this policy bans, and it is not declared by this repository but is installed by one of its production, optional or peer dependencies, as its committed lockfile resolves \u2014 a transitive dependency ships its licence just the same \u2014 so it is installed by everything that depends on this repository, not just by its build toolchain. A package offering SEVERAL licences is a choice and is only charged when every one of them is banned. Replace the package (or the dependency that pulls it in), or record an accepted exception. \u2605 The licence that makes this row is LGPL-3.0, and unmodified use is often permitted: the LGPL lets your code use an UNMODIFIED copy of the library that stays a separately installed package (its own entry in node_modules, site-packages or the gem path, which a user can replace) without your code coming under the LGPL. What it then asks is that you pass on its licence and notices and let users swap in their own build of it (LGPL-3.0 section 4). Modifying it, copying its code into yours, or merging it into one bundled or statically linked artifact is where the obligations grow, and this policy cannot see which you do \u2014 that is why it denies LGPL-3.0 by default. If you use it unmodified and separately installed, allow it in your repository\u0027s licence policy rather than replacing it: add \u0060LGPL-3.0-only\u0060 / \u0060LGPL-3.0-or-later\u0060 to the allow-list of the licence check your CI runs (\u0060license-checker --onlyAllow\u0060, the \u0060allow-licenses\u0060 input of GitHub\u0027s dependency-review-action, \u0060[licenses] allow\u0060 in cargo-deny\u0027s deny.toml), record why in the same change, and hide this row on the findings page with that reason. This scan\u0027s banned set is not read from that file, so the row stays until it is hidden."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pnpm-lock.yaml"},"region":{"startLine":1298}}}],"partialFingerprints":{"codehealthFindingId/v1":"51fa7dd2c5433945143e886736f323d34568a1815de5755ea55f247d83db2255"}},{"ruleId":"D14","level":"error","message":{"text":"Banned license: @img/sharp-libvips-linux-s390x: \u0060@img/sharp-libvips-linux-s390x\u0060 1.3.4 is published on registry.npmjs.org under \u0060LGPL-3.0-or-later\u0060, which this policy bans, and it is not declared by this repository but is installed by one of its production, optional or peer dependencies, as its committed lockfile resolves \u2014 a transitive dependency ships its licence just the same \u2014 so it is installed by everything that depends on this repository, not just by its build toolchain. A package offering SEVERAL licences is a choice and is only charged when every one of them is banned. Replace the package (or the dependency that pulls it in), or record an accepted exception. \u2605 The licence that makes this row is LGPL-3.0, and unmodified use is often permitted: the LGPL lets your code use an UNMODIFIED copy of the library that stays a separately installed package (its own entry in node_modules, site-packages or the gem path, which a user can replace) without your code coming under the LGPL. What it then asks is that you pass on its licence and notices and let users swap in their own build of it (LGPL-3.0 section 4). Modifying it, copying its code into yours, or merging it into one bundled or statically linked artifact is where the obligations grow, and this policy cannot see which you do \u2014 that is why it denies LGPL-3.0 by default. If you use it unmodified and separately installed, allow it in your repository\u0027s licence policy rather than replacing it: add \u0060LGPL-3.0-only\u0060 / \u0060LGPL-3.0-or-later\u0060 to the allow-list of the licence check your CI runs (\u0060license-checker --onlyAllow\u0060, the \u0060allow-licenses\u0060 input of GitHub\u0027s dependency-review-action, \u0060[licenses] allow\u0060 in cargo-deny\u0027s deny.toml), record why in the same change, and hide this row on the findings page with that reason. This scan\u0027s banned set is not read from that file, so the row stays until it is hidden."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pnpm-lock.yaml"},"region":{"startLine":1304}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e3d0fc4342775e0cda07639d86e20b7ecd506920fa0b1a66c6f1ebfb1f8c2ab"}},{"ruleId":"D14","level":"error","message":{"text":"Banned license: @img/sharp-libvips-linux-x64: \u0060@img/sharp-libvips-linux-x64\u0060 1.3.4 is published on registry.npmjs.org under \u0060LGPL-3.0-or-later\u0060, which this policy bans, and it is not declared by this repository but is installed by one of its production, optional or peer dependencies, as its committed lockfile resolves \u2014 a transitive dependency ships its licence just the same \u2014 so it is installed by everything that depends on this repository, not just by its build toolchain. A package offering SEVERAL licences is a choice and is only charged when every one of them is banned. Replace the package (or the dependency that pulls it in), or record an accepted exception. \u2605 The licence that makes this row is LGPL-3.0, and unmodified use is often permitted: the LGPL lets your code use an UNMODIFIED copy of the library that stays a separately installed package (its own entry in node_modules, site-packages or the gem path, which a user can replace) without your code coming under the LGPL. What it then asks is that you pass on its licence and notices and let users swap in their own build of it (LGPL-3.0 section 4). Modifying it, copying its code into yours, or merging it into one bundled or statically linked artifact is where the obligations grow, and this policy cannot see which you do \u2014 that is why it denies LGPL-3.0 by default. If you use it unmodified and separately installed, allow it in your repository\u0027s licence policy rather than replacing it: add \u0060LGPL-3.0-only\u0060 / \u0060LGPL-3.0-or-later\u0060 to the allow-list of the licence check your CI runs (\u0060license-checker --onlyAllow\u0060, the \u0060allow-licenses\u0060 input of GitHub\u0027s dependency-review-action, \u0060[licenses] allow\u0060 in cargo-deny\u0027s deny.toml), record why in the same change, and hide this row on the findings page with that reason. This scan\u0027s banned set is not read from that file, so the row stays until it is hidden."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pnpm-lock.yaml"},"region":{"startLine":1310}}}],"partialFingerprints":{"codehealthFindingId/v1":"e740d28a1384feb307d2f24d03cf2e2e13a5d6eda920a4040480f40df2e9d50b"}},{"ruleId":"D14","level":"error","message":{"text":"Banned license: @img/sharp-libvips-linuxmusl-arm64: \u0060@img/sharp-libvips-linuxmusl-arm64\u0060 1.3.4 is published on registry.npmjs.org under \u0060LGPL-3.0-or-later\u0060, which this policy bans, and it is not declared by this repository but is installed by one of its production, optional or peer dependencies, as its committed lockfile resolves \u2014 a transitive dependency ships its licence just the same \u2014 so it is installed by everything that depends on this repository, not just by its build toolchain. A package offering SEVERAL licences is a choice and is only charged when every one of them is banned. Replace the package (or the dependency that pulls it in), or record an accepted exception. \u2605 The licence that makes this row is LGPL-3.0, and unmodified use is often permitted: the LGPL lets your code use an UNMODIFIED copy of the library that stays a separately installed package (its own entry in node_modules, site-packages or the gem path, which a user can replace) without your code coming under the LGPL. What it then asks is that you pass on its licence and notices and let users swap in their own build of it (LGPL-3.0 section 4). Modifying it, copying its code into yours, or merging it into one bundled or statically linked artifact is where the obligations grow, and this policy cannot see which you do \u2014 that is why it denies LGPL-3.0 by default. If you use it unmodified and separately installed, allow it in your repository\u0027s licence policy rather than replacing it: add \u0060LGPL-3.0-only\u0060 / \u0060LGPL-3.0-or-later\u0060 to the allow-list of the licence check your CI runs (\u0060license-checker --onlyAllow\u0060, the \u0060allow-licenses\u0060 input of GitHub\u0027s dependency-review-action, \u0060[licenses] allow\u0060 in cargo-deny\u0027s deny.toml), record why in the same change, and hide this row on the findings page with that reason. This scan\u0027s banned set is not read from that file, so the row stays until it is hidden."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pnpm-lock.yaml"},"region":{"startLine":1316}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6ce0111811bc0c564efe3bc5758a9fe2ff77adefe8940d96c0e94f001dc6bb6"}},{"ruleId":"D14","level":"error","message":{"text":"Banned license: @img/sharp-libvips-linuxmusl-x64: \u0060@img/sharp-libvips-linuxmusl-x64\u0060 1.3.4 is published on registry.npmjs.org under \u0060LGPL-3.0-or-later\u0060, which this policy bans, and it is not declared by this repository but is installed by one of its production, optional or peer dependencies, as its committed lockfile resolves \u2014 a transitive dependency ships its licence just the same \u2014 so it is installed by everything that depends on this repository, not just by its build toolchain. A package offering SEVERAL licences is a choice and is only charged when every one of them is banned. Replace the package (or the dependency that pulls it in), or record an accepted exception. \u2605 The licence that makes this row is LGPL-3.0, and unmodified use is often permitted: the LGPL lets your code use an UNMODIFIED copy of the library that stays a separately installed package (its own entry in node_modules, site-packages or the gem path, which a user can replace) without your code coming under the LGPL. What it then asks is that you pass on its licence and notices and let users swap in their own build of it (LGPL-3.0 section 4). Modifying it, copying its code into yours, or merging it into one bundled or statically linked artifact is where the obligations grow, and this policy cannot see which you do \u2014 that is why it denies LGPL-3.0 by default. If you use it unmodified and separately installed, allow it in your repository\u0027s licence policy rather than replacing it: add \u0060LGPL-3.0-only\u0060 / \u0060LGPL-3.0-or-later\u0060 to the allow-list of the licence check your CI runs (\u0060license-checker --onlyAllow\u0060, the \u0060allow-licenses\u0060 input of GitHub\u0027s dependency-review-action, \u0060[licenses] allow\u0060 in cargo-deny\u0027s deny.toml), record why in the same change, and hide this row on the findings page with that reason. This scan\u0027s banned set is not read from that file, so the row stays until it is hidden."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pnpm-lock.yaml"},"region":{"startLine":1322}}}],"partialFingerprints":{"codehealthFindingId/v1":"e91fe0a042e1c39cd9d87efaed4be891aa907345e587e25c7d6b01efdaaffd89"}},{"ruleId":"D14","level":"error","message":{"text":"Banned license: @img/sharp-wasm32: \u0060@img/sharp-wasm32\u0060 0.35.5 is published on registry.npmjs.org under \u0060Apache-2.0 AND LGPL-3.0-or-later AND MIT\u0060, which this policy bans, and it is not declared by this repository but is installed by one of its production, optional or peer dependencies, as its committed lockfile resolves \u2014 a transitive dependency ships its licence just the same \u2014 so it is installed by everything that depends on this repository, not just by its build toolchain. A package offering SEVERAL licences is a choice and is only charged when every one of them is banned. Replace the package (or the dependency that pulls it in), or record an accepted exception. \u2605 The licence that makes this row is LGPL-3.0, and unmodified use is often permitted: the LGPL lets your code use an UNMODIFIED copy of the library that stays a separately installed package (its own entry in node_modules, site-packages or the gem path, which a user can replace) without your code coming under the LGPL. What it then asks is that you pass on its licence and notices and let users swap in their own build of it (LGPL-3.0 section 4). Modifying it, copying its code into yours, or merging it into one bundled or statically linked artifact is where the obligations grow, and this policy cannot see which you do \u2014 that is why it denies LGPL-3.0 by default. If you use it unmodified and separately installed, allow it in your repository\u0027s licence policy rather than replacing it: add \u0060LGPL-3.0-only\u0060 / \u0060LGPL-3.0-or-later\u0060 to the allow-list of the licence check your CI runs (\u0060license-checker --onlyAllow\u0060, the \u0060allow-licenses\u0060 input of GitHub\u0027s dependency-review-action, \u0060[licenses] allow\u0060 in cargo-deny\u0027s deny.toml), record why in the same change, and hide this row on the findings page with that reason. This scan\u0027s banned set is not read from that file, so the row stays until it is hidden."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pnpm-lock.yaml"},"region":{"startLine":1384}}}],"partialFingerprints":{"codehealthFindingId/v1":"1135ffbb448d71e8cb7f5d4d9fb10acf52d978f9eb537a0cd1f2166ada470428"}},{"ruleId":"D14","level":"error","message":{"text":"Banned license: @img/sharp-win32-arm64: \u0060@img/sharp-win32-arm64\u0060 0.35.5 is published on registry.npmjs.org under \u0060Apache-2.0 AND LGPL-3.0-or-later\u0060, which this policy bans, and it is not declared by this repository but is installed by one of its production, optional or peer dependencies, as its committed lockfile resolves \u2014 a transitive dependency ships its licence just the same \u2014 so it is installed by everything that depends on this repository, not just by its build toolchain. A package offering SEVERAL licences is a choice and is only charged when every one of them is banned. Replace the package (or the dependency that pulls it in), or record an accepted exception. \u2605 The licence that makes this row is LGPL-3.0, and unmodified use is often permitted: the LGPL lets your code use an UNMODIFIED copy of the library that stays a separately installed package (its own entry in node_modules, site-packages or the gem path, which a user can replace) without your code coming under the LGPL. What it then asks is that you pass on its licence and notices and let users swap in their own build of it (LGPL-3.0 section 4). Modifying it, copying its code into yours, or merging it into one bundled or statically linked artifact is where the obligations grow, and this policy cannot see which you do \u2014 that is why it denies LGPL-3.0 by default. If you use it unmodified and separately installed, allow it in your repository\u0027s licence policy rather than replacing it: add \u0060LGPL-3.0-only\u0060 / \u0060LGPL-3.0-or-later\u0060 to the allow-list of the licence check your CI runs (\u0060license-checker --onlyAllow\u0060, the \u0060allow-licenses\u0060 input of GitHub\u0027s dependency-review-action, \u0060[licenses] allow\u0060 in cargo-deny\u0027s deny.toml), record why in the same change, and hide this row on the findings page with that reason. This scan\u0027s banned set is not read from that file, so the row stays until it is hidden."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pnpm-lock.yaml"},"region":{"startLine":1393}}}],"partialFingerprints":{"codehealthFindingId/v1":"7501b1efe547a916924b31662388631addbf15548a0d166cc082f57b0eb7a93d"}},{"ruleId":"D14","level":"error","message":{"text":"Banned license: @img/sharp-win32-ia32: \u0060@img/sharp-win32-ia32\u0060 0.35.5 is published on registry.npmjs.org under \u0060Apache-2.0 AND LGPL-3.0-or-later\u0060, which this policy bans, and it is not declared by this repository but is installed by one of its production, optional or peer dependencies, as its committed lockfile resolves \u2014 a transitive dependency ships its licence just the same \u2014 so it is installed by everything that depends on this repository, not just by its build toolchain. A package offering SEVERAL licences is a choice and is only charged when every one of them is banned. Replace the package (or the dependency that pulls it in), or record an accepted exception. \u2605 The licence that makes this row is LGPL-3.0, and unmodified use is often permitted: the LGPL lets your code use an UNMODIFIED copy of the library that stays a separately installed package (its own entry in node_modules, site-packages or the gem path, which a user can replace) without your code coming under the LGPL. What it then asks is that you pass on its licence and notices and let users swap in their own build of it (LGPL-3.0 section 4). Modifying it, copying its code into yours, or merging it into one bundled or statically linked artifact is where the obligations grow, and this policy cannot see which you do \u2014 that is why it denies LGPL-3.0 by default. If you use it unmodified and separately installed, allow it in your repository\u0027s licence policy rather than replacing it: add \u0060LGPL-3.0-only\u0060 / \u0060LGPL-3.0-or-later\u0060 to the allow-list of the licence check your CI runs (\u0060license-checker --onlyAllow\u0060, the \u0060allow-licenses\u0060 input of GitHub\u0027s dependency-review-action, \u0060[licenses] allow\u0060 in cargo-deny\u0027s deny.toml), record why in the same change, and hide this row on the findings page with that reason. This scan\u0027s banned set is not read from that file, so the row stays until it is hidden."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pnpm-lock.yaml"},"region":{"startLine":1399}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee7e073ff938556e3b1cdba3c54fe725620ac7ffe9e735802eeadb3dcc853d57"}},{"ruleId":"D14","level":"error","message":{"text":"Banned license: @img/sharp-win32-x64: \u0060@img/sharp-win32-x64\u0060 0.35.5 is published on registry.npmjs.org under \u0060Apache-2.0 AND LGPL-3.0-or-later\u0060, which this policy bans, and it is not declared by this repository but is installed by one of its production, optional or peer dependencies, as its committed lockfile resolves \u2014 a transitive dependency ships its licence just the same \u2014 so it is installed by everything that depends on this repository, not just by its build toolchain. A package offering SEVERAL licences is a choice and is only charged when every one of them is banned. Replace the package (or the dependency that pulls it in), or record an accepted exception. \u2605 The licence that makes this row is LGPL-3.0, and unmodified use is often permitted: the LGPL lets your code use an UNMODIFIED copy of the library that stays a separately installed package (its own entry in node_modules, site-packages or the gem path, which a user can replace) without your code coming under the LGPL. What it then asks is that you pass on its licence and notices and let users swap in their own build of it (LGPL-3.0 section 4). Modifying it, copying its code into yours, or merging it into one bundled or statically linked artifact is where the obligations grow, and this policy cannot see which you do \u2014 that is why it denies LGPL-3.0 by default. If you use it unmodified and separately installed, allow it in your repository\u0027s licence policy rather than replacing it: add \u0060LGPL-3.0-only\u0060 / \u0060LGPL-3.0-or-later\u0060 to the allow-list of the licence check your CI runs (\u0060license-checker --onlyAllow\u0060, the \u0060allow-licenses\u0060 input of GitHub\u0027s dependency-review-action, \u0060[licenses] allow\u0060 in cargo-deny\u0027s deny.toml), record why in the same change, and hide this row on the findings page with that reason. This scan\u0027s banned set is not read from that file, so the row stays until it is hidden."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pnpm-lock.yaml"},"region":{"startLine":1405}}}],"partialFingerprints":{"codehealthFindingId/v1":"376605ff2c96456f54476e6225693261afc28ecb15a09757b469cf8cfd84bf3d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: components/workflow/video-workflow-create.tsx: components/workflow/video-workflow-create.tsx changed 75 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 383 in video-workflow-create.VideoWorkflowCreate at line 308. 2 of those changes were fix/bug commits, and the other 73 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- components/workflow/video-workflow-create.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/workflow/video-workflow-create.tsx"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"bea92f97041d56408f24756ff2377f80c7f760fbde695d755076b064e7b8c14d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: components/reference-video/ReferenceVideoComposer.tsx: components/reference-video/ReferenceVideoComposer.tsx changed 36 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 329 in ReferenceVideoComposer.ReferenceVideoComposer at line 279. 2 of those changes were fix/bug commits, and the other 34 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- components/reference-video/ReferenceVideoComposer.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/reference-video/ReferenceVideoComposer.tsx"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"77db2102cb78c7867e18152e963b12295ca345e27f57f004b7115565bf766f81"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: components/payments/analysis-quote-panel.tsx: components/payments/analysis-quote-panel.tsx changed 35 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 216 in analysis-quote-panel.AnalysisQuotePanel at line 23. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- components/payments/analysis-quote-panel.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/payments/analysis-quote-panel.tsx"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ba7fe5a732b865ce178d5f18c111c00325c667bfe732aac5d21f98f95034c01"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: components/payments/alipay-checkout-dialog.tsx: components/payments/alipay-checkout-dialog.tsx changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 169 in alipay-checkout-dialog.AlipayCheckoutDialog at line 17. 3 of those changes were fix/bug commits, and the other 12 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- components/payments/alipay-checkout-dialog.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/payments/alipay-checkout-dialog.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcaf942b2a3af08c68c04c19743e5ea168d17f6d2fb18e537802954b0d6c9f91"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/dashboard/page.tsx: app/dashboard/page.tsx changed 22 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 94 in page.DashboardPage at line 26. 3 of those changes were fix/bug commits, and the other 19 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- app/dashboard/page.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/dashboard/page.tsx"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"42dc507d5e4e39c22d07ea1eb79fb28860871d1dddbd84b92ec4ac84a879659c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/api/commercial/tasks/[id]/route.ts: app/api/commercial/tasks/[id]/route.ts changed 22 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 66 in route.GET at line 38. 1 of those changes was a fix/bug commit, and the other 21 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- app/api/commercial/tasks/[id]/route.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":"app/api/commercial/tasks/[id]/route.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9dafb095240df07c22d9ff091660443fabcb59a9ab4966077a5ebd86899d31e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/billing/commercial-analysis.ts: lib/billing/commercial-analysis.ts changed 37 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in commercial-analysis.executeCommercialAnalysis at line 132. 1 of those changes was a fix/bug commit, and the other 36 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- lib/billing/commercial-analysis.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":"lib/billing/commercial-analysis.ts"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"54c5ba5fb6b92914f3f9137c1960543998b2c5ab82ca95fbb66bf145299f9600"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/billing/review/page.tsx: app/billing/review/page.tsx changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 126 in page.CommercialReviewPage at line 9. 1 of those changes was a fix/bug commit, 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- app/billing/review/page.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/billing/review/page.tsx"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"0222a7214d19c82caa3c0c9f035e32ba95cd929248e6fa3f7e459e969ed4b1f1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/billing/pricing-v6.ts: lib/billing/pricing-v6.ts changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 84 in pricing-v6.estimateGeneration 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- lib/billing/pricing-v6.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":"lib/billing/pricing-v6.ts"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e1556438e6f501bc2a03fb180de9e0c04a13d5a6af54fdeed737a33c25c5cb7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/workflow/analysis-tasks.ts: lib/workflow/analysis-tasks.ts changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 54 in analysis-tasks.runAnalysisTaskStep 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- lib/workflow/analysis-tasks.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":"lib/workflow/analysis-tasks.ts"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8110a01262eeeed729650e1b0e2bfdad353c24a5c97ed2aad9e0d1f6ae43cdb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: components/audio-analyze-tab.tsx: components/audio-analyze-tab.tsx changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 87 in audio-analyze-tab.AudioAnalyzeTab at line 73. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- components/audio-analyze-tab.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/audio-analyze-tab.tsx"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa1580d932f458a1087bfc216f88be6579752cf50fe91bc116ba5585874aca96"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/workflow/scene-analysis.ts: lib/workflow/scene-analysis.ts changed 30 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in scene-analysis.rewriteSceneBlueprint at line 447. 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- lib/workflow/scene-analysis.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":"lib/workflow/scene-analysis.ts"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"d53cd94a4151108f5dff721643d749b2adf5b28c7154592a56718456092752bb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/billing/independent-scene-analysis.ts: lib/billing/independent-scene-analysis.ts changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 44 in independent-scene-analysis.saveSceneCheckpoint at line 55. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- lib/billing/independent-scene-analysis.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":"lib/billing/independent-scene-analysis.ts"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"b87028412f2d8a45e7d3156d4dec2534f098416d943b76c3176aad7faf6b2551"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: components/payments/billing-account.tsx: components/payments/billing-account.tsx changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 116 in billing-account.BillingAccount 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- components/payments/billing-account.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/payments/billing-account.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"de9bed6d1814e55b72e9a88681d7f5c07f54bb5b3925deacfd8fbdcdf0bef32b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: components/video-edit-tab.tsx: components/video-edit-tab.tsx changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 80 in video-edit-tab.VideoEditTab at line 46. 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- components/video-edit-tab.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/video-edit-tab.tsx"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e473fc1f9c91a4bdd38a325e5f103a5a15890d3963273095eb448290c850f4e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: components/landing/pricing-section.tsx: components/landing/pricing-section.tsx changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in pricing-section.PricingSection at line 11. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- components/landing/pricing-section.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/landing/pricing-section.tsx"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff6e3239d240c05915a9eb6c95b26a769056504885475ce1c663b1c96127c0c5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/api/generation-jobs/route.ts: app/api/generation-jobs/route.ts changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 49 in route.POST at line 127. 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- app/api/generation-jobs/route.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":"app/api/generation-jobs/route.ts"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cb8180c62f0247afd3422850bcedfed95024e73b522d4e7463985ad06b753dd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/api/workflow/projects/[id]/scenes/[sceneVersionId]/rewrite/route.ts: app/api/workflow/projects/[id]/scenes/[sceneVersionId]/rewrite/route.ts changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 50 in route.POST at line 15. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- app/api/workflow/projects/[id]/scenes/[sceneVersionId]/rewrite/route.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":"app/api/workflow/projects/[id]/scenes/[sceneVersionId]/rewrite/route.ts"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"303983fa0630fba8385f88ca5e519f7b978e6f426e7f11c15fd49971d5515dde"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: components/api-key-settings.tsx: components/api-key-settings.tsx changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 45 in api-key-settings.ApiKeySettings at line 16. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- components/api-key-settings.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/api-key-settings.tsx"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"40178d3afdfd97de17fbe8ff0022cefea7aa7aa0c14ae6b30e0dfb98507421dd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/guide/credit-rules.ts: app/guide/credit-rules.ts changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in credit-rules.creditRuleTopics at line 9. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- app/guide/credit-rules.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":"app/guide/credit-rules.ts"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"e596f97a2be13c57216473e26236d12b6dfab868b482bb5c0c200af3585b349b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: workers/ffmpeg-worker/server.mjs: workers/ffmpeg-worker/server.mjs changed 23 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in server.handleCommercialMedia 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- workers/ffmpeg-worker/server.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":"workers/ffmpeg-worker/server.mjs"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb350c4f543ba16dd5c8ccd9e9acf8bbc9010b81a7c1558169afe4250dae30c0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/api/admin/payments/commercial/route.ts: app/api/admin/payments/commercial/route.ts changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in route.POST at line 36. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- app/api/admin/payments/commercial/route.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":"app/api/admin/payments/commercial/route.ts"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9bbe5bdd930bcd005d9049365941e6be4381dc3d433379f09c75e40eae1b3ee"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: components/admin-overview-panel.tsx: components/admin-overview-panel.tsx changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in admin-overview-panel.AdminOverviewPanel at line 110. 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- components/admin-overview-panel.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/admin-overview-panel.tsx"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"f256a92dff2afa73db47e84c5c9260af8d673ae081f7260333ee384fc67a8224"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/billing/commercial-generation.ts: lib/billing/commercial-generation.ts changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 49 in commercial-generation.buildCommercialGenerationPayload at line 22. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- lib/billing/commercial-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":"lib/billing/commercial-generation.ts"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"49ff60a912e922f4c1b1087670e564df75d53271b18bdc7d81f4a3a3969f5c4a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/api/admin/overview/route.ts: app/api/admin/overview/route.ts changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 41 in route.loadOverview at line 18. 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- app/api/admin/overview/route.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":"app/api/admin/overview/route.ts"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cd13523b97854429fffa1b470f0fa3d8ad3d521c9b4c30ad382ec2145aef016"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/ai/kie-client.ts: lib/ai/kie-client.ts changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in kie-client.readChatResponse 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- lib/ai/kie-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":"lib/ai/kie-client.ts"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"066c309b7a845026613ecf6dd52430644031995355364f86a90a5109d3f7d8ff"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/api/video-generate/route.ts: app/api/video-generate/route.ts changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in route.POST at line 47. 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- app/api/video-generate/route.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":"app/api/video-generate/route.ts"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"5357621f7239bf3772033d87eab92734992a77a90e8c4ccd495c5149a605fb0f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/api/cron/commercial-reconciliation/route.ts: app/api/cron/commercial-reconciliation/route.ts changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in route.GET at line 18. 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- app/api/cron/commercial-reconciliation/route.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":"app/api/cron/commercial-reconciliation/route.ts"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"de6e7aadeef13d23ed282043f3d8c9b68e7a0c79ad5b48d4df6d54411226131f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/api/media/resolve-link/route.ts: app/api/media/resolve-link/route.ts changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in route.handleImport 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- app/api/media/resolve-link/route.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":"app/api/media/resolve-link/route.ts"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3836234a09d8be6fb1f67a35d1e33f604387998beef3dae0dbfa2cb580f9cc5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/login/login-client.tsx: app/login/login-client.tsx changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in login-client.LoginClient at line 22. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- app/login/login-client.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/login/login-client.tsx"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3ec5a27c33715e4f1e483c6cf7526f95e2c54ca5d6c976766e3b13eed25ea1c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/billing/commercial-task-runner.ts: lib/billing/commercial-task-runner.ts changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in commercial-task-runner.runCommercialTask 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- lib/billing/commercial-task-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":"lib/billing/commercial-task-runner.ts"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c8b3cfa2805cfd423115f97bea4edc795df37a5af8ad54635ccb8e3306b4acd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: components/workflow/scene-video-preview.tsx: components/workflow/scene-video-preview.tsx changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 64 in scene-video-preview.SceneVideoPlayer 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- components/workflow/scene-video-preview.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/workflow/scene-video-preview.tsx"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"d430de2614eefd8a93668a46cf87a2b70e4d7d9076385105e0ab082bd18b62f1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/payments/commercial-refunds.ts: lib/payments/commercial-refunds.ts changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in commercial-refunds.reviewCommercialRefund at line 45. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- lib/payments/commercial-refunds.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":"lib/payments/commercial-refunds.ts"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"b93f0aac96aa4e6f733e9ea6dc62d3496b1c513e9f2762395160ec1baef0ad2a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/reference-video/kie-veo.ts: lib/reference-video/kie-veo.ts changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in kie-veo.getKieVeoGenerationStatus at line 346. 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- lib/reference-video/kie-veo.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":"lib/reference-video/kie-veo.ts"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"b58392bac810027f60c443dcee5f22560348e0070ab1e64bab8290b03f636f9f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/api/commercial/analysis/route.ts: app/api/commercial/analysis/route.ts changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in route.POST at line 8. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- app/api/commercial/analysis/route.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":"app/api/commercial/analysis/route.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"0136c9992b383d04ca5f8371ff5582637f95c637e7c3abcfcd81fd382c66f60b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/payments/credit-checkout.ts: lib/payments/credit-checkout.ts changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in credit-checkout.settlePaidCreditOrder at line 153. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- lib/payments/credit-checkout.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":"lib/payments/credit-checkout.ts"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"51c57fd9a9bcf72d0e3a6465f3f8d19f3f2922fc5b76178059377c30a848fccf"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: components/samples-gallery.tsx: components/samples-gallery.tsx changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in samples-gallery.SamplesGallery at line 29. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- components/samples-gallery.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/samples-gallery.tsx"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"cea89501d84e0ec9dbe89a4fee89b9df6677cd5a9428662395bc851d0784e5c6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: components/payments/analysis-task-progress.tsx: components/payments/analysis-task-progress.tsx changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in analysis-task-progress.AnalysisTaskProgress 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- components/payments/analysis-task-progress.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/payments/analysis-task-progress.tsx"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"081c1426a71bfee0016d5499574e677510ca01bb96aca3fd748ae53447ac0160"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/api/settings/api-key/route.ts: app/api/settings/api-key/route.ts changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in route.POST at line 61. 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- app/api/settings/api-key/route.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":"app/api/settings/api-key/route.ts"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"106c33356144fafb1d017382a3dbb936bc44d8e49d3a2a4ab62174fec1deaa03"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/billing/tasks/[id]/page.tsx: app/billing/tasks/[id]/page.tsx changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 45 in page.BillingTaskPage at line 12. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- app/billing/tasks/[id]/page.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/billing/tasks/[id]/page.tsx"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"400ce9e6d5fe9db50b54f77b5cddddb559f7bab0e2b3196ae5fc7b647354fe47"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: middleware.ts: middleware.ts changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in middleware.middleware at line 37. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- middleware.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":"middleware.ts"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7927d3d56f3299b7350802df4c28367ed43c459fdc2531f5f5ca41958953f7a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/billing/generation-credit-preview.ts: lib/billing/generation-credit-preview.ts changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in generation-credit-preview.generationCreditPreview at line 5. 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- lib/billing/generation-credit-preview.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":"lib/billing/generation-credit-preview.ts"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"b68db191c6afd0540987b7daaf5048bb12b2ceae8f780c0eabfb160705add268"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/agent/tools/call-existing-analyze-api.ts: lib/agent/tools/call-existing-analyze-api.ts changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in execute at line 21. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- lib/agent/tools/call-existing-analyze-api.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":"lib/agent/tools/call-existing-analyze-api.ts"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d3de3bb9ed6c7a9f3b5d531948f463ff128c55290ea2588355fff6db0e97342"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/api/video-edit/route.ts: app/api/video-edit/route.ts changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in route.deferredPOST 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- app/api/video-edit/route.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":"app/api/video-edit/route.ts"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5b7d2f95dd630e528e65e240cfae763e15e0f81b18b5fc3b5f90cf44feac343"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/ai/adapters/kie-video.ts: lib/ai/adapters/kie-video.ts changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in kie-video.buildKIEJobPayload at line 146. 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- lib/ai/adapters/kie-video.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":"lib/ai/adapters/kie-video.ts"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac2704c14361d89d04cc1286ae74617880fa896d5a2a603616ab870a411fbde0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: components/history-list.tsx: components/history-list.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 57 in history-list.AnalysisHistory at line 53. 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- components/history-list.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/history-list.tsx"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"41f94e843fd09fa32b461fae41636170a5311fb5061a6a9070128b06d7dd615c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/billing/commercial-review.ts: lib/billing/commercial-review.ts changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in commercial-review.releaseUnfulfilledCommercialAnalysis at line 72. 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- lib/billing/commercial-review.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":"lib/billing/commercial-review.ts"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dd196219b465cda7672372fbe88e9b643983ee6e7e0f3ba01d530cf9a5a1f66"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: components/admin-user-directory.tsx: components/admin-user-directory.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 55 in admin-user-directory.AdminUserDirectory at line 11. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- components/admin-user-directory.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/admin-user-directory.tsx"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"62bbc65162ae0578507ea5ac22dd2f118d9713d929d6ff27d04ce4495f7e1474"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/api/cron/analysis-dispatch/route.ts: app/api/cron/analysis-dispatch/route.ts changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in route.GET at line 13. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- app/api/cron/analysis-dispatch/route.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":"app/api/cron/analysis-dispatch/route.ts"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"04c49188ad0dc8cdf5bee0309befeb49f64f6c0a9ee33b6c1854f01bf462a88f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/billing/commercial-wallet.ts: lib/billing/commercial-wallet.ts changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in commercial-wallet.reserveCommercialTaskInTransaction at line 72. 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- lib/billing/commercial-wallet.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":"lib/billing/commercial-wallet.ts"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"77ce3a094650eaa2db1fd179ea2e59ab102361edb317fb38dd389087dfab1cd4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: components/sample-project-detail.tsx: components/sample-project-detail.tsx changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in sample-project-detail.ProjectBundleView at line 162. 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- components/sample-project-detail.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/sample-project-detail.tsx"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3980127549ed80666e65fe52926c2231c6dab54cbefc8591e39dc1b1ee02da9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: components/landing/site-header.tsx: components/landing/site-header.tsx changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in site-header.SiteHeader at line 101. 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- components/landing/site-header.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/landing/site-header.tsx"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"837a121794d1a13658dc48e558c6aa410796299adf84e99d686889a56b3d9c41"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/api/workflow/projects/[id]/edit/route.ts: app/api/workflow/projects/[id]/edit/route.ts changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in route.deferredPOST at line 35. 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- app/api/workflow/projects/[id]/edit/route.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":"app/api/workflow/projects/[id]/edit/route.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"a887f85eca824be1ef788c459e70c90dc097521bb387c3a1641410c69a23a724"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/api/internal/analysis-run/route.ts: app/api/internal/analysis-run/route.ts changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in route.POST at line 14. 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- app/api/internal/analysis-run/route.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":"app/api/internal/analysis-run/route.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e9a539a66f99c844edafbc3e4416283bb4849c2c3e0d30ddf0a80513f3181d5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/media-resolver/easydown.ts: lib/media-resolver/easydown.ts changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in easydown.selectEasyDownMedia at line 100. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- lib/media-resolver/easydown.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":"lib/media-resolver/easydown.ts"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"52362a0dd63bab8ca3950abe0e60fae0cc8017ad3d01d935d7c46e8e32f01fdc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/api/commercial/confirm/route.ts: app/api/commercial/confirm/route.ts changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in route.POST at line 9. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- app/api/commercial/confirm/route.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":"app/api/commercial/confirm/route.ts"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bcc8c4f6b664401af3696fb2541d4463df59edf1f32a52cd6c2056f591178a2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: components/workflow/credit-balance-link.tsx: components/workflow/credit-balance-link.tsx changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in credit-balance-link.CreditBalanceLink at line 13. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- components/workflow/credit-balance-link.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/workflow/credit-balance-link.tsx"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"06cbc6d5a976196795ef3b406cbc00dcf06e28d0279af237f06e4ae5c095bf58"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/guide/page.tsx: app/guide/page.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in page.GuidePage at line 10. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- app/guide/page.tsx\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/guide/page.tsx"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"98281f60e0caae53b41943430e186f9fd75e5f1595c992c056f132c83a53cdcf"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: skills/prompt-lens-video-remix/scripts/prepare_video.py: skills/prompt-lens-video-remix/scripts/prepare_video.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in prepare_video.main at line 358. 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- skills/prompt-lens-video-remix/scripts/prepare_video.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"skills/prompt-lens-video-remix/scripts/prepare_video.py"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"c008e8849515f9d4bfaedd72aa68d0fe8ed573c9df57ef137884f5ee5641f541"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/payments/alipay-reconciliation.ts: lib/payments/alipay-reconciliation.ts changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in alipay-reconciliation.reconcileAlipayOrder at line 24. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- lib/payments/alipay-reconciliation.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":"lib/payments/alipay-reconciliation.ts"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"31d3d4fd21478102edefa1085b54904389e34d8e777ca008f7a07e86bf224b37"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/api/project-assets/route.ts: app/api/project-assets/route.ts changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in route.POST at line 25. 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- app/api/project-assets/route.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":"app/api/project-assets/route.ts"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"550de5ded1d82f96fc030a202bfcb7c4098f7ad276dba6b562aca6ba729a6010"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/ai/adapters/infistar-video.ts: lib/ai/adapters/infistar-video.ts changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in infistar-video.getInfistarVideoStatus at line 51. 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- lib/ai/adapters/infistar-video.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":"lib/ai/adapters/infistar-video.ts"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c45ada5c7d873dfa2d32ead022f87cd8501aa24b5f1ea9f46dcb677c2f7dcbb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/billing/scene-assets.ts: lib/billing/scene-assets.ts changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in scene-assets.prepareIndependentSceneAsset at line 38. 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-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- lib/billing/scene-assets.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":"lib/billing/scene-assets.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c3c012706447702f546e9911666c6fffeb0eac43019b48deab4a3b9f0489caa"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/api/upload/complete/route.ts: app/api/upload/complete/route.ts changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in route.POST at line 8. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- app/api/upload/complete/route.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":"app/api/upload/complete/route.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f86ebf027db1ade04a4c366de08d94af4826ff0164d2926b411e9c45c56bc74"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/api/admin/credits/grant/route.ts: app/api/admin/credits/grant/route.ts changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in route.POST at line 13. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-17..2026-11-15, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-17 16:05:01 \u002B08:00\u0027 --until=\u00272026-11-15 16:05:01 \u002B08:00\u0027 --full-history --no-merges -- app/api/admin/credits/grant/route.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":"app/api/admin/credits/grant/route.ts"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"65271329d701964367b9eccea6f2e9df232b828f55c5e8bf6490c9554999515a"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060getBaseURL\u0060 spells \u0060URL\u0060 where 53 names in the project spell it \u0060Url\u0060: 53 of 54 names in project prompt-lens spell the token \u0060Url\u0060 (53 of 54; unit: names in project prompt-lens containing \u0060Url\u0060). Peers: route.optionalUrl (app/api/generation-jobs/route.ts:79); route.getReferenceVideoUrl (app/api/generation-jobs/route.ts:85); route.getHiddenReferenceImageUrl (app/api/generation-jobs/route.ts:95); route.siteUrl (app/api/payments/orders/[id]/pay/route.ts:9); route.ensureAccessibleUrl (app/api/video-edit/route.ts:10). Rename to \u0060getBaseUrl\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/auth/index.ts"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cc2d760c90fc506abdff93bb6ae31cd9f7c407dfffdb1edc2a7662b8156ee5e"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060(repository root)\u0060 (36275 LoC, 433 module-visible types across 117 directories) overshoots its size bounds. 1 of 2 build unit(s) (npm) overshoot their size bounds, lowering Project Cohesion to 0.0/10. 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":[{"physicalLocation":{"artifactLocation":{"uri":"package.json"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa2d5244dbb9040f0ef9a41721fc246c38399605a5b233c47266a2093207fec1"}},{"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":"9a3998e877592d0e57fbd7aed99ae6e04696c428fc994b7cd432fa35e67044db"},"properties":{"commitSha":"7d4c3cb3de40aa4149f147293924cd649f4b8a9c"}},{"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":"bc520898be744501d7525346413cd0ae2517b78eeac24387aa0cf9e451fcf00d"},"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":"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":"6ca1912b9a8e9ef8d1788b1e9fcbbb8052d332c7ba97807701ed2c5923389e20"},"taxa":[{"id":"CWE-209","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f51638a1a7324c9cefcbebe4d908f5bf57d28e48c1adf6dd9677ee45f6fdec37"},"taxa":[{"id":"CWE-209","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2b91bad36ed5ddcf76601e9d075a7214ca9fd31d26caafbfba58e6d495f58d5f"},"taxa":[{"id":"CWE-209","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2bb46d4c17404a1f56a991eca02217f20685131248ad5a7c8aa266477aa894ad"},"taxa":[{"id":"CWE-209","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"be007caf0612340469d2f8c6c60dc0fe18cff2849311ed0de26cbf573ae6be4b"},"taxa":[{"id":"CWE-209","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"570cb11b2504b04f00ec15d89741d1ad272ca24ff7c9eb7be5127bc8e98bf8f4"},"taxa":[{"id":"CWE-209","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"92b0f2d494977a7af06e6e2527daa30ba1ef6ab3f0e95dd0ec16dfb0f6bbecab"},"taxa":[{"id":"CWE-209","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5a4414519dd2550f9091ed6be92daf2d1717426187cd17500689c52d8bbb0ac1"},"taxa":[{"id":"CWE-209","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bc89ecfe32ac2f85673708f25dd22d18f2fb1d7519c39262358ac037a0e37b54"},"taxa":[{"id":"CWE-209","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d989715c4f999bcc46287111b456c2ce652039f7b97835a83a4cef3523222ce4"},"taxa":[{"id":"CWE-209","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"46ea07a222d4b9966281bfaa13ace798db25398ea1e92415b89303596823daaa"},"taxa":[{"id":"CWE-209","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3c5d805aacb43bc7b78a14debee4c2a2dada3c858cb2982c6a156a0b5756964f"},"taxa":[{"id":"CWE-209","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0f9d9bc3cabcd1ec5b8a6503ba7a16b47e10a589e55b0126ba048922b985a392"},"taxa":[{"id":"CWE-209","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8e890e6bcb2414d3513feccdb03d14412e53bd0ed008a597e2d9e2bd8c8738fb"},"taxa":[{"id":"CWE-209","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7d589cc77a631a99857391be58ba4f3c18dc327d9471ed316c4c8ee054476b79"},"taxa":[{"id":"CWE-209","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3af10e554e4ac4236c9fe5ef3534bfa53171f20ecd16de9caed4b507043ec31d"},"taxa":[{"id":"CWE-209","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a6e080ee2221515c062edd31bdd77d1c2de91647ae8d10c7c25ed392a977d3a5"},"taxa":[{"id":"CWE-209","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4bce85c58ee00e7d922ec35c56bbd88b9e5e62876f294f17db1b816339be8153"},"taxa":[{"id":"CWE-209","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9916a7886fde806e10c139ccf55cb45340654734c1ad53d859bffec41e38b6c8"},"taxa":[{"id":"CWE-209","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3bf5d28f6e0066a6c9cbf11473c747942cc8dda3d4d680f29abe1db577178571"},"taxa":[{"id":"CWE-209","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"548cffb76f0f1fb057e1c6ed498e982a1cb11edab59f2e100e6398887eb581c3"},"taxa":[{"id":"CWE-209","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"31b46bcd4250e65b02855ecd89365a039f5fc023183cd4c947256aaf6fc35764"},"taxa":[{"id":"CWE-209","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4c9c0f2c3ac226ab94f28004337d61fff74954ef2692a1b24de933800dbb23e5"},"taxa":[{"id":"CWE-209","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c02e37655d3cda9e98f983811fe49d053b83128a48382add7d1b9ead20d49e86"},"taxa":[{"id":"CWE-209","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90c5c00797456a298bd0d47667efb9140b98612eda20b186963d90c38597180e"},"taxa":[{"id":"CWE-310","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":"d3eb797987b81de5da406f2ddd912e8902143dfcab3d50d12c183100a29592a7"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"80df8081b3c2f9821b94e4e3c4358a1412424c0c1935c2d9651ea88c4f23104a"},"properties":{"dependency":{"package":"next","version":"15.5.27","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"production","file":"app/api/admin/credits/grant/route.ts","line":1}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d74aeba34c20ef883320d58ae3a9ebc2ca37676b56ad245f77891a27afcd5d2d"},"properties":{"dependency":{"package":"tinypool","version":"1.1.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a788030a15117424fc2e960fd04cd5deebeacfe9eebd875065196d712972eeab"},"properties":{"dependency":{"package":"@hono/node-server","version":"1.19.9","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"df21b8127d24aeed9579f3ce44f2f84d2d4f9ae41d6b03d4309b75c4781747cc"},"properties":{"dependency":{"package":"brace-expansion","version":"1.1.12","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ce9bbfea95fe015374ae86e03b9373fd15c82feee84c4ee070b765207d8d9476"},"properties":{"dependency":{"package":"browserslist","version":"4.28.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ae71d130f27ac79fa5eae7f537364509f3ce146425536d671dd5008627a4cd9e"},"properties":{"dependency":{"package":"deepmerge-ts","version":"7.1.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":"7d4fe671e968fac7e67223ba2b62473672c7cf2f781b334b8785a5edaa97edb9"},"properties":{"dependency":{"package":"effect","version":"3.18.4","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":"8cebd965383fbf6ec5aa075ac5961d71615ca803fb60541206693fa7a1c8ca18"},"properties":{"dependency":{"package":"fast-uri","version":"3.1.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"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":"1de2dc054cee5c3af15254884a0383116ebdff3c3edbad7ae1e5fd2625dac696"},"properties":{"dependency":{"package":"flatted","version":"3.4.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c5ee4169e26916ebfd82572d382c78705ddd80c792e63769c66d3e00f322d590"},"properties":{"dependency":{"package":"follow-redirects","version":"1.16.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"01fc85053279d115ea033564d5712283763a31a120ba4ad4775e78b10049b1a1"},"properties":{"dependency":{"package":"form-data","version":"4.0.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":"3df0d1d450878a54d77d4bfdde6e3c0daeb7ae1abdc6433b96bc665241291e5b"},"properties":{"dependency":{"package":"hono","version":"4.11.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"685cba4514570b53bf9bc85812fa54c07fec7b3f62fc67d4712c038e9ec2e605"},"properties":{"dependency":{"package":"js-yaml","version":"4.1.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"70ea723af60579f740e93832ec3cf275cf7251cc87ab8e046f11f20d64c872e7"},"properties":{"dependency":{"package":"lodash","version":"4.17.21","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fadd11a6ac04c675650ad9617522138bdd9783429698dc1c3fab18b08ccbfe45"},"properties":{"dependency":{"package":"lodash","version":"4.17.23","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7fe706e8e3f299e544e21b6e32927dbcbb99a9946a77e41d98254e1ab9d473f8"},"properties":{"dependency":{"package":"mysql2","version":"3.15.3","advisory":"[GHSA redacted]","aliases":["[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"20d40b7ea5ea14bf1bb83f4a795f0f919771f9767a6a2d9f1fa0932a823907c9"},"properties":{"dependency":{"package":"nodemailer","version":"8.0.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"production","file":"lib/email/smtp.ts","line":58}}}},{"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":"98f5b7f1cc7ab72c7ef988be1ab835626c9ba93796c264fb44a05726fc7d8dd6"},"properties":{"dependency":{"package":"picomatch","version":"2.3.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b10420175f791c4b7e1106592d4e51c7b6ddced3c15d8dccd4db298f5f89f93c"},"properties":{"dependency":{"package":"picomatch","version":"4.0.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"94c6ff14ea54b382a61d2f966f77a9032450e908372d7ab5d8acd1b161983573"},"properties":{"dependency":{"package":"postcss","version":"8.4.31","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"test-or-tooling","file":"package.json"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7531eb5fa8b12bbac40121f69038f913c6ef844555a157b58db0a6ce500ba8f1"},"properties":{"dependency":{"package":"undici","version":"7.30.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"production","file":"lib/auth/index.ts","line":19}}}},{"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":"316589522dbd50be1e40d6aea6c8676b2c20c08fe3c560d6a4639bb21224b6dd"},"properties":{"dependency":{"package":"urllib","version":"4.9.0","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":"7713653c1cd2e524df06e4e81d883565ceb6482ea97f6eea94f00d39b4a4d989"},"properties":{"dependency":{"package":"vite","version":"7.3.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"659b17df3a297d0c761f05e64fbd7a7fec481b8fec3425db0f2590512d5583b5"},"properties":{"dependency":{"package":"ws","version":"8.20.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9ebef2b165f22eaf35d99f757d2c09492d940967fea1af61fe4f535358dd0edf"},"properties":{"dependency":{"package":"zod","version":"3.25.76","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"production","file":"lib/agent/planner.ts","line":13}}}},{"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":"c186e79bc7b309a0ce63446d65701fc0d5abbcff2af5b3757b02b95c9c374466"},"properties":{"dependency":{"package":"zod","version":"4.4.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"production","file":"lib/agent/planner.ts","line":13}}}},{"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":"2e32e478334b95ba4c808cec76f7d3b6d1efc4906b318edeaf80826a1d221567"},"properties":{"dependency":{"package":"zod","version":"4.6.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"production","file":"lib/agent/planner.ts","line":13}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b717e9dd303f73b8b7ce5922ca68dede6a38dec9452f848a70f0889e9aafb7d7"},"properties":{"dependency":{"package":"@humanfs/node","version":"0.16.7","advisory":"[GHSA redacted]","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d3722d6638e288033970d64c7162aad7dacb09a7ce7eabf3f65e0449f662fbe3"},"properties":{"dependency":{"package":"@vitest/mocker","version":"3.2.7","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"16bc49aac72eafef4ac9a880a9755121d0367a6bdf3e48689c49c4d9d8c09a58"},"properties":{"dependency":{"package":"baseline-browser-mapping","version":"2.10.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8ff4501a0b6eb84bb92385b6433ad1c9d658a3cd9dbc3a993388fb9e366aa074"},"properties":{"dependency":{"package":"esbuild","version":"0.18.20","advisory":"[GHSA redacted]","reachability":{"kind":"production","file":"tests/e2e/analysis-preview-requote.test.mjs","line":3}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6fb79007bff808f0f9ed82f4d428b3c45193863658dcd9768c0fea9c35128c01"},"properties":{"dependency":{"package":"fflate","version":"0.8.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c3bac0b956cc7625db5ffaa04443fc36030c2af44043a6f2dfd365abaf694f40"},"properties":{"dependency":{"package":"minimatch","version":"10.2.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1e0f86e4c78eb482b12882423c5e1253c98bc4902fa05be6b1b4af19f4bfd147"},"properties":{"dependency":{"package":"next-intl","version":"3.26.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"production","file":"app/billing/payment/return/payment-return-client.tsx","line":6}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ec0350b9549614c07e09e657f342b321bdc641e1906acd7a5638df796a6b5723"},"properties":{"dependency":{"package":"postcss-selector-parser","version":"6.1.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9c5fc390f469bbcccac14e785ae1874c8b336630c4ce27fccd6b64cbd2cc832c"},"properties":{"dependency":{"package":"postcss-selector-parser","version":"7.1.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a970022a0073aee21900d27ed02c4db65e8abe6db3b16f9233210b459bc5aecd"},"properties":{"dependency":{"package":"qs","version":"6.16.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bcaff5d1e287866fb15ab08f33c0744f85cfc07f596d7af736c916f57cc95099"},"properties":{"dependency":{"package":"uuid","version":"11.1.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c1c964223c4707f7505aa1ef424c831fb23294eaed45bec2adbae05cf51d45b9"},"properties":{"dependency":{"package":"valibot","version":"1.2.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6b17dc0e1b57dfa40ca10a4bfcb7af221d34c00a25903bc5b1efbb9b197ac640"},"properties":{"dependency":{"package":"vitest","version":"3.2.7","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"test-or-tooling","file":"tests/admin-auth.test.ts","line":1}}}},{"ruleId":"D30","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f392b1419f96aa208ac2115d3c34c2f00540ad0c5381e81423f8727e54319f35"},"properties":{"dependency":{"package":"@babel/core","version":"7.29.0","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":"3093e747770355bc1e47eb068456c72ff6b104c632bb1a7371079d94dfddf34d"}},{"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":"56201f2ca122e865bac2e67f177f52e6adf57eb695029b89d1557f98c1041e89"},"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":"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":"e811942e26b43429b8ebb11640ef77abc4c4f5bcdd033b6bf57ea1f3ced805e2"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: analysis-quote-panel.tsx \u2194 commercial-media.ts: \u0060components/payments/analysis-quote-panel.tsx\u0060 (context components) and \u0060lib/billing/commercial-media.ts\u0060 (context billing) sit in DIFFERENT parts of the tree yet change together 60% of the time (6 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u006038084f3d\u0060 Exclude blank transitions and refine continuous video shots; \u0060e1413eaf\u0060 Clarify analysis preparation failures and validate worker storage URLs; \u00605d40d556\u0060 Verify imported video decoding before shot analysis \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/payments/analysis-quote-panel.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1daa27f7656304ea831e9d8856f2288c3073718d6333166ed9604b08be97aaef"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: video-workflow-create.tsx \u2194 service.ts: \u0060components/workflow/video-workflow-create.tsx\u0060 (context components) and \u0060lib/workflow/service.ts\u0060 (context workflow) sit in DIFFERENT parts of the tree yet change together 56% of the time (10 of the 18 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \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 10 shared commits counted here, the most recent 3 are \u0060fc13c909\u0060 Bound AI rewrites and recover expired allowances; \u0060d769c1fb\u0060 Allow retrying individual failed analysis shots; \u006069e64c36\u0060 Add seven-day project media and prompt cleanup \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/workflow/video-workflow-create.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8313388e02977f3e49efadb7850b384503978314d8853a2f6f02f20e72069cce"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: video-workflow-create.tsx \u2194 analysis-tasks.ts: \u0060components/workflow/video-workflow-create.tsx\u0060 (context components) and \u0060lib/workflow/analysis-tasks.ts\u0060 (context workflow) sit in DIFFERENT parts of the tree yet change together 50% of the time (8 of the 16 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u0060036d0c2c\u0060 Use DeepSeek for free trials and label whole-video progress; \u0060fb16b50f\u0060 Show confirmed analysis progress and finalize saved checkpoints; \u0060f3ece859\u0060 Allow uploaded videos to use paid shot splitting \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/workflow/video-workflow-create.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e2f612612674d7ae4d5e56f5d85645e667a95fb018d79b3f478ac8bd30252d5"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: commercial-analysis.ts \u2194 analysis-tasks.ts: \u0060lib/billing/commercial-analysis.ts\u0060 (context billing) and \u0060lib/workflow/analysis-tasks.ts\u0060 (context workflow) sit in DIFFERENT parts of the tree yet change together 50% of the time (8 of the 16 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u0060fa76193f\u0060 Record uncertain KIE outcomes across interrupted analysis; \u006040410c2f\u0060 Rotate analysis dispatch to prevent queue starvation; \u0060afe8e2d8\u0060 Bound analysis recovery work per scheduler run \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/billing/commercial-analysis.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd817a526fc324b8ce5def55668e163ef491e1b74fda1dfcaf15ecfa185641df"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: commercial-media.ts \u2194 server.mjs: \u0060lib/billing/commercial-media.ts\u0060 (context billing) and \u0060workers/ffmpeg-worker/server.mjs\u0060 (context workers) sit in DIFFERENT parts of the tree yet change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \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 5 shared commits counted here, the most recent 3 are \u006038084f3d\u0060 Exclude blank transitions and refine continuous video shots; \u006081eda360\u0060 Recover transient video downloads before shot analysis; \u0060e1413eaf\u0060 Clarify analysis preparation failures and validate worker storage URLs \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/billing/commercial-media.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6fde2786c458db21ca3bb875c56fd27f70ee84f96f19474c413266f9f9a35c5"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: video-workflow-create.tsx \u2194 commercial-media.ts: \u0060components/workflow/video-workflow-create.tsx\u0060 (context components) and \u0060lib/billing/commercial-media.ts\u0060 (context billing) sit in DIFFERENT parts of the tree yet change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \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 5 shared commits counted here, the most recent 3 are \u006081eda360\u0060 Recover transient video downloads before shot analysis; \u006094cb12ae\u0060 Limit uploaded analysis videos to ten-second single shots; \u0060ab71c55a\u0060 Verify completed R2 uploads before analysis \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/workflow/video-workflow-create.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"039aa97c52e1ac475cb7de09042d1cacbd2eca0ff55e52e6c0940457ad653359"}},{"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":"warning","message":{"text":"\u003Cvideo\u003E without a captions track: Video with no captions \u003Ctrack\u003E offers no captions. This player\u0027s source is set at runtime, so there is no caption file to author here: give the player a way to carry captions \u2014 accept a track/captions URL alongside the media and render a \u003Ctrack kind=\u0022captions\u0022\u003E when one is supplied \u2014 and capture that asset wherever the media enters the product (upload, import or generation)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/billing/tasks/[id]/page.tsx"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"4938c0aa6f8200718117bf64f5469fe7abe6fd99edca28f61f708b00e0a9ad1d"}},{"ruleId":"AC1","level":"warning","message":{"text":"\u003Cvideo\u003E without a captions track: Video with no captions \u003Ctrack\u003E offers no captions. This player\u0027s source is set at runtime, so there is no caption file to author here: give the player a way to carry captions \u2014 accept a track/captions URL alongside the media and render a \u003Ctrack kind=\u0022captions\u0022\u003E when one is supplied \u2014 and capture that asset wherever the media enters the product (upload, import or generation)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/audio-analyze-tab.tsx"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"52b7f695edffe959200d5bc9e46b08841870a19d4d6ce0dd9bd9366dea6b35d9"}},{"ruleId":"AC1","level":"warning","message":{"text":"\u003Cvideo\u003E without a captions track: Video with no captions \u003Ctrack\u003E offers no captions. This player\u0027s source is set at runtime, so there is no caption file to author here: give the player a way to carry captions \u2014 accept a track/captions URL alongside the media and render a \u003Ctrack kind=\u0022captions\u0022\u003E when one is supplied \u2014 and capture that asset wherever the media enters the product (upload, import or generation)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/landing/brand-video-button.tsx"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"b324723945c6041968613f5e3e10bbc9471d2e73257e56fd9ecaa1573021ac5f"}},{"ruleId":"AC1","level":"warning","message":{"text":"\u003Cvideo\u003E without a captions track: Video with no captions \u003Ctrack\u003E offers no captions. This player\u0027s source is set at runtime, so there is no caption file to author here: give the player a way to carry captions \u2014 accept a track/captions URL alongside the media and render a \u003Ctrack kind=\u0022captions\u0022\u003E when one is supplied \u2014 and capture that asset wherever the media enters the product (upload, import or generation)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/reference-video/ReferenceVideoComposer.tsx"},"region":{"startLine":1767}}}],"partialFingerprints":{"codehealthFindingId/v1":"440b66d9b4bfae07fafa4fd227678fd79548502a78307b4b347000a6d8081155"}},{"ruleId":"AC1","level":"warning","message":{"text":"\u003Cvideo\u003E without a captions track: Video with no captions \u003Ctrack\u003E offers no captions. This player\u0027s source is set at runtime, so there is no caption file to author here: give the player a way to carry captions \u2014 accept a track/captions URL alongside the media and render a \u003Ctrack kind=\u0022captions\u0022\u003E when one is supplied \u2014 and capture that asset wherever the media enters the product (upload, import or generation)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/reference-video/generation-history.tsx"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cceebf73587eef0890ecdac13ff21ff6973d7ef747a1c3847c58160c461e78c"}},{"ruleId":"AC1","level":"warning","message":{"text":"\u003Cvideo\u003E without a captions track: Video with no captions \u003Ctrack\u003E offers no captions. This player\u0027s source is set at runtime, so there is no caption file to author here: give the player a way to carry captions \u2014 accept a track/captions URL alongside the media and render a \u003Ctrack kind=\u0022captions\u0022\u003E when one is supplied \u2014 and capture that asset wherever the media enters the product (upload, import or generation)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/sample-project-detail.tsx"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"437fb1c0c09bf8425090d5eecc5de6f4b55c1aa8ae45d985d0ca44b4f52aabac"}},{"ruleId":"AC1","level":"warning","message":{"text":"\u003Cvideo\u003E without a captions track: Video with no captions \u003Ctrack\u003E offers no captions. This player\u0027s source is set at runtime, so there is no caption file to author here: give the player a way to carry captions \u2014 accept a track/captions URL alongside the media and render a \u003Ctrack kind=\u0022captions\u0022\u003E when one is supplied \u2014 and capture that asset wherever the media enters the product (upload, import or generation)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/sample-project-detail.tsx"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf2ba35396ce39f0390b029b59c9e4f18017ca87a843fb57b6e9f66230606bcd"}},{"ruleId":"AC1","level":"warning","message":{"text":"\u003Cvideo\u003E without a captions track: Video with no captions \u003Ctrack\u003E offers no captions. This player\u0027s source is set at runtime, so there is no caption file to author here: give the player a way to carry captions \u2014 accept a track/captions URL alongside the media and render a \u003Ctrack kind=\u0022captions\u0022\u003E when one is supplied \u2014 and capture that asset wherever the media enters the product (upload, import or generation)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/video-edit-tab.tsx"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"23cb86c12484edb57b5317c701894c172fe0f9087a03d6547af8192b88da760e"}},{"ruleId":"AC1","level":"warning","message":{"text":"\u003Cvideo\u003E without a captions track: Video with no captions \u003Ctrack\u003E offers no captions. This player\u0027s source is set at runtime, so there is no caption file to author here: give the player a way to carry captions \u2014 accept a track/captions URL alongside the media and render a \u003Ctrack kind=\u0022captions\u0022\u003E when one is supplied \u2014 and capture that asset wherever the media enters the product (upload, import or generation)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/video-edit-tab.tsx"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f42cbe092d52c0752070ec0cbd8790a56383b2e43d7c8b40e639e5dc1bbc4f3"}},{"ruleId":"AC1","level":"warning","message":{"text":"\u003Cvideo\u003E without a captions track: Video with no captions \u003Ctrack\u003E offers no captions. This player\u0027s source is set at runtime, so there is no caption file to author here: give the player a way to carry captions \u2014 accept a track/captions URL alongside the media and render a \u003Ctrack kind=\u0022captions\u0022\u003E when one is supplied \u2014 and capture that asset wherever the media enters the product (upload, import or generation)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/workflow/analyzed-shot-preview.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"6989098e4629f774ebf6d919ff7e39add1582fe2960d64713ba12bca78687902"}},{"ruleId":"AC1","level":"warning","message":{"text":"\u003Cvideo\u003E without a captions track: Video with no captions \u003Ctrack\u003E offers no captions. This player\u0027s source is set at runtime, so there is no caption file to author here: give the player a way to carry captions \u2014 accept a track/captions URL alongside the media and render a \u003Ctrack kind=\u0022captions\u0022\u003E when one is supplied \u2014 and capture that asset wherever the media enters the product (upload, import or generation)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/workflow/video-workflow-create.tsx"},"region":{"startLine":886}}}],"partialFingerprints":{"codehealthFindingId/v1":"97c933fa21e4df6bc1f2e71ef3076841fbe85e0faf5af1f3186d75c1d3cb3456"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Ctextarea\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 htmlFor\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/agent/agent-chat-page.tsx"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"268947f330fd661a94c6ceba1957916da4f1a3b73f3c57425f28957b8dd26892"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Ctextarea\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 htmlFor\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/agent/agent-composer.tsx"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a132e41a2065d20054b5142017e8e79b7fd2b58976c3e8cd73f46fa264bb29b"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel htmlFor\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/audio-analyze-tab.tsx"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"fba16d98bfc6c6087e9318ce0c2df49daf227a7aae2bfdbd73666496239c647d"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CTextarea\u003E field component without a label: This UI-library field component is named only by a placeholder \u2014 a placeholder is not a label (it vanishes as soon as the user types, and many assistive technologies ignore it). Give it a real name whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/audio-analyze-tab.tsx"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffdf97af00bf062f7e4b50f9d6243e1cfcad93589d3fd56a9af510295d0bee86"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CTextarea\u003E field component without a label: This UI-library field component is named only by a placeholder \u2014 a placeholder is not a label (it vanishes as soon as the user types, and many assistive technologies ignore it). Give it a real name whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/history-list.tsx"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8e77e13b864af05fce6ad82c0491fa0695d62cde2a8787a350a2563160d1f5f"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel htmlFor\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/reference-video/ReferenceVideoComposer.tsx"},"region":{"startLine":1325}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c507778e0cc537dfd12e4c74eda294dfe1863c8ffadb90a414b9606691fefe4"}},{"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":"components/ui/dialog.tsx"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"efe1bcf6d018a1fca3fede567d5637c1ab837d5cf7cc6ad5a646f7bbd65c25a0"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cbutton\u003E with no accessible text: A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/ui/dialog.tsx"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"435671247c500a596d130c7bf8497e6992a74a6f7a6dffc92a63e67be7186cb9"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel htmlFor\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/workflow/video-workflow-create.tsx"},"region":{"startLine":855}}}],"partialFingerprints":{"codehealthFindingId/v1":"91d9e62037cc5732c9ba29fcd01b4e3842ab6e8a10492f5e991e73495c54af51"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no htmlFor and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label htmlFor=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/workflow/video-workflow-create.tsx"},"region":{"startLine":1125}}}],"partialFingerprints":{"codehealthFindingId/v1":"036dab4d69e19969e52a35b290295dd12812ff3a8c23252a43c026318fead5f8"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003CTextarea\u003E field component without a label: This UI-library field component is named only by a placeholder \u2014 a placeholder is not a label (it vanishes as soon as the user types, and many assistive technologies ignore it). Give it a real name whichever way this library supports: a label prop, an aria-label, or an id on the rendered control with a \u003Clabel htmlFor\u003E pointing at it. For a group of controls, name the group itself (aria-label, or a fieldset with a legend) \u2014 labelling each item leaves the set unnamed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/workflow/video-workflow-create.tsx"},"region":{"startLine":1146}}}],"partialFingerprints":{"codehealthFindingId/v1":"221064685c426b2290545a1a9ddddba579c913882b54e52ea3859e19321825f7"}},{"ruleId":"AC3","level":"warning","message":{"text":"Heading level jumps from h1 to h3: Skipping heading levels breaks the document outline assistive tech relies on. Don\u0027t jump levels \u2014 increase by at most one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/sample-project-detail.tsx"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6eafb4fd11a74ac6d10d3e49d2b3673ae9ec929a6211ee512d40d338aaeaa76"}},{"ruleId":"AC4","level":"warning","message":{"text":"Modal dialog does not manage focus: This \u003Cdiv role=\u0022dialog\u0022\u003E is a modal dialog, but nothing moves focus into it when it opens and nothing keeps focus inside it while it is open, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native \u003Cdialog\u003E opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/login/login-client.tsx"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"602804d3e4c09d38f78c0fbf639b3cc13c915e673743bdf780430b0002f926c8"}},{"ruleId":"AC4","level":"error","message":{"text":"Hover-only interaction on \u003Cdiv\u003E: This \u003Cdiv\u003E binds mouse-enter and mouse-leave and nothing else \u2014 no click, no key handler, no focus handler, and no tabIndex={0}, so it cannot even take focus. A keyboard user cannot hover, so whatever the pair reveals or highlights is reachable with a mouse only. Bind the same state to focus/blur as well, and add tabIndex={0}=\u00220\u0022 so the element can receive that focus."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/landing/testimonials-section.tsx"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"f865705af648c4caa876ed4160e8cab9be32fef6e818c7306a1292e25567a0c0"}},{"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={0} \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/ui/dialog.tsx"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"d158e46e2be1e6897269f1f7d15fb50df70ebb429c58669f5fb70b88bcea2ac5"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Ctextarea\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/agent/agent-chat-page.tsx"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4d1ef4d5838cb07be3b88fb2f0ad86d2d22c21e207796846e38984473450eb8"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Cselect\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/audio-analyze-tab.tsx"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a43c21f2cf007cb1e5a06f32fb6ead6501d9085d09d67b34250a9845ac28a56"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Cselect\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/audio-analyze-tab.tsx"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0b6bb5b62a09a065696063fab6bc60ebe553a254e79ebf59fbe14eadc249363"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Cdiv\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/reference-video/ReferenceVideoComposer.tsx"},"region":{"startLine":1440}}}],"partialFingerprints":{"codehealthFindingId/v1":"6750c4cd00a68489daabc5bddcc07d7b3adde276ae56de870dad1ae9d199340a"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Cselect\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/reference-video/ReferenceVideoComposer.tsx"},"region":{"startLine":1527}}}],"partialFingerprints":{"codehealthFindingId/v1":"f20afb51d451cb94b094985b4fc0f6ee8c578323fea6216737d3636e16d2f32f"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Cinput\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/reference-video/ReferenceVideoComposer.tsx"},"region":{"startLine":1615}}}],"partialFingerprints":{"codehealthFindingId/v1":"57945c5c5888de8dd7c9339acb5819d3232697f5369fc713f54153638be149a7"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Cinput\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/samples-gallery.tsx"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddbb3d9faf624c647cd3666cba0db3de0e798b76ef7089df941b8e93d12bb72e"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Cselect\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/video-edit-tab.tsx"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7af95e732dc903a2a3e3002fb814f755fa10601c9e31b714b16d2c6bae86ca5"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Cselect\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/video-edit-tab.tsx"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"efbaec3a103a5c001d9254990630d6f1f90817395dadc7f2dbc8038e01c42ead"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Cselect\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/workflow/video-workflow-create.tsx"},"region":{"startLine":1126}}}],"partialFingerprints":{"codehealthFindingId/v1":"a767259ab0bfc1520a78a1c4748c56e4ef8644ef1a50e1531b7547d66dc74802"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Cselect\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/workflow/video-workflow-create.tsx"},"region":{"startLine":1245}}}],"partialFingerprints":{"codehealthFindingId/v1":"8deb9f791209a81b2586bab77f748deb20f8a21de54f3e4206e0241e74b6fc4f"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who is asking is taken from the \u0027packageId\u0027 request header (const balance = await grantCreditsToUser({targetUserId:targetUser.id, actorUserId:admin\u2026) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/admin/credits/grant/route.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a2742d1df061b66f31d93bb6cc8a310f6e9e12cd91b387aeaaf6c2edadf058e"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who may pass is decided by the \u0027user\u0027 request header (if(!session?.user)) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/admin/me/route.ts"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"7814b7f7ee1cba9c06ae983bc189ca837fe3baf1ef757f2d4366ddfe9698dc38"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who is asking is taken from the \u0027userId\u0027 form field (const{userId, action, banReason} = body) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/admin/users/route.ts"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"7936d314a47d382f8ace3510149872e1dd62e3e7de90aae69cf492c3a83f8942"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who may pass is decided by the \u0027user\u0027 request header (if(!session?.user)) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/audio-analyze/route.ts"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"906bd0a6e2b04baf98c23451e10bcdd2b21a8718cdde869755104864c9834acf"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who may pass is decided by the \u0027user\u0027 request header (if(!session?.user)) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/audio-clip/route.ts"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"13ed9116d6397265693dbd6710e58998fc9f1abbdebfdf87cac01900dc5eaa6c"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who may pass is decided by the \u0027user\u0027 request header (if(!session?.user)) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/commercial/analysis/[id]/shots/[sceneId]/route.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"b591c99469937f07d064cd9b865732ab444dd886c60fcc41a99e469be986a340"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who may pass is decided by the \u0027projectId\u0027 request header (if(!source.projectId||!Array.isArray(source.preview?.scenes))) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/commercial/analysis/[id]/shots/[sceneId]/route.ts"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"6716f51fc485973f137bb7422dcf9cc8d4eb6333481efcffb7278dc674cd5b02"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who may pass is decided by the \u0027user\u0027 request header (if(!session?.user)) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/commercial/analysis/route.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e092dc12e34b6dfd19237d3753097afe4213e090e2505a512333d0f8d4b524e"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who may pass is decided by the \u0027user\u0027 request header (if(!session?.user)) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/commercial/confirm/route.ts"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"1400310c956868a469777ee450ce5e9f1830f330bfbbd173db0738b691a1e4ea"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who may pass is decided by the \u0027user\u0027 request header (if(!session?.user)) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/commercial/generation/route.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"c80d91edc5f64d1b548cf20cafc4f326fd05451251e76ce47a9c88887083f5e5"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who may pass is decided by the \u0027user\u0027 request header (if(!session?.user)) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/commercial/tasks/[id]/route.ts"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"9933598001ccbb5d70402a5957920fb4cfd6b33d56733a9b04b1c3987fecac61"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who may pass is decided by the \u0027user\u0027 request header (if(!session?.user)) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/commercial/tasks/[id]/route.ts"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"258c73ae973f4c6dc02db9e23f394072825c9de7403b6ccd14b281efe8e130f6"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who is asking is taken from the \u0027user\u0027 request header (const payer = input.keySource===\u0022user\u0022||(input.pricing?.payer\u0026\u0026input.pricing.payer!==\u0022p\u2026) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/commercial/tasks/[id]/route.ts"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3181525e5a0b95627429065c6b1800f9cc886db72343d4ac7643af8b8d8185d"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who is asking is taken from the \u0027nextTaskId\u0027 request header (const retryAvailable = task.kind===\u0022analysis\u0022\u0026\u0026[\u0022completed\u0022, \u0022failed\u0022].includes(task.st\u2026) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/commercial/tasks/[id]/route.ts"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f71887564c488f08a462481c5d52127166c4dfa4eb757ad90bd4985790901aa"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who may pass is decided by the \u0027user\u0027 request header (if(!session?.user)) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/credits/me/route.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b65643e8399504ef824bd8646526ca533f5705d5d9244354bdd848cf8475bd5"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who is asking is taken from the \u0027user\u0027 request header (const history = await db.execute(sql\u0060\n      select * from (\n        select \u0027commercial:\u2026) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/generation-history/route.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"745b26d8cd43f19ab0db1ff1758e0d25add848ee0224718e3568a47afa72c619"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who is asking is taken from the \u0027user\u0027 request header (const keyAccess = await resolveApiKeyForFeature(auth.user.id, {allowPaidPlatformKey:fal\u2026) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/generation-jobs/route.ts"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c2394534ff2c588fdf1c68055c04297f8103192f902eb9eb869f878d7f8bad7"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who is asking is taken from the \u0027user\u0027 request header (const project = await db.query.projects.findFirst({where:and(eq(projects.id, projectId)\u2026) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/generation-jobs/route.ts"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"94b5604143c8cac58cbdf8d2b925ae5b9d7fb30af6f9a329c5206a102c51dd80"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who is asking is taken from the \u0027user\u0027 request header (const job = await db.query.videoGeneration.findFirst({where:and(eq(videoGeneration.id, \u2026) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/generation-jobs/route.ts"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"b067b8be2379471ad58eaf4d9dd0cc2c2d33aa88ffe97707ba60f2d9cc8b19f7"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who is asking is taken from the \u0027user\u0027 request header (const job = await db.query.videoGeneration.findFirst({where:and(eq(videoGeneration.task\u2026) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/generation-jobs/route.ts"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4ff65297100b3a6e66f8caecd181a177ed166e74ae13c5dad486470122e114d"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who may pass is decided by the \u0027user\u0027 request header (if(!session?.user)) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/history/route.ts"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c8f8d9c8bebe489c54f60b10fbd41f7369e621e27a332c8f94c3eba00fdd190"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who may pass is decided by the \u0027user\u0027 request header (if(!session?.user)) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/history/route.ts"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a5b3893649ab919468b0518a426616c57016e40693837e7b5b22ef958c6b4dd"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who may pass is decided by the \u0027user\u0027 request header (if(!session?.user)) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/history/route.ts"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"a789b437475eacf1049943ad0820c9ad4540c3daccf130e0dfb8e3d7f5f66561"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who may pass is decided by the \u0027user\u0027 request header (if(!existing||existing.userId!==session.user.id)) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/history/route.ts"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa22be962b6a787d278f2cd1931a5f686f9431e544b2121a0602063ad1e2cdc9"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who may pass is decided by the \u0027user\u0027 request header (if(!session?.user)) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/history/route.ts"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea96ae8b5a3f1a96ed95b6f1ab4bff94c90e86e253b3b824d3a4f6cb51a19ddd"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who may pass is decided by the \u0027user\u0027 request header (if(!existing||existing.userId!==session.user.id)) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/history/route.ts"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0561d374937df20f65a27ee4065a88179b2a6406b46e60bd81489ae6bac4ad4"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who may pass is decided by the \u0027user\u0027 request header (if(!session?.user)) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/media/resolve-link/route.ts"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"d672234537c42b8cc199d760f7ae099cfe5af20aa8ee0d03659f037fa2960c20"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who may pass is decided by the \u0027user\u0027 request header (if(!session?.user)) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/models/route.ts"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ab4df013800d3e48e424d31cb9e463455879f4445533945b94636fafec3311a"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who may pass is decided by the \u0027user\u0027 request header (if(!session?.user)) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/payments/account/route.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ffd6b33a95b3756eb81d4353019cadbf5d941ec2a7b0e345e5959a956fb02f2"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who may pass is decided by the \u0027user\u0027 request header (if(!session?.user)) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/payments/checkout/route.ts"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dee2f6ef14d6179580a96a295dcca07ee080f4c80496de2dc77ca367e9e78cf"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who may pass is decided by the \u0027user\u0027 request header (if(!session?.user)) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/payments/orders/[id]/close/route.ts"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"86fb9ae1087dac19718e769a184d2530cef1da21d6114f0e40737108a61e5f06"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who may pass is decided by the \u0027user\u0027 request header (if(!session?.user)) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/payments/orders/[id]/pay/route.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"8318130904e45db3dc12424e8b896cb45672f3edcece2a13ef9e00d263bf56bf"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who may pass is decided by the \u0027user\u0027 request header (if(!session?.user)) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/payments/orders/[id]/refund/route.ts"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a27367fef6615dd3ec31719ac8981d55e27e781339c7ed7df99a18149a8bff5"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who may pass is decided by the \u0027user\u0027 request header (if(!session?.user)) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/payments/orders/[id]/refund/route.ts"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"30fb9c69011151fb0e4f156b5da731593c64bc5974cafa69185d212efa8a091c"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who may pass is decided by the \u0027user\u0027 request header (if(!session?.user)) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/payments/orders/[id]/route.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"51309f84bbbe25364c3d551712400ee73d577fa256907520f1551fbba300d26b"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who is asking is taken from the \u0027user\u0027 request header (const rate = await checkRateLimit(\u0060project-assets:${auth.user.id}\u0060, 10, 60_000)) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/project-assets/route.ts"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f16245781d6bac1befd1879dad4683946efe31913278fa1080a097d72980094"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who is asking is taken from the \u0027user\u0027 request header (const key = \u0060users/${auth.user.id}/assets/${randomUUID()}.${ext}\u0060) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/project-assets/route.ts"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"50a6af6c577fbadba79de1ee6e422940eb718858e73383c5266cdcd079db4440"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who is asking is taken from the \u0027user\u0027 request header (const allowed = result?.response?.user\u0026\u0026(!isAccessRestricted()||isAccessEmailAllowed(re\u2026) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/session-refresh/route.ts"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"87b6ae89d7cf872cf597398b3e0f7106322bcd952e967c0cacd1da823b220657"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who may pass is decided by the \u0027user\u0027 request header (if(!result?.response?.user||!isAccessEmailAllowed(result.response.user.email))) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/session-refresh/route.ts"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9140933416ef02e6beb883715dd0c47267d04aea9bf70d9b3be10a630974f4c"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who may pass is decided by the \u0027user\u0027 request header (if(!session?.user)) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/settings/api-key/route.ts"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"6903a2ce6651eb16c76d24b087861af33079fb1af9e5c19baadb7629a690ac09"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who may pass is decided by the \u0027user\u0027 request header (if(!session?.user)) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/settings/api-key/route.ts"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7b694078bccfa7a66c234b743b77271738830189d7ebcf9d47be7906689b78a"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who may pass is decided by the \u0027user\u0027 request header (if(!session?.user)) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/settings/api-key/route.ts"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"7032b944f5cade4bb725592b2dc0a9fae1ee79170f8848e28ec7f7e3ff782da3"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who may pass is decided by the \u0027user\u0027 request header (if(!session?.user)) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/settings/api-key/route.ts"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"721c2bb9cbd0b14f1ad988d4a209298a6eab7b4af96d8c4cc6d9db56420b28f2"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who may pass is decided by the \u0027user\u0027 request header (if(!session?.user)) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/upload/complete/route.ts"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a5bf04154bbe8647ba1616992bb4ff094c07258a1988c5a2bbcadfd8104fb23"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who may pass is decided by the \u0027user\u0027 request header (if(!mediaType||!key.startsWith(\u0060uploads/${session.user.id}/${mediaType}/\u0060)||!url||!file\u2026) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/upload/complete/route.ts"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8b45d2945a254719211eed427197a4b7225fc9e6cd7264784179836da58527b"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who may pass is decided by the \u0027user\u0027 request header (if(!session?.user)) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/upload/route.ts"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"e18feeb7db1cfcf1b856d4ab80e5983ba9e904a644e85a4ee110f6c762567839"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who may pass is decided by the \u0027user\u0027 request header (if(!session?.user)) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/video-generate/route.ts"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"33eebaf42d509b4a6535110ebb9ad6bc794051cb606d38cc05372cdf3cab0516"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who is asking is taken from the \u0027providerModelId\u0027 request header (const model = selectedModel?.providerModelId||(provider===\u0022infistar\u0022?\u0022doubao-seedance-2\u2026) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/video-generate/route.ts"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb329950518901743feb485f5cde0b8f5283d43bb2fd331e6d7f1aa4892c2a8e"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who may pass is decided by the \u0027user\u0027 request header (if(!session?.user)) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/video-generate/route.ts"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"01a1856fefdbecdb56addfb653c598ca423adf7f7b3c5424db3dce7179f4aa1e"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who may pass is decided by the \u0027user\u0027 request header (if(!session?.user)) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/video-generate/status/route.ts"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb4947a11ae88d1c915ec210aa6ff4db1e592c218b42ea38389977b9a8701219"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who may pass is decided by the \u0027user\u0027 request header (if(!session?.user)) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/workflow/analysis-tasks/[id]/route.ts"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"55fda4763e8409c1c5297054c9a391462888b7de8850f9cb865686f360a30ad1"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who may pass is decided by the \u0027user\u0027 request header (if(!session?.user)) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/workflow/projects/[id]/breakdown/route.ts"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"c01d9464d47aa49f924b92bc2f96dd4ea3119ac9fecc9ffe7d1f62e65f2101ce"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who may pass is decided by the \u0027user\u0027 request header (if(!session?.user)) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/workflow/projects/[id]/remix/route.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"47f403effefec9f6337307e5e0dfcffd5133aac9fb238df8080954c4e70d679d"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who may pass is decided by the \u0027user\u0027 request header (if(!session?.user)) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/workflow/projects/[id]/route.ts"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"2575c6e757ffc9aec67b77d5877c6d0d3204e0263c581bdaeb34bc1920b617d4"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who may pass is decided by the \u0027user\u0027 request header (if(!session?.user)) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/workflow/projects/[id]/route.ts"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7e1fab2d27cbb7ce7f2c69e04188c53243e75e162989c199b98292def2e3889"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who may pass is decided by the \u0027user\u0027 request header (if(!session?.user)) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/workflow/projects/[id]/scenes/[sceneVersionId]/rewrite/route.ts"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee034caed2768e430438635bc41a34810c7b2b339e0af760f5c089ca739c391e"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who may pass is decided by the \u0027user\u0027 request header (if(!session?.user)) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/workflow/projects/[id]/scenes/[sceneVersionId]/route.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"002eb57d760d1891a9b5bc4785de06aafced790b6cf2a3dd90ed8cf42e0cc5f1"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who may pass is decided by the \u0027user\u0027 request header (if(!session?.user)) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/workflow/projects/[id]/shots/[sceneId]/download/route.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"b97e1f25283d52d8b7b171e3910f2c1f40ca7692b0d61c3dc2c2182516fab6e0"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who may pass is decided by the \u0027user\u0027 request header (if(!session?.user)) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/workflow/projects/route.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"c75a6236f538441a3f164eb719fbf6f9b5a7c8f76e0099c438cfecd31cdf9c3f"}},{"ruleId":"C2","level":"warning","message":{"text":"Anyone can act as another user by changing what their browser sends: Here who may pass is decided by the \u0027user\u0027 request header (if(!session?.user)) and nothing checks it: no signature, no server-side session, no verified token. Cookies, headers and form or address values come from the visitor\u0027s browser and they can change them, so anyone can put another person\u0027s id there and be treated as that person \u2014 no password needed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/workflow/projects/route.ts"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcc8c589751c2e74b39f35782c9fa7979f0369f5de363d07610c6b616e2df0f7"}},{"ruleId":"C2","level":"note","message":{"text":"No named authorization policies: Authorization IS enforced here (by route guards, auth middleware or checks that refuse a caller) \u2014 this is NOT a claim that endpoints are unprotected. What\u0027s missing is a NAMED rule set: who may do what is encoded inline where it is checked, so the rules can\u0027t be listed, reviewed or tested apart from the code that applies them. Recommendation, not a defect."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/auth/[...all]/route.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"155bb29290e531ffbe22a0681384fea1dbd17f47615f5aeb2e8218f98baa73f8"}},{"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":"components/agent/agent-composer.tsx"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"1663f521f4b74c0ee090b52aafc0e2bd09be9af123e5f78b452e8b0e476439ca"}},{"ruleId":"IC1","level":"warning","message":{"text":"Markup wires an event to an empty handler: \u0060onCopyPrompt\u0060 is wired to an arrow whose body is empty \u2014 the markup attaches a listener that does nothing. Implement the handler, or remove the attribute that wires it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/agent/agent-run-panel.tsx"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"d358532084724a9e206db57f1b33f2e67678da5af06a95f7af26eb3c69e271a0"}},{"ruleId":"IC1","level":"warning","message":{"text":"Hollow method \u2014 returns a constant without doing the work: \u0060isAdminUserId\u0060 looks like it should compute a result but its body just returns a constant \u2014 a placeholder return that was never filled in."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/auth/index.ts"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f4f864a3c3fabe4488eaa41082cf915ba8c7b01dc2f3286d14efb3f6c576321"}},{"ruleId":"IC1","level":"warning","message":{"text":"Fake-async \u2014 async method never awaits: \u0060cleanupOldLogs\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":"lib/middleware/logger.ts"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfbb19bb91be0cd6ec81c67525a91ea8ee413cb5047012f18dc4b3200465d3a7"}},{"ruleId":"IC1","level":"note","message":{"text":"Disabled test: A test is skipped/ignored \u2014 coverage that looks present but never runs. Re-enable it or delete it so the green run means something."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/e2e/commercial-checkout.spec.ts"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"81479eda5a40e5ee4b52dafd44219aab3ecd7759c3700676e93eabf5eac2d8cc"}},{"ruleId":"IC1","level":"note","message":{"text":"Disabled test: A test is skipped/ignored \u2014 coverage that looks present but never runs. Re-enable it or delete it so the green run means something."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/e2e/commercial-order-cancel.spec.ts"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"da2c431326e5426889ff95763379795f17353239ee38f81af7900b5a735a58f8"}},{"ruleId":"IC1","level":"note","message":{"text":"Disabled test: A test is skipped/ignored \u2014 coverage that looks present but never runs. Re-enable it or delete it so the green run means something."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/e2e/payment-handoff.spec.ts"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1a3a90511a6fe96adce8fd9e07909fac474914cf5b9af7fa4282e57d47a5e0e"}},{"ruleId":"P1","level":"note","message":{"text":"CI build step not evidenced: A CI pipeline exists but no build step was matched \u2014 changes may merge without the build ever running. A build step may be invoked directly as a command, or declared as a task that a runner named in the pipeline resolves."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"251015acef1a259fcc13b7c60660cc8917ccb3ae8056cb5165ae03312dd586e8"}},{"ruleId":"P2","level":"note","message":{"text":"Logging is not universal: Only 1/3 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060.\u0060, \u0060.\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060workers/ffmpeg-worker/server.mjs\u0060 reports through \u0060console.*\u0060 at line 291 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"workers/ffmpeg-worker/server.mjs"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2fe7e969cffd02cffe63ad7833c01601ab74817157e64581cce29c61ca0e081"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060workers/ffmpeg-worker/server.mjs\u0060 reports through \u0060console.*\u0060 at line 371 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"workers/ffmpeg-worker/server.mjs"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"611503a1b4f19745bbff9635a7bc1f6f547164aa4813f23300a8d08409e2bbb9"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060workers/ffmpeg-worker/server.mjs\u0060 reports through \u0060console.*\u0060 at line 412 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"workers/ffmpeg-worker/server.mjs"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"43101548ec228500ae99e3a1fdca7566716d0f5b06a22704d24894386e08bfbb"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060workers/ffmpeg-worker/server.mjs\u0060 reports through \u0060console.*\u0060 at line 438 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"workers/ffmpeg-worker/server.mjs"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb8d9212a01f5d8aa5a2fd934f35abd583f46b9b8e03b18a2ad76b75251a41c2"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060workers/ffmpeg-worker/server.mjs\u0060 reports through \u0060console.*\u0060 at line 499 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"workers/ffmpeg-worker/server.mjs"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b81091b48ba68ecc08dd98bcb5168047fafd2edb1dbf3248ad2a5e6ea931606"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060workers/ffmpeg-worker/server.mjs\u0060 reports through \u0060console.*\u0060 at line 501 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"workers/ffmpeg-worker/server.mjs"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7e5d711e1b42b9f632cf637c6ca7c94646c76d141b450f58b595b9a01248267"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060workers/ffmpeg-worker/server.mjs\u0060 reports through \u0060console.*\u0060 at line 549 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"workers/ffmpeg-worker/server.mjs"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"acff49f36882e8c1dc1072eb8206a43d33ae5f3b7dfe1e159f4064a1b4aff018"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060workers/ffmpeg-worker/server.mjs\u0060 reports through \u0060console.*\u0060 at line 556 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"workers/ffmpeg-worker/server.mjs"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e4c642485bad260d02bfe4b944bea125311c3eeb7c0b7c945da77c066f73fad"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add CodeQL\u0027s javascript-typescript pack, \u0060semgrep --config=p/typescript\u0060, or eslint-plugin-security as a CI step. What was searched, so you can tell an absence from a miss: the 1 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060package.json\u0060 declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices \u2014 including after an advisory is published against it. Add a \u0060.github/dependabot.yml\u0060 with one \u0060package-ecosystem\u0060 entry per ecosystem the tree uses (or an enabled \u0060renovate.json\u0060), and gate pull requests with \u0060actions/dependency-review-action\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package.json"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b237f7efe841e3a95b381b232502a3a473094adeb069a11eaca8ca533fb1c34"}},{"ruleId":"P4","level":"note","message":{"text":"No release approval gate: The release is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY\u0027S PIPELINE FILES. What was read: every file under \u0060.github/workflows/\u0060, \u0060.forgejo/workflows/\u0060, \u0060.gitea/workflows/\u0060, \u0060.azuredevops/\u0060 and \u0060.azure-pipelines/\u0060, plus \u0060.gitlab-ci*\u0060 and \u0060azure-pipelines*\u0060 \u2014 with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab\u0027s \u0060when: manual\u0060, CircleCI\u0027s \u0060type: approval\u0060, an Azure \u0060ManualValidation@\u0060 task or an \u0060approvals:\u0060 block, a Jenkins \u0060input\u0060 step, a \u0060uses:\u0060 step naming an approval action, an \u0060environment:\u0060 paired with \u0060reviewers\u0060 / \u0060required_reviewers\u0060 / \u0060protection\u0060 / \u0060wait-timer\u0060 / \u0060deployment_branch_policy\u0060, a draft-release step, a \u0060workflow_dispatch\u0060 promotion, or a release-event gate. \u2605 What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy \u2014 all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever the release trigger points at is published to users unreviewed, so a mistagged or unverified commit ships and the only remedy is a follow-up release."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6c11e2dbd483b4b423b95ac61bfcc7af1d55351b28a20d2b1105b31cfe38cc60"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060deleteRun\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":"lib/agent/storage.ts"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"e86a11d92d8092e377a1db7dd1a0068a9f17bc20b016c289d8e28532fb1ac5ca"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060rmSync\u0060 in \u0060deleteRun\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":"lib/agent/storage.ts"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f16f898a6c746b26a62b785adf745aee2cffdeb666c1e8b1a17e0f1d475ff02"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060iterAllRuns\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":"lib/agent/storage.ts"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d4931289b5e9fb7b168ab27a08f827240fb9cecc13a8c8a6d6e490b788cfed5"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060readdirSync\u0060 in \u0060iterAllRuns\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":"lib/agent/storage.ts"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"c921f69b14aa7adf50d4d7a2dfcf5eca848320fb879560b899f06dcff59bcd99"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060iterAllRuns\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":"lib/agent/storage.ts"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fd2e6d5f5796c2d9afed2c9ad912ec3c0bcf44d020c90655b6cf405ebafacc7"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060readdirSync\u0060 in \u0060iterAllRuns\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":"lib/agent/storage.ts"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"66c4053d6cdc890657e6a2b3e28eae4a3402675d73b3f5f143bae681e9f8a95b"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060findRunFileById\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":"lib/agent/storage.ts"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"6062ee263f9b069be778aad46db72bb9e52c1ed974d5bd9e7e32d67f6af2d624"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060readdirSync\u0060 in \u0060findRunFileById\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":"lib/agent/storage.ts"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"521ff90840332862d7d1d816e6039224bfaa4feadc60bdd64931d2f6b4217aa1"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060existsSync\u0060 in \u0060findRunFileById\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":"lib/agent/storage.ts"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef34cc5a98a269829526feed32256696483836eda26ad1f9e689d64fe7c58577"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 20 sibling directories (61 clone groups): 61 duplicated blocks under app/api/ have copies in at least two of the sibling directories admin, audio-analyze, audio-clip, commercial, credits, cron (\u002B14 more sibling(s) not listed) \u2014 46 of them are reported below, and 15 are counted here but not reported individually: those copies match on shape but no longer clear R10\u0027s bar for an individually reported row \u2014 either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 61 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 61 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 61 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":"app/api/admin/users/route.ts"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"67dddc7f4929fb79d81cc018b324b7581ab84c1ae6252be717e01c9cb1138a34"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 4 sibling directories (19 clone groups): 19 duplicated blocks under the repository root have copies in at least two of the sibling directories app, components, lib, workers \u2014 13 of them are reported below, and 6 are counted here but not reported individually: those copies match on shape but no longer clear R10\u0027s bar for an individually reported row \u2014 either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 19 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 19 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module \u2014 a common library every sibling imports \u2014 rather than 19 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/billing/payment/return/payment-return-client.tsx"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"36ee8ca3a19a9a696be86e04ddc9a3c2f7c49d4811bbde5c7940d07974dd0678"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 4 sibling directories (9 clone groups): 9 duplicated blocks under components/ have copies in at least two of the sibling directories agent, payments, reference-video, workflow \u2014 5 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 9 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 9 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 9 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":"components/reference-video/ReferenceVideoComposer.tsx"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"79b9cae1b26237a0997e5d55af49e6c55e90a22a8a82949a2b2babf32f8235de"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 4 sibling directories (6 clone groups): 6 duplicated blocks under app/api/commercial/ have copies in at least two of the sibling directories analysis, confirm, generation, tasks \u2014 5 of them are reported below, and 1 is counted here but not reported individually: those copies match on shape but no longer clear R10\u0027s bar for an individually reported row \u2014 either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 6 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 6 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module \u2014 a common library every sibling imports \u2014 rather than 6 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/commercial/analysis/route.ts"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa48bc54baece1beba66e139681555dd1a2b11d17bad5dc0d874bf1e3d15b324"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (60 matched lines \u00D7 2 locations): components/landing/site-header.tsx:25 \u00B7 components/language-switcher.tsx:18 \u2014 the two spans are one implementation copied and then locally edited \u2014 333 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":"components/landing/site-header.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"b93bde2dcb3ff4cd2a5ded6fd2fa6318b0b6f6f5445d0cdacc5f489b4711bcaf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (48 matched lines \u00D7 2 locations): lib/workflow/service.ts:256 \u00B7 lib/workflow/service.ts:342 \u2014 the two spans are one implementation copied and then locally edited \u2014 350 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":"lib/workflow/service.ts"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd1553916ec09ac38c26d8214be4e685ee346216e0a4ba46db84e243ac5db8a1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2 locations): components/sample-project-detail.tsx:17 \u00B7 components/workflow/video-workflow-create.tsx:32 \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":"components/sample-project-detail.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"597c1164dadd57e7b5778ab025bbcb67137177fa6534b4f4df08f68900959679"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2 locations): components/sample-project-detail.tsx:197 \u00B7 components/workflow/video-workflow-create.tsx:1044 \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":"components/sample-project-detail.tsx"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b6e3eeee21eb0ce18c69da6f933a905bd374d76c9f960b6a51964a42be06f6b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2 locations): lib/email/otp-email.ts:45 \u00B7 lib/email/welcome-email.ts:56 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/email/otp-email.ts"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"485738aad5893c09cd3027c0bbc45f1a4d842926ec4e4e81a4a7e1bc8ca238a8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): components/sample-project-detail.tsx:247 \u00B7 components/workflow/video-workflow-create.tsx:1175 \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":"components/sample-project-detail.tsx"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1290286457075907adda844709a36ed86c7ed63cc4084936860927af45fa3e4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): components/sample-project-detail.tsx:282 \u00B7 components/workflow/video-workflow-create.tsx:1211 \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":"components/sample-project-detail.tsx"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e63385edb2f7af27fbd2e78f4cf00fb1b0125961221a4e09d3cf3ae4ab7143e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): app/dashboard/page.tsx:294 \u00B7 app/dashboard/page.tsx:313 \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":"app/dashboard/page.tsx"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"593e4dd936ab6ea0fd1d35a9e8cda44a47fc0407906815e3e44a38cc6e7d345c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): lib/ai/adapters/kie-video.ts:255 \u00B7 lib/ai/adapters/kie-video.ts:289 \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":"lib/ai/adapters/kie-video.ts"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfeb00f1622e050ba183014f891e19de6619e6407e54e0e75ba10b3e7f14363f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (17 matched lines \u00D7 2 locations): components/admin-overview-panel.tsx:126 \u00B7 components/admin-user-directory.tsx:36 \u2014 the two spans are one implementation copied and then locally edited \u2014 129 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":"components/admin-overview-panel.tsx"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fc87e086263a260de721f0f449f4f251b3a46ba17b38ac65687ca79c4685c09"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): lib/ai/adapters/kie-video.ts:335 \u00B7 lib/ai/adapters/kie-video.ts:414 \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":"lib/ai/adapters/kie-video.ts"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"313c27cbf2260439c6d3681c8ca9077b45a14c5ce9e41a36230e1905b18329a8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): lib/ai/kie-client.ts:99 \u00B7 lib/ai/kie-responses.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":"lib/ai/kie-client.ts"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"e99732a17d82617e95f06029b932f39bbd7d1dbaf9ea14bbfd394edf5eccfb32"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): lib/video-processor/editor.ts:67 \u00B7 lib/video-processor/index.ts:37 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/video-processor/editor.ts"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"13880da5b929181763627c41b7fa34c1c1d967a1cce454b7712ef73a5573d10b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): components/reference-video/ReferenceVideoComposer.tsx:1589 \u00B7 components/reference-video/ReferenceVideoComposer.tsx:1677 \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":"components/reference-video/ReferenceVideoComposer.tsx"},"region":{"startLine":1589}}}],"partialFingerprints":{"codehealthFindingId/v1":"67a2dd684352160f7b675a912fd238bc627740cfca1f57821d968d2be509887d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): app/api/audio-clip/route.ts:231 \u00B7 app/api/audio-clip/route.ts:255 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/audio-clip/route.ts"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"31212dda0a4cddd19672e5fc2b1067be21ebd79d69cfbcf4160bc88b683dd4b8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): app/dashboard/page.tsx:354 \u00B7 app/dashboard/page.tsx:397 \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":"app/dashboard/page.tsx"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"bee67701f518850e91ea2ef1f798fadc38e78cb9ea0ef5e167a9db0d9181809e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): lib/utils/file-validation.ts:83 \u00B7 lib/utils/file-validation.ts:114 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/file-validation.ts"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1b2a971c00f08b4992eb6daaed8238c0e1caf348a6941a5c4d7025aa7ecbfbe"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (13 matched lines \u00D7 2 locations): lib/ai/kie-client.ts:81 \u00B7 lib/ai/kie-responses.ts:58 \u2014 the two spans are one implementation copied and then locally edited \u2014 147 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":"lib/ai/kie-client.ts"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5853de4aa208977d73f8e56217034ada6d577c9bfd4423d36ddbd0fe8d99615"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): remotion/prompt-lens-core-workflow-demo.tsx:71 \u00B7 remotion/prompt-lens-product-demo.tsx:60 \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":"remotion/prompt-lens-core-workflow-demo.tsx"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"a114e5b099deb73f738c06200cf253a326c578cd8610fd6a87e78d6f00f17ff5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): app/login/login-client.tsx:85 \u00B7 app/login/login-client.tsx:137 \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":"app/login/login-client.tsx"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f998d851d979a54ba81107e7737fcc8ccfbeac45ddd4d01b895b66d8dc54559"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): app/login/login-client.tsx:227 \u00B7 components/landing/site-footer.tsx:41 \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":"app/login/login-client.tsx"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"4569be179775f955f8bcff9edc358d7faaf4d943eac61db2efd9d0c315b3690a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (12 matched lines \u00D7 2 locations): components/reference-video/ReferenceVideoComposer.tsx:389 \u00B7 lib/billing/use-wallet-balance.ts:40 \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":"components/reference-video/ReferenceVideoComposer.tsx"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"3739149ae2443ad75c749c88ce28ea40d1b2a1264b1e42d6f98ea24bc417897d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): lib/agent/storage.ts:656 \u00B7 lib/agent/storage.ts:674 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/agent/storage.ts"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3acf1fc0b440f67a5880d2fe9e1a52072196358cb456793f5cdc19bb9a59c32"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5 locations): lib/db/schema.ts:241 \u00B7 lib/db/schema.ts:279 \u00B7 lib/db/schema.ts:383 \u00B7 lib/db/schema.ts:414 \u00B7 \u002B1 more site(s) not listed \u2014 all 5 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. Check what actually differs between the copies before collapsing them: every one of them is an argument to a \u0060pgTable(\u2026)\u0060 call, so where these calls are a MATRIX of cases \u2014 one per input, differing precisely in the case each one pins \u2014 the repetition is the enumeration and extracting the shared part would delete cases rather than de-duplicate anything."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/db/schema.ts"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8b7b9e8909ca8eb156aec4fc69bd92052ce304306f25ab85e53656da35724f9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3 locations): app/api/admin/logs/route.ts:65 \u00B7 app/api/admin/users/route.ts:32 \u00B7 app/api/admin/users/route.ts:96 \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":"app/api/admin/logs/route.ts"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"91084dcebc47cf2fcddb5b5d893003326a4a62e7154a31399cdc3b215ac3888b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): app/api/admin/overview/route.ts:42 \u00B7 lib/admin/usage.ts:12 \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":"app/api/admin/overview/route.ts"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d1a1cab49fdb53e937209576613caac8a444f054a8ba6fedce7194d52d3beac"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3 locations): app/api/agent/runs/[id]/cancel/route.ts:7 \u00B7 app/api/agent/runs/[id]/retry/route.ts:7 \u00B7 app/api/agent/runs/[id]/route.ts:7 \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":"app/api/agent/runs/[id]/cancel/route.ts"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbb4ffc4f1f71235226f3d8d3bfc47bf72a43848ab17092e208a384edf93eb1b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): app/api/history/route.ts:72 \u00B7 app/api/history/route.ts:115 \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":"app/api/history/route.ts"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6b834e76e468c07df6ceb2943999336073352c46b91ca3a7566bdc6fa905440"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): app/api/history/route.ts:108 \u00B7 app/api/settings/api-key/route.ts:169 \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":"app/api/history/route.ts"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"461b25a996c2ea24b70a80f27588f4c3ac02908f235100a10f52518b5bab8fff"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): app/api/settings/api-key/route.ts:57 \u00B7 app/api/settings/api-key/route.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":"app/api/settings/api-key/route.ts"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"36a791a60ed661eb03582fc336415fffd70ebcf613e0fcf2747024fb55b74aa3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): app/api/upload/route.ts:83 \u00B7 app/api/video-generate/route.ts: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":"app/api/upload/route.ts"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe6eea646370c21eaf2d165f5787fcb5b439c186ec5ea258dfda59eb13979ee9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): components/reference-video/ReferenceVideoComposer.tsx:369 \u00B7 lib/billing/use-wallet-balance.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":"components/reference-video/ReferenceVideoComposer.tsx"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab5695bc2f389eaba7fc8bcb08f50b3bb759332b1584cc89b4c3d0c96612d77e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): app/api/video-edit/route.ts:93 \u00B7 app/api/video-generate/route.ts:57 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/video-edit/route.ts"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bafd1b8e7ca90599671dab538250b153baf64b28ea9349f1c9f730d6d7f7d81"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): components/agent/agent-run-panel.tsx:77 \u00B7 components/agent/agent-run-panel.tsx:91 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/agent/agent-run-panel.tsx"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"68512dd19666b7da71c16ec40bad42e5f4f3e30f098b8dda446eb22ce63ea6ad"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): components/workflow/video-workflow-create.tsx:856 \u00B7 components/workflow/video-workflow-create.tsx:866 \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":"components/workflow/video-workflow-create.tsx"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"a818842e92c4b797cc8bff39953fbadcdd65c0e84d9cc46b30a65e7cc2f6c23e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): lib/db/schema.ts:380 \u00B7 lib/db/schema.ts:411 \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":"lib/db/schema.ts"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac1168e3e1e6e465a4519f6b57a03c9c2cfdb3891cbc54c27cbb578a69341792"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): app/api/admin/credits/grant/route.ts:10 \u00B7 app/api/project-assets/route.ts:22 \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":"app/api/admin/credits/grant/route.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"48c283d34f761fddf1a55f57f9f90c4b3173670aefddf81b8dfb20dd54d386a9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): app/api/audio-clip/route.ts:267 \u00B7 app/api/upload/route.ts:83 \u00B7 app/api/video-generate/route.ts:44 \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":"app/api/audio-clip/route.ts"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdc2b16ebfe3fc5606c2e69114dc6e65d38c5f0db3feaa5c2c732139d9584a62"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): app/api/commercial/tasks/[id]/route.ts:15 \u00B7 app/api/payments/orders/[id]/refund/route.ts:3 \u2014 the two spans are one implementation copied and then locally edited \u2014 135 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":"app/api/commercial/tasks/[id]/route.ts"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"c578bd79582b297df2b4448482dfd154ed56472ab221627772e6006dadf3de4e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): app/api/generation-jobs/route.ts:159 \u00B7 lib/billing/commercial-generation.ts:90 \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":"app/api/generation-jobs/route.ts"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3ca7fcb63287ae6896c80c9950ce3b79ca8c2076eb05245089ebaf13396a7fa"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): app/api/stats/route.ts:26 \u00B7 app/api/stats/route.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":"app/api/stats/route.ts"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"614d22e6d49b1950bcb0249d246b0e3f6b5ab8cd9e2e7e9912695e1006a6c6f0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): app/api/video-generate/route.ts:149 \u00B7 app/api/video-generate/status/route.ts:22 \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":"app/api/video-generate/route.ts"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fd49b1e721a55ca9b0f343e593cb23975468deecd6d282834f384e68b40e8fa"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): components/admin-financial-records.tsx:13 \u00B7 components/admin-overview-panel.tsx:113 \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":"components/admin-financial-records.tsx"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"7857704cbdaafcc7d63e307bc395e3422e34e156b7dab986e8142432c096d3b1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): components/audio-analyze-tab.tsx:132 \u00B7 components/video-edit-tab.tsx:211 \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":"components/audio-analyze-tab.tsx"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"60e4dc9095d777498254990a5e7d0ac49c98fb40f3bfede8c5d6f5f5f053509e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): components/audio-analyze-tab.tsx:148 \u00B7 components/video-edit-tab.tsx:223 \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":"components/audio-analyze-tab.tsx"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b39ff1a5b1393dec348db873e09becdce4bbcdbc915a8cd6408286f90b77246"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): components/payments/alipay-checkout-dialog.tsx:101 \u00B7 components/payments/alipay-checkout-dialog.tsx:119 \u2014 the two spans are one implementation copied and then locally edited \u2014 96 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":"components/payments/alipay-checkout-dialog.tsx"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"61267eb1a7cd38e15856ee8c825aaa750939e02aea8121e0b284fad232e9a4fe"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): components/payments/billing-account.tsx:23 \u00B7 components/video-edit-tab.tsx:47 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/payments/billing-account.tsx"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cb51ebe7048de6e9252b1558291b2c0e10dcff348b3a191292fc7344a792519"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): components/reference-video/ReferenceVideoComposer.tsx:344 \u00B7 components/workflow/project-history-details.tsx:16 \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":"components/reference-video/ReferenceVideoComposer.tsx"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"615b31ef68cdfc3f27ee19523a26420d93b6ff9347ebfb9f4c2f323ce632741c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): components/workflow/video-workflow-create.tsx:349 \u00B7 lib/billing/use-wallet-balance.ts:40 \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":"components/workflow/video-workflow-create.tsx"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8f4baee67c87dd738db84936a3abb5ae347ab62c59541544ccdec66b603aa5d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): lib/agent/service.ts:127 \u00B7 lib/agent/service.ts:144 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/agent/service.ts"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0f7a6e4b1fc8c29d797f65c9afb894608ecc7669ab738c758516e9c0f2523b3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): lib/agent/tools/create-video-prompt.ts:12 \u00B7 lib/agent/tools/generate-research-report.ts:12 \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":"lib/agent/tools/create-video-prompt.ts"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"c27d4ec33167b03c7089e3be1dab6c855e671f857ac2fc37117814d69cb780f1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): lib/ai/adapters/kie-video.ts:377 \u00B7 lib/reference-video/kie-veo.ts:242 \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":"lib/ai/adapters/kie-video.ts"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6ebcfb6cd6cdcf5b492ad353b238b28b389df2b6806ccf12e8b09e6a9d9a780"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): lib/db/schema.ts:639 \u00B7 lib/db/schema.ts:949 \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":"lib/db/schema.ts"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"425efef83d1ca023174827ad2ce5ad6c1a3f22c5063a5fcca85cff85de64771b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): remotion/prompt-lens-product-demo.tsx:70 \u00B7 remotion/prompt-lens-product-demo.tsx: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":"remotion/prompt-lens-product-demo.tsx"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"734e087f4ff21083bdbab0a50131b34dc1c265f0d44cf4fd68a71c3efa9549ba"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5 locations): app/api/admin/logs/route.ts:9 \u00B7 app/api/admin/logs/route.ts:71 \u00B7 app/api/admin/users/route.ts:9 \u00B7 app/api/admin/users/route.ts:102 \u00B7 \u002B1 more site(s) not listed \u2014 the 5 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":"app/api/admin/logs/route.ts"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"c29945f1df63666b8d78dc41815b8cf1915947a32909e16456827cdc3207a81d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): app/api/admin/payments/commercial/route.ts:36 \u00B7 app/api/commercial/generation/route.ts:6 \u2014 the two spans are one implementation copied and then locally edited \u2014 93 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":"app/api/admin/payments/commercial/route.ts"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"467f17017bc6b7e77fa908b4642201576f419be507b483f9f798b277ba52df9e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): app/api/admin/users/route.ts:30 \u00B7 app/api/settings/api-key/route.ts:54 \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":"app/api/admin/users/route.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b20fbe289e68e21a89ab25f91a35ba11a5a2e75944aa3efeb0b52c5e7b22c17"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): app/api/admin/users/route.ts:106 \u00B7 app/api/history/route.ts:110 \u00B7 app/api/settings/api-key/route.ts:171 \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":"app/api/admin/users/route.ts"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"34fda97da95ea50c745c041ee27b0f82f9fefa6d221de1b0617ede5a413abc41"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): app/api/commercial/analysis/route.ts:5 \u00B7 app/api/commercial/confirm/route.ts:7 \u2014 the two spans are one implementation copied and then locally edited \u2014 143 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":"app/api/commercial/analysis/route.ts"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"f52e81ead630f241897205534a9ab5e60d3d584131e9a33edae5420a59ced196"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): app/api/commercial/analysis/route.ts:5 \u00B7 app/api/commercial/generation/route.ts:4 \u2014 the two spans are one implementation copied and then locally edited \u2014 143 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":"app/api/commercial/analysis/route.ts"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb6a370e3db35eba8421a8fbdd2cf8c4e23aef7497a7db46405e75997891afde"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4 locations): app/api/history/route.ts:20 \u00B7 app/api/history/route.ts:58 \u00B7 app/api/history/route.ts:101 \u00B7 app/api/video-generate/route.ts:135 \u2014 the 4 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/history/route.ts"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0699c37e374591f3ca80b4c4decb0ca2a46639a639c39f70ada903b4aa7a5b2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): app/api/history/route.ts:96 \u00B7 app/api/settings/api-key/route.ts: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":"app/api/history/route.ts"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb6945e0a7fb7f3b5c01743173af6959045acafe5833d8a158f63607c30ae289"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): app/api/payments/orders/[id]/close/route.ts:10 \u00B7 app/api/payments/orders/[id]/pay/route.ts:16 \u2014 the two spans are one implementation copied and then locally edited \u2014 106 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":"app/api/payments/orders/[id]/close/route.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"91f9da8987916fac26863ff4cebbd916d1e08e1d27a3f89f26301177ab9e113d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): app/api/payments/orders/[id]/close/route.ts:7 \u00B7 app/api/payments/orders/[id]/route.ts:8 \u2014 the two spans are one implementation copied and then locally edited \u2014 166 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":"app/api/payments/orders/[id]/close/route.ts"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c1218296d9efaaf7dc185c5981120515b4b7dfe8ef36a875d3ab644581555da"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): app/api/payments/orders/[id]/pay/route.ts:14 \u00B7 app/api/payments/orders/[id]/route.ts:8 \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":"app/api/payments/orders/[id]/pay/route.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee22145c97d8838bcde7b6870fc0d965e1bcf211fa50f99a9de1ee38e9e1c42c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): app/api/payments/orders/[id]/route.ts:6 \u00B7 app/api/workflow/analysis-tasks/[id]/route.ts:8 \u2014 the two spans are one implementation copied and then locally edited \u2014 158 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":"app/api/payments/orders/[id]/route.ts"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eda561d81bfd7d0d8a99423cd2d3ffd7954b122860444dd3ab2f4e873f20340"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): app/api/workflow/projects/[id]/audio/route.ts:13 \u00B7 app/api/workflow/projects/[id]/edit/route.ts:28 \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":"app/api/workflow/projects/[id]/audio/route.ts"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5494ccd9ec2e89818fa9c4a651e0809f12eaeb978ae7f880ec8be95066b1964"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): app/api/workflow/projects/[id]/remix/route.ts:17 \u00B7 app/api/workflow/projects/[id]/scenes/[sceneVersionId]/rewrite/route.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":"app/api/workflow/projects/[id]/remix/route.ts"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"4adf2e1d68b56d0ae6a575f4f95fffa4bb810f258cfb3f06d39e409bc06fd811"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): app/api/workflow/projects/[id]/scenes/[sceneVersionId]/rewrite/route.ts:13 \u00B7 app/api/workflow/projects/[id]/scenes/[sceneVersionId]/route.ts:7 \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":"app/api/workflow/projects/[id]/scenes/[sceneVersionId]/rewrite/route.ts"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3404596ff6a94ff3479fcaf8631cb8f42558afe0cc49f1c9163c7bf75743ecd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): components/agent/agent-composer.tsx:215 \u00B7 lib/utils/frame-extractor.ts:90 \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":"components/agent/agent-composer.tsx"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"97a82e1d64cb52a614015dd9437624313dbaa17e64c9dd5236a605b234467579"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4 locations): components/ui/dialog.tsx:79 \u00B7 components/ui/dialog.tsx:90 \u00B7 components/ui/dialog.tsx:106 \u00B7 components/ui/dialog.tsx:119 \u2014 all 4 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":"components/ui/dialog.tsx"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"a60aa00cc9901afc78e9f69140cdabf216b79fb02ff9b0b3000cae54fbb63b9f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): components/workflow/video-workflow-create.tsx:194 \u00B7 lib/workflow/audio-production.ts:63 \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":"components/workflow/video-workflow-create.tsx"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fd8ac7af8666484e7b66f96a90bade27a1cc9e6a023fd46e7c09d6be54a9304"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): lib/agent/tools/analyze-prompt-goal.ts:79 \u00B7 lib/agent/tools/web-search-mock.ts:26 \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":"lib/agent/tools/analyze-prompt-goal.ts"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8f46a27ef8896d311a0b85a380d2439da398cad781acf0b91121d46ed68d56f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): lib/db/schema.ts:231 \u00B7 lib/db/schema.ts:541 \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":"lib/db/schema.ts"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d7ef6bf8f47aa8f2822377f73dc9a057ff5f27c4aaa061db7c769b630e7a9eb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6 locations): lib/db/schema.ts:494 \u00B7 lib/db/schema.ts:560 \u00B7 lib/db/schema.ts:779 \u00B7 lib/db/schema.ts:828 \u00B7 \u002B2 more site(s) not listed \u2014 all 6 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":"lib/db/schema.ts"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b271063ec342fd5c451f3af5d1fdc45c99b858cbbb3e976f9043223b7f7072c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): lib/ffmpeg-worker/client.ts:52 \u00B7 lib/ffmpeg-worker/client.ts:83 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ffmpeg-worker/client.ts"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c75055550c56777d957dbee0da671c901b06ccf06fdf740bf18f7013def3191"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): lib/workflow/scene-analysis.ts:341 \u00B7 lib/workflow/scene-analysis.ts:394 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/workflow/scene-analysis.ts"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"072f892de9bb882f6a9dae2eeb8b313805279359cf26316846de1277fb7f0b0f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): app/api/admin/payments/commercial/route.ts:36 \u00B7 app/api/payments/orders/[id]/refund/route.ts:5 \u2014 the two spans are one implementation copied and then locally edited \u2014 107 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":"app/api/admin/payments/commercial/route.ts"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3c6690784efe9bfb01b8b17c077f735983b67633883ca840d943f29f5146408"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): app/api/admin/payments/manual/route.ts:29 \u00B7 app/api/payments/checkout/route.ts:7 \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":"app/api/admin/payments/manual/route.ts"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4d100b5bc4f0e4c7aa9248c6b875312fa83a726194beeed42262cb8de4b3f2a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): app/api/agent/runs/[id]/artifacts/[artifactId]/route.ts:7 \u00B7 app/api/agent/runs/[id]/execute/route.ts:9 \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":"app/api/agent/runs/[id]/artifacts/[artifactId]/route.ts"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"de2ded418830c86d0af19a0ee7e2f964fead8ca2c568ef97652f34346ce8143b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): app/api/audio-analyze/route.ts:160 \u00B7 app/api/audio-clip/route.ts:285 \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":"app/api/audio-analyze/route.ts"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b0c2ae551fb357c2b8aeb45f112aec72f143b0dc3e5e95344236eaf65fe8f6c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): app/api/commercial/generation/route.ts:5 \u00B7 app/api/commercial/tasks/[id]/route.ts:15 \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":"app/api/commercial/generation/route.ts"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e7be68962403dc12697f28de6111751e8964d84302f1b7f380e92c307cbd8c3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): app/api/payments/checkout/route.ts:10 \u00B7 app/api/payments/orders/[id]/close/route.ts:7 \u2014 the two spans are one implementation copied and then locally edited \u2014 113 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/payments/checkout/route.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"ede5fe7d52295f5b60dc1b624f455a799656f03db9e8fc92629602e25ab8b059"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): app/api/payments/orders/[id]/close/route.ts:5 \u00B7 app/api/payments/orders/[id]/refund/route.ts:3 \u2014 the two spans are one implementation copied and then locally edited \u2014 146 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":"app/api/payments/orders/[id]/close/route.ts"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"571b6f148b5bdc0d10f76bbed41a9470fd88b79a72c93f35ffd75249caf851ff"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): app/api/payments/orders/[id]/route.ts:6 \u00B7 app/api/workflow/projects/[id]/route.ts:3 \u2014 the two spans are one implementation copied and then locally edited \u2014 108 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":"app/api/payments/orders/[id]/route.ts"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ecb929493e55c10dadd5448e1ca40bcb814d8472839826f85666aaa9a47dd06"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): app/api/upload/complete/route.ts:49 \u00B7 app/api/workflow/projects/[id]/route.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":"app/api/upload/complete/route.ts"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"7768faca987ec6ff0e1e6866e9a85b53036125d319e2684d07e8022f01a2e505"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): components/audio-analyze-tab.tsx:352 \u00B7 components/audio-analyze-tab.tsx:472 \u00B7 components/video-edit-tab.tsx:493 \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":"components/audio-analyze-tab.tsx"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d2eaa295555d5951bf9f2fedd84d67ebb0bf5ced8fa9f0eacf23fc7b0d5054e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): components/payments/analysis-task-progress.tsx:48 \u00B7 components/workflow/video-workflow-create.tsx:244 \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":"components/payments/analysis-task-progress.tsx"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"67973d1a17ba13e2da0e9057f60935e6e574408114b45f9cc99f8aa073f3c202"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): components/sample-project-detail.tsx:239 \u00B7 components/workflow/video-workflow-create.tsx:1167 \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":"components/sample-project-detail.tsx"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e96746ec7a98b19f73a2ae84e55c796e3d348d5b4752f13e30202806d2845bf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6 locations): components/ui/card.tsx:4 \u00B7 components/ui/card.tsx:19 \u00B7 components/ui/card.tsx:31 \u00B7 components/ui/card.tsx:46 \u00B7 \u002B2 more site(s) not listed \u2014 all 6 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":"components/ui/card.tsx"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"a68df44153261b9204b9fe39c3f2ab254f100d0ffe9a7ed5ea6ed945652f1ebb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): lib/agent/client.ts:52 \u00B7 lib/agent/client.ts:66 \u00B7 lib/agent/client.ts:76 \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":"lib/agent/client.ts"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab911bc93a718692043c329832679ded2e07407d58a683ca963455ee3bbed6fd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 7 locations): lib/agent/tools/call-existing-analyze-api.ts:19 \u00B7 lib/agent/tools/call-existing-video-generate-api.ts:28 \u00B7 lib/agent/tools/create-video-prompt.ts:12 \u00B7 lib/agent/tools/existing-history-lookup.ts:23 \u00B7 \u002B3 more site(s) not listed \u2014 the 7 copies are spread across 7 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":"lib/agent/tools/call-existing-analyze-api.ts"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8420c04fb83e841e1d14c8beac2f43ea07d70ea960a0e5eec358cb0ac4f2c3c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): lib/db/schema.ts:202 \u00B7 lib/db/schema.ts:214 \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":"lib/db/schema.ts"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"2098db2e8da6a7b14866ee5c37c6aac837f3d4ae348f94a4c582af0c1575c170"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): lib/db/schema.ts:934 \u00B7 lib/db/schema.ts:965 \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":"lib/db/schema.ts"},"region":{"startLine":934}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5028dfd66021613d9e2f5c8e31ab8ff3c78739d94399b8d14cdfdaeb7fd69e7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): workers/ffmpeg-worker/server.mjs:134 \u00B7 workers/ffmpeg-worker/storage-media-download.mjs:39 \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":"workers/ffmpeg-worker/server.mjs"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"14fef458f0c34e47a1996c6055986df56efedb8d6f090d00fe0332222455f2aa"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): app/api/admin/me/route.ts:2 \u00B7 app/api/credits/me/route.ts:6 \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":"app/api/admin/me/route.ts"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"57272468a408a5a5554bfec1232fc6084e72408c445c2fd3061408cf07f7a366"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): app/api/admin/overview/route.ts:57 \u00B7 lib/admin/user-directory.ts:52 \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":"app/api/admin/overview/route.ts"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"4df7ee93f90b087edfeab44e0f7fa571c01c96402dac4a49010cffe7a4f3216d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): app/api/admin/payments/commercial/route.ts:36 \u00B7 app/api/commercial/tasks/[id]/route.ts:16 \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":"app/api/admin/payments/commercial/route.ts"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"e64c82f0d7abe34cccf041352a42d1dc8a420fef3eeaff718f0d6622060edd11"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3 locations): app/api/audio-analyze/route.ts:74 \u00B7 app/api/video-edit/route.ts:94 \u00B7 app/api/video-generate/route.ts:58 \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":"app/api/audio-analyze/route.ts"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"21b8cbb23b3cd08c820079b28bd9ce85be322775386b3bae521c916bec667d27"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6 locations): app/api/audio-clip/route.ts:38 \u00B7 app/api/history/route.ts:26 \u00B7 app/api/history/route.ts:64 \u00B7 app/api/settings/api-key/route.ts:12 \u00B7 \u002B2 more site(s) not listed \u2014 the 6 copies are spread across 5 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/audio-clip/route.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"752eeb1ca9b2fab8b3eaa7e2f3afe4debef23ade9e4fe68ebbc868b1622ddb54"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): app/api/commercial/analysis/route.ts:7 \u00B7 app/api/commercial/tasks/[id]/route.ts:15 \u2014 the two spans are one implementation copied and then locally edited \u2014 103 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":"app/api/commercial/analysis/route.ts"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"c61085e6fefcb878ad789ac03fbf5105756a4bc7d37a94d6dfbbac8f422383ef"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): app/api/commercial/analysis/route.ts:7 \u00B7 app/api/payments/orders/[id]/close/route.ts:5 \u2014 the two spans are one implementation copied and then locally edited \u2014 101 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":"app/api/commercial/analysis/route.ts"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd6da0fffbe8ecd00406c4f0cb9731f4b42718d2f92610639196053c48fddc93"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): app/api/commercial/confirm/route.ts:8 \u00B7 app/api/commercial/tasks/[id]/route.ts:15 \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":"app/api/commercial/confirm/route.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"8019e5906b76fcbe30c4b4e167445fb63ccc01bb1c4501d1ccc6697f066a93e8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): app/api/commercial/confirm/route.ts:8 \u00B7 app/api/payments/orders/[id]/close/route.ts:5 \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":"app/api/commercial/confirm/route.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"12a13f6fb5bd9eca40d58f1a2f729c7727eee1b44444e260a16dac3179b15d99"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): app/api/commercial/confirm/route.ts:7 \u00B7 app/api/workflow/analysis-tasks/[id]/route.ts:6 \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":"app/api/commercial/confirm/route.ts"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b8ebf23a8a7c772eb9de4270a06d7e540ff8d01ad2f54a5c94c9db762f537ac"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): app/api/commercial/generation/route.ts:5 \u00B7 app/api/payments/orders/[id]/close/route.ts:5 \u2014 the two spans are one implementation copied and then locally edited \u2014 111 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":"app/api/commercial/generation/route.ts"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"09106aa807ffdba3dd9577d41a5a8171db3eb628173549130f3aa38da69042ab"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): app/api/commercial/tasks/[id]/route.ts:16 \u00B7 app/api/payments/checkout/route.ts:10 \u2014 the two spans are one implementation copied and then locally edited \u2014 103 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":"app/api/commercial/tasks/[id]/route.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"084c5c4311fed67507747e8aaf600a0cf7ed1524f26fe10bfe538ccbc5470403"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): app/api/media/resolve-link/route.ts:136 \u00B7 app/api/media/resolve-link/route.ts:170 \u2014 the two spans are one implementation copied and then locally edited \u2014 56 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":"app/api/media/resolve-link/route.ts"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"05f315a11bc6b281eaa727065c32c20ac786cd587a28e91b90cbd8626cf1392b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): app/api/media/resolve-link/route.ts:54 \u00B7 app/api/payments/orders/[id]/refund/route.ts:5 \u2014 the two spans are one implementation copied and then locally edited \u2014 111 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":"app/api/media/resolve-link/route.ts"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f3efa455eb9dc3ffd5b0855e7d57a582d00c7555787d368897c2f9d7ae3981f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): app/api/media/resolve-link/route.ts:54 \u00B7 app/api/workflow/projects/[id]/breakdown/route.ts:9 \u2014 the two spans are one implementation copied and then locally edited \u2014 111 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":"app/api/media/resolve-link/route.ts"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"9055fa01f389fae5b60e520488ad74ff0e73e7442b455f5c56cdc0578b868e07"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): app/api/payments/orders/[id]/close/route.ts:5 \u00B7 app/api/workflow/projects/[id]/breakdown/route.ts:8 \u2014 the two spans are one implementation copied and then locally edited \u2014 120 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":"app/api/payments/orders/[id]/close/route.ts"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d442e53c8acfbf318c98d5ab2115f703137b65084237c939188e7b96c725fcd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): app/api/settings/api-key/route.ts:168 \u00B7 app/api/video-edit/route.ts:83 \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":"app/api/settings/api-key/route.ts"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"e25f5891b961fd3102501c4b2c8b66141665e061bdc898c73cc59c81c0a4f7b6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): app/api/workflow/analysis-tasks/[id]/route.ts:6 \u00B7 app/api/workflow/projects/[id]/breakdown/route.ts:6 \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":"app/api/workflow/analysis-tasks/[id]/route.ts"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"db2417a878071a3c4a40116a6fe28c097327ea0d21f734a6690d9db7d9b87d8a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): app/api/workflow/analysis-tasks/[id]/route.ts:8 \u00B7 app/api/workflow/projects/[id]/route.ts:3 \u2014 the two spans are one implementation copied and then locally edited \u2014 89 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":"app/api/workflow/analysis-tasks/[id]/route.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff7daa173da90139d8c2722edd8ba9e4deecb859ace334c6c9411859476cf702"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): app/billing/review/page.tsx:17 \u00B7 components/workflow/video-workflow-create.tsx:325 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/billing/review/page.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"e17f3c9909a6ab0fe4c96ca76ba12dbc4bc324d65517af1dbe33177f6d6f3327"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): components/audio-analyze-tab.tsx:71 \u00B7 components/video-edit-tab.tsx: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":"components/audio-analyze-tab.tsx"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"049c97ca1245ec9316b180f9dc949284d71b03953c207d30766aa6443d5790b7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): components/history-list.tsx:55 \u00B7 components/samples-gallery.tsx: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":"components/history-list.tsx"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"d19f626eb0c565100e4e1d4ad9f3ac37d643b293a95eece8785f740ba744ec8e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): components/payments/alipay-checkout-dialog.tsx:28 \u00B7 components/workflow/scene-video-preview.tsx:53 \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":"components/payments/alipay-checkout-dialog.tsx"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd34d248077f34215678ba343edbbf5a5e17aa774b049f26738aacb995db6ef0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 14 locations): lib/db/schema.ts:161 \u00B7 lib/db/schema.ts:240 \u00B7 lib/db/schema.ts:278 \u00B7 lib/db/schema.ts:382 \u00B7 \u002B10 more site(s) not listed \u2014 all 14 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":"lib/db/schema.ts"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d47af004c035e71c450ebf551965232eedc2818ef41be1f26e38f4e9a5fe024"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3 locations): lib/db/schema.ts:174 \u00B7 lib/db/schema.ts:201 \u00B7 lib/db/schema.ts:213 \u2014 all 3 copies are in the same file, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/db/schema.ts"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab8a827bf540fe0fe6a12b56d78e1c17f4a116f5dd57f16d63bbbb3163434665"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3 locations): lib/db/schema.ts:521 \u00B7 lib/db/schema.ts:851 \u00B7 lib/db/schema.ts:976 \u2014 all 3 copies are in the same file, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/db/schema.ts"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e5f0b5b9c2e8faf95bf780c475adc76f3a25c7f0a1be17fcd46a6337e9e82e0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (5 matched lines \u00D7 2 locations): app/api/admin/me/route.ts:2 \u00B7 app/api/payments/account/route.ts:4 \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":"app/api/admin/me/route.ts"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f2c125ae87d6c18660eac91d23833c8b92fd9c1e8f1172073ed76aef307a67e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): app/api/admin/payments/commercial/route.ts:49 \u00B7 app/api/admin/payments/commercial/route.ts:57 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/admin/payments/commercial/route.ts"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fc6a5f26bdcb77ba1e93f01449d6b504b8c5e8a02d213b928e6415c4196abcb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (5 matched lines \u00D7 2 locations): app/api/admin/payments/commercial/route.ts:36 \u00B7 app/api/payments/orders/[id]/close/route.ts:7 \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":"app/api/admin/payments/commercial/route.ts"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe813591717272568399a9225090a61ea051fb08e0042af54359159593e6a0cf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (5 matched lines \u00D7 2 locations): app/api/admin/payments/manual/route.ts:32 \u00B7 app/api/workflow/projects/[id]/remix/route.ts:8 \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":"app/api/admin/payments/manual/route.ts"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bf7f89bf41a5b11767a58f7b9406690e3008e97ef7c411dde5cbcc7a58f7239"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5 locations): app/api/audio-analyze/route.ts:65 \u00B7 app/api/audio-analyze/route.ts:151 \u00B7 app/api/upload/complete/route.ts:8 \u00B7 app/api/workflow/projects/route.ts:7 \u00B7 \u002B1 more site(s) not listed \u2014 the 5 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":"app/api/audio-analyze/route.ts"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb275335a9c5af298dfa177f930cc7e66d7242b295ce7480914f14c93fbe9440"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): app/api/audio-analyze/route.ts:149 \u00B7 app/api/workflow/projects/route.ts:52 \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":"app/api/audio-analyze/route.ts"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"7be24afc823215a6cb4e67509b84df4bd5f619b7993e2bd481a683d91f234d48"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): app/api/audio-clip/route.ts:160 \u00B7 app/api/audio-clip/route.ts:196 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/audio-clip/route.ts"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"009429046211400c304b42caf79ef162ad5a7950e4aa3b02986a86d405ef1282"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (5 matched lines \u00D7 2 locations): app/api/commercial/analysis/route.ts:8 \u00B7 app/api/payments/checkout/route.ts:10 \u2014 the two spans are one implementation copied and then locally edited \u2014 111 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":"app/api/commercial/analysis/route.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"26621d907d39f5aad187f4fe03c67c8bbec700900770351082a6d4c4a3bb1588"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (5 matched lines \u00D7 2 locations): app/api/commercial/confirm/route.ts:9 \u00B7 app/api/payments/checkout/route.ts:10 \u2014 the two spans are one implementation copied and then locally edited \u2014 111 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":"app/api/commercial/confirm/route.ts"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd0c7d751537320c8f223bb7b5d7ce4e311b13a1bb3a6d9285ac035c8e929dde"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (5 matched lines \u00D7 2 locations): app/api/commercial/tasks/[id]/route.ts:16 \u00B7 app/api/commercial/tasks/[id]/route.ts:38 \u2014 the two spans are one implementation copied and then locally edited \u2014 92 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":"app/api/commercial/tasks/[id]/route.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"36384de14405aa8f40fc6d87e7f1f2016049ea773eb3f6b9d1f3f49952727bcd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4 locations): app/api/cron/analysis-dispatch/route.ts:11 \u00B7 app/api/cron/commercial-reconciliation/route.ts:17 \u00B7 app/api/cron/media-retention/route.ts:7 \u00B7 app/api/internal/analysis-run/route.ts:12 \u2014 the 4 copies are spread across 4 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/cron/analysis-dispatch/route.ts"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"6196696d752e423d298969770110d58add816925fbc5351343cec966d057a5a0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): app/api/cron/media-retention/route.ts:7 \u00B7 app/api/internal/analysis-run/route.ts:12 \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":"app/api/cron/media-retention/route.ts"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"481811cccb1a0561db736c2026f557bf3c773729fec8b787af1c4edca262caee"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3 locations): app/api/history/route.ts:8 \u00B7 app/api/settings/api-key/route.ts:11 \u00B7 app/api/video-generate/status/route.ts:10 \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":"app/api/history/route.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"4127ff894956849b948828fe43ecaf2c6b0f92b56f82d2877813d35e87e3f81f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (5 matched lines \u00D7 2 locations): app/api/media/resolve-link/route.ts:54 \u00B7 app/api/payments/orders/[id]/close/route.ts:7 \u2014 the two spans are one implementation copied and then locally edited \u2014 93 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":"app/api/media/resolve-link/route.ts"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2d34bf9ad7081c45e2ecf7873bc2b7c895cfd052c9f7f9e255fca59798a0d08"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (5 matched lines \u00D7 2 locations): app/api/media/resolve-link/route.ts:57 \u00B7 app/api/project-assets/route.ts:30 \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":"app/api/media/resolve-link/route.ts"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"44f57d2d87347355cd7e40e52baf24e1f317a1a5da2a457136231acc19dc09ff"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (5 matched lines \u00D7 2 locations): app/api/payments/checkout/route.ts:10 \u00B7 app/api/workflow/projects/[id]/breakdown/route.ts:9 \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":"app/api/payments/checkout/route.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"87beab5ec822405bddf6fdbf7df024b4a9af3e25db7e41d0155503978c4d8d0d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (5 matched lines \u00D7 2 locations): app/api/payments/orders/[id]/close/route.ts:7 \u00B7 app/api/workflow/projects/[id]/route.ts:5 \u2014 the two spans are one implementation copied and then locally edited \u2014 84 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":"app/api/payments/orders/[id]/close/route.ts"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"d30b65c7bf542525dc9cd68db2f932690d32a12931ec1c89649091e56a0a647e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (5 matched lines \u00D7 2 locations): app/api/payments/orders/[id]/refund/route.ts:5 \u00B7 app/api/workflow/analysis-tasks/[id]/route.ts:9 \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":"app/api/payments/orders/[id]/refund/route.ts"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"4854ba2539e57d730f9f190ac6c78f66deac1c5991560a4ea25a61e7ad856820"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (5 matched lines \u00D7 2 locations): app/billing/payment/return/payment-return-client.tsx:19 \u00B7 components/payments/billing-account.tsx:32 \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":"app/billing/payment/return/payment-return-client.tsx"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"a76a3215e982c94f10da96dedef9210bb3bf9afa5b369e1066d910b688438537"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): app/billing/tasks/[id]/page.tsx:24 \u00B7 components/payments/analysis-quote-panel.tsx:221 \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":"app/billing/tasks/[id]/page.tsx"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"f52d89600c443df78c853f5a5367eddf7910dbd887158438cb99d4a177ca254f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): components/admin-user-directory.tsx:15 \u00B7 components/sample-project-detail.tsx:96 \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":"components/admin-user-directory.tsx"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"47fe3071427a567e79f28031a5251a691027639903027276c991410c35a0ebeb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3 locations): components/agent/agent-chat-page.tsx:19 \u00B7 components/payments/billing-account.tsx:27 \u00B7 components/video-edit-tab.tsx:47 \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":"components/agent/agent-chat-page.tsx"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"c95514d03fda4e1a85419ef47c2d1dc801d7321d64ac9f7a48ca8ee6051fc6ea"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3 locations): components/payments/billing-account.tsx:25 \u00B7 components/reference-video/generation-history.tsx:14 \u00B7 components/video-edit-tab.tsx:49 \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":"components/payments/billing-account.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"6de2c36c1fde3007205da4838aabe22581731d768b8ab1ec6e421c44695c8dfc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): components/video-edit-tab.tsx:48 \u00B7 components/workflow/video-workflow-create.tsx:324 \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":"components/video-edit-tab.tsx"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fccddaa66e14100797517a70328f8f4a7e4c9cf0ac236e17d564f982aed90f3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): lib/billing/commercial-analysis.ts:261 \u00B7 lib/workflow/analysis-tasks.ts:296 \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":"lib/billing/commercial-analysis.ts"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c62ba15edd13412d20a44fb086530f0e0a30d8a1ca744edd45e29fa1b8228d6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): lib/cloudflare/r2.ts:13 \u00B7 workers/ffmpeg-worker/server.mjs:22 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is a run of MODULE-LEVEL DECLARATIONS \u2014 bindings the module declares and exports \u2014 rather than statements with a call site. Do not read this as an extract-a-helper row: a call expression cannot stand where a declaration was, and putting one there would delete the names themselves, which are what the rest of the codebase imports. What actually repeats here is the INITIALISER \u2014 the same expression shape written once per binding. So give that expression one name (a small helper the initialisers call, or a shared base value they are each derived from) and keep every binding under the name it already has. Where the run is an enumeration \u2014 one binding per distinct thing, differing precisely in the thing each one names \u2014 the repetition IS the enumeration and collapsing it would delete entries; consider instead whether the set belongs in one exported table the individual names are read out of. Reported because the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/cloudflare/r2.ts"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"dea37cfb29a55b227d589f525a134b2ec52bef534d8cd9199aaf01936ee71d8f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): lib/workflow/transcription.ts:105 \u00B7 lib/workflow/transcription.ts:114 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/workflow/transcription.ts"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"6edc4511109f56e33eee058394ffecb93a467431718ff96b4cd2c04636d73890"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): remotion/prompt-lens-core-workflow-demo.tsx:218 \u00B7 remotion/prompt-lens-core-workflow-demo.tsx:239 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"remotion/prompt-lens-core-workflow-demo.tsx"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"c62bb9271fe626d5fee247cae410aed067695712b90dd3833c1bc331953cd875"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function VideoWorkflowCreate (cyclomatic 105, cognitive 90): VideoWorkflowCreate has cyclomatic complexity 105 and cognitive complexity 90; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/workflow/video-workflow-create.tsx"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"22a187d69935b6d1fdd11149aa5f03b4f6f83c7440bb2c028aee9c9eb48a7b67"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ReferenceVideoComposer (cyclomatic 94, cognitive 91): ReferenceVideoComposer has cyclomatic complexity 94 and cognitive complexity 91; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/reference-video/ReferenceVideoComposer.tsx"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"7876322c52bc947bbf31db04ad2ecb1c01b58beb298529c9559df14281a70723"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function AlipayCheckoutDialog (cyclomatic 88, cognitive 78): AlipayCheckoutDialog has cyclomatic complexity 88 and cognitive complexity 78; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/payments/alipay-checkout-dialog.tsx"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"e828b677d55de4584f56d0c4fa55933ab72415e2e45872f8400f4a787e09d9ca"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function estimateGeneration (cyclomatic 85, cognitive 103): estimateGeneration has cyclomatic complexity 85 and cognitive complexity 103; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/billing/pricing-v6.ts"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f5ed12d124fcc8713d5489d7ba86e5180879953f60c33ea4cf462291395872c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function startBreakdown (cyclomatic 72, cognitive 71): startBreakdown has cyclomatic complexity 72 and cognitive complexity 71; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/workflow/video-workflow-create.tsx"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ea380ff4ec2fa7793996269c056c938113f0388303914e01581f9b914042811"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function BillingAccount (cyclomatic 70, cognitive 65): BillingAccount has cyclomatic complexity 70 and cognitive complexity 65; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/payments/billing-account.tsx"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"413c2eaa96916ef77289e1fa407e038c060ee4cc1df1a9a28d4a1b41e09c581e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function GET (cyclomatic 62, cognitive 64): GET has cyclomatic complexity 62 and cognitive complexity 64; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/commercial/tasks/[id]/route.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"9912e5aad3ed7d0d9bbd7c15862a1edcd526a503e635505372b3bde27bc51913"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function DashboardPage (cyclomatic 62, cognitive 58): DashboardPage has cyclomatic complexity 62 and cognitive complexity 58; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/dashboard/page.tsx"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"194f1797a6112bbdd91031376a0a8d2b99f64e2d41d64da28c225ee162dc25ad"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function AnalysisQuotePanel (cyclomatic 60, cognitive 54): AnalysisQuotePanel has cyclomatic complexity 60 and cognitive complexity 54; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/payments/analysis-quote-panel.tsx"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa707398b75fb2d3bdd7cac9bc4d94978f1914e02a28b74071c27195051afdee"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function post (cyclomatic 59, cognitive 74): post has cyclomatic complexity 59 and cognitive complexity 74; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/payments/analysis-quote-panel.tsx"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9072bd1c804721f16cb722aa46d37f9eb1a006da28874c089b58efa5f1cfe46"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function POST (cyclomatic 55, cognitive 93): POST has cyclomatic complexity 55 and cognitive complexity 93; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/workflow/projects/[id]/scenes/[sceneVersionId]/rewrite/route.ts"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"8225c1d1185dbf591eed08c4ed4f2ffa51b171915fbf8555e7208cb16763b679"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildMarketGenerationPayload (cyclomatic 54, cognitive 73): buildMarketGenerationPayload has cyclomatic complexity 54 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":"lib/ai/generation-payload.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"42003e55113b5ba9706764d3ffc5b846db304e6594981b847aa84bcdc64f5a96"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 52, cognitive 42): (anonymous) has cyclomatic complexity 52 and cognitive complexity 42; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/workflow/video-workflow-create.tsx"},"region":{"startLine":1049}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7daac73e145cb19becdca972a7f20d98f037ddb5f6a4b8b0b210e3550e77e32"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function POST (cyclomatic 47, cognitive 57): POST has cyclomatic complexity 47 and cognitive complexity 57; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/generation-jobs/route.ts"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdc044c83b66483624a10a3aa4c93b949ed612313cd232d4cf15ba25464a8551"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildCommercialGenerationPayload (cyclomatic 45, cognitive 41): buildCommercialGenerationPayload has cyclomatic complexity 45 and cognitive complexity 41; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/billing/commercial-generation.ts"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"4404a10a35eca1a4ac0332ec8396189cfd390c094e588085b9aa274157863fca"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getKieVeoGenerationStatus (cyclomatic 44, cognitive 48): getKieVeoGenerationStatus has cyclomatic complexity 44 and cognitive complexity 48; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/reference-video/kie-veo.ts"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"d951a2c058bb7fce5336f86a8fcbc6d96e22112297a89498514b1f6e64e888f0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 44, cognitive 41): (anonymous) has cyclomatic complexity 44 and cognitive complexity 41; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/billing/review/page.tsx"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"c659c3c6ca6d89dea03a9e5635ea6db5f1acedf157bc5ce2937ab604cdc1d296"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function runAnalysisTaskStep (cyclomatic 43, cognitive 60): runAnalysisTaskStep has cyclomatic complexity 43 and cognitive complexity 60; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/workflow/analysis-tasks.ts"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bd369d34d43fcf5c803260f5cc4ae13cd8e0457b55e8c8fe0cdcdf979d7c884"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 43, cognitive 46): (anonymous) has cyclomatic complexity 43 and cognitive complexity 46; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/billing/independent-scene-analysis.ts"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"42b6ad09fab6f8636c9c6b5df98fe88aeb9d0d51c3835c89e4c572edaa5dd52f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 42, cognitive 41): (anonymous) has cyclomatic complexity 42 and cognitive complexity 41; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/e2e/commercial-analysis.spec.ts"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"b396e5a77cb27d999dbd01bc88adc89585e81b1fc104ba83db8872409237d49e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function loadOverview (cyclomatic 41, cognitive 41): loadOverview has cyclomatic complexity 41 and cognitive complexity 41; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/admin/overview/route.ts"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c96617c15bb171bda1a0e58a5d41adae6aae6e794e1a7d0311d0e609cc68fee"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function read (cyclomatic 40, cognitive 40): read has cyclomatic complexity 40 and cognitive complexity 40; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"workers/ffmpeg-worker/remote-video-codec.mjs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a90114bb7c67277fc538e2583de71f0251d6ea103caa7a475fc26357df2ef4f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function POST (cyclomatic 37, cognitive 39): POST has cyclomatic complexity 37 and cognitive complexity 39; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/admin/payments/commercial/route.ts"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"85cca24b6383c7fb6acd28eda12eed30198c72aae37d9063c6c5ebc475bd3807"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 37, cognitive 32): (anonymous) has cyclomatic complexity 37 and cognitive complexity 32; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/billing/review/page.tsx"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"f19f145e95582113992570e493e9762ec0999c185f2a0fcfb44ed79261bd13c2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function generationCreditPreview (cyclomatic 35, cognitive 36): generationCreditPreview has cyclomatic complexity 35 and cognitive complexity 36; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/billing/generation-credit-preview.ts"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"951dced9fc5df0b63487471a63dcc58a23fac46890b56c795805e313eb8fb12e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function SceneVideoPlayer (cyclomatic 34, cognitive 32): SceneVideoPlayer has cyclomatic complexity 34 and cognitive complexity 32; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/workflow/scene-video-preview.tsx"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"701bb1d0729d6b1e1c7c0906159826252c9e80269e3ed773bb9a5f40b7bf8555"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function AnalysisTaskDetails (cyclomatic 34, cognitive 31): AnalysisTaskDetails has cyclomatic complexity 34 and cognitive complexity 31; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/payments/analysis-task-details.tsx"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"84cb7bf3019e868bc1d8dedf9ca15bda7dbb874c062320bcc927e256cb8fe5d5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function executeRun (cyclomatic 33, cognitive 47): executeRun has cyclomatic complexity 33 and cognitive complexity 47; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/agent/executor.ts"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"032f53f9193f13fc221ec219ba7abfc8f8d4acb36d9ebc895c189c5f41b11a1b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function retryFailedScene (cyclomatic 32, cognitive 35): retryFailedScene has cyclomatic complexity 32 and cognitive complexity 35; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/workflow/video-workflow-create.tsx"},"region":{"startLine":788}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dc9e62603297b19633cb94339a6cc24295e5abfcdd30d1eea8fba7906c785f5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function AdminFinancialRecords (cyclomatic 32, cognitive 29): AdminFinancialRecords has cyclomatic complexity 32 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":"components/admin-financial-records.tsx"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd2e525a2bfea613b9547226b6381c28b194400601334899c9ba876ed90b2385"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function AnalysisTaskProgress (cyclomatic 32, cognitive 29): AnalysisTaskProgress has cyclomatic complexity 32 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":"components/payments/analysis-task-progress.tsx"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd60243399d54b085fc6557788226d80174cfa6d244059a212a881adf99e1bbb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function AudioAnalyzeTab (cyclomatic 31, cognitive 30): AudioAnalyzeTab has cyclomatic complexity 31 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/audio-analyze-tab.tsx"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"af56b5de1615f7a8850544674aaca44e1c235b9551f256c67f6ec2709f15a9cc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function BillingTaskPage (cyclomatic 30, cognitive 28): BillingTaskPage has cyclomatic complexity 30 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/billing/tasks/[id]/page.tsx"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c13933776f803ceef28e99675bbae681a6223c3b60474e4e67ad67c425776af"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildInfistarVideoPayload (cyclomatic 30, cognitive 23): buildInfistarVideoPayload has cyclomatic complexity 30 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ai/adapters/infistar-video.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba55f788f0f356bbac0d6e1c19d8bb6eda398c009c65ca658a6b653a77f9c187"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function PromptLensRewriteDemo (cyclomatic 29, cognitive 27): PromptLensRewriteDemo has cyclomatic complexity 29 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"remotion/prompt-lens-rewrite-demo.tsx"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"94c9fc62df87652168c8763106f17dc3f7b2901cc9cfd8356f158bac174ec28a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function callAnalysisChatJson (cyclomatic 28, cognitive 43): callAnalysisChatJson has cyclomatic complexity 28 and cognitive complexity 43; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/workflow/scene-analysis.ts"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a47002f936674825e0596a9202cd449c0bb39065c8fa3c89e10f7c6bba1517c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function submitGenerationJob (cyclomatic 28, cognitive 37): submitGenerationJob has cyclomatic complexity 28 and cognitive complexity 37; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/reference-video/ReferenceVideoComposer.tsx"},"region":{"startLine":1076}}}],"partialFingerprints":{"codehealthFindingId/v1":"587f306f872600ab08802b09d270dfe44c1be3bf7875b2883c4a2d3890e61d7c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function creditRuleTopics (cyclomatic 28, cognitive 27): creditRuleTopics has cyclomatic complexity 28 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/guide/credit-rules.ts"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"01b4124922b9de6b7323d0b271273f73a3c00d8a8b7e286da36099f97a0a7ddb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function AdminUserDirectory (cyclomatic 28, cognitive 25): AdminUserDirectory has cyclomatic complexity 28 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/admin-user-directory.tsx"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"5feb4b96f8812be890e260adf29ef2c6264b4b86bed635f454835aece46372d4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function runMockSearch (cyclomatic 28, cognitive 14): runMockSearch has cyclomatic complexity 28 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/agent/mock-data.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"8286f36a3b8e2caa7ddcc4911eb59430c529c2dc39f8f2ba136ddd7a330a01ca"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleImport (cyclomatic 27, cognitive 37): handleImport has cyclomatic complexity 27 and cognitive complexity 37; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/media/resolve-link/route.ts"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"2df31b18dc47c95cbb8ec8cd0fa261e052c616f8e2974c7460998775caee9323"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function GET (cyclomatic 27, cognitive 36): GET has cyclomatic complexity 27 and cognitive complexity 36; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/generation-jobs/route.ts"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a36faa331a9fedadc3ebd7753d5a9b2cbec1fb720dd3f39bd7775221b444aa4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function quoteCommercialGeneration (cyclomatic 27, cognitive 33): quoteCommercialGeneration has cyclomatic complexity 27 and cognitive complexity 33; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/billing/commercial-generation.ts"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"537d3e6763554724fcaf0185096c5314f4cc8cb1f69401bb3dd01fd1a1633edd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function runIndependentSceneJob (cyclomatic 27, cognitive 30): runIndependentSceneJob has cyclomatic complexity 27 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/billing/independent-scene-analysis.ts"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"93e81311cb6602e6f4ad8d25a27088cdf1de628d3353a4eed8c2323b937383d5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function POST (cyclomatic 26, cognitive 36): POST has cyclomatic complexity 26 and cognitive complexity 36; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/commercial/analysis/route.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cab5f40320cdf8cf7498ccf47bd1be5fb5b07e243fd0faad91aca4f85e0e962"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function execute (cyclomatic 26, cognitive 29): execute has cyclomatic complexity 26 and cognitive complexity 29; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/agent/tools/call-existing-analyze-api.ts"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdb72e325b73aa75eb1dd27b4e2fbc43414d79c5da5d0bd277104aeba505c664"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function VideoEditTab (cyclomatic 26, cognitive 23): VideoEditTab has cyclomatic complexity 26 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/video-edit-tab.tsx"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aa3667c9c5aa0aae3497567775662d72f52fe2796ff9bb61100869cf75be258"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function submitCommercialGeneration (cyclomatic 25, cognitive 33): submitCommercialGeneration has cyclomatic complexity 25 and cognitive complexity 33; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/reference-video/commercial-generation-submit.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"aecac4288611d872549580c9c250cbdbeb4b22d8bd65cc65c32d738dda2b6f4d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function reconcileAlipayOrder (cyclomatic 25, cognitive 30): reconcileAlipayOrder has cyclomatic complexity 25 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/payments/alipay-reconciliation.ts"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3d10ab33a3e191a55e58e344ca6632407d8d13b69c1c1b9fa26175ef097722f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function rewriteSceneBlueprint (cyclomatic 25, cognitive 30): rewriteSceneBlueprint has cyclomatic complexity 25 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/workflow/scene-analysis.ts"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e7953f33cef97e3ef31e8ad230d4a3d087cf27fb78f4704bba296abab33f4f5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 25, cognitive 27): (anonymous) has cyclomatic complexity 25 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/payments/credit-checkout.ts"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"c207fa3c75b98ca4446a9c1c9679504dbea597a663d87e2fc0cd68574233d1aa"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function taskFailureMessage (cyclomatic 25, cognitive 23): taskFailureMessage has cyclomatic complexity 25 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/billing/task-failure-message.ts"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ea53b15a9e237a4507d46f722d7d24975fe752fb1ae5875ed464d452c73184d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function AgentComposer (cyclomatic 25, cognitive 22): AgentComposer has cyclomatic complexity 25 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/agent/agent-composer.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4b9410ae9f8088a34ec256376194a3dae1269ee1f3d037aaf4b8a3be502b546"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getInfistarVideoStatus (cyclomatic 24, cognitive 31): getInfistarVideoStatus has cyclomatic complexity 24 and cognitive complexity 31; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ai/adapters/infistar-video.ts"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"1707cbadbb5a317a96788441412ae9c6e6e0548716181a1b618e416f72117b9c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 24, cognitive 25): (anonymous) has cyclomatic complexity 24 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/workflow/analysis-tasks.ts"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"4987245434b633497ed46a7c43ef2a0bd990bd9c0f17c33bda09a92b6c47f234"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function poll (cyclomatic 23, cognitive 37): poll has cyclomatic complexity 23 and cognitive complexity 37; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/payments/analysis-quote-panel.tsx"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf2f02d2f731faab86db5b727589abbb814d4dda87dd14edefaf7d602fb69392"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readChatResponse (cyclomatic 23, cognitive 33): readChatResponse has cyclomatic complexity 23 and cognitive complexity 33; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ai/kie-client.ts"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"25058943e469e9d90ea3a4049f055ee283e9fa47ef73a086344a306f41f14b10"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function poll (cyclomatic 23, cognitive 29): poll has cyclomatic complexity 23 and cognitive complexity 29; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/workflow/video-workflow-create.tsx"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cb66b19f689fa7811368817fff04cb4de8e7d1576d3952a0c4f3c88c5a58091"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function POST (cyclomatic 23, cognitive 25): POST has cyclomatic complexity 23 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/video-generate/route.ts"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"f91876debfc1de8084973efe09f939a5eddfc7f4cd2fc07eb0fa8f278bfd9036"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function GenerationHistory (cyclomatic 23, cognitive 22): GenerationHistory has cyclomatic complexity 23 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/reference-video/generation-history.tsx"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"04e6bb39ff31c779fb2d181a1e077f95c2c108a716814ceeecb75607a3bc06a4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 23, cognitive 20): (anonymous) has cyclomatic complexity 23 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/api-key-settings.tsx"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c93b7cfb16625f24ff7b96cd1f4238da87aee50d910e3f23118123e27da408b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function POST (cyclomatic 23, cognitive 18): POST has cyclomatic complexity 23 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/upload/complete/route.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce30b6e9bb484a20278c7d4ddf5807e8be8cabc939ac210435b5b9bf269f1797"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseResultUrls (cyclomatic 23, cognitive 13): parseResultUrls has cyclomatic complexity 23 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/reference-video/kie-veo.ts"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"7989483debcec25250b43e8382734e2492aeb2055843c95a915f8842f1f4bfb7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 22, cognitive 29): (anonymous) has cyclomatic complexity 22 and cognitive complexity 29; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/reference-video/ReferenceVideoComposer.tsx"},"region":{"startLine":889}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cd98df02ccdb3526349327b1c31964a1528be5324277ad566406f1308861487"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function CommercialReviewPage (cyclomatic 22, cognitive 21): CommercialReviewPage has cyclomatic complexity 22 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/billing/review/page.tsx"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"032631bd1cdddb3980669b8f9589f0ca5ea9896882b98ff6de27ee185b590c8e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 22, cognitive 21): (anonymous) has cyclomatic complexity 22 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/reference-video/generation-history.tsx"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"faa143d5db9889f5270bd3b3a8e8fad2c35b91e004924d5130854643c7691284"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 22, cognitive 18): (anonymous) has cyclomatic complexity 22 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/admin-financial-records.tsx"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"3efa6c0bb56d6ae74ef5fad817662a7f112ba7f41b584511885c4df062575476"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function CreditBalanceLink (cyclomatic 22, cognitive 17): CreditBalanceLink has cyclomatic complexity 22 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/workflow/credit-balance-link.tsx"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e35f9c059567c1a2cdc33eb5e7fbfe668a5a1f30b6e527ffb66002d3c7d852c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleEdit (cyclomatic 21, cognitive 32): handleEdit has cyclomatic complexity 21 and cognitive complexity 32; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/video-edit-tab.tsx"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed8fc0d3db3a9866ec245a37c0c0b59073c4b1b529199fe24ec69eb8d6244866"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function runCommercialTask (cyclomatic 21, cognitive 32): runCommercialTask has cyclomatic complexity 21 and cognitive complexity 32; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/billing/commercial-task-runner.ts"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"c737e0204110799c33312c34d90a56440ad0a006d0d6b11e4f9939039d369eeb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function rewriteScene (cyclomatic 21, cognitive 24): rewriteScene has cyclomatic complexity 21 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/workflow/video-workflow-create.tsx"},"region":{"startLine":747}}}],"partialFingerprints":{"codehealthFindingId/v1":"e18211468595526d1c20aaa757fc9782314cc298a328e7ae9e8e541f513b9c83"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildKIEJobPayload (cyclomatic 21, cognitive 24): buildKIEJobPayload has cyclomatic complexity 21 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ai/adapters/kie-video.ts"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"90d3c609f291b160b4f22951265b59beb650dbfa1754784075e1d061eaf6b562"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 21, cognitive 21): (anonymous) has cyclomatic complexity 21 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/e2e/veo-credits.spec.ts"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7834c8048d705cb6ebde9bc9b10edb01f092fee881b09c952badeadbfd64b8b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function POST (cyclomatic 21, cognitive 19): POST has cyclomatic complexity 21 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/admin/credits/grant/route.ts"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"3577ab8eb7581bc2fc2127de67bc53de18f6b4c3b6cc419888f677b8fb3053df"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function deferredPOST (cyclomatic 21, cognitive 19): deferredPOST has cyclomatic complexity 21 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/video-edit/route.ts"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"54ffcacf93a3115e571de8356d52d50a3daa2545fa7d7aefb1c0c03ee7f29060"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function AgentStepCard (cyclomatic 21, cognitive 19): AgentStepCard has cyclomatic complexity 21 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/agent/agent-step-card.tsx"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"150e393e1de7fba31541e82fd4fd7a8e1f026922e02b80756af34337f38a37be"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function probeRemoteVideoCodec (cyclomatic 20, cognitive 35): probeRemoteVideoCodec has cyclomatic complexity 20 and cognitive complexity 35; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"workers/ffmpeg-worker/remote-video-codec.mjs"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"15a74f344d61ba4d0c58e6f4ef0cd77ffec31010af04a8fe7891d2962a86a3c9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function confirmCommercialTaskInTransaction (cyclomatic 20, cognitive 33): confirmCommercialTaskInTransaction has cyclomatic complexity 20 and cognitive complexity 33; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/billing/commercial-task-runner.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"811eb484d344139e8b65c16cfb7e417cd8a46264c87ad3c87b6e9bedefb3eba3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function middleware (cyclomatic 20, cognitive 26): middleware has cyclomatic complexity 20 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"middleware.ts"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cc3c89ff647542d976a1e7ae51f98cfb4dd0f3b34e9a334f9175b0c700dcaef"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function POST (cyclomatic 20, cognitive 22): POST has cyclomatic complexity 20 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/commercial/analysis/[id]/shots/[sceneId]/route.ts"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"1130df38abffad445c35ec426622a24eb738bb942f63cf844e744d1fb9800ab2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function reserveCommercialTaskInTransaction (cyclomatic 20, cognitive 22): reserveCommercialTaskInTransaction has cyclomatic complexity 20 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/billing/commercial-wallet.ts"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe76a0bfe999b49214c9094dc06e14b5be3664dc297228c7977092501f74759c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function GuidePage (cyclomatic 20, cognitive 19): GuidePage has cyclomatic complexity 20 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/guide/page.tsx"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"029f023b61fd2cd82b5abd2f5e8eec9634e390b50728d675a680743d12b32268"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function prepareCommercialAnalysis (cyclomatic 20, cognitive 19): prepareCommercialAnalysis has cyclomatic complexity 20 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/billing/commercial-analysis.ts"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f9b942658daed41139a4a99e20e6b8dac186fe9841703603138ead659c793ce"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateAnalysis (cyclomatic 20, cognitive 17): validateAnalysis has cyclomatic complexity 20 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/billing/pricing-v6.ts"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6461c6cdf8d8fdc823f217d5d6e5cd723b502dc262044583a18b7e2a22f1b40"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readLinkImportResponse (cyclomatic 19, cognitive 30): readLinkImportResponse has cyclomatic complexity 19 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/media-resolver/import-progress.ts"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f4de4261bfe9870b7063188cb3167493a6fa20b5aa0958d73a445a450361498"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 19, cognitive 29): (anonymous) has cyclomatic complexity 19 and cognitive complexity 29; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/e2e/commercial-analysis.spec.ts"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aaa0452a368acd88548d2802f98b1b1ed6b785ecf7dee227ad5bc44919120c9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function action (cyclomatic 19, cognitive 21): action has cyclomatic complexity 19 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/api-key-settings.tsx"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b598f4ee43a399f699cc3b5da21983b2792a0e130370d7dcd730ed306641ca5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function quoteCommercialAnalysisRetry (cyclomatic 19, cognitive 20): quoteCommercialAnalysisRetry has cyclomatic complexity 19 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/billing/commercial-analysis.ts"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"27ae7345476395cd61b380f377afdab630bfd52c077207696a7f48c8be0bee31"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function SiteHeader (cyclomatic 19, cognitive 18): SiteHeader has cyclomatic complexity 19 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/landing/site-header.tsx"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"36ef56ed1af59e4f209702b6ee1a69f4fac57f9a3cb5ddb769fe7d1c14cb8839"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function checkError (cyclomatic 19, cognitive 17): checkError has cyclomatic complexity 19 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ai/kie-responses.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbecbd16b36720634f68235f934dcde4df199ed5b08c196a6bf36f7dc1c9d70f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function SampleCard (cyclomatic 19, cognitive 16): SampleCard has cyclomatic complexity 19 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/samples-gallery.tsx"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"dabb1837dc0e51356256977730fc032299c3d6348017a31e76a45703c7bd88b0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 19, cognitive 13): (anonymous) has cyclomatic complexity 19 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/payments/commercial-refunds.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"32c42486b73b1ebf347609166be0710da112baecfa05a2ccd0266c4c03691c72"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 18, cognitive 30): (anonymous) has cyclomatic complexity 18 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/reference-video/ReferenceVideoComposer.tsx"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8c676a07fee309d8e93d7147290cc6eda84dc53f3d42a649c611234ff8e3877"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function refund (cyclomatic 18, cognitive 20): refund has cyclomatic complexity 18 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/payments/billing-account.tsx"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"12a3d65cf5b5947d17bcd562f030aa62721e7cfce171069799374427b20b0c64"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 18, cognitive 20): (anonymous) has cyclomatic complexity 18 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/billing/commercial-analysis.ts"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"834536b46fa03abd5b3446a66a758c6fad1e012d9d4811c95ee7b6f1b0d88fec"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function AdminOverviewPanel (cyclomatic 18, cognitive 18): AdminOverviewPanel has cyclomatic complexity 18 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/admin-overview-panel.tsx"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b80d4de212870c1de4fe3a9d31e691f25d1d84980cefb284bf2224624b131ff"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function POST (cyclomatic 18, cognitive 17): POST has cyclomatic complexity 18 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/settings/api-key/route.ts"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"70eaf30ca400e3a0eeb415721baba3484c2b458ac81d38328fec3d4ff5b84c33"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ArtifactContent (cyclomatic 18, cognitive 16): ArtifactContent has cyclomatic complexity 18 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/agent/agent-artifact-panel.tsx"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"86503e4d20725778876694cda4043c8d64fb02c77630b94990920a9baf6af0dd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function AnalysisHistory (cyclomatic 18, cognitive 16): AnalysisHistory has cyclomatic complexity 18 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/history-list.tsx"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f1e6cc2575055dca71f006e651cafe97d6e14bf003c972404e15463ef45a782"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ProjectHistoryDetails (cyclomatic 18, cognitive 16): ProjectHistoryDetails has cyclomatic complexity 18 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/workflow/project-history-details.tsx"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"17351dd7f974f5aac0456941fc4ca6358de921d879bdf823837237566e8c6461"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 18, cognitive 15): (anonymous) has cyclomatic complexity 18 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/admin/payments/commercial/route.ts"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1168564192dcdb4f85427b6cfd574f86abb334f169e20593e7ff28543ac57dd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 18, cognitive 12): (anonymous) has cyclomatic complexity 18 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/payments/alipay-checkout-dialog.tsx"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"c389f4d89824b006952a4999dc0607b62c644025729c5477cab85388c0102100"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 18, cognitive 12): (anonymous) has cyclomatic complexity 18 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/payments/commercial-refunds.ts"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c48dbca7b31c68e576c86b1bb5eb41d2902e035083fae54462648a439d69ca4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function act (cyclomatic 17, cognitive 24): act has cyclomatic complexity 17 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/billing/review/page.tsx"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fbe4e00d85c5c92f2fe3a25fbab080bf10a9e962ad37e4c839b33c38416e47b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleFile (cyclomatic 17, cognitive 24): handleFile has cyclomatic complexity 17 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/workflow/video-workflow-create.tsx"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7744bf16b5e3a55f7663b1d9884190df55449f7c5598c76014e3e0a39467c31"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function main (cyclomatic 17, cognitive 21): main has cyclomatic complexity 17 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/easydown-web-download.mjs"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"7866d73e5a64e6a84e6cc59fa46248bed66dc9ff5157dc7ad2817618c3bf5da2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function loadQuote (cyclomatic 17, cognitive 20): loadQuote has cyclomatic complexity 17 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/payments/analysis-quote-panel.tsx"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"d10e4dc2cc2ca6b2bd4b7238b374988e3c7a0da1ceb1b838e7408e8f13e4e7dd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function togglePlayback (cyclomatic 17, cognitive 20): togglePlayback has cyclomatic complexity 17 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/workflow/scene-video-preview.tsx"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddf8662923ab327035d7ef64d6710c2b7b4411773897158fbc6b69fe7b27df82"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildRecreationPrompt (cyclomatic 17, cognitive 20): buildRecreationPrompt has cyclomatic complexity 17 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/workflow/recreation-prompt.ts"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea57161a2797402981df67cefda4c1794cd94c3b41c27cf8bbebd05617d50c1d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function GET (cyclomatic 17, cognitive 19): GET has cyclomatic complexity 17 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/cron/commercial-reconciliation/route.ts"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"67078d72b5d4c6eb938a84c567c877f4c6abe9d5adfc2fd629ea80ac46ddb960"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function deferredPOST (cyclomatic 17, cognitive 18): deferredPOST has cyclomatic complexity 17 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/workflow/projects/[id]/edit/route.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aea9163399e83db79a6566b98eed43d137a824c463691364cf567e056944cce"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readInfistarMedia (cyclomatic 17, cognitive 18): readInfistarMedia has cyclomatic complexity 17 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ai/infistar-media.ts"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"db095c0a3dd275a06a8a5c90179be43d7b5de2c32ba38cd0371beba64bdd47a9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function settleCommercialTaskInTransaction (cyclomatic 17, cognitive 18): settleCommercialTaskInTransaction has cyclomatic complexity 17 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/billing/commercial-wallet.ts"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e7e022ca03de59db3e5c68f2466475dd48d2acc10638201df447d4bc90d715b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function deferredPOST (cyclomatic 17, cognitive 17): deferredPOST has cyclomatic complexity 17 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/audio-analyze/route.ts"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a6693ed2d6ee886debf06c9926b711bdeaa03077d09125dc2ca356ea1c19d47"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function POST (cyclomatic 17, cognitive 17): POST has cyclomatic complexity 17 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/commercial/confirm/route.ts"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee2ca9f39768648421519af8b050a3ae8556886622293cb46d9a60b4b2324261"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleAnalyze (cyclomatic 17, cognitive 17): handleAnalyze has cyclomatic complexity 17 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/audio-analyze-tab.tsx"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc93571d5edcc6907b6cbc46e3f6e0979d51a3262f014d5d14227697b7eeb1a2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function AgentRunPanel (cyclomatic 17, cognitive 16): AgentRunPanel has cyclomatic complexity 17 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/agent/agent-run-panel.tsx"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"e282c5746d343934041ba31104842a4ceb8e72e38621f68c03e90c619485245b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function AnalysisProgressPanel (cyclomatic 17, cognitive 16): AnalysisProgressPanel has cyclomatic complexity 17 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/workflow/video-workflow-create.tsx"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"02273297013b6ea329f6f366fc75afbd5ea434c0d7ac40a66677274522b3417f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildAnalysisDiagnostics (cyclomatic 17, cognitive 16): buildAnalysisDiagnostics has cyclomatic complexity 17 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/billing/analysis-diagnostics.ts"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5b1af24b4258f954829338550695733aa63ddd205fe0a4eed3dfaea905d60a5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function taskErrorDetails (cyclomatic 17, cognitive 16): taskErrorDetails has cyclomatic complexity 17 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/billing/task-diagnostics.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0acf993725822849314714297b376c7aefc0ff7997638bee92d6e17856cbae1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ShotPreview (cyclomatic 17, cognitive 13): ShotPreview has cyclomatic complexity 17 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/workflow/analyzed-shot-preview.tsx"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"27903cec4d986d157ebf4ad647c93651dbe6584b7d28b12b3a1db2b16f3fb40a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseVideoUrlFromObject (cyclomatic 17, cognitive 9): parseVideoUrlFromObject has cyclomatic complexity 17 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ai/adapters/kie-video.ts"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4284e23e71bac390085931dd6cb41762958b8d32a5fc20df047045cccebf3fe"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function downloadStorageMedia (cyclomatic 16, cognitive 31): downloadStorageMedia has cyclomatic complexity 16 and cognitive complexity 31; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"workers/ffmpeg-worker/storage-media-download.mjs"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"43210712b2bf0177e6873b9047025eb80fcd712fb24ee8bc747a2cd182e42778"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchProjectList (cyclomatic 16, cognitive 28): fetchProjectList has cyclomatic complexity 16 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/workflow/project-list-client.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c859575d6efb3c73f89ef371591404eff5d87c6519d6d94eba371e9757e339a9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function queryUserDirectory (cyclomatic 16, cognitive 23): queryUserDirectory has cyclomatic complexity 16 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/admin/user-directory.ts"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"face2be76c334cdf4b2dcf06b3f15d2673c0f911a90c90823b1e31a46dbf96ee"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildAlert (cyclomatic 16, cognitive 23): buildAlert has cyclomatic complexity 16 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/vercel-log-report.mjs"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"862499159df6f6460d915a1cc80893a481a80ec901cbb9e62bf45068be4beb0f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 16, cognitive 22): (anonymous) has cyclomatic complexity 16 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/billing/analysis-diagnostics.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"64b9982f4ecbed8fcf7c5e218869f56e0ecef4e5d9c2c49260fd1053569f4808"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveGenerationModel (cyclomatic 16, cognitive 21): resolveGenerationModel has cyclomatic complexity 16 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ai/generation-models.ts"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"636e856b59abd4a5f602fef5bf8fd894931fe0ec5325af5c930cca9f9df7f44f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function executeCommercialGeneration (cyclomatic 16, cognitive 17): executeCommercialGeneration has cyclomatic complexity 16 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/billing/commercial-generation.ts"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"7846dbf419a43328ae799d41892bf1df8c242a9c12bc8ef0613172c8f46edc3f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function POST (cyclomatic 16, cognitive 16): POST has cyclomatic complexity 16 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/workflow/projects/[id]/remix/route.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b38fd8e6fe25ae4683311c79cdd6971904fd8bba07b3a7c1f4d32e011522e6f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function POST (cyclomatic 16, cognitive 15): POST has cyclomatic complexity 16 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/payments/webhooks/creem/route.ts"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"e88b45d2b42dfc38bfde5465a09fb2de7a50fe5c5a49827d5119e7c809a02fe2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function POST (cyclomatic 16, cognitive 15): POST has cyclomatic complexity 16 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/project-assets/route.ts"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"232d8d65499766ebfc56e3ed0f8ab40e3fdd12118713ed9fd8c22e4ad27903fc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function transcribeMedia (cyclomatic 16, cognitive 15): transcribeMedia has cyclomatic complexity 16 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/workflow/transcription.ts"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cdb0aff458c2dee71e4baf209806fcb70bf047324e740f8c353294f9a0adac1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 16, cognitive 14): (anonymous) has cyclomatic complexity 16 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/agent/service.ts"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f31168ce496e9c5722da7cee5735c256b9409f2930d71b61271f1dcc6343904"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function selectEasyDownMedia (cyclomatic 16, cognitive 14): selectEasyDownMedia has cyclomatic complexity 16 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/media-resolver/easydown.ts"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa5018daf951663babbf0cf4bc4a43721a1e8f8b6290fb3b5e8ba678279d4194"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 16, cognitive 12): (anonymous) has cyclomatic complexity 16 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/workflow/analysis-tasks.ts"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"0728addee53b0dd93783f876045c8746d4679f1f2b9751fc4e6b1b8109e5e697"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sourcePlatform (cyclomatic 16, cognitive 10): sourcePlatform has cyclomatic complexity 16 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/media-resolver/source-platform.ts"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2356bd2acbaf3b0661e5adb1370126020013714d5f0ea74df2a0d3bd74b2eb2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function rewriteSceneVersion (cyclomatic 15, cognitive 26): rewriteSceneVersion has cyclomatic complexity 15 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/workflow/service.ts"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e5b21d26411e1b7c2fbe1792a5bd6a0300aac640827d02753fff205cc6a6f52"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function loadOverview (cyclomatic 15, cognitive 24): loadOverview has cyclomatic complexity 15 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/admin-overview-panel.tsx"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"a112b7923fb3026e09973df780b73c9e54559525193b831b1eed9ac8b37f901d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createInfistarVideo (cyclomatic 15, cognitive 20): createInfistarVideo has cyclomatic complexity 15 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ai/adapters/infistar-video.ts"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"73a8693f09f952dd1c8afd883a36b900e86d5bd5dd12746208bf6f2f964f6ba8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleCommercialMedia (cyclomatic 15, cognitive 17): handleCommercialMedia has cyclomatic complexity 15 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"workers/ffmpeg-worker/server.mjs"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4d8a7caee6fbb8a3251a483bfc949afd8a3eed3a30326a715cb06130ca9d20d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildKIEVeoPayload (cyclomatic 15, cognitive 15): buildKIEVeoPayload has cyclomatic complexity 15 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ai/adapters/kie-video.ts"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ab317f93eb5ef833a51a8928f5b0d7dfe1abfc2fe596eab732be07e9babed21"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function tick (cyclomatic 15, cognitive 15): tick has cyclomatic complexity 15 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"workers/ffmpeg-worker/reconciliation-scheduler.mjs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a4b2321ef92e64450b541ed2d495b40fa4640893dc728a9d2d5bdc1785a2da7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function PATCH (cyclomatic 15, cognitive 14): PATCH has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/payments/orders/[id]/refund/route.ts"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"7634e51be1906e2b77016cf14451d22437e00f5ef74b21157662ca7f3661197e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function execute (cyclomatic 15, cognitive 14): execute has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/agent/tools/generate-research-report.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"7148393c4a4afab8d21e52b0dfc71d79a79a07bc760f4b69368fb6b088452ab3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function recognizeBackgroundMusic (cyclomatic 15, cognitive 14): recognizeBackgroundMusic has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/workflow/music-recognition.ts"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfb2eeec60d61e7f1600b4d0bcc089629f0b2303f488e4357113f0775d8d8fcf"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildEditPlan (cyclomatic 15, cognitive 14): buildEditPlan has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/workflow/video-editing.ts"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0695343356850d8ede728fd54c9c054bd5836d6cc8324007a51ac8f46174af6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 14): (anonymous) has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"remotion/prompt-lens-rewrite-demo.tsx"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"71718927a899c2a5570f45cc94020e07725c8dadb7c441452d9af9bea7e971fd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function quoteCommercialAnalysis (cyclomatic 15, cognitive 13): quoteCommercialAnalysis has cyclomatic complexity 15 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/billing/commercial-analysis.ts"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8d29fedac3dfc02db927438f03664a8b0a102806b8bbb3a4b5082c2b542f059"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateSceneAnalysis (cyclomatic 15, cognitive 13): validateSceneAnalysis has cyclomatic complexity 15 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/workflow/scene-analysis-result.ts"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"a45fd0fe17eef3e0f6f30065b8cc8b0709c26476f60b9ecf1222b843a494a809"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeBlueprint (cyclomatic 15, cognitive 13): normalizeBlueprint has cyclomatic complexity 15 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/workflow/scene-analysis.ts"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"12f93a6cd2f98544d446f1f3046af596166e85928d57eb465d23bc743b933f1f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function GET (cyclomatic 15, cognitive 10): GET has cyclomatic complexity 15 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/payments/orders/[id]/route.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ffa73c0f6f5c79a086931bf67b663ff772b34bc5073c715f0868a7dcbbd300f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 24): (anonymous) has cyclomatic complexity 14 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/easydown-web-download.mjs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f0269765cab8a0ec92d117539b555b483edc41fc8295fb82a7ea52f326e66bd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ingestVideoCandidates (cyclomatic 14, cognitive 22): ingestVideoCandidates has cyclomatic complexity 14 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"workers/ffmpeg-worker/video-inspection.mjs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b5c3feb8be9cf7cc4f5f4b070fe0d2bb9ca61fd1d5e309891728e3e3d4efb1e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 20): (anonymous) has cyclomatic complexity 14 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ai/kie-client.ts"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"72fda58f3cc0eee828fdfc2f952c3a2cee87bd82c5d5965853376de5d74825be"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ingestLinkedMediaWithWorker (cyclomatic 14, cognitive 18): ingestLinkedMediaWithWorker has cyclomatic complexity 14 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ffmpeg-worker/client.ts"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f14ac2e59f2cead088fd8dd899bcffacd8b1c52d507d3cf69fdf5e6a3a2a006"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function declaredVideoCodecs (cyclomatic 14, cognitive 17): declaredVideoCodecs has cyclomatic complexity 14 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"workers/ffmpeg-worker/remote-video-codec.mjs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8d9252efb504408bd313a8d92da71426d0f8e6d11f6ebea696e458cdb653af6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 17): (anonymous) has cyclomatic complexity 14 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"workers/ffmpeg-worker/server.mjs"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3f1a784f8ae97cb6c180a7b27dbbd43f7e7f2f4950c30783f930c4981decb18"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function GET (cyclomatic 14, cognitive 16): GET has cyclomatic complexity 14 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/video-generate/status/route.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"c46760dc77c190801fa5ed9433a4ebb73c325b4d077bb164af85421349ffc7e1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function loadPreparation (cyclomatic 14, cognitive 16): loadPreparation has cyclomatic complexity 14 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/payments/analysis-quote-panel.tsx"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"3974b64df7a832bac80540a8aeab6546a7852a688ba8691a67f823927e055c2d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 16): (anonymous) has cyclomatic complexity 14 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ai/kie-responses.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"23989ba19d7537883a66dded42b3abe0c1d59d02e1ffc71c9177642e2ed02c96"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readKieResponses (cyclomatic 14, cognitive 16): readKieResponses has cyclomatic complexity 14 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ai/kie-responses.ts"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"31b51d5e22f45a0be22d4de9f6692b07d06ac1a4f94a7bb081e33e4a2cc3a9ac"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function reconcileCommercialGeneration (cyclomatic 14, cognitive 16): reconcileCommercialGeneration has cyclomatic complexity 14 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/billing/commercial-generation.ts"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc5b5249bbf8d8bc8c342949fa297d68316dcd150c9e3cbb47cf68097968847b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 16): (anonymous) has cyclomatic complexity 14 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/e2e/analysis-upload-modes.spec.ts"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"cec63759b09324ebd8757c82b2e11161ac8089d7d0cf30432ece12f0f0847991"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function GET (cyclomatic 14, cognitive 15): GET has cyclomatic complexity 14 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/cron/analysis-dispatch/route.ts"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"c74c2f194cb7969b97b26eed1354aa47b9752ce6e171ed004b2d40a78736a906"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function enqueueAnalysis (cyclomatic 14, cognitive 15): enqueueAnalysis has cyclomatic complexity 14 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/workflow/analysis-tasks.ts"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"9031d0296e23394782c3d5b8c55856a2d1a2053f907ed55d07af820438c4f2b6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function deferredPOST (cyclomatic 14, cognitive 14): deferredPOST has cyclomatic complexity 14 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/audio-clip/route.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"80373b3034224682fb1e6fcb1a8f1a4cadba38aacdc9baf65571ed1621cbe929"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function reviewCommercialRefund (cyclomatic 14, cognitive 14): reviewCommercialRefund has cyclomatic complexity 14 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/payments/commercial-refunds.ts"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"667264664b53def52bad93fcfe24c3594decb12678a25f065a7840aec6efca6d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createKieVeoGeneration (cyclomatic 14, cognitive 14): createKieVeoGeneration has cyclomatic complexity 14 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/reference-video/kie-veo.ts"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"337585adf9f6e5a044eb264464db36c99383b855c87e70cc945fbf8422f4b52d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function PaymentReturnClient (cyclomatic 14, cognitive 13): PaymentReturnClient has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/billing/payment/return/payment-return-client.tsx"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"53d795a390c8a3b34798f702f54870c9da69071b8a845e33b4a6005f34317cc9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 13): (anonymous) has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/landing/pricing-section.tsx"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"e43a5458b4932f312ea7dc9e1100a17bdcf61d35b75610951ce67d87b6f76ad3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 13): (anonymous) has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/sample-project-detail.tsx"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"7702645d705c4913c065cf482efafec3ddfa6e1ff433a45c9fc7c944b586b94b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function execute (cyclomatic 14, cognitive 13): execute has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/agent/tools/save-agent-artifact.ts"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d5d29f3825a057f5e851a049c6701b69e3e2599e73de3794d4ec48ab0322afe"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function VideoPanel (cyclomatic 14, cognitive 13): VideoPanel has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"remotion/prompt-lens-remix-comparison-demo.tsx"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"be8cbd6022b113bec5f2069c3776866bca018030a5dc005277a66a7dc9e8bb02"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function VideoOverview (cyclomatic 14, cognitive 11): VideoOverview has cyclomatic complexity 14 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/workflow/video-overview.tsx"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"dab25db8f333228072360ac9685e1c971e4d3944771836cb662045fddee5b48a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 11): (anonymous) has cyclomatic complexity 14 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/payments/commercial-refunds.ts"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5faadaa780b95094f099652edf22a2845c3f1a867a786375601663661ffae21"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 22): (anonymous) has cyclomatic complexity 13 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/e2e/failed-shot-retry.spec.ts"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"bce6eed0ac9cac67971d827c3595ef6fbdf1fa359637c5140b1d21439b95fab7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function confirmAnalysis (cyclomatic 13, cognitive 17): confirmAnalysis has cyclomatic complexity 13 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/payments/analysis-quote-panel.tsx"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dc3fea0d1881bbd1a6d2e15da41c5e6984214f2983298fb6fd7148d8c59365b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function recoverCommercialAnalysisTasks (cyclomatic 13, cognitive 17): recoverCommercialAnalysisTasks has cyclomatic complexity 13 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/billing/commercial-analysis.ts"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b90a078e5b2324201f98f36dc2ab68908ae9c060398f7f6e6500cc34cd7ff7d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleFiles (cyclomatic 13, cognitive 16): handleFiles has cyclomatic complexity 13 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/agent/agent-composer.tsx"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"d700153d0714761cc48fc571c9ef1cac9b6398b32a180bd4c30eac3334d60f99"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function POST (cyclomatic 13, cognitive 14): POST has cyclomatic complexity 13 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/payments/orders/[id]/refund/route.ts"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c052d3f7b3853a9e40b4536d7bc656bbfa0658b03a9c88439e81a1a0b63313e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function inspectVideoProbe (cyclomatic 13, cognitive 14): inspectVideoProbe has cyclomatic complexity 13 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"workers/ffmpeg-worker/video-inspection.mjs"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"10add15c4fbbf7372be70a17148a6a46698400aff5c8e971317c63b5e05ee3e8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function requestKieChat (cyclomatic 13, cognitive 13): requestKieChat has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ai/kie-client.ts"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"669678ad79a675103db2b34f5560060078c4e137681ec6c2b0f71ace6214b548"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 13): (anonymous) has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/billing/commercial-analysis.ts"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a5ec05b8303597c6ff628fe340494e156cf36ff3c94ddb2c37d93e0977ed057"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 13): (anonymous) has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/billing/commercial-review.ts"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"97c36363d644d6f3f1e548f63e994affa74d873d94ebb7aeb1c45a1db09fb21e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 12): (anonymous) has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/reference-video/ReferenceVideoComposer.tsx"},"region":{"startLine":1742}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba4369d532d3b5eac9f2877ab04e4afb8b3a7757daab67495abe6f250ce9a08b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function SamplesGallery (cyclomatic 13, cognitive 12): SamplesGallery has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/samples-gallery.tsx"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebdd0c2b2148d32705a141a4b7a421910a12a432763590967a174a48fd76742a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 12): (anonymous) has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/workflow/video-workflow-create.tsx"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"958becaaf1325647589fa6aa52f4ea04e55ffd87a0fd68fe349ce31172d11465"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function execute (cyclomatic 13, cognitive 12): execute has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/agent/tools/call-existing-video-generate-api.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"23ae160d6dc95580fe8b1a342b7f0646e3ad825a1a6d402ac788598871650bf7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 12): (anonymous) has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/e2e/commercial-checkout.spec.ts"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"ced46c2acc233e53d397fe3305db91e16468523ce78f688c8de0b307fdd9c40b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 12): (anonymous) has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/e2e/interface-language.spec.ts"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b214091c4597e089caaa0b18ea27d1fd6d3aa3872662c497ba127d90a904a81"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 12): (anonymous) has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/e2e/provider-settings.spec.ts"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"69378f00e341db455d9525068181781267aa0d70b6644187d313dd9d36dd83f3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function PATCH (cyclomatic 13, cognitive 11): PATCH has cyclomatic complexity 13 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/admin/users/route.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfb92e089bbdead1ba57469ff35ba39462d3da9c4c86fe17c50b39a49ba9337d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function prepareIndependentSceneAsset (cyclomatic 13, cognitive 11): prepareIndependentSceneAsset has cyclomatic complexity 13 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/billing/scene-assets.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"087ea9c7d1e552b426b781b0e7edfa5d35fe5442387acbc6509756431e51eec2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildLocalEditInstruction (cyclomatic 13, cognitive 11): buildLocalEditInstruction has cyclomatic complexity 13 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/workflow/local-standard-edit.ts"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"a84d47d1722526847a85ec9c2dea737d6497f1c915bad1f55e823c43451e775c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function insertImageMention (cyclomatic 13, cognitive 10): insertImageMention has cyclomatic complexity 13 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/reference-video/ReferenceVideoComposer.tsx"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"48c31de0cf1bdbd44fa505892701512ba0c71cfb45f73f0ec079443884026b79"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseStatusError (cyclomatic 13, cognitive 10): parseStatusError has cyclomatic complexity 13 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/reference-video/kie-veo.ts"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad7742914abad88a8c2d48440a8b6cb2448b94c679ba26459996eefeb22876da"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function POST (cyclomatic 13, cognitive 9): POST has cyclomatic complexity 13 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/internal/analysis-run/route.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"2649a621845c18d559833ba8eabfdfff56259908403496d5b820800406dfb364"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function GET (cyclomatic 12, cognitive 18): GET has cyclomatic complexity 12 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/models/route.ts"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"549379c9285f4a3bf35ac451bcec057e629291172aa0273e6d0bab7578123a56"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 17): (anonymous) has cyclomatic complexity 12 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/e2e/analysis-partial-results.spec.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c55cd3994e2fa5997c417e10312cc506e2d50b837f184d7d9b2548fd4b5cd02"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function POST (cyclomatic 12, cognitive 14): POST has cyclomatic complexity 12 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/commercial/tasks/[id]/route.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"d76b4f4b027b0f987aa96a5d515f6e37f03b0b7b0a6f14e729fa4801faa421ce"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function executeCommercialAnalysis (cyclomatic 12, cognitive 14): executeCommercialAnalysis has cyclomatic complexity 12 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/billing/commercial-analysis.ts"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"33977ad6b785dc1db67b0425b6fce13cc5b0f0e14628ad5fe991b99f77b6f3b4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function wakeReconciliationWorker (cyclomatic 12, cognitive 14): wakeReconciliationWorker has cyclomatic complexity 12 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/billing/reconciliation-worker.ts"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4deffa15395d925c662a7888ba8852c03c9cb5c8a00890069234e5bc1d5c07e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 14): (anonymous) has cyclomatic complexity 12 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/e2e/analysis-task.spec.ts"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"d52a4abea0972253d8e3a0763e0c95269db96cd5dfd1721dac4e9d0afde37f41"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyStatus (cyclomatic 12, cognitive 13): applyStatus has cyclomatic complexity 12 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/payments/alipay-checkout-dialog.tsx"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"977ef07c5b546de6d7713f39ed91f0120f00ea3e180f6949f5167a45aa5ab791"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveLinkedMedia (cyclomatic 12, cognitive 13): resolveLinkedMedia has cyclomatic complexity 12 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/workflow/video-workflow-create.tsx"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"02190e0f151c2a640f3a5075b0758dcf761bbe39ccf6a6c9671a07617e4e8680"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function infistarJson (cyclomatic 12, cognitive 13): infistarJson has cyclomatic complexity 12 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ai/infistar-client.ts"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"4714ef2e90b12aec6cd02d6fc98bf99a59e07871203b0c8f737c62082dcac4a5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function commercialMediaRequest (cyclomatic 12, cognitive 13): commercialMediaRequest has cyclomatic complexity 12 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/billing/commercial-media.ts"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca45e51401495d12fa7d5546b7dfe13628d94c96ba088a9331b6facbd1e85a8a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 12): (anonymous) has cyclomatic complexity 12 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/agent/agent-chat-page.tsx"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e52fb3f2d00cde4ac5db6c9e0a6b84cf6dbc9bc756b2804927b8c93d564def8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveApiKeyForFeature (cyclomatic 12, cognitive 12): resolveApiKeyForFeature has cyclomatic complexity 12 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/billing/platform-access.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"94eec682e01e22469ae7958845d470db5ea08222297c4eb96cd75c1b79851c2b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function editVideo (cyclomatic 12, cognitive 12): editVideo has cyclomatic complexity 12 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/video-processor/editor.ts"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"cec94a4ce9bd265cad9f35da0019259f52e9bd67842752b8abf70cc1ecf1b562"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 12): (anonymous) has cyclomatic complexity 12 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/workspace-history.test.ts"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ed9c764c74d79df5fe794220542f10cf7f86605bb98562007c24fc8b7dc430e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function LoginClient (cyclomatic 12, cognitive 11): LoginClient has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/login/login-client.tsx"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c9f9e9fb0477f0331cfd13589483b3e3ecabb7360220c13b1b1b237c7b204c5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function PricingSection (cyclomatic 12, cognitive 11): PricingSection has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/landing/pricing-section.tsx"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f329d8fc672313416e478c7cb8f38aa00ece42b361267cfac53c30cfd5799d2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function analyzeSceneBlueprint (cyclomatic 12, cognitive 11): analyzeSceneBlueprint has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/workflow/scene-analysis.ts"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb22ccdcc3750bb071a69941df5b65ab3c58b222cc686678bb87389dc73d9210"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function assertKieTaskPayload (cyclomatic 12, cognitive 10): assertKieTaskPayload has cyclomatic complexity 12 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/workflow/kie-audio.ts"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"af18bb1be926f54a4ec8a6f22d3f54c2f90099aedb98e1e3c2904996e3f0ae5b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createCreemCreditCheckout (cyclomatic 12, cognitive 9): createCreemCreditCheckout has cyclomatic complexity 12 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/payments/credit-checkout.ts"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5c81d789e9d8ee11baae2501c80edf394834cff8422c41a9b348ea77c4873a8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 26): (anonymous) has cyclomatic complexity 11 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/generation-material-routing.test.ts"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ab94337ec630945e890c991f2cfa1a5f37c91dca78c194db22b8a70483df1d9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createVideo (cyclomatic 11, cognitive 17): createVideo has cyclomatic complexity 11 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/reference-video/ReferenceVideoComposer.tsx"},"region":{"startLine":1244}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2d608d1b7da5e2d0e4b4edf42b9d7e14a1d3bfc562b6572efd30cecdfc8c13b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getKieResponseText (cyclomatic 11, cognitive 17): getKieResponseText has cyclomatic complexity 11 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ai/kie-response.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"17bce9bab146351b6c0efc1cbe08565914920f383761008668fd997dc046a753"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function recoverAnalysisTasks (cyclomatic 11, cognitive 17): recoverAnalysisTasks has cyclomatic complexity 11 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/workflow/analysis-tasks.ts"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"098eff0fb10fdc8d10163cc1ba30ad7bda4b9984b0dd7468ac2685a90d5fcec5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 13): (anonymous) has cyclomatic complexity 11 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/e2e/shot-download.spec.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"15570c0aa1df6fedcd34681939992b8671d1b176a4b8fe4618d919022168b98c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function LoginPage (cyclomatic 11, cognitive 12): LoginPage has cyclomatic complexity 11 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/login/page.tsx"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"a015fc46da138b0c23cd00d52843ab9b5c5b95f1cab93129484a7c3be444d9cd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveGenerationStatusKey (cyclomatic 11, cognitive 12): resolveGenerationStatusKey has cyclomatic complexity 11 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/billing/generation-key.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff44a0031a56cad20ae2299b7bd43a30c9e2ec27be3f2fda063b3533074f7880"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveLinkedMediaWithEasyDown (cyclomatic 11, cognitive 12): resolveLinkedMediaWithEasyDown has cyclomatic complexity 11 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/media-resolver/easydown.ts"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c16704b18a75ee0951e1f08823450d3407dd1e6f41f24afcad797dad97f9bea"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function POST (cyclomatic 11, cognitive 11): POST has cyclomatic complexity 11 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/visit/route.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e7230d860cd636007178274ca43814b095825356d941f46985d3a96a8bed576"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 10): (anonymous) has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/auth/[...all]/route.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"03cd69a3fa6f38d7ab7ad6752d53fe9753f998a2e049e9603d86ac38f90f106e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function POST (cyclomatic 11, cognitive 10): POST has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/payments/checkout/route.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"137fc21ef5972e975c4c4e361868088dc1a75305dfb1a6444bf5c8b13692a74a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createAgentRun (cyclomatic 11, cognitive 10): createAgentRun has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/agent/service.ts"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"afad2b83e04ac831e1f5c5725c57bc1e3c5ee6390c2dbd74ddc8651676b85005"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function consume (cyclomatic 11, cognitive 10): consume has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ai/kie-responses.ts"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"39b3ec6cf0b62fd76b9c9de98e93a2e03419ec888320d329efecef91c74d8629"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function reconcileCommercialRefund (cyclomatic 11, cognitive 9): reconcileCommercialRefund has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/payments/commercial-refunds.ts"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"d415338d5b4f6e53659e164f5d0a0293309ba32d0ea3f5ba1f0bf516a3444310"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createAlipayCreditCheckout (cyclomatic 11, cognitive 9): createAlipayCreditCheckout has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/payments/credit-checkout.ts"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac2bf2c4ed5a2c93888a115b0e132d52297a57a6dea168d050947f206cd83b6f"}},{"ruleId":"R3","level":"warning","message":{"text":"components/reference-video/ReferenceVideoComposer.tsx: 1696 lines of code: components/reference-video/ReferenceVideoComposer.tsx has 1696 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":"components/reference-video/ReferenceVideoComposer.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"931d6d04355889ab8712a330f767ab40f82ff1258034dd9315bf9af545508c50"}},{"ruleId":"R3","level":"warning","message":{"text":"components/workflow/video-workflow-create.tsx: 1222 lines of code: components/workflow/video-workflow-create.tsx has 1222 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":"components/workflow/video-workflow-create.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2fcda94d95b3e655bd616ec46806334bfc77f13cff79e98875a74af2895f40c"}},{"ruleId":"R3","level":"warning","message":{"text":"lib/db/schema.ts: 975 lines of code: lib/db/schema.ts has 975 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":"lib/db/schema.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"86600ffd4950107bf493cb934107f10f5a47e1c204d23b5884b0ad77ab6771ab"}},{"ruleId":"R3","level":"warning","message":{"text":"lib/agent/storage.ts: 670 lines of code: lib/agent/storage.ts has 670 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":"lib/agent/storage.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b5658149f25471e284214bc5de6949952c5ea2934b0db505e4d21dea633d68b"}},{"ruleId":"R3","level":"warning","message":{"text":"components/video-edit-tab.tsx: 655 lines of code: components/video-edit-tab.tsx has 655 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":"components/video-edit-tab.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f55c8fe5d68789cd4d11d9bfb88996b5c89800f2474aac32598da6228ddaeec"}},{"ruleId":"R3","level":"warning","message":{"text":"components/audio-analyze-tab.tsx: 585 lines of code: components/audio-analyze-tab.tsx has 585 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":"components/audio-analyze-tab.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f30cb5045c9f15a98575bb5381caf17137939683c4e8ee444b570cc5fcc79da"}},{"ruleId":"R3","level":"warning","message":{"text":"app/dashboard/page.tsx: 538 lines of code: app/dashboard/page.tsx 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":"app/dashboard/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d223c9ae452398c8b5ffac55cc7800024dfaa7c17ccf877a0479cb7d32e5feef"}},{"ruleId":"R3","level":"warning","message":{"text":"lib/workflow/scene-analysis.ts: 529 lines of code: lib/workflow/scene-analysis.ts has 529 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":"lib/workflow/scene-analysis.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3824cd8e53ab8f5eb4a80c568ab00153b53dd097895054cb5feda34d78941f96"}},{"ruleId":"R3","level":"warning","message":{"text":"workers/ffmpeg-worker/server.mjs: 527 lines of code: workers/ffmpeg-worker/server.mjs has 527 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"workers/ffmpeg-worker/server.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3290cd2241596f0f26cd4f5a91caa6e39b36213634f1574faee3c42a63c311c7"}},{"ruleId":"R3","level":"warning","message":{"text":"lib/ai/model-registry.ts: 445 lines of code: lib/ai/model-registry.ts has 445 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":"lib/ai/model-registry.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"56ca5178b233e4c14d73f0c11f7a38b9d93614c51244df2a8234224e7b156788"}},{"ruleId":"R3","level":"warning","message":{"text":"lib/reference-video/kie-veo.ts: 435 lines of code: lib/reference-video/kie-veo.ts has 435 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":"lib/reference-video/kie-veo.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa189187cd06538e016611c16edf1b1e2dae7a4ac07745c14d38c6969109cb63"}},{"ruleId":"R3","level":"warning","message":{"text":"lib/agent/planner.ts: 407 lines of code: lib/agent/planner.ts has 407 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/agent/planner.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a468a76d83af2484700fc095a8d608cb16ea9587a11405649d35826148e5ed82"}},{"ruleId":"R3","level":"warning","message":{"text":"lib/workflow/service.ts: 404 lines of code: lib/workflow/service.ts has 404 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/workflow/service.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f002981eee931527461d69463914fdc6757d8ee5dc08b01ef63d91b01f421c26"}},{"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":"components/reference-video/ReferenceVideoComposer.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b5009a3eca661148672a9d97cf0d8a725eb355adecab4a9d7a92c39ff2b6664"}},{"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":"components/workflow/video-workflow-create.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f507f4a55a334e881e6ea766f16d739e719029574e8b37eadad32ef831d4cc2"}},{"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":"components/video-edit-tab.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"778960229869cbedf608d09bb187a578ab46e22028caf107db383bd57c31c5d6"}},{"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":"components/audio-analyze-tab.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"952020030f790628ad6cbdb84616a2d8eb657fa1d290a61da51bab7b161a93ce"}},{"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":"app/dashboard/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"626698436eb882f52ae006ed5525e9ee027db1614cbdb197cae8e4dff0cc3d35"}},{"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":"workers/ffmpeg-worker/server.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fab9773c51ebfbdfdfe899e2647e2514ca898e6d2fcccd495b29fe619b400cfe"}},{"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":"components/history-list.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"661999fb3fdef73291d3dc34d696921fa1258d86bec62bb7d910ab3d40311f26"}},{"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":"remotion/prompt-lens-landing-ad.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1050822a2c5ae5a991e435084c661c583136969bba34ec0095718fc889cfaa06"}},{"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":"components/globe.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5907d739cb30d05f5ebff2f3c072b5590e6c15b5ae1deab206c8653607c88092"}},{"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":"components/agent/agent-artifact-panel.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d63057d256d6d0f5c62b12f5d052e0022ae4a4dd01c84164a9ac1b53b60a6d6"}},{"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":"components/sample-project-detail.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6cc6cff4fe028c6216a2a61c6e5d82843c6d507fa355423b3dd62b940a524ec"}},{"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":"components/agent/agent-run-panel.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0666217806bfc8feae34f08035560f17841da41e37c7062edbb730e70f790ec3"}},{"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":"components/agent/create-with-agent.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff6b40912d1a8036532d70a04517ff81c1686acf92a629d2b21ecbac39961609"}},{"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":"components/payments/analysis-quote-panel.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c327246bb38b710ab25b71d9aaf24a7e25b3b82d8e421f5e2037a0b6ced8e1ec"}},{"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":"remotion/prompt-lens-core-workflow-demo.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eb5c24770914ba49e326cabfaf38dde448122da9eb236e0aab8536ee552e38f"}},{"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":"app/api/generation-jobs/route.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cc1796c0d41bf50327f1b7861f30f99444216c46b3ef4eabd5261eefcad97f0"}},{"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":"remotion/feature-demo.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e29c7dc9a7e7c75f10d715cdfeb1052a8e3b5650262ff30ad3071d46f33c7126"}},{"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":"remotion/prompt-lens-product-demo.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e0f063f2384043c337d1f2774cfe70f556f3e002f7bb5a222fc5b59968fb1a1"}},{"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":"components/agent/agent-chat-page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a1668cd04cc75c22d576114550ae58345f02fbeeb95f0fb22cefb5f6cf8802c"}},{"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":"components/admin-overview-panel.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d8f8ba9f86afb3c9bc4120a6e953786a1cb41871cccac1d3158b1cde99b68b5"}},{"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":"lib/agent/types.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"37e7b33f30f40183adf75f97b54d20cde4874cd230524552b4a1d6510488c449"}},{"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":"lib/legal-content.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"532ab04e6d01d73614c3732c7a7239285e0d2c40c19f02983f909b8e1ea3fbb5"}},{"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":"components/agent/agent-composer.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0854feacc44c34704c0e9717793162e80893770f4760bcf32315976b5e42433"}},{"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":"components/landing/site-header.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f636413330d008d7c018eca2d3b76a34bf4fb247893c95d0fb3df6f60a007efc"}},{"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":"remotion/prompt-lens-remix-comparison-demo.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c91c41f9325fe067818f869a12d3ae531b6b5474910f3e4e35b9f10f005416c"}},{"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":"components/workflow/scene-video-preview.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b3e86b111563887f73fae1d6bc08cdc89ed5dea3e676597ed78c917e1a5ef4e"}},{"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":"remotion/prompt-lens-analysis-motion-demo.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"56f19ed4123ec7fc1cce755bb853bc6c0c4f22c5f88e7310653b3e39fc9af468"}},{"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":"components/samples-gallery.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"178fb9fdc5cfa04fe1bf6d31ca6ed757d4f7f5b698004244e50971cbff1ab0c3"}},{"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":"components/landing/testimonials-section.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d61d3ba8505dfb34761293f2e1b6dc8a1accbd35f5638488a7352e2442ba55c1"}},{"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":"lib/utils/file-validation.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d06d8c7e3c883f0c671abd888bf9bf3e948b1ea6ab8b38a2c700486e5dc8a9a7"}},{"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":"app/api/video-generate/route.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a968e96028aea008f88f11702cfc1a0fc18c7ef6167a5cae70cdaeb03e95980c"}},{"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":"components/agent/agent-step-card.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d05cc2491ccb8cd704c453e1f6ef7b84a8421ffdbddc8746b6156d2d9e3bb3f"}},{"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":"components/ui/dialog.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"50f734b8baaa6467935aa6f203d1007a8eb7abc07b9c71142d8c279163c7fec8"}},{"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":"test-audio.cjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a22cf4722ffd9cb7f960f6f2ccf43abe3369228158617a762fc57e3991912c8d"}},{"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":"lib/r2-upload-client.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d32ad9641333be59f4a8be33fd0a5db22f4055f0e38115a801d63605d205de8"}},{"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":"components/agent/agent-run-history.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c9d30945be0d97e0944418f9079be31035e2d41bd49b1631d3b996e4d40747c"}},{"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":"components/admin-user-directory.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e49fa19555ca115e6a4704c3e054b43be41f3c29dc5662ec643dcc40a08d4fa2"}},{"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":"app/billing/review/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f47ef10fff63a5d6b7bd6c8b4220e73c2c40369c1c6d341505e106675a0f650c"}},{"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":"components/ui/tabs.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbc38826d3d0c865336324c2073e28bd7dff6d3c9258243cd3fc0f24c8705aff"}},{"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":"lib/audio-processor/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"838dde21cb6f4ff4403341ccb8726822f58c78cd67ce6ebe1d1a192a096df24b"}},{"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":"app/api/stats/route.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5b6862a871a0f4a2ef86473a4369d678a3a8f7cf72969bec0c141583dc54b0f"}},{"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":"remotion/prompt-lens-rewrite-demo.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"70e63d88dcf4d8308caa274a0cf9b01517655a871fd357d246539a699f92220f"}},{"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":"components/language-switcher.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a556dac24a1182436309530ff5c16898b636fc5d52e26c6087b8bb76e662c596"}},{"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":"lib/utils/frame-extractor.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b967822395bcdc6240b0462e400968c0e9a29439a968a36d7a4a3dfb8580070"}},{"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":"app/api/admin/logs/route.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0810859380473f579dce4b978af7768957f2b94435f99e8a3bb8e5a3ac0730b1"}},{"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":"app/layout.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d79f86ce8759e96df9df0969015bae22ce8a1958cf392f96e081db2f6bbfe16c"}},{"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":"components/landing/features-section.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d07c5c69c7eb54af0ceb96e1440b743c923ae9c66d064c78532846eed81c3524"}},{"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":"components/landing/site-footer.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc8d65ea07e548192f2421d4bafc912cc6f02536404282da7e5d5521afb235e2"}},{"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":"lib/agent/client.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecad18c877e239295ea42316903aff0499b8af4e5458b79b33de55d7b2141b25"}},{"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":"app/guide/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f79012aef0d4100ceef2b6172acdcddbd18d34b51ac27d5a128dd26e82f52db9"}},{"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":"components/api-key-settings.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ec7b5d3711ee446e9ae85ceec9e0780123d80ccd644c5650cab657c346097a5"}},{"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":"components/agent/agent-next-actions.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"081cbfc0502084a840c39546f58008b91c0b7b9da671ecac316a9535e65bc10a"}},{"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":"components/landing/pricing-section.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3fbbb5b19c0c1a752dfe96143ec566b766548fda3fc9f71c3488605ba8d9327"}},{"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":"components/reference-video/generation-history.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fb5c07b850a85bfab537821bd69c43f020d6c3fbbb116fe9443adb0c2f94fbd"}},{"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":"app/api/video-generate/status/route.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"43cf68df4e67d8c1f8d372f005a5706fad5863a9235eb72ecfa05dd32148619a"}},{"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":"app/api/admin/credits/grant/route.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d29552cf5761237cb7f4fce4e852475238e6c3211b42a4e1f42c0538ea413e55"}},{"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":"app/api/admin/payments/manual/route.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaba459dc11f8f56af3ee1d98eda768693388e9804d1eaa372251d270d7f81b9"}},{"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":"components/landing/faq-section.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a11c396a4317f3b808a975ca3ecccc94174716e88bcc77d494a16170b5b0fd66"}},{"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":"remotion/Root.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac2069916017bb2d3a878926e7a3ff10c5ca55bd499147e1aba5a284531de484"}},{"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":"app/billing/tasks/[id]/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e4ca4af5e6d064106e2bf2c7b28b289a0b35f8f951e5922462d7a06b7564ae4"}},{"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":"components/landing/how-it-works-section.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f35c9d397e0b383a2110f6b2a486f2e4d91fdf60c0fd99d9ab738180641f495"}},{"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":"components/agent/agent-attachment-preview.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b863402d765daa4a92f9a5c65a916049c803e1093095f468a5672dc63c297210"}},{"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":"app/api/visit/route.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"25a40b8c522038d71910baca433fffe9800d0692fd68a142d9e6d32fcc5b9308"}},{"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":"components/workflow/project-history-details.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"82fd1f8c81a0e7e6a1aa2e4982d9946a2bdaafb0ede27f5a98304653b319b499"}},{"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":"app/api/agent/runs/route.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"80b9ba118e557775324225316848e11c54065d3ff393386eeadf05208e6d0271"}},{"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":"components/landing/blog-section.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba5aa9bcdbc8000fa4221490a37d98600fc8b99cef89795a7021ae06ec36c0b3"}},{"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":"app/api/cron/commercial-reconciliation/route.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"44b719c4150131fd84b947c280f0c80590e65eab1c8dc86ee5c0494081546115"}},{"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":"components/landing/brand-video-button.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d917139139454bd51908e73141d9589f2baba0d6c900ab1e3476089fcb7d3026"}},{"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":"components/legal-document.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1b6759d6f760125da99b3bdeef78512304312ab7d433ce886943a4ac02138f2"}},{"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":"components/admin-financial-records.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"31669ee577fc922469ae0a8a45d0587cb0a1335b18d8d9d0e516a59666d84d48"}},{"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":"components/agent/agent-suggestions.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bad6553ab31e0ef1f10702b721d682bda60c644d1cffce147a10be966f0810a8"}},{"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":"components/landing/advantages-section.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b088cabce07c4039e2725fccfb9d05dd0bccf5d56f051aeca23d3e6a1bd3df2b"}},{"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":"components/landing/hero-section.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e5c5af7bec0909fc47173cf2fac823d781823e6a5531d20fbf3d0d02dcbdf27"}},{"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":"app/api/dev-auth/login/route.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2291dad5ed30b1d4f66336009ba9079b81718689fafa9d004f972e169e537345"}},{"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":"lib/middleware/logger.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b12d019f704b6a7edd7687f62c39670d1bd47cdb14d68a5ac2b08c7c41083fb6"}},{"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":"lib/middleware/admin.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d9a1e93798f160ac1f18f33dda978928b2c14c99ab89e25dc6ce43da4a87fe7"}},{"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":"app/api/workflow/projects/[id]/remix/route.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"15c63f55a6c2d40aaaee61be2a28b99861b08fa18a7f18d29860b1576b4b7501"}},{"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":"app/billing/payment/return/payment-return-client.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"825052f702ba7fedb9f1e87651e9ee071409277ce1b4f18f92b11d537cbb8e4d"}},{"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":"components/landing/cta-section.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c98e5a7176f47e265058782d0fdcb9b75765c81ad609a8073728535597ab58ee"}},{"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":"app/api/workflow/projects/[id]/scenes/[sceneVersionId]/route.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d4f22684ca3739c1a563d69e2d1273da3a36bb871539f7aaeeeed64ec94823e"}},{"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":"app/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c16c0ba4e2e6ff49de19a8fd303e5bdfcca0bf05ba518d13c0d2dcb00de3b26"}},{"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":"app/api/payments/webhooks/creem/route.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e2ef5aeaddabc0244c1ad218255b359845ad40f7e91f9a8ecfc8d3d8492df5d"}},{"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":"lib/agent/api-helpers.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d996523729d00b10cbe347b672b942fd5f4f2a6f50912d2ec3f4571fe2eb182"}},{"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":"components/agent/agent-suggestion-chips.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a122b03fc0a6c24c8ce95dc9ec60a83229cb75a5f338060360a7da0ff0bd25f"}},{"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":"components/landing/animation-placeholder.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"52872bc74b2afa538602c047c4d8c143e4b830d7a70e2ad957b1e96112d80c26"}},{"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":"app/api/payments/webhooks/alipay/route.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6538ba1a15694530821f560881c750ad278107c7c85d19de063787e37347531"}},{"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":"components/agent/agent-plan-timeline.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f6c47416b21faef08e95e1b502e019dbdc84c5aa63063e8301eb54012fe5ac8"}},{"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":"components/visit-tracker.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"758826aaefcc427f1e86ceb411447ad57e40129fe8a503a0cefa79556c4bf543"}},{"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":"components/refund-requests-link.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"992fee4c31b9f8eaacc0db40bbb1f7e4c475370019b5a1a9f9682982dac12406"}},{"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":"components/workflow/shot-download-button.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbfb6706da35387c68814b3258775969fc539b750b09bc44584df1c28f7ac40a"}},{"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":"app/api/agent/runs/[id]/route.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba81b746058f3b077cfda95c3bb1274359e3a8e9c10084c65c67d29700e276d8"}},{"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":"components/workflow/analyzed-shot-preview.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"85a66319c20f93a04ca792d381eb504eca7e618cc755a2933208dce45e298959"}},{"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":"app/api/agent/runs/[id]/artifacts/[artifactId]/route.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a09ee505aa862f79b3deef6854be7c73310fdbc78f1b7304850b12ec0bf0c33"}},{"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":"app/api/workflow/projects/[id]/route.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2276e1284fae07d55fa48fc76a771baf081db66470e5fa3e48adbdff90d5c753"}},{"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":"components/ui/select.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0a3a5713ccad85e3a5423db4d62f4090d07090708a6d7718663cc67c73238fe"}},{"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":"app/api/workflow/analysis-tasks/[id]/route.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bd2d64ad724cb7211e2234ff88d1ae75ef7d69bc2e53c300ad3983f416dbb4d"}},{"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":"components/workflow/video-overview.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"47200f1f487e2d4a256ce505b6f32488045cd4de7562c085a11b373f3c2502e6"}},{"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":"components/ui/label.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"69a8164c6e66967bc63173b6fa123c835f379fec75ed5576c8cfb68228fa904a"}},{"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":"app/api/agent/runs/[id]/execute/route.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"788042550d81d21de3d1835b1b43227cb827644101cbd96f63fc597808e2f595"}},{"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":"components/ui/checkbox.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"257730272edcff7c45974cad568135f1e412e8593c5e178df521e758fd5ca48a"}},{"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":"components/ui/textarea.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1373352740d7d62ff529b46dd8580b96940644cabbb1b037c5b8dddecb70f817"}},{"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":"app/api/agent/runs/[id]/cancel/route.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b72d554cba4e1bc1c777c9c0cb0e08339f9e3cea50e119753c3831c82fea5b22"}},{"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":"app/api/agent/runs/[id]/retry/route.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"52db2ba908e4302b2361dde65c7bfcfbf3ab1b2abc2e4f3c8cf88457f45e1cee"}},{"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":"components/landing/provider-announcement.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"043140b61a5a4dfbb6d0e4bc15193f6dccc258b25b21ba465f5de0789b78fece"}},{"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":"app/sitemap.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b85ddccc3612b7e1f31fc070d6fdfb41b65424c32bbeae1b02576407c9c81b30"}},{"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":"app/api/commercial/generation/route.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"781d81a65d5f53364d5dd27fd72f510a3495d1853ec768278eb9dd6ae9700647"}},{"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":"app/robots.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d7d13e2fdb77439fef49582e6306c73d55804c147194177f82a3108b0208d30"}},{"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":"i18n/request.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bf0f1dd07d35f9d9cdaa6a11e5c2f0bd3ed09a715be35079d5dc8d84a3f839e"}},{"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":"i18n/routing.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"23c45adc86328bf3066f3dd03314b4a055000f46ddf09c213b2517ee1d3b8471"}},{"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":"app/api/admin/me/route.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ac2ac5a49fdbc57ee302feddcbcd0b054521a446962eb4b4bbc90784abe624e"}},{"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":"app/agent/[id]/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d33ea9e9fa3ccb71f1f06355ddb15833408136d1a1ee3c9b3a04041e1edddd8"}},{"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":"app/(legal)/layout.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c7f9e00c982ed01bab46b8e1bfb9e84b6823b099949ab9f3c17786fa03a4e45"}},{"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":"app/api/commercial/config/route.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"00589cd229a7d80f341dda8a7cfd20b28614c085401a801321516ccf9b03ae09"}},{"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":"app/start/route.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"67d7274d5f568b19b45ffde0d562e535d4734e1e0ed40b0dadeca936dd3a3649"}},{"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":"app/billing/payment/return/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d22f9826dda7f0dee17a2f18beec7434edcfd1b220e806abf5ea1c0764594970"}},{"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":"app/(legal)/privacy/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3081c00205e5f3bfa2c2c45f25e357d870a963ffb2c39724d11d722af01eca23"}},{"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":"app/(legal)/refund/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"763107bf5b74d015a45b3313b6d1d012ebcd6d9f382d1e947331503e0477496f"}},{"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":"app/(legal)/terms/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"417a080d0db8a0a2c0077ab746b10651a1715457861926864d043bffac46cc8f"}},{"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":"instrumentation.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4e39266f189f4cd34938197202bb962e9c4e2a0f0c5a3505cba140e48c1b97e"}},{"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":"app/billing/page.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8e7254eddf6a364f953bd964bf50baf6734b4d4551c3a36cb586bd59f6d5ee8"}},{"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":"components/landing/prompt-input-demo.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dccbc51e2c54ddddf2358df30864e91c788904d343fed02690532764b3259ba"}},{"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":"remotion/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b54def60d1fec929000292667b7b8b4498c2c2ac378d03ab1ee01054a7ddf781"}},{"ruleId":"R6","level":"warning","message":{"text":"No typecheck script: test \u2713 \u00B7 lint \u2713 \u00B7 typecheck \u2717 \u2014 read from this repository\u0027s package.json scripts and corroborated against its CI workflows. A script counts when its name or command matches the step: \u0060test\u0060 for the suite, \u0060lint\u0060 or \u0060prettier\u0060 for linting, \u0060typecheck\u0060/\u0060type-check\u0060/\u0060tsc\u0060 for type checking. \u2717 therefore means no script or CI step under those names was found, NOT that the step is absent from your pipeline \u2014 a task invoked by a runner this check does not read, or named something else entirely, is not seen and is worth confirming before acting on a cross. A \u2713 means the wiring is DECLARED \u2014 a script or CI step under those names exists. It is not a statement that the step passes, or that it runs at all: nothing here installs a dependency or executes a suite."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"912edc7f1fd20bf80ef68c3293e3048565115e48707dc5f9d492201598794658"}},{"ruleId":"R6","level":"warning","message":{"text":"This package\u0027s lint script runs in no CI job: The root package declares the lint script \u0060lint\u0060 (\u0060eslint .\u0060), but no step of this repository\u0027s CI runs it, by name, through another script, a Makefile target or a workspace runner, and no CI step runs the linter over the package itself. The rules it sets are enforced nowhere a pull request can fail. Run it in CI: a step that runs \u0060npm run lint\u0060 in \u0060.\u0060 (or the workspace\u0027s task runner)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package.json"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a99e059e3a0cba570f525a46a8aa11293b8fdff66bdcbb6aab0186748d534a1"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~726 LoC): no import path from any entry point (137 application, 11 tooling, 159 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":"components/video-edit-tab.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a9b09c60ce4ee88c540957bf7ebda1b3bab8cebfd6a5e1533f6dc1bdee098f6"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~637 LoC): no import path from any entry point (137 application, 11 tooling, 159 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":"components/audio-analyze-tab.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6236ac0c397a7cb8ab2ba0b6a30c16b2d1813e5c74117000bc1a6d4281d5d52"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~390 LoC): no import path from any entry point (137 application, 11 tooling, 159 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":"components/globe.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"33ec3e9a2cae020a8e91dc4d2007e1f8d4caf4f5d81461f08f330d6c9fcd2bed"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~316 LoC): no import path from any entry point (137 application, 11 tooling, 159 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (components/agent/create-with-agent.tsx) \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":"components/agent/agent-run-panel.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"915e3b291cb5a7e7005f33ad7ed381c7ed67fe1393a7479c82470bb1ef7aff81"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~313 LoC): no import path from any entry point (137 application, 11 tooling, 159 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":"components/agent/create-with-agent.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"55be800b28d5553da0435a016eff871ab00528c324045e8e1f48f0d991e97174"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~222 LoC): no import path from any entry point (137 application, 11 tooling, 159 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (components/agent/create-with-agent.tsx) \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":"components/agent/agent-composer.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b0daf3ed24d81ee41d25325ddbef13152fdefbb1e542629a9a12b971d3b23fb"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~187 LoC): no import path from any entry point (137 application, 11 tooling, 159 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":"lib/utils/file-validation.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2e563caa8c654b3cc04ac540755d2e121a4274ff32ebbf251e56e042de0de9e"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~160 LoC): no import path from any entry point (137 application, 11 tooling, 159 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (components/agent/agent-plan-timeline.tsx) \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":"components/agent/agent-step-card.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d50c661617ea8b11ef99d478fe6a234da0454ef4699b0c28b9e59823c425eb86"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~135 LoC): no import path from any entry point (137 application, 11 tooling, 159 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":"components/ui/dialog.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4357df1a4b536c92fbb3b307f8308603aa9b8bdfe05bac1651ea5a7822f27ffd"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~129 LoC): no import path from any entry point (137 application, 11 tooling, 159 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":"test-audio.cjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"76cf6ae89d647fa22d9d0792cc05485c21cd6fbdf23918af31a8a67607a8c861"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~126 LoC): no import path from any entry point (137 application, 11 tooling, 159 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (components/agent/create-with-agent.tsx) \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":"components/agent/agent-run-history.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6170ac96a8e57a9b5de927a948cdf4ed36a0e00427c5b48503d77cee7965910b"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~115 LoC): no import path from any entry point (137 application, 11 tooling, 159 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":"components/ui/tabs.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"67ca94fab58ccb849e23e64c8c29e32659c13677a0050f6df142f5d4292cd8ee"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~112 LoC): no import path from any entry point (137 application, 11 tooling, 159 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":"lib/audio-processor/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4ff85426975836cd28c136ecebf35ce77b1aa72b14a6b53d3aab7f022a7d4b8"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~106 LoC): no import path from any entry point (137 application, 11 tooling, 159 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":"components/language-switcher.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b0d02d288816e32376bb5449c0b73327ab80da931f68edfc17e357fb2cb84dc"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~103 LoC): no import path from any entry point (137 application, 11 tooling, 159 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/migrate-encrypt-api-keys.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"72d38b1c2bcbc0475b6464d58fd1b266bdfc393db63b7921175ebb2ec00d13f7"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~99 LoC): no import path from any entry point (137 application, 11 tooling, 159 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":"lib/utils/frame-extractor.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaed84f07878d0fc9e6c815e76095a64e45e375d5ebecd9c47db2636857cae0b"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~84 LoC): no import path from any entry point (137 application, 11 tooling, 159 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (components/agent/agent-run-panel.tsx) \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":"components/agent/agent-next-actions.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c8649512a030aa6674e70162440b38359e2e48ca48c8d4fd1c1eba8d06a99a9"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~60 LoC): no import path from any entry point (137 application, 11 tooling, 159 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (components/agent/agent-composer.tsx) \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":"components/agent/agent-attachment-preview.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1ec571eaddee7b861a477204ba304d3b52ceaf6cba7267178da66e7e0564f8d"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~58 LoC): no import path from any entry point (137 application, 11 tooling, 159 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":"components/landing/blog-section.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4f4f19d5455111640a883a1c47bad3badc9f7f5aed4f7f8cd6ce1386a25e692"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~48 LoC): no import path from any entry point (137 application, 11 tooling, 159 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":"lib/middleware/logger.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"acc691b38bd432a214bd5d568e898cb679afffea4db9d53d74e65f7625198b8d"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~46 LoC): no import path from any entry point (137 application, 11 tooling, 159 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":"lib/middleware/admin.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f53240449e946fcffbba94413c84b2a682c90cca59ef6da8f6a4852b5a63fa6"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~38 LoC): no import path from any entry point (137 application, 11 tooling, 159 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (components/agent/agent-composer.tsx) \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":"components/agent/agent-suggestion-chips.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e38c51bda00c4a293abac882ded11cb40b74faf0f1397a6d856a1852935e895"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~38 LoC): no import path from any entry point (137 application, 11 tooling, 159 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":"components/landing/animation-placeholder.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9655503893d3d15b01c562636feb20eed0defd8330891c4bcf219639f80a28c0"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~35 LoC): no import path from any entry point (137 application, 11 tooling, 159 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (components/agent/agent-run-panel.tsx) \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":"components/agent/agent-plan-timeline.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b443cf058df7f9ace7fe4a3ae021102217238292fb3d677abce0846964e8642e"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~27 LoC): no import path from any entry point (137 application, 11 tooling, 159 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":"components/ui/select.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"adce1ff02d646ff4e662c036afce8d2d2bf8a4a3e0772524764a257af4c645e4"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~24 LoC): no import path from any entry point (137 application, 11 tooling, 159 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":"components/ui/label.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4e0a01180101eeea9c0cc0fee0af1ff1990dd1232c20ab0693a7c78b57874eb"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~23 LoC): no import path from any entry point (137 application, 11 tooling, 159 test roots considered), but 1 in-repo import(s) from 1 other file(s) do name it (components/audio-analyze-tab.tsx) \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":"components/ui/checkbox.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b82749c576feb0c3056087ab4406f24ba53db8fdd51ea1b1bbe61ea0d74f052"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~14 LoC): no import path from any entry point (137 application, 11 tooling, 159 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":"i18n/routing.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b65f7e8f944f9165ff04bd3f41e8d9a69a78c992fa6394db57fe3aba9a2257a"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~12 LoC): no import path from any entry point (137 application, 11 tooling, 159 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/vercel-ignore-build.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5defa83e23e7c2e97bc622292e2011c564d5cecd5700d9735f5d785116fa612"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027_resetAgentStorageCache\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/agent/storage.ts"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed2968852fcc41f463438e4a28d82e617a973d8dc475c92458aa3fbda8cfec8a"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027localeField\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/agent/tools/shared.ts"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c46f2553b6cd55a784e3bb2e7c4d336c577dc00108575ebecff43c16fe8029e"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027queryField\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/agent/tools/shared.ts"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"bed74e595f8b7ca5919966d34fbe27293ba660aa577be88375203e1b7c1b3e76"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027AgentListRunsResult\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/agent/types.ts"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"deab32ed9fbc0fbcc1ccfb9cff7d072f82c41898ede484171f0146e34ecfce26"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027signIn\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/auth/auth-client.tsx"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f56dacac92b0cb880bd9f546d85c6b7dddf184c49aaa4e04c6dbd26856f48b6"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027signUp\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/auth/auth-client.tsx"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"29647e801fe393bdb5a95695e1d5b9d491c0153f843a8abc23af74b91cb2aacd"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027getCreditBalancesForUsers\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/billing/credits.ts"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"562c8c52b07fe15cf8157375527f65d46d0aa591c3b00c14286ca935f7f70299"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027getRecentCreditLedger\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/billing/credits.ts"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"895b91aeaeb362b8699545c531686dd459c2065f5a5ad98fb481d97a9f944cdf"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027createCreemCreditCheckout\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/payments/credit-checkout.ts"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c1f339c11ae1d5a5dd0a7cd3da972ba9bd193f2607d2a153145dff7d34a1b96"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027createManualCreditPayment\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/payments/credit-checkout.ts"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2aeee89606a831d3163717b8ca8dc539714ada561e9937a841dd1da3da9f493"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027KieVeoGenerationRequest\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/reference-video/kie-veo.ts"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"55f297b5b2187474f31d097f0e4783c424aefd94a13289931330054b54ce6da6"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027TaskStatus\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/reference-video/types.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ec09739ba419b85017df47a527d99578455f99d498d6f7ef2cb37abba356814"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027UserAsset\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/reference-video/types.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"02b6697e2a572ae34628940174d0969ff4bf7bee319007f4113b551a9a87254b"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027ReferenceVideoProject\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/reference-video/types.ts"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e4d3bf5a3becc11974a732c3ea947a5c6ed7ced1b8862530a835a934d76db4f"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027getColorGradePresets\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/video-processor/editor.ts"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a9603755f16d3ac03b0a7ca7de0a2c15bb663bab06a8616bb29fc8e246119eb"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027getTransitionPresets\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/video-processor/editor.ts"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebc90645149ef1f1bcaada0971e17917b6c1211ffc0ed1ab07c3c4604d84d4e3"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027getMusicPresets\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/video-processor/editor.ts"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"22b04d2461ec8323aed4b7f4cbe0e7b818f8ed98e7d4a30810b0e55d552770e7"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027extractFrames\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/video-processor/index.ts"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"78520f6a9c98d08910c12be3bebba32f4bb1c3b0df94385e8305fef9800bf53b"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027downloadVideoForProcessing\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/video-processor/index.ts"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"0db64ce3a9ff55625ec891a4609d2c53d8ae15cf913a86f7a456e039d53b6459"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027framesToBase64\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/video-processor/index.ts"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"10f28e1950f0e1417270259faea7aa5318217c11a2d761a863a4efc3f35f4ad7"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027getGenerationModelForScene\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/workflow/service.ts"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9c2f28653d17991220512133adb6da37f98e9781a9c0058597db64cc679beda"}},{"ruleId":"R7","level":"note","message":{"text":"Unused module-local declaration \u0027deferredPOST\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":"app/api/audio-analyze/route.ts"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"96842baa49f5c931534c40655d9962ba71a6bb7704109555f98fe184a9c1b41f"}},{"ruleId":"R7","level":"note","message":{"text":"Unused module-local declaration \u0027deferredPOST\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":"app/api/audio-clip/route.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc18899e2e0b8d34dd51703d4618b222d106d2c92e757d29b40cf271315bbda3"}},{"ruleId":"R7","level":"note","message":{"text":"Unused module-local declaration \u0027deferredPOST\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":"app/api/video-edit/route.ts"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"f478b4b6bdfdcc04979aeaa04714af3d299fb5630ec243a210b59054772f9b8d"}},{"ruleId":"R7","level":"note","message":{"text":"Unused module-local declaration \u0027deferredPOST\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":"app/api/workflow/projects/[id]/audio/route.ts"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"80e26c567d2edcb9af2c082c217f3af4ec4f6fefb201b7681aacfddbd34de3e0"}},{"ruleId":"R7","level":"note","message":{"text":"Unused module-local declaration \u0027deferredPOST\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":"app/api/workflow/projects/[id]/edit/route.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ce021508254c492d016f3ef12c541def1a5901a2342c78bab0c005da4911101"}},{"ruleId":"R7","level":"note","message":{"text":"Unused private field \u0027async\u0027: Nothing in its class reads or assigns this private field (for a constructor parameter property: it is stored and never read), and no string key or test reaches it by name. Remove it, or use it where it was meant to take effect."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/agent/storage.ts"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"04b0042c23646ede7758ad7b4f0f5f21c3f3f5eb80f5ff8e2d6a3ba0cd3b2f7a"}},{"ruleId":"R7","level":"note","message":{"text":"Unused module-local declaration \u0027GenerateScene\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":"remotion/prompt-lens-core-workflow-demo.tsx"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a9dbb00bf6f37538fab1ebc5bb8b4186196863b6d0d263902804151d0f01718"}},{"ruleId":"R7","level":"note","message":{"text":"Unused module-local declaration \u0027fps\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":"remotion/prompt-lens-product-demo.tsx"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7728626a0ecb2df0c28e94146f4f8dcbcf8eb50c630bf3ee08129fa10338ad5"}},{"ruleId":"R7","level":"note","message":{"text":"Unused module-local declaration \u0027DURATION\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":"remotion/prompt-lens-product-demo.tsx"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"029f406a5a7a377463b86cdcaabe08309431685ef68749e062a224ecb838c3dd"}},{"ruleId":"R8","level":"error","message":{"text":"Unlisted import \u0027esbuild\u0027: Imported but not declared in any reachable package.json \u2014 installs work only by hoisting accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/credits-byok-integration.test.ts"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa7aee24b8baad961dfd685038b8621549a249d2f58ab1a2ef52ee2ae0c1c4e7"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027@aws-sdk/lib-storage\u0027: Declared in the root package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package.json"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c5e1aa4826974353a69a64f44fc76e236feac09dfcd08834287c050e3da27ec"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027@ffmpeg-installer/ffmpeg\u0027: Declared in the root package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package.json"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"3873a7b8d303860e59caf6b449fcded4f78f885487bfd21edb292022d97952b9"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027@mux/mux-node\u0027: Declared in the root package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package.json"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff17f4cc3949554b45ca75f2c3adbffbe6495fa7260aa6b0e075f1a41881c294"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027@remotion/google-fonts\u0027: Declared in the root package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package.json"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4ddfd382afa94883f92630db8b993f742db8552255eae467b823760c9830ac9"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027assemblyai\u0027: Declared in the root package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package.json"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"762925fb47ad38ac8f912956d4b641b137a0767004b9ac729b68959261395a07"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027date-fns\u0027: Declared in the root package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package.json"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb71803493bc73ee8db4911158cba403da34987ad4666c15024f24a5685ecddf"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027openai\u0027: Declared in the root package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package.json"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"e760ea562fd55297167d1a352135874e5dc044191cefd0ae99247032e415b69d"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027recharts\u0027: Declared in the root package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package.json"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f68431745d6e12848e67c5af9be6b11921f7caba945df606b7f2362bbf28f94"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027uuid\u0027: Declared in the root package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package.json"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e1bdce3e62ff7ed52e0a13e50161e555fe7b6e5dbfcea7cb3353c4f6ea467ba"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027whisper-node\u0027: Declared in the root package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package.json"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"699c2f730b28decc18db8f557153fe116e68428f45c5d311bee1b514f0e6ec02"}},{"ruleId":"R9","level":"error","message":{"text":"Import cycle (2 files): lib/billing/commercial-analysis.ts \u2192 lib/billing/independent-scene-analysis.ts \u2192 lib/billing/commercial-analysis.ts"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/billing/commercial-analysis.ts"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d3e906e4d09f066472784cd1854b711e4da0951c95a31dcf527b11ba0677d72"}},{"ruleId":"S1","level":"error","message":{"text":"Cryptographic key material is a compile-time constant: The value is the key-derivation salt and is a compile-time constant, so the secret this operation depends on is published with the source. A key that ships with the source is not secret: every contributor, fork, mirror and released binary carries it, so anyone holding the repository can decrypt what any installation encrypted, and there is no way to invalidate what was already protected because every deployment built from this source shares the value. Where the constant is a password salt the consequence differs but is no smaller \u2014 one global salt means precomputation amortises across every installation, which is the property salting exists to destroy. Read the value from configuration, an environment variable or a secrets manager at startup and FAIL FAST when it is absent, so a missing key stops the process instead of silently falling back to a shared default; treat the committed value as disclosed and rotate it rather than only deleting the line. For a salt, generate a fresh random one per password and store it alongside the hash."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/encryption.ts"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f1c28cb1b77d34739275d16f0d34e6ce24a28a72ffe85705746f017819a1cb5"}},{"ruleId":"S1","level":"warning","message":{"text":"Password key derivation is priced too cheaply: This code fixes scrypt at N=16,384 (r=8, p=1), Node\u0027s default. A key-derivation function\u0027s only defence is the cost of ONE guess, and that cost is this number \u2014 the algorithm choice does not set it. Current OWASP guidance is 1,300,000 PBKDF2 iterations with HMAC-SHA1, 600,000 with SHA-256 and 210,000 with SHA-512; scrypt at N=2^17, r=8, p=1 (or an equivalent N\u00B7r\u00B7p product); Argon2id at 19 MiB of memory and 2 iterations (or an equivalent row); bcrypt at a work factor of at least 10. This figure divides the attacker\u0027s work by a factor of tens or hundreds against the same stolen hash, on hardware they already own. Where what is derived is short or low-entropy \u2014 a PIN, a numeric parental code, a four-character token \u2014 the whole keyspace falls in the time this parameter buys, and no salt or constant-time comparison changes that. Raise the count to the current published figure for the PRF you use, measure it on the slowest hardware that must run it (a target of roughly 100 ms per derivation is the usual budget), and read the value from configuration so a deployment can raise it again without a rebuild. Where the derived value must interoperate with a format someone else fixed, the count cannot move \u2014 derive a SEPARATE value for anything you own rather than inheriting the external format\u0027s price."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/encryption.ts"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"2940ae1bafcf06792db3a6729f626f21f798dcb6175c1c1ccc0271089d6b0151"}},{"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":"workers/ffmpeg-worker/server.mjs"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae19d427a3cd9d8a125e80c1f7faefe5a91735fb47a7040575316e426b235d3e"}},{"ruleId":"S1","level":"warning","message":{"text":"Secure cookie flags not detected: \u0060response.cookies.set(\u2026)\u0060 carries who is signed in, and it is set without Secure. Without Secure the browser also sends it over plain http://, where anyone on the same network can read it. (\u22121.5 on this card.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/dev-auth/login/route.ts"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c6b99fadf82b02564be2bab1376b1be993db8af5b608c4c904532a10f9370ce"}},{"ruleId":"SC1","level":"warning","message":{"text":"JavaScript dependencies are not locked: workers/ffmpeg-worker/package.json declares dependencies that no committed lockfile resolves \u2014 there is no package-lock.json / yarn.lock / pnpm-lock.yaml / bun.lock beside it, and no locked workspace above it names it \u2014 so its installs aren\u0027t reproducible (SSDF PW.4.4). Commit its package manager\u0027s lockfile (or add it to the locked workspace) and install from it (\u0060npm ci\u0060, \u0060yarn --immutable\u0060, \u0060pnpm i --frozen-lockfile\u0060 or \u0060bun i --frozen-lockfile\u0060). Advisory \u2014 never scored."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"workers/ffmpeg-worker/package.json"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ec55d55e86734fc687165a059941e74f840cab90785ac840b413603752bea0e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!cancelled \u0026\u0026 Array.isArray(data.models)\u0060 appears character-identically in 2 files \u2014 components/audio-analyze-tab.tsx, components/video-edit-tab.tsx. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/audio-analyze-tab.tsx"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc8b123d1e12a7502e8ca473557e9d16f6699548be8543e2db85aea26d04f69b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!expected || Buffer.byteLength(expected) !== Buffer.byteLength(provided) || !crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(provi\u2026\u0060 appears character-identically in 4 files \u2014 app/api/cron/analysis-dispatch/route.ts, app/api/cron/commercial-reconciliation/route.ts, app/api/cron/media-retention/route.ts, app/api/internal/analysis-run/route.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":"app/api/cron/analysis-dispatch/route.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"c717a5bd2e87b05fd5b0ef64baf4cd6714e360fc5dbdcd3e9e4248a4379da279"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!project || (project.metadata as Record\u003Cstring, unknown\u003E)?.retentionExpiredAt\u0060 appears character-identically in 2 files \u2014 app/api/commercial/analysis/[id]/shots/[sceneId]/route.ts, app/api/workflow/projects/[id]/shots/[sceneId]/download/route.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":"app/api/commercial/analysis/[id]/shots/[sceneId]/route.ts"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8547e107fa9be732b89807a3edf3e593e31f4bc151460249cf8ac4f597baf5a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!response.ok || !response.headers.get(\u0022content-type\u0022)?.startsWith(\u0022video/\u0022)\u0060 appears character-identically in 2 files \u2014 components/workflow/scene-video-preview.tsx, lib/ai/adapters/infistar-video.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":"components/workflow/scene-video-preview.tsx"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"e656d221ee9dd2338a58b62174fb71917e37c7cdd4b2b0d051db2521ea77ab7d"}},{"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 lib/media-resolver/easydown.ts, lib/workflow/scene-analysis-result.ts, workers/ffmpeg-worker/server.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":"lib/media-resolver/easydown.ts"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd5a6cb30c1310dec2d6c2a490662f869f93d8ce38b6e06d1e85886a2e3fdb51"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Array.isArray(values) \u0026\u0026 typeof values[0] === \u0022string\u0022\u0060 appears character-identically in 2 files \u2014 lib/ai/adapters/kie-video.ts, lib/reference-video/kie-veo.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":"lib/ai/adapters/kie-video.ts"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"dff07d4618db785e1428c67e9b208f32c39038e513a78d9862aedc9be16b4364"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Number(eval(videoStream.r_frame_rate || \u002230\u0022)) || 30\u0060 appears character-identically in 2 files \u2014 lib/video-processor/editor.ts, lib/video-processor/index.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":"lib/video-processor/editor.ts"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"50f9f8653c589192796eabd3ab61c3f914eb230dd672cf19ebbbc70f9f8f14c6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Number.isFinite(start) \u0026\u0026 Number.isFinite(end) \u0026\u0026 end \u003E start\u0060 appears character-identically in 2 files \u2014 lib/workflow/local-standard-edit.ts, lib/workflow/video-editing.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":"lib/workflow/local-standard-edit.ts"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"c945ebd0cab7052236720e913ee8f0212a1a00eff1caf077cd577742c01f23bb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060e.key === \u0022Enter\u0022 \u0026\u0026 (e.metaKey || e.ctrlKey)\u0060 appears character-identically in 2 files \u2014 components/agent/agent-chat-page.tsx, components/agent/agent-composer.tsx. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/agent/agent-chat-page.tsx"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"3926da7ac8eabc01943a68f93e20fe048b30318ddb7e08e8a59c9a64d283e2c2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060keyAccess.source === \u0022platform_admin\u0022 || keyAccess.source === \u0022platform_paid\u0022\u0060 appears character-identically in 2 files \u2014 app/api/workflow/projects/[id]/remix/route.ts, app/api/workflow/projects/[id]/scenes/[sceneVersionId]/rewrite/route.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":"app/api/workflow/projects/[id]/remix/route.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba2e713b71ea97d2521961c399db2bd16d570843a77766f7df0f3f5f51dc87c3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060mimeTypes[ext || \u0022\u0022] || \u0022application/octet-stream\u0022\u0060 appears character-identically in 2 files \u2014 app/api/project-assets/route.ts, lib/cloudflare/r2.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":"app/api/project-assets/route.ts"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"443f7bb90a52ecc494fe18eb9dfc0113dae93e04a6c2d072c4fc50ce8701b092"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060modelSelection.modelMode === \u0022manual\u0022 \u0026\u0026 modelSelection.modelId\u0060 appears character-identically in 2 files \u2014 app/api/workflow/projects/[id]/remix/route.ts, app/api/workflow/projects/[id]/scenes/[sceneVersionId]/rewrite/route.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":"app/api/workflow/projects/[id]/remix/route.ts"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"14e46cca4292b910562a320c2dd07c3449a82b5ab01f85e50600294c0391910a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060process.env.KIE_AI_BASE_URL || process.env.KIE_API_BASE_URL || \u0022https://api.kie.ai\u0022\u0060 appears character-identically in 4 files \u2014 app/api/settings/api-key/route.ts, lib/ai/kie-client.ts, lib/workflow/kie-audio.ts, lib/workflow/transcription.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":"app/api/settings/api-key/route.ts"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e77b58cbab04abbbf7a977b7586e90268ab61aad96d31c8d474f284012be937"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060process.env.NEXT_PUBLIC_SITE_URL || \u0022https://prompt-lens.cc.cd\u0022\u0060 appears character-identically in 3 files \u2014 app/layout.tsx, app/robots.ts, app/sitemap.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":"app/layout.tsx"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"299dc85b3fd68fbe595182540820c5341df9ee0436e5398636c13602807753d4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060process.env.NEXT_PUBLIC_SITE_URL || process.env.NEXT_PUBLIC_APP_URL\u0060 appears character-identically in 2 files \u2014 app/api/payments/orders/[id]/pay/route.ts, lib/payments/credit-checkout.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":"app/api/payments/orders/[id]/pay/route.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"02cc767b3a19ce6ae18218b6841ee08672553e0148db8c63e2975901c23a3008"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060ref.current \u0026\u0026 !ref.current.contains(e.target as Node)\u0060 appears character-identically in 2 files \u2014 components/landing/site-header.tsx, components/language-switcher.tsx. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/landing/site-header.tsx"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"42a7de7f3cb1903d1afeed32f42305adf420ef8907ce9b37b3281db8a5ba79a8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060request.headers.get(\u0022authorization\u0022) || \u0022\u0022\u0060 appears character-identically in 4 files \u2014 app/api/cron/analysis-dispatch/route.ts, app/api/cron/commercial-reconciliation/route.ts, app/api/cron/media-retention/route.ts, app/api/internal/analysis-run/route.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":"app/api/cron/analysis-dispatch/route.ts"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"334cccaff3beb4e7420867908b3f721db0e0d7a36f450fcf09d94fd6ccab0236"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060selectedModel \u0026\u0026 selectedModel.provider !== \u0022kie\u0022\u0060 appears character-identically in 2 files \u2014 app/api/workflow/projects/[id]/remix/route.ts, app/api/workflow/projects/[id]/scenes/[sceneVersionId]/rewrite/route.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":"app/api/workflow/projects/[id]/remix/route.ts"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"82e0e00d6c2451c1cc573a4bb76ff02d22f0f020ff2dca5929eb6221c6ccea81"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof navigator !== \u0022undefined\u0022 \u0026\u0026 navigator.language.toLowerCase().startsWith(\u0022zh\u0022)\u0060 appears character-identically in 2 files \u2014 components/agent/agent-chat-page.tsx, components/agent/create-with-agent.tsx. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/agent/agent-chat-page.tsx"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ee0c078f2f1f668b24bb08acade5d07ea2a1441fb916b563e21ad6c5ad40f4c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof raw === \u0022string\u0022 \u0026\u0026 raw.length \u003C= 2048 \u0026\u0026 !/[\\r\\n]/.test(raw)\u0060 appears character-identically in 2 files \u2014 lib/media-resolver/easydown.ts, workers/ffmpeg-worker/server.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":"lib/media-resolver/easydown.ts"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"e14e0aae35c305cc744056c19cb414b3f260a2fc23f3a0005109be6c7715fe98"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof record.data === \u0022object\u0022 \u0026\u0026 record.data !== null\u0060 appears character-identically in 2 files \u2014 lib/workflow/kie-audio.ts, lib/workflow/transcription.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":"lib/workflow/kie-audio.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"8675e0523a65d3b967089073717cf493d1c83a044d4fb9c97506cc48fda700a1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof value !== \u0022object\u0022 || value === null\u0060 appears character-identically in 2 files \u2014 lib/ai/adapters/kie-video.ts, lib/workflow/transcription.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":"lib/ai/adapters/kie-video.ts"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7bbc5abdccc58652c6be9c4f1ed25736d728d5b0b4372639e633678f1399b93"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof value === \u0022number\u0022 \u0026\u0026 Number.isFinite(value)\u0060 appears character-identically in 2 files \u2014 app/api/generation-jobs/route.ts, lib/workflow/recreation-prompt.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":"app/api/generation-jobs/route.ts"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"d03c7629dfe60414a965fa33013bfbb2e20e9639bc37590f2567c3ed1e82aa6c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof value === \u0022string\u0022 \u0026\u0026 value.trim()\u0060 appears character-identically in 2 files \u2014 app/api/generation-jobs/route.ts, lib/reference-video/kie-veo.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":"app/api/generation-jobs/route.ts"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae03dde2282953c48b5ee60ee93966ed5e208dbfc5c9e3794bc67b26afa2e1df"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof value === \u0022string\u0022 \u0026\u0026 value.trim() \u0026\u0026 value.trim() !== \u0022auto\u0022\u0060 appears character-identically in 2 files \u2014 app/api/generation-jobs/route.ts, app/api/video-generate/route.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":"app/api/generation-jobs/route.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"68b5911c779d9c69ef746c525a3611b6164fa854bcc6476ac33d085f72b34a1b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060url.protocol !== \u0022https:\u0022 \u0026\u0026 url.protocol !== \u0022http:\u0022\u0060 appears character-identically in 3 files \u2014 lib/email/otp-email.ts, lib/email/runtime-config.ts, lib/email/welcome-email.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":"lib/email/otp-email.ts"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d04ae082360d4d4ff8cf7beab1aa6a84296056a54be63a270f54813e911df61"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060url.protocol === \u0022https:\u0022 \u0026\u0026 ![\u0022localhost\u0022, \u0022127.0.0.1\u0022].includes(url.hostname)\u0060 appears character-identically in 2 files \u2014 lib/billing/commercial-readiness.ts, lib/payments/alipay.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":"lib/billing/commercial-readiness.ts"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"25b68ea0c25fe57cfb43239d33070969521dca9c6a94b30c1e16c89ef4ef29b3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060value \u0026\u0026 typeof value === \u0022object\u0022 \u0026\u0026 !Array.isArray(value)\u0060 appears character-identically in 5 files \u2014 lib/ai/kie-responses.ts, lib/billing/analysis-diagnostics.ts, lib/media-resolver/easydown.ts, lib/payments/credit-checkout.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":"lib/ai/kie-responses.ts"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c7b7ecc02ec652ee21ade2c750fb14fac266fe3e8e310da6cf573bf1195d0a1"}},{"ruleId":"X2","level":"note","message":{"text":"Not all async functions that make a request accept an AbortSignal: Only 30/60 async functions that make a cancellable request (fetch, axios, ky, ofetch, got, undici, node:http) accept an AbortSignal or pass one on, so a request keeps running after whatever wanted it has given up \u2014 a page navigated away from, an unmounted component, a timed-out job. Take a \u0060signal\u0060 (or an options object that carries one) and hand it to the request; where nothing could ever cancel the call, omitting it is a deliberate choice \u2014 judge against how the function is used."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"bd89d014f84408f7063269aa5892ba3df7c9af3e981ecfb0752c5731bc62d406"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: uploadMediaToR2: \u0060uploadMediaToR2\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":"lib/r2-upload-client.ts"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"d657bf74796fb5c2b2645bb73f7148c82dcb3b4cd244c3863337b6183d40f8f2"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: createKieDialogueTask: \u0060createKieDialogueTask\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":"lib/workflow/kie-audio.ts"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"43472cdd25475cc0338b756883ca55577c0c23609b69bd18d43148d13eb4a004"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: downloadVideo: \u0060downloadVideo\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":"lib/workflow/local-standard-edit.ts"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c546115bef0cc38f73048efa00356f0f1beb9a29beaef9de0f5ec146085a486"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: recognizeBackgroundMusic: \u0060recognizeBackgroundMusic\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":"lib/workflow/music-recognition.ts"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"f23fa0cb1c0548ef05632bd720dc7ee1b781682faca80bdff1317fa5ac9ff624"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: fetchProjectList: \u0060fetchProjectList\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":"lib/workflow/project-list-client.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"920bb0c0aecf0b9c2e7288f66c33b9262ff9db6e88eb93937c35bd64134f3192"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: downloadMusic: \u0060downloadMusic\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":"lib/video-processor/editor.ts"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"abbb2d932d65dc68949b1a7ffab7f9a37fbdbb38bfb11fc4d6314e325f807cce"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: createCreemCreditCheckout: \u0060createCreemCreditCheckout\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":"lib/payments/credit-checkout.ts"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"fed262d4a35741314908becba69acc912e92e87b7b4b8c226999d887e3d589b2"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: submitVeoTask: \u0060submitVeoTask\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":"lib/ai/adapters/kie-video.ts"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ba06b8c1c7ad2dcc28b091d3faf7a9839191a1e3f6eb323dc5b2cc62e94fead"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: submitJobTask: \u0060submitJobTask\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":"lib/ai/adapters/kie-video.ts"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"94e3af4c9bbc02946132b8e6d61195929df5cf13ce4ace9685510cff17167b0c"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: fetchKIEVeoTaskResult: \u0060fetchKIEVeoTaskResult\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":"lib/ai/adapters/kie-video.ts"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"32518ba0678d206c08bb3d9edb6733b3fa63d7ef2c65a543fab37f761141dffa"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: fetchKIETaskResult: \u0060fetchKIETaskResult\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":"lib/ai/adapters/kie-video.ts"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f9670079948597d100a2d3127a2fbe08ed2b805fe959f3bfce123d12a61563f"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: createRun: \u0060createRun\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":"lib/agent/client.ts"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"0902cec62579d8d015b11059fa1f272b1a2be0c74b047056a796ae8dcfbb5087"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: listRuns: \u0060listRuns\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":"lib/agent/client.ts"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ed48587d922be07dd6a52548d7e838eed982d0c9bb8319d1179c86e49358f3e"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: getRun: \u0060getRun\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":"lib/agent/client.ts"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d4e8629110f21109a8e4688666de8dc2d123c4880bde9c82ed933f8cae6ba83"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: executeRun: \u0060executeRun\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":"lib/agent/client.ts"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9cd436123764c2779600dbbe8121d91d72b36244ce2898bb19994410ae02f94"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: cancelRun: \u0060cancelRun\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":"lib/agent/client.ts"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a6acfc3820f1f94870e9c4e727bba212858a22121241d6bfd9755ef8afac2c5"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: retryRun: \u0060retryRun\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":"lib/agent/client.ts"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"269174874914785bd4251ff64ec558c17557c439a49465c7f3aba45985efcb5c"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: deleteRun: \u0060deleteRun\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":"lib/agent/client.ts"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec9df592d7d182922925485c6bbd968d846c4e548c7805e99e0eb9e7f1f8e45d"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: setArtifactFavorite: \u0060setArtifactFavorite\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":"lib/agent/client.ts"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a1934c1be90fbfbeb48ed66e542407e5a826e2be70b8b548da0f9c913b87f37"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: refresh: \u0060refresh\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":"components/api-key-settings.tsx"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"69fec305fd65052caee1814bc7931347369877a3ec3eb0ee76d673ffd6c92079"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: loadAudioModels: \u0060loadAudioModels\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":"components/audio-analyze-tab.tsx"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"25c7a0edd66e1f8e1afab8973a8740c60b82dcaa517c40fcf9a7570df6717d41"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: loadSample: \u0060loadSample\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":"components/sample-project-detail.tsx"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"27e22a593b892eeea564e44f4253120df87534b83a8a773c64b0be89373645ba"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: loadSamples: \u0060loadSamples\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":"components/samples-gallery.tsx"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"956c7b53805f93db413f1754cdd1886777892b604275f6b5a84080a0a797eddf"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: loadEditModels: \u0060loadEditModels\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":"components/video-edit-tab.tsx"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"41ba78bd7798e808acfbd40650feab555f53305e7c2524ab5ab70403baa7fb77"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: pollGenerationStatus: \u0060pollGenerationStatus\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":"components/reference-video/ReferenceVideoComposer.tsx"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f219fc8250828bb79ab4b62fac92cedeea52a15b7316a3d46eed5c9ae767629"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: submitGenerationJob: \u0060submitGenerationJob\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":"components/reference-video/ReferenceVideoComposer.tsx"},"region":{"startLine":1076}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbe91aecae3978c372b82b2a43ab0d408a4d394553190b6e64ae2f30101c941d"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: poll: \u0060poll\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":"app/billing/payment/return/payment-return-client.tsx"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"3640e1f745987cbeb6199d32df2d393dd237150389c61c81d22b9cf8b78a054b"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: deferredPOST: \u0060deferredPOST\u0060 holds an AbortSignal but calls \u0060axios.post(\u2026)\u0060 without it, so its caller\u0027s cancellation never reaches that call and it runs to its end after whatever wanted it has given up. Hand the signal on: \u0060axios.post(\u2026, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/workflow/projects/[id]/edit/route.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"40128f47d3f3c0dd23ec842974480a31426910d25416269f632409f96c1fc035"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: deferredPOST: \u0060deferredPOST\u0060 holds an AbortSignal but calls \u0060axios.post(\u2026)\u0060 without it, so its caller\u0027s cancellation never reaches that call and it runs to its end after whatever wanted it has given up. Hand the signal on: \u0060axios.post(\u2026, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/video-edit/route.ts"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"72cd6386053763abff6045ea9e921bc8b206fdfc2583e3b0ac57b4c6f694392b"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: deferredPOST: \u0060deferredPOST\u0060 holds an AbortSignal but calls \u0060fetch(\u2026)\u0060 without it, so its caller\u0027s cancellation never reaches that call and it runs to its end after whatever wanted it has given up. Hand the signal on: \u0060fetch(\u2026, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/api/audio-clip/route.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"afef83e374f71c6fb850ca8f2b1496f133385c1e0722806853db96ecd2d70474"}},{"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":"workers/ffmpeg-worker/remote-video-codec.mjs"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"7faf5190c3c5edd14766baf7affce2cece7e536e4fe9a7949f0890047de0eaec"}},{"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":"workers/ffmpeg-worker/storage-media-download.mjs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"a877ab7559d333cc5be48605d4010a635de95f7f268a1eb0eafb23d4d82cb1f8"}},{"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":"lib/workflow/local-standard-edit.ts"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f1489a9487af1b66edbf4e34a1358a8d87418095e341dbadf79968600c71954"}},{"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":"lib/video-processor/editor.ts"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"651f87ef0af35f5f1830a9b1957445e5540ef393242d48571efaf2d117ef17fc"}},{"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":"lib/video-processor/editor.ts"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c61cea09fe2449e1719a4786620fb258ce84605389ecf02a05fe6b7a3717cd9"}},{"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":"lib/payments/alipay.ts"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"91f8365c79b087ebf1f6ee1dbc5c8584d40e126fd90739eb1601b6b3bb38981c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/billing/commercial-generation.ts"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4d35c21f7219aa0033e56302fcf5001ec13d20d94c316cbac62df113c2c2197"}},{"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":"lib/billing/commercial-media.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cde374f3bac649c145d1e4d6f6bb96c156413f9e7004fd4c26c4331fd4fbee1"}},{"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":"lib/billing/commercial-readiness.ts"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf2d7d292f99324d5cab72ef57285adbec2187b79ce91f114d4068de8dd3ec6a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/billing/local-analysis-scheduler.ts"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"f97a9d087e70828bdb20f73ba63dab4f551646a298d920ab79d66b80525e0e60"}},{"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":"lib/billing/reconciliation-worker.ts"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca59d57d1d46d246b88a07520d8f40dee90272daff45e180aeda4566108562e7"}},{"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":"lib/ai/infistar-media.ts"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"8db796642cbcfb57d747e8fcc4e41e7a516810295e5ac1ebd6a3e2791d8faffa"}},{"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":"lib/ai/kie-client.ts"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"c49736147328104a5192d7b614f8099b12476051fbdf5742890d131efda9299a"}},{"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":"lib/ai/kie-responses.ts"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"fafeb148e4a0089facd01717475cdc5097984833432bc5f9773bffb5655e5dac"}},{"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":"lib/ai/reference-media-access.ts"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"26e5f97d180f2de53f2fbdef53aaad5682e3cc0facf0410ad998d1e6dc38631b"}},{"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":"lib/ai/adapters/infistar-video.ts"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"34cb4374d9cbcd66641e9a0b046ef83b62cf9fb5a070bd90cb32915ecec6f6cf"}},{"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":"lib/ai/adapters/infistar-video.ts"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"6457ae6db66c2bbc654759b83c4b9e8a4b0ddf7d42c4ec4eb8f3e64fd3c1d3e4"}},{"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":"lib/agent/ai-provider.ts"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"70702e1aa2e0aceabdef9a57a3b076ed72631d619e4f7445f7eba1cf51188f28"}},{"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":"lib/agent/ai-provider.ts"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3a60679c8ce59f4f84e5dc6099da50738bb0a32c384ba5390f55fcad954325d"}},{"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":"lib/agent/ai-provider.ts"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"06fddcef79bbbd434915befeb2ce824c216e1a3d64fa90883aa2e70f6ffb4e79"}},{"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":"lib/agent/storage.ts"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb95bb1ed3dee9814978f0391b813a5c603d2c4a241d0d53d5b373f393d7d6ea"}},{"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":"components/audio-analyze-tab.tsx"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"962334dbd8c35fbbc26f19359c8645c787b46f0e849a6a7db540a20a636d2b65"}},{"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":"components/visit-tracker.tsx"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2699d0a6b5bf4cc82391189ab53f55616322aba59cb58622cdae502221aef29"}},{"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":"components/workflow/video-workflow-create.tsx"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4a0e5ddefaa58a939797277824c979157d596f1a7529ed5e80ca61856a3470d"}},{"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":"components/workflow/video-workflow-create.tsx"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a0374404496c874513941e8c82f81d606fde9f2edc29e1b742fa00b639b6e8c"}},{"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":"components/workflow/video-workflow-create.tsx"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"60019272144f28ecef6e53e4123ae3dd422eeb1a144ac32bb96df60277cbba53"}},{"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":"components/workflow/video-workflow-create.tsx"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbfde5b2cf9e8629e7dfe3640f9cc8db718498e25c350634f58e4b54f0f14500"}},{"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":"components/workflow/video-workflow-create.tsx"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbf07e8ecbc1efccee908858a8810944372d4b8496f2233d7a654038fb882932"}},{"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":"components/workflow/video-workflow-create.tsx"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b4f855dc4374b75f61f9915aeb67306d38fc5e2e9657d0e382e85d02699b2cd"}},{"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":"components/reference-video/ReferenceVideoComposer.tsx"},"region":{"startLine":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"8363c2be9b062580b8bb360ff078cf71b1306a5a2969371181a73622c16fe540"}},{"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":"components/reference-video/ReferenceVideoComposer.tsx"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c941e7edc95750c2fb30b2a185d905409884a18e5ce3b3524bc89ca6574846c"}},{"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":"components/reference-video/ReferenceVideoComposer.tsx"},"region":{"startLine":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddac3c6d288bddbd2288576aa81851be449304183b8aaf17237d8009d7d2b4f4"}},{"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":"components/landing/pricing-section.tsx"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbe906472b340005064832063d25f4c63825837ed58ea0339ed35f4ea4604232"}},{"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":"components/landing/pricing-section.tsx"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ee495180d3ab994a58da562a2567bf370ac3209abf89e55bf6613ab2f820451"}},{"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":"components/landing/pricing-section.tsx"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"75996b04533d88955c6e7bc1db08c228b93b323069e61e441b15d1cab6a87ce2"}},{"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":"components/agent/create-with-agent.tsx"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"43f3d67a5799a09f6bde9323b883cfa37d33f106c450abd5b6ea0dd7bb816ee0"}},{"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":"components/agent/create-with-agent.tsx"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cf1bec5f57f869ff5e96bde32ff0ae7e1161fcbf2a4741402a18b80e2c40e00"}},{"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":"components/agent/create-with-agent.tsx"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"7919d3a5208895fa39e1d577f3372ee45cbdce3a28f0c6cace886d42295b5887"}},{"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":"components/agent/create-with-agent.tsx"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d4f751d337bc8b2fd1b0772e4336cc92027ba41c9738537e59021585f5788ea"}},{"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":"components/agent/create-with-agent.tsx"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"7641a5454777c4e46043468bfeb3853dee1a8d83f3164b4c53ee42699763231b"}},{"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":"app/api/payments/orders/[id]/close/route.ts"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d98b0a0f9473860990f14f9ebf59e9a130299b9d90970a4f471a969405e5a81"}},{"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":"app/api/cron/commercial-reconciliation/route.ts"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c23f6595e28e7db65f3392673b900e2c3e1db3963a50db679bdb981426e86cd"}},{"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":"app/api/cron/commercial-reconciliation/route.ts"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7168fcdbc36d069cec86b55d7089a1f5a7ec591f2845417ca0579e39eec9d42"}},{"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":"app/api/commercial/tasks/[id]/route.ts"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb73233f434ee9902500f297ebaed44d3cdb14fd5a215171713853ceed895470"}},{"ruleId":"X5","level":"note","message":{"text":"Null assertions (\u0060!\u0060) override strict null checking: ~2.0 \u0060!\u0060 null assertions per 1k TypeScript source lines \u2014 76 assertion(s) across the 37451 source line(s) of the 320 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: lib/workflow/analysis-tasks.ts (14), lib/billing/commercial-generation.ts (7), app/api/commercial/tasks/[id]/route.ts (5). Each one tells the compiler to trust the author about null, suppressing the very diagnostic \u0060strictNullChecks\u0060 exists to produce. Many are correct: each is a claim the checker could not verify, and it is wrong only where the value can in fact be missing, so review the densest places first."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"1d83a7c69636a6290f63000d5c19b2073be1fa772f51977532af9ca6f745fc2a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060price\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":"app/guide/credit-rules.ts"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"21f4f38335f9c2446d6f1de815f53ea86e308b1489c17d411a7360168f38cd02"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060cachedProjects\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":"components/workflow/video-workflow-create.tsx"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"903d7e1753c3f8557b5eb9a7813b589b97811a5ee9fa74b7211db8a3bb1738f5"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060findRelevantHistory\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":"lib/agent/storage.ts"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"f233a976b1c07ae01100f3adfdc81f409591d91830ebaa2a0f9de0ef7bef2057"}}],"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-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-209","guid":"da28ecd2-f5c1-7852-ac41-a93b2d668c73","name":"Generation of Error Message Containing Sensitive Information","shortDescription":{"text":"Generation of Error Message Containing Sensitive Information"},"helpUri":"https://cwe.mitre.org/data/definitions/209.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-310","guid":"97174724-2e33-8455-b7cd-5c3258d1cb8f","name":"CWE-310","shortDescription":{"text":"CWE-310"},"helpUri":"https://cwe.mitre.org/data/definitions/310.html"},{"id":"CWE-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-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-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":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"},{"id":"A10:2025","guid":"9ca3ab55-ca61-fd5e-b9ab-3dad2efa59d0","name":"Mishandling of Exceptional Conditions","shortDescription":{"text":"Mishandling of Exceptional Conditions"},"helpUri":"https://top10.owasp.org/2025/A10_2025-Mishandling_of_Exceptional_Conditions/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"}]}],"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":77,"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."]}]}