mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-18 16:08:56 +00:00
fix(lint): flag a data-automation or data-fx-chain the render cannot read (#7169)
* fix(lint): flag a data-automation or data-fx-chain the render cannot read A cue whose automation lane has no "version": 1 passed `hyperframes check` and only failed at render: locally with "Unsupported automation version: undefined", in the cloud with no cause at all. The new error `audio_attribute_unreadable` reads each data-automation and data-fx-chain envelope (JSON object, version 1, a lanes or nodes array, a target and points per lane, a type per node) and names the element. Lint cannot import the renderer's parsers from @hyperframes/core, which depends on it, so core gains a parity test that fails if the two disagree on any envelope case. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(lint): an empty data-automation or data-fx-chain is ignored, as the mixer does Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore(lint): split the audio attribute shape check and raise the CLI size budget audioAttributeShapeError splits its envelope and per-entry checks to stay under the cognitive-complexity gate, and media.ts drops the added rule label comment. The CLI's unpacked size was already 0.99% over its budget on main (23,958,7xx of 23,722,874); this rule adds about 2.4 KB of bundled code, which crosses the 1% tolerance. The budget moves to 5% above the measured 23,961,054, as the budget file's own headroom rule sets it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * style(lint): format the split audio attribute checks Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore(ci): raise the lint package's unpacked size budget for the audio attribute rule The rule and its envelope checks take @hyperframes/lint's unpacked size to 702,230, just over 1% past its 695,173 budget. The budget moves to 5% above the measured size, as the budget file's headroom rule sets it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
0bbc9b2943
commit
cd7b7383cb
@@ -5,7 +5,7 @@
|
||||
},
|
||||
"@hyperframes/cli": {
|
||||
"packed": 7902966,
|
||||
"unpacked": 23722874
|
||||
"unpacked": 25159107
|
||||
},
|
||||
"@hyperframes/core": {
|
||||
"packed": 1762752,
|
||||
@@ -25,7 +25,7 @@
|
||||
},
|
||||
"@hyperframes/lint": {
|
||||
"packed": 179338,
|
||||
"unpacked": 695173
|
||||
"unpacked": 737342
|
||||
},
|
||||
"@hyperframes/parsers": {
|
||||
"packed": 203731,
|
||||
|
||||
Reference in New Issue
Block a user