386 Commits
Author SHA1 Message Date
Tanish Manku 95feb87d49 chore: merge main (parity batch, core batch 3) into legacy .fla import (M4)
Open reports the import's fields from either importer; the imported path now comes with the
session's info, as main does. Both web tests kept.
2026-11-24 21:50:16 -07:00
Tanish Manku 87c7d22d49 fix(a11y): the colour pickers' dialog keeps its name and place under egui 0.37 (M8) 2026-11-24 19:42:01 -07:00
Tanish Manku 150264ea5f chore: merge main into the outside parity batch (M8)
# Conflicts:
#	CHANGELOG.md
#	src/app.rs
#	src/stage.rs
2026-11-24 19:27:51 -07:00
Tanish Manku 43bf7cdb80 chore: merge main into feat/legacy-fla-review (M4) 2026-11-24 19:23:38 -07:00
Tanish Manku eb4ec89181 chore: merge main into fix/backlog-animate-files 2026-11-24 16:26:55 -07:00
Tanish Manku d52b0f30bb chore: merge main (timeline and panel fixes) into the outside parity batch (M8)
# Conflicts:
#	CHANGELOG.md
#	src/timeline.rs
2026-11-24 15:58:40 -07:00
Tanish Manku 37017e023a docs: ADR 0134, changelog, credits and final roadmap states for the outside parity batch; room for the Align panel's new row (M8) 2026-11-24 15:49:56 -07:00
Tanish Manku 99db705a2e chore: merge main into fix/backlog-memory-frames 2026-11-24 15:49:05 -07:00
Tanish Manku 82be6b6228 docs: P-039 in the changelog, roadmap, parity matrix, credits and ADR 0120's integration review (M4) 2026-11-24 15:36:52 -07:00
Tanish Manku ce7712f7e3 Merge pull request #481 from rcoenen/feat/fla-dashed-strokes: dashed and dotted strokes in legacy .fla shapes (M4)
Conflicts: crates/fla/src/shape.rs (the stroke kinds of #481 replace #478's later drawn-solid report, whose test now checks them), docs/roadmap.md (main's row kept; updated in a later commit).
2026-11-24 15:35:08 -07:00
Tanish Manku b49652a32e Merge pull request #478 from rcoenen/feat/legacy-fla-import: open Flash 8 to CS4 binary .fla files (M4) 2026-11-24 15:10:40 -07:00
Tanish Manku 4e06254b3a chore: merge main into fix/backlog-animate-files 2026-11-24 15:08:01 -07:00
Tanish Manku 324093bf96 chore: merge main into fix/backlog-memory-frames 2026-11-24 14:55:21 -07:00
Tanish Manku d8a2e32203 chore: merge main into fix/backlog-timeline-panels 2026-11-24 14:42:22 -07:00
Rob CoenenandClaude Opus 5.5 37df736299 chore: merge main into feat/legacy-fla-import
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>
2026-11-24 17:23:29 +01:00
Rob Coenen af3abf3396 Merge remote-tracking branch 'origin/main' into feat/import-shows-source-name
# Conflicts:
#	CHANGELOG.md
2026-11-24 16:55:03 +01:00
Tanish Manku 9ade013d63 docs: ADR 0133, the import report's new lines, P-006 in the roadmap and parity (M4) 2026-11-23 18:58:20 -07:00
Tanish Manku 1e68e3ec1a chore: merge main (hardening, stage tools, reliability) into text direction and fallback faces (M5) 2026-11-23 18:39:34 -07:00
Tanish Manku df6b6e67af docs(performance): memory and frame time before and after, and what is left of P-004 (M8) 2026-11-23 18:29:29 -07:00
Tanish Manku d5d9a1a4fb fix(stage): a zoom gesture draws once it rests, and tiles of states and zooms no longer shown go (M8)
The stage tells the render service which picture set is on screen, drops the
textures of other sets when the view is whole, asks for nothing while the zoom
is changing, and in the browser draws for at most 8 ms of a frame while moving
around. ADR 0132, changelog, roadmap. #314, #477, P-004.
2026-11-23 18:29:25 -07:00
Tanish Manku 58c116e7fb chore: merge main into fix/backlog-stage-tools 2026-11-23 17:56:13 -07:00
Tanish Manku 0aa9bc6aa1 docs: ADR 0131, the guide on selecting several layers, the ruler and new masks; a screenshot state (M8) 2026-11-23 17:14:03 -07:00
Tanish Manku 912d524c6e feat(text): carets move the way the arrows point through mixed directions, and the commands say which font lent letters (M5)
In a field while a movie plays, Left and Right move the caret by where text is displayed,
crossing lines by the paragraph's direction, and a selection across a change of direction is
highlighted in its separate stretches. text.create and text.edit return a note naming the
families letters were borrowed from and how many characters no installed font has; the stage
shows it in the status bar. craft-text is pinned to the craft-libs commit the app already
uses. ADR 0130, the guide, the roadmap and the parity matrix say what is done and what is
left; outside PRs #39 and #40 are credited.
2026-11-23 13:11:02 -07:00
Tanish Manku afb4826a77 Merge outside PRs #39 and #40 (mixed directions, fallback faces) by SoldierPePe (M5)
Both were written against the single-style layout that lived in crates/text/src/lib.rs
before ADR 0085 moved layout to styled runs in rich.rs, so their changes to lib.rs,
cmds_text.rs and the roadmap conflict and are resolved to main's side here. The commits
that follow rebuild the same behaviour on the styled-text layout and carry over their
ideas and tests: line breaks found in reading order and never inside a cluster, a face
chosen per cluster with its marks, invisible format characters not counted as missing,
the fallback family list, and the note that says which characters show as boxes.

Kept from the merge as it is: the ADR 0012 paragraph and the unicode-bidi entry, which
the next commit replaces with craft-text's bidi module.
2026-11-23 13:10:54 -07:00
Rob CoenenandClaude Opus 5.5 ea281bd334 fix(shell): settle an import's package and Save suggestion when it opens
Review follow-ups on the import name (ADR 0009 note):

* Session::imported is an `Import` {source, package, save_as}, fixed at
  import time: removing an XFL package's DOMDocument.xml afterwards no
  longer moves the Save suggestion inside the folder.
* Duplicate-tab lookup compares packages (`import_package`), so an XFL
  folder and the .xfl in it are one document and share a tab.
* In a browser an import isn't matched by path: an upload is known only by
  its name, and two different files may share one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 20:33:56 +01:00
Rob Coenen de0424171d Merge remote-tracking branch 'origin/main' into feat/import-shows-source-name
# Conflicts:
#	CHANGELOG.md
#	src/platform.rs
2026-11-23 20:09:49 +01:00
Rob CoenenandClaude Opus 5.5 3144fed2c6 fix(fla): read each stream by its own entry; tests and ADR say what they check
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>
2026-11-23 00:29:53 +01:00
Rob CoenenandClaude Opus 5.5 4e0b0222ae docs(adr): 0120 cites the EDAP corpus by its source and manifest
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 01:55:43 +01:00
Rob CoenenandClaude Opus 5.5 9e5fe149a6 test(fla): pin the EDAP corpus in a manifest and fetch it by script
The legacy format was learned from EDAP Tools' published sample rigs and
templates (CC BY-NC-SA 3.0); no Flash 8–CS4 files of our own exist. As the
clean-room standard's fixture rule 2 allows for published files whose
licence can't be committed, crates/fla/tests/corpus.tsv now pins each of
the 16 downloads by URL, sha256 and licence.

scripts/fetch-fla-corpus.sh downloads them, refuses any whose sha256
differs, and unpacks the zips into the layout the env-gated tests read. A
fresh fetch matches the corpus the format was learned from byte for byte,
and the corpus tests pass on it. ATTRIBUTION.md and ADR 0120 record the
provenance.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 01:52:07 +01:00
Rob CoenenandClaude Opus 5.5 10117b1c54 refactor(fla): read the container through craft-cfb; ADR 0096 becomes 0120
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>
2026-11-22 01:39:24 +01:00
Tanish Manku 0454782d3c docs: ADR 0129, the long-stroke numbers, and P-003 and P-005 in the roadmap and parity matrix (M8) 2026-11-21 14:11:49 -07:00
Tanish Manku 6b24865995 fix(stage): the left-out notice leads with what happened (M8) 2026-11-21 14:07:29 -07:00
Tanish Manku d6bb4dfd60 docs(adr): ADR 0128, the work allowance and frames that say what they left out; roadmap, parity, changelog and credits for P-002, P-011 and P-012 (M8) 2026-11-21 13:51:26 -07:00
Tanish Manku d171c8db30 chore: merge main into docs/principal-review 2026-11-21 12:44:27 -07:00
Rob CoenenandClaude Opus 5.5 272bf30352 feat(fla): dashed and dotted strokes in legacy Flash 8–CS4 shapes
A stroke's ten style bytes now decode as its kind and pattern: [0..2] a dashed
line's dash length and [2..4] its gap (u16 twips); without a dash, [2..4] is
(pattern << 4) | type, the type in Animate's stroke style order (0 solid,
2 dotted with the dot spacing in tenths of a pixel, 5 hatched; 3/4 presumably
ragged/stipple). Dashed and dotted lines map to the model's Dash as the XFL
importer maps DashedStroke/DottedStroke; ragged, stipple and hatched lines
draw solid with the XFL importer's report wording, and a type or byte 4/8 the
corpus doesn't show is counted as a style not decoded yet.

