Add figma transformer package scaffold#43
Draft
chubes4 wants to merge 23 commits into
Draft
Conversation
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
figma-transformerpackage alongsidephp-transformer..fig/scenegraph input to normalized PHP IR to static HTML/CSS/assets.fig-kiwischema/message decoding, required zstd support, archive/image intake, normalized scenegraph rendering, external parity report contracts, docs, CLI, plugin helpers, and contract coverage.Current scope
.figarchive intake supports direct archives and wrapper ZIPs, embedded image metadata, zlib schema chunks, zstd message chunks, binary payload metadata, and decoded KiwiMessagepayloads.NODE_CHANGESmessages into scenegraph payloads consumable by the renderer.ext-zstdis now a Composer requirement for normal direct.figimports. The library still exposes explicit callable/filter adapters, and the CLI supports--zstd-command=/path/to/zstdfor local operator checks..figfiles and generated evidence out of git.Real fixture proof
/Users/chubes/Downloads/Fisiostetic.fig(not committed).--zstd-command=/opt/homebrew/bin/zstd:success_with_warnings, 272 nodes, 24 output files, first fileindex.html.zlibwith 605 definitions, message chunkzstddecoded toNODE_CHANGES.Remaining gaps
ext-zstdfor normal direct.figimports. If WPCOM/WP Cloud does not provide it, this package should not be enabled there until support is available or an approved adapter is registered.Verification
php figma-transformer/tests/contract/run.phpcomposer validate --working-dir=figma-transformer --strictgit diff --checkphp figma-transformer/bin/figma-transformer /Users/chubes/Downloads/Fisiostetic.fig --zstd-command=/opt/homebrew/bin/zstdsummarized locally; fixture/artifacts not committed.AI assistance
fig-kiwidecoder, zstd requirement/adapter support, normalized scenegraph IR, static artifact emitter, rendering foundations, parity contract, docs, and contract tests.