Commit Graph
3891 Commits
Author SHA1 Message Date
yoriswind ad8d9f66a7 test(actions): extract deleted-row identity assertions 2026-11-03 00:27:37 -08:00
FredApps 7e29a9999c Wire EXR band streaming into main's path open
- import_file_for_open_with decodes single-part flat scanline EXR block by block into
  tiles; headers the band decoder refuses fall back to the whole-file decoder, so files
  main opened still open. Band-time failures and cancellation publish no document.
- The RAM tile budget and scratch-disk checks live in exr_native (the PSD stream module
  they came from is dropped); over-budget opens fail with IoError::OutOfMemory.
- The band decoder picks colour channels with exr_color_channels, like the byte decoder.
- Tests move into the per-crate it binaries and use import_file; an engine open-job test
  covers the OpenSource::Path route. The ui-egui sync open test is dropped: main's
  synchronous open reads bytes, and the io test covers the oversized header.
- docs/streaming-io.md, roadmap, scratch-disks and REL-212-1 describe EXR only.
2026-11-03 09:23:15 +01:00
yoriswind c0bd466d5f fix(actions): retain explicit history deletions and user purge boundaries 2026-11-03 00:16:38 -08:00
yoriswind 9f8b880e2b fix(atn): retain nested layer-effects Make intent 2026-11-03 00:10:26 -08:00
yoriswind 6035bd7b17 test(atn): distinguish opaque metadata from typed effects references 2026-11-03 00:09:36 -08:00
yoriswind 5a768ded2c test(atn): retain nested layer-effects references during playback 2026-11-03 00:08:41 -08:00
yoriswind 5185f65fe6 test(actions): target the intended nonlinear redo row 2026-11-03 00:07:38 -08:00
yoriswind 446e1a4589 Merge commit '655295b2a2c400bded0640f5d97367000a057b2e' into codex/10723-nested-lefx 2026-11-03 00:01:32 -08:00
yoriswind e482bcb1f8 test(actions): cover explicit history row deletion and Purge Undo 2026-11-02 23:59:33 -08:00
yoriswind 70aea3465d merge: integrate exact main scratch storage checkpoint
Merge 655295b2a2. Resolve generated scorecard conflict with exact upstream text only; actual source-bound regeneration and combined validation remain pending.
2026-11-02 23:30:10 -08:00
Khawar Zamman Wani 259b5590ae Merge origin/main (655295b2a2) into PR #10897 branch
Keep the PSD memory admission work and upstream's scratch storage
together. Conflicts resolved:
- Cargo.lock: both sysinfo versions are required. 0.40.1 serves
  photocraft-io's adaptive import budget; 0.37.2 serves
  photocraft-raster's scratch volume and memory supervision. Cargo
  metadata resolved the lock with no other changes.
- crates/engine/src/lib.rs: Session keeps pending_preflights and
  next_pending_preflight beside scratch_runtime and scratch_epoch.
  Session derives Default, so neither set needs a manual initializer.