Learned differentially: all 25 patterned twin strokes (11 dotted, 8 dashed,
4 hatched) match kind, colour, width and pattern (env-gated corpus test);
kinefox frame 2 and giskard frame 1 now render byte-identical to their twins.
Unit tests build the bytes from the grammar, never from the corpus.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 15:51:57 +01:00
Rob CoenenandClaude Opus 5.5 e8f897f0fa docs(adr): 0096 records how skips number objects and bound shared groups
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 15:35:13 +01:00
Rob CoenenandClaude Opus 5.5 83707ef757 feat(fla): legacy texts, bitmaps, sounds, buttons, scripts and library folders
Wires the CPicText decoder and the anicraft-flamedia payload decoder into
the legacy importer. Contents' CMediaBits/CMediaSound items become library
bitmaps and sounds; CPicBitmap instances are placed as the XFL importer
places them; frame sound blocks carry sound, sync, loops and envelope.
CPicButton settings give instance names; handler scripts are reported and
frame scripts kept verbatim as ActionScript source, never run. Label kinds,
shape hints (CMorphHintItem) and library folders come across too. Filters,
component settings, bitmap fills and dashed strokes stay skipped and
counted.

Verified against the Animate twins on every corpus pair: 335/335 texts on
keyframes, 9/9 bitmap instances and items, 5/5 frame sounds, 4/4 sound
items, 4457/4457 instance symbols and names, 328/328 symbol types and
library paths, 39/39 folders. kinefox frame 1 and movietemplate frames 1,
120 and 500 render byte-identical to the twin's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 15:32:26 +01:00
Rob CoenenandClaude Opus 5.5 4ea949dc42 feat(fla): legacy timelines, keyframes and symbol placements on the stage
Item streams are an MFC CArchive object graph (class declarations,
0x8000|n class references, back references, 00 00 for none). A bounded
reader (archive.rs) walks it: pages, layers (type, colour, folders,
parents), keyframes with their raw artwork, duration, tween type and
flags, ease, labels and six custom ease curves, and symbol instances
(matrix, transformation point, first frame, loop mode, colour effect,
blend, library item id from Contents). Library symbols get their full
timelines; Contents also yields each item's type and the stage size.
Undecoded objects (texts, bitmaps, filters, button settings) are skipped
to where their parent continues and counted; a stream that does not
decode falls back to the structure-only reading.

