.ezy format v3: ZIP container with deduplicated underlay assets#157
Merged
Conversation
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
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
.ezyformat v3: Saved projects are a ZIP archive (manifest.json+ deduplicatedassets/*.rgbaunderlay blobs). Sketch underlays reference assets by content hash instead of inline base64.Ezy_asset_store: Session-lifetime content-addressed registry for underlay RGBA blobs; undo/redo snapshots share assets instead of re-embedding pixels.ezy_io: Zip pack/unpack, format sniff, and base64 helpers for Wasm startup storage..ezyfiles (v1/v2, includingrgba_b64underlays) still load; pixels migrate into the asset store on read.gui.cpp(gui_add.cpp,gui_settings.cpp), tidygui_mode.cpp(shared default-material combo helper), renamegui_modes→mode.Closes #156
Files changed
src/ezy_asset_store.h/.cpp,src/ezy_io.h/.cpp— new I/O and asset storesrc/occt_view.*,src/sketch_underlay.*,src/sketch_json.*— v3 save/load and asset refssrc/gui.cpp,src/gui_add.cpp,src/gui_mode.cpp,src/gui_settings.cpp,src/gui.h— GUI split and cleanupsrc/mode.h/.cpp(renamed fromgui_modes)tests/sketch_tests.cpp— pack/unpack, dedup, legacy migration testsCHANGELOG.md— format v3 entryTest plan
EzyCad_libandEzyCad_tests(Debug + Release).EzyCad_tests— ezy zip round-trip, asset deduplication, legacyrgba_b64load..ezy, save again, confirm v3 ZIP output.