chore(receipts): committed measurement script for the orb pack table - #4
Merged
Merged
Conversation
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
scripts/measure-presets.mjs: hand-parses each exported preset.webp's RIFF container (VP8X flags byte for the alpha bit,ANMFchunk count for frame count, file size on disk) and emits a size/frame/alpha table as markdown + JSON. Node-only, no new dependencies.--dir <path>(a local folder of exported orb.webpfiles) or, with no--dir, downloads thev1.0.0release assets viagh release downloadand measures those.README.md— pure receipts/tooling addition.Verification
Ran the script against the actual
v1.0.0release assets (both via--diragainst a local download and via the defaultgh release downloadpath — outputs are byte-identical). All 7 rows shown in the README's "Grab an orb" table match the script's output exactly on both Size and Frames, and the script additionally measures the other 5 presets that ship in the release but aren't shown in the README's 7-row preview:Plus 5 more measured (not shown in README): Dot matrix (3.4 MB, 94f), Glass moon (3.0 MB, 126f), Obsidian sculpt (5.6 MB, 168f), Plasma core (3.4 MB, 100f), Woven aura (6.2 MB, 215f).
Test plan
node scripts/measure-presets.mjs(default gh-download path) against the realv1.0.0release — succeeded, 12/12 presets measurednode scripts/measure-presets.mjs --dir <local folder>— succeeded, output byte-identical to the download pathpackage.json/package-lock.jsonuntouched)README.mduntouched🤖 Generated with Claude Code