Upstream: 655295b2a2
2026-11-03 12:54:59 +05:30
DingusMcRinkyDinkyandClaude Opus 5.5 80e32f8ef7 Pen: Make Shape turns the path into a shape layer (#10934)
The Pen options bar in Path mode only offered Make Selection, so a drawn
path could not become a shape layer. Make Shape now does that, next to
Make Selection, with the shape tools' fill and stroke, as one History
step. A path still being drawn is finished first. The Work Path becomes
the shape's path and is removed; a saved path stays.

New engine command path.toShape, so scripts and agents can do the same.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EZbgszHyuEuWAzxaamteuU
2026-11-03 08:24:33 +01:00
yoriswind d74288d7ea Style: wrap the malformed effects playback assertion 2026-11-02 23:23:10 -08:00
Khawar Zamman Wani da41a65811 docs: document PSD memory admission and open queue functions
(cherry picked from commit 07c6a3f87cff39dde8ec2b334f4e9b388667bfc8)
2026-11-03 12:51:53 +05:30
yoriswind 4d188a9106 fix(actions): preserve cleared source context and Undo Clear 2026-11-02 23:07:41 -08:00
ArjenS-LA abd0d76aa9 Retain Average parameter validation test adaptation after module split 2026-11-02 23:05:09 -08:00
yoriswind 35dbf2a1bc Actions: keep miskeyed effects references intact 2026-11-02 23:01:31 -08:00
yoriswind 66d067d30d Tests: play a miskeyed effects reference before checking retention 2026-11-02 23:00:36 -08:00
ArjenS-LA 93a8d93104 Merge refreshed transparency prerequisite into Average Smart Filters 2026-11-02 22:52:23 -08:00
ArjenS-LA 051c2a8287 Merge current main and retain Average transparency regressions 2026-11-02 22:51:37 -08:00
yoriswind da54cec641 Tests: match the canonical layer-style reference names 2026-11-02 22:23:16 -08:00
yoriswind 9e2bad749f test(actions): cover clear undo and deferred brush sources 2026-11-02 22:20:45 -08:00
yoriswind 0de587b502 Tests: correct layer-style document and wire oracles 2026-11-02 22:17:42 -08:00
yoriswind f650359b77 Merge current main and refresh combined preference scorecard 2026-11-02 22:13:07 -08:00
FredApps 8ce599da3a Merge remote-tracking branch 'upstream/main' into pr-5330 2026-11-03 07:12:38 +01:00
yoriswind 3271b4acf0 Actions: map Scale Effects and Create Layers recordings 2026-11-02 22:03:52 -08:00
yoriswind 34c49d575b Tests: exercise recorded layer-style actions against native output 2026-11-02 22:02:42 -08:00
yoriswind 15977fee7f fix(actions): retain explicit history controls during grouping 2026-11-02 21:31:33 -08:00
Khawar Zamman Wani d8e0dde8b5 fix: pass footage import options to the single-file fallback
`load_frames`'s single-file path called `file_cmds::import`, which uses default
import options, so the footage command's lowered PSD/layered-TIFF memory limit
never reached a single-page layered TIFF or PSD. Multi-page TIFF pages already
passed their `opts`.

Give the engine import one shared `import_result_with` path and an
`import_with_options` entry that keep the allocation checkpoint, native
`.pcraft` and format dispatch, typed memory refusals and the preview-only
refusal; the existing `import` delegates with default options, so every other
caller behaves exactly as before. The single-file fallback now passes `opts`.

Add a command-level regression: a single-page layered TIFF under a thread-scoped
`psd_max_pixel_bytes` of 1 must reach `file.import.videoFramesToLayers` as a
typed `EngineError::PsdHardBudget` with its name, required and limit fields
intact and the document unchanged, then import as one frame when the limit is
not lowered.
2026-11-03 10:41:03 +05:30
yoriswind 47473150b9 Actions: export edited CAF settings canonically 2026-11-02 21:04:36 -08:00
yoriswind 1592def699 Tests: cover edited CAF export and multilayer current sampling 2026-11-02 21:03:46 -08:00
yoriswind b5b9d449db Tests: share the CAF pixel equality assertion
Keep both complete pixel comparisons and the existing New/Current output assertions while bringing the playback test under the cognitive-complexity gate. Production behavior and baseline import/kept-control fixtures are unchanged.
2026-11-02 20:43:31 -08:00
yoriswind a6ac7fee15 Style: format CAF action adapter and regressions 2026-11-02 20:13:09 -08:00
yoriswind 699683d8eb test(actions): cover grouped and per-step history 2026-11-02 20:08:20 -08:00
Khawar Zamman Wani 06d00e06a9 fix: keep multipage TIFF frames inside the footage budget and refusals typed
The multi-page TIFF branch of `load_frames` pushed each flattened page
straight into `frames`, bypassing the `keep` closure, so `MAX_FOOTAGE_BYTES`
was never checked for those pages: many large pages could retain more than
the cap without an error. Route every flattened page through `keep`, with the
same file-context error mapping as the single-file and GIF/WebP paths, and
keep typed page admission refusals typed.

Add command-level regressions. A per-thread test scope lowers the footage and
PSD limits, so neither test allocates gibibytes: one proves an over-budget
multi-page TIFF is refused with nothing imported, and one proves a page with
Photoshop layer data reaches `file.import.videoFramesToLayers` as a typed
`EngineError::PsdHardBudget` with its name, required and limit fields intact
and the document unchanged.
2026-11-03 09:33:29 +05:30
yoriswind 7e53861e62 Actions: admit recorded CAF Current Layer output
Use the explicit cafOutputToCurrentLayer Action Manager binding alongside measured New Layer output. Rectangular sampling remains required; native output may use its proven Current default. Extend existing roundtrip, native-default and pixel/Undo controls without changing renderer or history code. Source-only successor; formatting, compilation and tests remain unrun under native0.
2026-11-02 19:54:44 -08:00
yoriswind d94717c8ca Actions: map the measured Content-Aware Fill recording
Map the seven-field Rectangular/Default/None/New Layer form to the existing CAF command, retaining source descriptor data only while native settings agree. Keep other enum forms whole and refuse unrepresented native exports. Add focused public regressions, the common round-trip case and supported-form documentation. This is a source-only draft increment: formatting, compilation and runtime validation remain pending under native0.
2026-11-02 19:47:45 -08:00
yoriswind 1f55de75c5 test(atn): cover nonfinite vertical Shear coordinates 2026-11-02 19:25:52 -08:00
yoriswind d29cbec07e fix: consolidate action history after command transactions
Keep command-local history, purge and rollback intact, then consolidate affected documents at action completion or dialog suspension. Preserve semantic no-op identity and redo, visibility semantics and row identifiers. Bind dialog continuation to its exact document/history, inherit the setting in scratch sessions and carry droplet action names. Add the review counterexamples and focused continuation, Batch/droplet and history-option controls. Source is formatted; compilation and runtime qualification remain pending.
2026-11-02 19:02:08 -08:00
Khawar Zamman Wani dcd21f81b4 fix: keep multipage TIFF page memory refusals typed
The multipage TIFF import loop mapped every page-import error to EngineError::Other, so a PsdApprovalRequired or PsdImportBudget from a layered page reached the UI, control channel and agents as text only, without the required/limit fields. Route those two through io_open_error and keep the page-specific text for every other error.
2026-11-03 08:21:00 +05:30
yoriswind 182da545ee feat: start persisted single-action history grouping
Add the default-on Actions history setting and a grouping scope shared by ordinary engine and shell playback entry points. Define public regressions for whole-play Undo/Redo, the off setting, failure prefixes, nesting, no-op and repeated-play boundaries, and persistence. This is an unvalidated draft increment: dialog continuation, direct compound edits, Batch/droplet boundaries and the complete edge-case qualification remain unfinished.
2026-11-02 18:30:27 -08:00
yoriswind 8e17f90c06 Bound Shear action curves and preserve native precision 2026-11-02 18:26:17 -08:00
yoriswind 9011c6d704 fix: capture shared action descendants at minimum call depth
Use a FIFO dependency queue so a deep route cannot hide descendants reachable through a shallower call. Cover packaged Batch and Conditional replay, retain Custom exported enabled flags in regression coverage, and document the existing concurrent-writer limitation of Save and Close.
2026-11-02 18:14:50 -08:00
David MannandClaude Opus 5.5 3ce04b52f4 Address CodeRabbit review: Batch writes, recording and dialog edge cases
- CLI batch: recursive inputs keep the engine's tree order for {serial};
  --format picks the encoder whatever extension --naming writes; the
  summary prints before --error-log is written.
- Batch: a jobs.cancel during a write keeps that file in `files`;
  Opened Files refuses a default-named result that replaces another open
  document's file; a recorded Save leaves a document changed when Batch
  writes nothing for it.
- Recording: folded Move-tool nudges add whole-pixel steps; a null
  Check Spelling `action` is recorded as Check Spelling.
- Linked files: a document without links lists none missing; a look
  whose links changed while it ran is dropped.
- Save for Web: a null or empty destination opens the picker; a rename
  while the picker is open writes the picked file.
- Actions: a Check Spelling step fails instead of replacing a dialog
  opened by hand.
- Docs: desktop Batch cancel flow, Check Spelling step shape, filter row
  history count.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 03:02:19 +01:00
yoriswind 8c576e5f94 Use the recorded show-dialog mode in Shear flag fixture 2026-11-02 17:06:12 -08:00
yoriswind 1a00bffee8 Run public Shear regression tests in the integration harness 2026-11-02 17:04:30 -08:00
dotCooCoo fef15729aa Merge main into feat/pcraft-full-composite
Main now takes the manifest envelope from craft-pcraft-format, which has
no full_composite member. The save writes the member after the envelope
when it writes composite/full.png, and read_full_composite reads it back.
2026-11-02 17:02:14 -08:00
yoriswind c9fc8458b4 Map recorded Shear actions with measured curve settings 2026-11-02 16:40:07 -08:00
FredApps ed681787c3 Add a Scratch Size Limit preference and honour the web memory cap in the memory policy 2026-11-03 01:16:52 +01:00
David Mann 56870f5687 Merge #10905: the author's latest commits 2026-11-03 01:05:27 +01:00