scripts/engine_split/slot_access.py rewrites the slot fields to their accessors
(Tracked presets deref through one more *), adds the trait imports, turns
s.presets_changed() into presets::presets_changed(s) and points Session::method doc
links at the trait methods. Its fix mode applies what cargo check reports; branch
mode serves open branches and lists their edits to the moved methods. The
definition-span helpers session_state.py uses move to rust_source.py so both
scripts share them (session_state.py's output is unchanged).
This commit is split plus the fix rounds against cargo check of engine-core,
engine, ui-egui and automation (lib and tests). Part of #15710.
- Close in a floating window closes its document through the guarded
close (a document with unsaved changes asks first, the window stays
meanwhile), as in the reference application; a New Window for Document
view still only closes itself.
- The placed rect is the outer origin with the inner size: the framework
applies its size as the inner size, so a decorated window (system title
bar) grew by its frame every pass.
- The floating status bar's zoom edit uses the window's own scale.
- The Home screen and the batch preview clear the dock target.
- The OS-move release reads the mapped primary button (swapped buttons).
- The window tests use a fixed app-drawn frame, whatever the OS.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
crates/engine keeps the package photocraft-engine: src/facade.rs re-exports
photocraft-engine-core, and its Session wraps core's and installs every engine
command. Core's Session::new() installs nothing; core gets install() and session().
The command registry keeps main's behaviour (empty before an install).
The top crate's dev-dependencies cover tests/ and examples/, including
craft-develop-model (camera raw baseline test) and photocraft-testkit (the
corpus-gated Photoshop oracle test). Dependents that need the core type or
borrowed two fields through the wrapper are fixed at the call site, and tests
that reach the registry before any session install first.
Tooling follows the package: workspace dependency, cl selection, xtask layers,
i18n report, scorecard and corpus paths, nextest overrides, ci-test-times rows,
display-names roots, prefs_usage paths, the engine split scripts, docs, and the
two release-perf steps in ci.yml.
Corpus .atn paths, the layer_menu registry read and the craft-develop-model
dev-dependency are FredApps' fixes from #16431.
Part of #15710
On Windows the app-drawn frame's hit test hands the title bar to the OS,
which runs the move: the app sees neither the press nor the release. A
new primary_down service (GetAsyncKeyState) tells when the button goes
up; a window that moved and ends with the OS pointer on its bar over the
main window's tab strip docks. The drop target is the tab strip, or a
tab-high band at the top of the document area where no strip shows; the
app looks again every 50 ms while such a move lasts and repaints after
docking, so the OS window closes at once.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
embed::before_ui takes the native window, so on Windows the runtime answers the
window's hit test and resize starts at the press (craft-libs#2995). It also fits
a window bigger than its display once, which replaces work_area::fit_window.
Adds the font picker tests for craft-libs#3010: typed keys stay in the search,
and hover previews without a history step.
app.open is requested by a path relative to the automation read root. It went
into Open Recent as is, where it names nothing: Home drew a blank card and
clicking it failed. The workspace now reports the file's location below the
root that holds it, and app.open (also the directory .pcraft path) lists that.
The document's save-back path stays root-relative; without a location the open
is not listed.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Same fix as craft-libs#2557 for the window side: with a flag or the
person's own folder covering every direction, the default was created
and never used.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
With Preferences > AI Integrations' folders empty, agents had no file
access, and the launcher starts `mcp` with no root flags.
- An empty folder setting named by no flag uses the shared default agent
folder Documents/ArtCraft/Agents/PhotoCraft (craft-libs#2550), in the
open window (agent link, --control) and in the live headless session.
- agent_folders tells the agent which folders it may use: the headless
session's roots, or the open window's saved folders with the default.
- Pin craft-libs to bafb452 + the craft-libs#2550 commit until it reaches
next.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Hold ordered layer selection across reads
* Migrate UI and automation to the borrowed document selection
* Fix held selection migration diagnostics
* Preserve held selection for unchanged active layer
* Keep owned selection snapshots in engine tests
* Allow consuming a document state without cloning
* Preserve document ownership on close and capture export selection
* Migrate engine integration tests to held selection
* Keep isolate-layer test selection snapshot
* Read the active layer before editing the gradient test document
* Remove redundant selection slice borrows
---------
Co-authored-by: FredApps <[email protected]>
Use the full RPC method name so users can search for it in help and the generated man page. The method list still matches all 19 entries in the RPC registry.
Fail before output planning when a recognized input path cannot be represented in the headless API. Add a Linux CLI regression with the invalid-byte filename and its valid replacement-character alias.
photocraft-cli mcp resolved each tool call with its own copy of the
"find the open window" client. craft-libs now ships that client for
every app (craft_control::agents::Live, re-exported as
craft::automation::agents::Live by craft-libs#2391), so live.rs keeps
only PhotoCraft's parts: reading its saved preferences, its bridge
client and its headless session. The app's AgentSwitch::watch takes a
plain closure now instead of craft_host::Wake.
The craft-libs pin is craft-libs#2391's head for now; it moves to the
merge commit on next once that lands.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- parity.rs: the two paging tests use a 660x580 document (3x3 pages, one interior cell)
instead of 1100x900, and eviction runs 2 rounds; the residency tests that share the large
document keep it. 16-bit runs only where the GPU reads the 16-bit upload (one effect stack,
Dissolve and pattern cases). The disjoint-damage test paints 2 distinct series of 8 strokes
and isolates its layers so strokes capture checkpoints, which makes its bytes assert able to
fail. many_layers_submit_inside_one_chunk_paged is removed: its stats equal the whole test's.
- Coarse preview: drop an unchecked full-resolution solve; colour tests reuse solves and use
Extend where Move only adds an unread fill.
- Crop fill eligibility is a unit test on additional_target; the integration test keeps 3 cases.
- PSD write oracle: one run with a passing and a failing case instead of two runs.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
PhotocraftApp::new and with_context return Box<Self>, and the test harness
holds the Box (a forwarding eframe::App impl for Box<PhotocraftApp>). The 85 KiB
app was held by value in the test, its helper, build_app, build_eframe and
from_builder, all under the first egui pass. The 11 overflowing tests need
0.34-0.78 MiB of stack instead of 1.7-2.0 MiB (mask_click 2032 -> 748 KiB,
navigator_gpu 1956 -> 760, native_tests 1848 -> 748, keys_run 1708 -> 776).
The 8 MiB test thread for the Type Mask click test is removed.
PhotoCraft's UI moves onto the shared craft UI framework in storytold/craft-libs (next branch): shell, dock and panels, hosted dialogs, keyboard, focus, IME and pointer routing, the canvas's view commands, themes and tokens. The engine, document model, file formats, commands and automation stay. PhotoCraft pins storytold/craft-libs next.
Picks up main's fix for the assign_shortcut test and the Cargo.lock order (#15196), so CI runs on a green base.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Model-Effort: Opus 5.5 driver, no subagent