Repository navigation
Conversation
CamWight
force-pushed
the
drawing-pack-k12-3890
branch
from
November 1, 2026 05:53
b79c96a to
6b128ef
Compare
CamWight
force-pushed
the
drawing-pack-k12-3890
branch
from
November 4, 2026 09:01
6b128ef to
f4209b6
Compare
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
CamWight
force-pushed
the
drawing-pack-k12-3890
branch
4 times, most recently
from
November 8, 2026 01:59
afa15b7 to
eb87f44
Compare
…ngency-labs#3890 K12) file.pack writes the saved design and the designs its links name into one .zip to hand on. The design goes at the top level, each of its links pointing at designs/<name>, and each linked design under designs/, byte for byte. Packs go one level deep: a linked design's own links are listed in the reply, not followed. Only design files are copied. - A pack holds the files as saved: a design with unsaved changes or no file is refused, and the design, its file and its links are left as they were. - Every linked file is found and sized before any is read, the total within MAX_PACK_BYTES, with at most MAX_PACK_ENTRIES entries. - Entry names are made from file names: characters a file name can't hold become `_`, no name ends in a dot or a space, a name Windows keeps for a device gets `_` after its stem, and a name another entry has, case aside, is numbered (plate.sc, plate-2.sc). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CamWight
force-pushed
the
drawing-pack-k12-3890
branch
from
November 9, 2026 01:56
eb87f44 to
9f3031b
Compare
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collaborator
|
drawings now includes main as of today; please merge drawings into your branch. Thanks! |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collaborator
|
Drawings landed on main (#18615), so I've retargeted this PR to |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
Sending a design that uses other designs meant finding and copying each of those files by hand. Now Pack Design writes a saved design and the designs it uses into one zip.
Part of #3890 (drawing storage), into
drawings: Pack Design: a saved design and the designs it links, in one zip (K12).Changes a default: no
What it does
file.packwrites the saved design and the designs its links name into one.zipto hand on. The design goes at the top level, each of its links pointing atdesigns/<name>, and each linked design underdesigns/, byte for byte. Unpacked anywhere, it opens with every link found.deeper), not followed. Only design files are copied; a design saved as JSON goes in as JSON._, no name ends in a dot or a space, a name Windows keeps for a device gets_after its stem, and a name another entry has, case aside, is numbered (plate.sc,plate-2.sc).Pictures
None: a command with no window of its own yet. Its reply and the zip are checked by the tests below.
Tests
.zip, a linked file that isn't a design (named by its link, never by what it holds), a missing file, a link judged from its text alone, the design as its own link, and more than 1 GiB in all (from the files' sizes, before any is read).Validation
Local, Windows, on
drawingsb21c377:cargo fmt --check,cargo xtask lists, and wasm ofioandengine;-D warningsoverioandenginewith their tests;ioandengine: 99 passed, and the two pack tests added after that run pass with the rest of the pack tests;Integration status
Over
drawingsb21c377. #9289 (K9′) and #9402 are this issue's other open slices.Refs #3890