Linux nightly packaging by @dylanmtaylor, with the per-app Nightly flavor commits stacked on his branch.
Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
Resolves the Cargo.toml conflict by keeping both new workspace
dependencies: craft-cfb (this branch) and craft-text (main).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
These come from CodeRabbit's first review, where they sat in the review
body rather than in threads.
Container and dump:
- `Compound::read_entry` reads the entry itself, and a stream path's
first entry is indexed. A damaged file that lists one path twice now
dumps each entry's own bytes beside its own size, and lookups no
longer scan the directory.
- `fla-dump --stream` reads only that stream (`dump_only`), so another
stream's damage can't fail it. A stream the file doesn't have is said.
Tests:
- The FAT-loop test needs the file to open, and needs the stream's loop
refused.
- The test writer marks its FAT sectors FATSECT, as [MS-CFB] 2.3 says.
- The corpus tests compare the scene count.
- A twin member that is listed but can't be read fails the test instead
of shrinking what is compared.
- The stage test covers every pinned pair.
- Text runs compare the full character position.
- The one tolerated text-bounds difference is pinned to the value seen.
- The own-media test fails on any twin that doesn't import, and on any
corpus folder it can't list. It knows the two downloads that are zips
of documents.
ADR 0120:
- the Stage 1 scope reads as history;
- the openspec path is gone;
- the shape check names what it compares (edges and style indices);
- the text check says 372 records pair and 371 match field for field.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
At review, the compound binary container moves to the shared craft-cfb reader
from craft-libs (rev b67b9f9, the one craft-xfl and craft-xml already use).
crates/fla's own MS-CFB reader is removed. The `cfb` module keeps only the
importer's policy: the ADR 0054 caps (1 GiB per file, 256 MiB per stream),
stream lookup by full path, and one-sentence errors. Chain walks, cycle
guards and directory bounds are craft-cfb's.
Container errors that named one structural fault each (bad header,
truncated, looping chain or tree) are now `Damaged`, carrying craft-cfb's
reason. craft-cfb is more tolerant in two places, and the tests now pin it:
- a FAT count the file could hold but its DIFAT doesn't list opens;
- a root that overstates its mini stream opens, read to the file's end at
most.
In both cases nothing past the file is reserved. The test of the removed
reader's internal chain budget (`the_directory_reads_no_further_than_the_most_entries`)
is dropped with the code it tested.
Checked against the nine EDAP legacy files: the same streams, sizes and
record tags in `fla-dump`, the same `info`, and byte-identical frame
renders with the old and the new reader.
The ADR is renumbered to 0120, reserved for this PR (0096 is the guide
search ADR on main). Its references move with it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
file.open read the whole .fla through vfs before its size check (the check
used to come first); it now checks the length, then reads at most one byte
past MAX_FLA_BYTES with the new vfs::read_bounded, both importer branches
unchanged. fla-dump likewise refuses a file over the legacy container's
1 GiB cap by its size and reads it bounded, and marks a stream whose tag scan
stopped at its budget with "tags_truncated".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
anicraft-cli fla-dump <legacy.fla> [--stream <name>] prints a Flash 8–CS4
.fla's stream tree, prologues and record tags as JSON. It is the
reverse-engineering microscope for the legacy import (ADR 0096) and makes
triaging user files observable.
main gained Import Video, video info and relinking a layer's video,
each with the ffmpeg parameter Export Video has. The rule from outside
PR #122 named one command; it now refuses the parameter by name, and a
test walks the registry so the next command that runs ffmpeg is covered.
Closing a socket with unread input resets the connection, and on macOS the reset can discard
the refusal before the client reads it (the oversized-line test failed on the macOS gate). The
port now stops writing, drains what the client is still sending (bounded: 8 MiB, 2 s), then
closes.
Fix-ups on the outside PRs merged in this batch:
* #217: subcommand_usage reads the entries out of USAGE instead of keeping a
second copy, so export, formats and guide search are covered and the two
cannot drift apart.
* #143: the surrogate-pair lookahead slices with get(), not an index.
* #145 (declined, the reader is craft-xml now): pin that signed numeric
character references stay text.
* AUTHORS.md and CHANGELOG.md credit the contributors.
find_command rebuilt the whole registry (~360 specs) on every call, and
macro.history cloned every recorded command's params to list a step.
panic_hunt_every_command (which runs macro.history about 600 times per
session over up to 10,000 steps): over 40 min before, 144 s after (debug,
Windows, this machine). The CLI test's failing file now selects first.
Every undo step keeps the commands it ran; Save As Command rewrites ids of
this document to act on the selection or active layer, or names the step it
can't keep. macro.run is one transactional undo step; macros call only what
a plug-in may, and plug-ins can't call macro.*. anicraft-cli run reads saved
command files. ADR 0097.
Since 0.1 the importer reads bitmaps, sounds and the publish settings from the
package with `?`, so one entry failing its checksum or the archive's limits
refused the whole document (#226). Optional parts are now left out and
reported; damage to DOMDocument.xml still refuses the file. Animate omits the
default white backgroundColor, which imported as black (#163). anicraft-cli
info/render/exports open .fla/.xfl through file.open.
Tests: damaged bitmap/symbol parts (fail before the fix), white stage,
every entry point (file.open, upper-case .FLA, Open Recent, drop routing,
browser vfs) over the corpus, CLI subcommands.
The usage text said only that frames on the command line are 1-based.
It now also says that frame numbers inside JSON params, scripts and
command results are 0-based, as docs/mcp.md already does.
`anicraft-cli <subcommand> --help` (and `-h`) was parsed as a flag missing its
value and failed with "flag --help needs a value". It now prints the usage lines
of that subcommand, as does `anicraft-cli help <subcommand>`. An unknown
subcommand still reports an error with the full usage.