Verified differentially against the Animate twins on every corpus pair:
337/337 timelines, 1628/1628 layers, 6993/6993 keyframes and 4457/4457
instances match (matrix within 0.01 / 0.05 px); rendered movietemplate
frames 1, 70, 120 and 184 are byte-identical to the twin's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 15:31:19 +01:00
Rob CoenenandClaude Opus 5.5 8d2c3008c2 feat(fla): decode curved shapes, gradients and strokes into library symbols
A CPicShape body holds the full matrix (a-d 16.16, tx/ty i32 twips), the
edge count, fill styles (solid; linear and radial gradients with matrix,
focal point and stops), stroke styles (width, cap, join, miter) and edge
records. Each record's flag byte packs four 2-bit fields - move, control,
anchor, style - whose codes pick the point storage (i16 or i32 in 1/256
twip, i16 in 1/2 twip), all relative to the pen; a control point makes a
quadratic curve. Fill regions are rebuilt per style as the XFL importer
does.

Fixes the straight-edge unit: edges are half-twips, not half-pixels, so
shapes were drawn 20x too large ('UFO mask' is 10.9 x 11.2 px).

Verified differentially against the Animate twins: all 3197 shape bodies
found in the 9 legacy corpus files (2201 curved) match their XFL edges,
styles and matrices; 244 library symbols now carry artwork. Unsupported
records (bitmap fills, unknown kinds) are skipped whole and counted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 15:31:19 +01:00
Rob Coenen 00c39aedbc feat(fla): decode straight-edged shapes into library symbols
CPicShape records carry an i32-twips matrix translation, an inline RGBA
solid fill and an edge list of i16 half-pixel deltas with a 30 marker per
straight line (differentially verified against the corpus twins: the
'UFO mask' rectangle decodes byte-exactly — 218x224 px, white alpha
80/255, matrix 26.9/-1.55). Shapes with curves use markers not yet
mapped; they are counted in the report rather than drawn partially.
Real files decode 12 library shapes across the corpus; placements on the
main timeline remain pending, so the stage stays empty for now.
2026-11-21 15:31:18 +01:00
Rob Coenen ff1b36c4a2 feat(fla): the Flash 8–CS4 era compound binary .fla container
New L2 crate anicraft-fla, from the public Microsoft [MS-CFB] specification only
(ADR 0096), like the workspace's own zip and XML readers:

