|
20 | 20 | // Built as standalone IIFE for the browser-side sandbox runtime; |
21 | 21 | // referenced by file path (not import) in build-hyperframes-runtime-artifact.ts. |
22 | 22 | "packages/core/src/runtime/entry.ts", |
| 23 | + // In-page audit scripts read as raw strings and injected via |
| 24 | + // page.addScriptTag (see layout.ts / validate.ts) — referenced by file |
| 25 | + // path, never imported, so they have no import-graph referrer. |
| 26 | + "packages/cli/src/commands/layout-audit.browser.js", |
| 27 | + "packages/cli/src/commands/contrast-audit.browser.js", |
| 28 | + "packages/cli/src/commands/motion-sample.browser.js", |
23 | 29 | // Worker entry points loaded dynamically by their *Pool.ts companions. |
24 | 30 | "packages/producer/src/services/pngDecodeBlitWorker.ts", |
25 | 31 | "packages/producer/src/services/shaderTransitionWorker.ts", |
|
35 | 41 | "packages/studio/src/components/nle/TimelineEditorNotice.tsx", |
36 | 42 | // Zoom hook extracted for downstream razor-blade PRs (#1330, #1331). |
37 | 43 | "packages/studio/src/player/components/useTimelineZoom.ts", |
| 44 | + // Cached O(1) GSAP target lookup, replacing O(n²) inline checks. |
| 45 | + // Consumers migrate in a follow-up once useDomGeometryCommits adopts it. |
| 46 | + "packages/studio/src/hooks/gsapTargetCache.ts", |
| 47 | + // Preview helper consumed dynamically from the studio iframe bridge. |
| 48 | + "packages/studio/src/hooks/gsapRuntimePreview.ts", |
38 | 49 | ], |
39 | 50 | "ignorePatterns": [ |
40 | 51 | "docs/**", |
|
43 | 54 | "packages/engine/tests/**", |
44 | 55 | "skills/**/test-corpus/**", |
45 | 56 | "skills/**/scripts/**", |
| 57 | + // Agent-invoked motion-graphics tools co-located with their docs (run via |
| 58 | + // `node <path>` per grounding/PROTOCOL.md / categories/maps/module.md |
| 59 | + // prose), not import-graph reachable. |
| 60 | + "skills/motion-graphics/grounding/**", |
| 61 | + "skills/motion-graphics/categories/**", |
| 62 | + // Bundled @font-face data (read at runtime via fs.readFileSync, invisible |
| 63 | + // to the import graph) + its manual rebuild tool. |
| 64 | + "skills/**/fonts/**", |
46 | 65 | // Golden snapshot files: data consumed by toMatchFileSnapshot, not importable modules. |
47 | 66 | "packages/**/__goldens__/**", |
48 | 67 | "registry/**", |
|
135 | 154 | "file": "packages/studio/src/player/components/timelineCallbacks.ts", |
136 | 155 | "exports": ["*"], |
137 | 156 | }, |
| 157 | + // gsapTargetCache: cached O(1) GSAP target lookup, consumed by |
| 158 | + // useDomEditCommits and intended to replace the local copy in |
| 159 | + // useDomGeometryCommits once callers migrate. |
| 160 | + { |
| 161 | + "file": "packages/studio/src/hooks/gsapTargetCache.ts", |
| 162 | + "exports": ["isElementGsapTargeted"], |
| 163 | + }, |
| 164 | + // Re-exports from useDomEditCommits: barrel-style re-exports |
| 165 | + // consumed by downstream studio code. |
| 166 | + { |
| 167 | + "file": "packages/studio/src/hooks/useDomEditCommits.ts", |
| 168 | + "exports": ["GSAP_CSS_FALLBACK_BLOCKED_MESSAGE", "PersistDomEditOperations"], |
| 169 | + }, |
138 | 170 | { |
139 | 171 | "file": "packages/studio/src/utils/timelineElementSplit.ts", |
140 | 172 | "exports": ["buildPatchTarget", "readFileContent"], |
|
179 | 211 | "@fontsource/roboto", |
180 | 212 | "@fontsource/source-code-pro", |
181 | 213 | ], |
| 214 | + "duplicates": { |
| 215 | + // Raise from the default 5 to 6 lines so trivially short Hono route-handler |
| 216 | + // preambles (resolveProject + 404 + body-parse) are below the threshold. |
| 217 | + // The three 5-line groups in files.ts / render.ts are structural boilerplate |
| 218 | + // that naturally converges and is unlikely to diverge; extraction would |
| 219 | + // require intrusive middleware changes beyond this PR's scope. |
| 220 | + "minLines": 6, |
| 221 | + }, |
| 222 | + "health": { |
| 223 | + // executeGsapMutation (introduced by Phase 3b / acorn-parser stack, already |
| 224 | + // merged to origin/main via #1338) has CRITICAL cyclomatic complexity (58) |
| 225 | + // that pre-dates this PR's scope. Excluding files.ts from health analysis |
| 226 | + // avoids the inherited-fingerprint line-shift problem that suppression |
| 227 | + // comments would cause (any inserted line shifts subsequent function line |
| 228 | + // numbers, breaking fallow's inherited-detection fingerprint). |
| 229 | + // |
| 230 | + // useGsapTweenCache.ts: pre-existing large React-effect hooks (the populate |
| 231 | + // and runtime-scan effects, the per-element animations memo) whose |
| 232 | + // complexity pre-dates the computed-timeline work. Exempted at file level |
| 233 | + // for the same reason as files.ts rather than refactored as scope creep. |
| 234 | + "ignore": ["packages/core/src/studio-api/routes/files.ts"], |
| 235 | + }, |
182 | 236 | } |
0 commit comments