mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-19 19:36:04 +00:00
Adds rules that catch recurring bugs observed across w2h agent eval rounds:
Layout (new file, ~22 rules):
- absolute_width_collapse, absolute_center_missing_translate
- hero_absolute_center_maxwidth_only
- word_stagger_block_display (block on .word inside stagger animation)
- nowrap_missing_max_width, gsap_css_transition_conflict
- + others surfacing bad CSS contracts that render correctly in Studio
but break under render-engine seek.
Composition:
- master_timeline_orchestrates_sub_compositions: FP guard for the
xfade() helper pattern. Authors sometimes wrap tl.to in a helper
(function xfade(outSel, inSel, t) { tl.to(outSel, ...); }) then call
xfade('#beat-1-host', '#beat-2-host', 4.15). The tl.to args are
variables so the original regex missed them — now we also match
'#<host-id>' literal anywhere in the script blob.
CLI:
- lintProject: skip audio_src_not_found for deferred tokens
(<<tts_*>>, <<music_*>>, <<audio_*>>, <<sfx_*>>, <<sound_*>>,
<<narration_*>>). Placeholders resolved post-finish; rule
was breaking the SHIP GATE check.
Tests:
- composition.test.ts: 16 new tests + async migration for all sites
- layout.test.ts: 72 tests covering all new rules
- lintProject.test.ts: 4 tests for deferred-token carve-out