- a hardened container reader: header validation, DIFAT/FAT/mini-FAT chains,
  the directory tree with full paths, cycle guards and ADR 0054's caps profile
  (1 GiB file, 256 MiB stream), one-sentence errors, no panic on hostile input;
- the record-tag scanner behind the corpus reverse engineering: streams hold
  ff fe ff- and 01 80 17-marked UTF-16 strings (one-byte lengths) around raw
  numerics; the CPic*/C* record vocabulary is observed, not guessed;
- the structure decode into the document model: the Contents index (one
  CDocumentPage per scene, the library's stream-name/label pairs) and page
  streams' layer records (bottom-first, behind the constant layer anchor);
  frame records, artwork, tweens, text and media stay for the record-level
  decode pass and are counted per kind in an XFL-shaped import report;
- an independent spec-written compound-file writer for the tests (as ADR 0054
  does for zip), plus env-gated tests against the local EDAP corpus (CC
  BY-NC-SA, kept out of the repo): scenes and layer names match the corpus's
  modern twins on every legacy rig.
2026-11-21 15:31:18 +01:00
Tanish Manku 1ed8b1a110 docs: architecture.md and seven ADR status lines match the code (M8) 2026-11-20 21:09:21 -07:00
Tanish Manku cca29cda91 docs(adr): ADR 0125, the roadmap as a guideline, with the principal-engineer review step (M8) 2026-11-20 19:42:09 -07:00
Tanish Manku 331ed27435 docs(adr): reserve ADR 0125 for the roadmap as a guideline (M8) 2026-11-20 19:29:53 -07:00
Tanish Manku 093efdd169 fix(access): path.move_points edits a drawn path, not a file (M5)
Main's automation roots (ADR 0124) list every command whose parameters name a path; text on a
path made path.move_points mention one. It edits vector points, so it goes in NOT_FILES.
2026-11-20 16:18:07 -07:00
Tanish Manku 019a1b1e5a docs: ADR 0107, the guide's text chapter, roadmap and changelog; screenshot states for path editing, htmlText and embedding (M5) 2026-11-20 15:07:51 -07:00
Tanish Manku 46293a6fac docs(adr): reserve ADR 0107 for text paths and the text-field API (M5) 2026-11-20 15:07:30 -07:00
Tanish Manku 6111e2d085 chore: merge main into fix/mcp-automation-roots 2026-11-20 14:58:23 -07:00
Tanish Manku 00679e8d36 fix(engine): links after a missing folder are followed, ffmpeg gets the checked path, plug-in folder links and the soundtrack's staging file are covered (M8) 2026-11-20 07:12:59 -07:00
Tanish Manku ba4ba1c2fd fix(engine): paths on another computer and device paths are refused by their spelling under automation roots; the CLI takes --flag=value (M8) 2026-11-20 06:35:49 -07:00