From acc82659ea961cbe9daa6ffebaf83dce829c4dd0 Mon Sep 17 00:00:00 2001 From: David Mann Date: Fri, 20 Nov 2026 15:23:05 +0100 Subject: [PATCH 1/9] automation: default agent folder and the agent_folders MCP tool (#15974) 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 --- Cargo.lock | 241 +++++++++++--------- Cargo.toml | 66 +++--- apps/photocraft/Cargo.toml | 2 +- apps/photocraft/src/main.rs | 65 +++++- crates/automation/Cargo.toml | 2 +- crates/automation/src/headless.rs | 20 ++ crates/automation/src/live.rs | 24 +- crates/automation/src/server.rs | 40 ++++ crates/automation/src/server/conventions.rs | 12 +- crates/automation/src/workspace.rs | 10 + crates/automation/tests/it/mcp.rs | 1 + crates/automation/tests/it/mcp_live.rs | 85 +++++++ docs/architecture.md | 3 +- docs/control-protocol.md | 8 +- docs/development.md | 1 + 15 files changed, 416 insertions(+), 164 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 8a43b21030..7899d600f2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1365,13 +1365,14 @@ dependencies = [ [[package]] name = "craft" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "craft-automation", "craft-behavior", "craft-browse", "craft-cms", "craft-color-ui", + "craft-control", "craft-dialogs", "craft-draw", "craft-font-catalog", @@ -1404,7 +1405,7 @@ dependencies = [ [[package]] name = "craft-affinity" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "crc32fast", "flate2", @@ -1425,7 +1426,7 @@ dependencies = [ [[package]] name = "craft-atomic" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "rustix 1.1.5", ] @@ -1433,7 +1434,7 @@ dependencies = [ [[package]] name = "craft-automation" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "base64 0.22.1", "craft-behavior", @@ -1457,7 +1458,7 @@ dependencies = [ [[package]] name = "craft-behavior" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "accesskit", "bitflags 2.13.2", @@ -1473,7 +1474,7 @@ dependencies = [ [[package]] name = "craft-browse" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "craft-behavior", "craft-docpath", @@ -1491,7 +1492,7 @@ dependencies = [ [[package]] name = "craft-cloud-ui" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "egui", ] @@ -1499,7 +1500,7 @@ dependencies = [ [[package]] name = "craft-cms" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "md-5", "rayon", @@ -1508,7 +1509,7 @@ dependencies = [ [[package]] name = "craft-color-ui" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "craft-behavior", "craft-cms", @@ -1528,11 +1529,12 @@ dependencies = [ [[package]] name = "craft-control" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "craft-ai-agents", "craft-atomic", "craft-flags", + "dirs", "getrandom 0.3.4", "log", "serde", @@ -1542,17 +1544,17 @@ dependencies = [ [[package]] name = "craft-crs" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ - "craft-metadata 0.1.0 (git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead)", - "craft-xml 0.1.0 (git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead)", + "craft-metadata 0.1.0 (git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4)", + "craft-xml 0.1.0 (git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4)", "thiserror 2.0.21", ] [[package]] name = "craft-crw" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "thiserror 2.0.21", ] @@ -1568,7 +1570,7 @@ dependencies = [ [[package]] name = "craft-dds" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "rayon", ] @@ -1576,7 +1578,7 @@ dependencies = [ [[package]] name = "craft-dialogs" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "block2 0.6.2", "craft-atomic", @@ -1599,7 +1601,7 @@ dependencies = [ [[package]] name = "craft-docpath" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "serde", ] @@ -1607,7 +1609,7 @@ dependencies = [ [[package]] name = "craft-draw" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "craft-behavior", "craft-color-ui", @@ -1626,21 +1628,21 @@ dependencies = [ [[package]] name = "craft-eps" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" [[package]] name = "craft-file-formats" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "craft-eps", "craft-idml", - "craft-image-codecs 0.1.0 (git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead)", + "craft-image-codecs 0.1.0 (git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4)", "craft-kra", "craft-ora", "craft-pcraft-bundle", "craft-raw", - "craft-svg 0.1.0 (git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead)", + "craft-svg 0.1.0 (git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4)", "craft-zip", "serde", "serde_json", @@ -1649,7 +1651,7 @@ dependencies = [ [[package]] name = "craft-flags" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "craft-atomic", "dirs", @@ -1659,7 +1661,7 @@ dependencies = [ [[package]] name = "craft-font-catalog" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "fontique", "harfrust 0.13.3", @@ -1674,7 +1676,7 @@ dependencies = [ [[package]] name = "craft-font-manager" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "craft-behavior", "craft-font-catalog", @@ -1693,7 +1695,7 @@ dependencies = [ [[package]] name = "craft-font-store" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "cap-primitives", "craft-atomic", @@ -1714,12 +1716,12 @@ dependencies = [ [[package]] name = "craft-fonts-build" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" [[package]] name = "craft-heif" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "heic-rs", "rayon", @@ -1728,7 +1730,7 @@ dependencies = [ [[package]] name = "craft-host" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "bitflags 2.13.2", "craft-i18n", @@ -1741,7 +1743,7 @@ dependencies = [ [[package]] name = "craft-i18n" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "chrono", "fixed_decimal", @@ -1769,9 +1771,9 @@ dependencies = [ [[package]] name = "craft-idml" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ - "craft-xml 0.1.0 (git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead)", + "craft-xml 0.1.0 (git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4)", "craft-zip", "thiserror 2.0.21", ] @@ -1806,13 +1808,13 @@ dependencies = [ [[package]] name = "craft-image-codecs" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ - "craft-dds 0.1.0 (git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead)", + "craft-dds 0.1.0 (git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4)", "craft-heif", - "craft-jpeg 0.1.0 (git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead)", - "craft-metadata 0.1.0 (git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead)", - "craft-tiff 0.1.0 (git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead)", + "craft-jpeg 0.1.0 (git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4)", + "craft-metadata 0.1.0 (git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4)", + "craft-tiff 0.1.0 (git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4)", "crc32fast", "exr", "flate2", @@ -1834,7 +1836,7 @@ dependencies = [ [[package]] name = "craft-imaging" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "craft-behavior", "craft-color-ui", @@ -1865,7 +1867,7 @@ dependencies = [ [[package]] name = "craft-jpeg" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "thiserror 2.0.21", ] @@ -1873,11 +1875,11 @@ dependencies = [ [[package]] name = "craft-keymap" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "craft-host", "craft-i18n", - "craft-xml 0.1.0 (git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead)", + "craft-xml 0.1.0 (git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4)", "egui", "serde", "serde_json", @@ -1886,9 +1888,9 @@ dependencies = [ [[package]] name = "craft-kra" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ - "craft-xml 0.1.0 (git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead)", + "craft-xml 0.1.0 (git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4)", "craft-zip", "thiserror 2.0.21", ] @@ -1896,7 +1898,7 @@ dependencies = [ [[package]] name = "craft-layers" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "craft-behavior", "craft-i18n", @@ -1910,7 +1912,7 @@ dependencies = [ [[package]] name = "craft-menu" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "craft-behavior", "craft-host", @@ -1940,11 +1942,11 @@ dependencies = [ [[package]] name = "craft-metadata" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "brotli-decompressor 6.3.2", "chrono", - "craft-tiff 0.1.0 (git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead)", + "craft-tiff 0.1.0 (git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4)", "quick-xml 0.41.0", "serde", ] @@ -1952,9 +1954,9 @@ dependencies = [ [[package]] name = "craft-ora" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ - "craft-xml 0.1.0 (git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead)", + "craft-xml 0.1.0 (git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4)", "craft-zip", "thiserror 2.0.21", ] @@ -1962,7 +1964,7 @@ dependencies = [ [[package]] name = "craft-pages" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "craft-behavior", "craft-text", @@ -1976,11 +1978,11 @@ dependencies = [ [[package]] name = "craft-pcraft-bundle" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "blake3", "craft-atomic", - "craft-pcraft-format", + "craft-pcraft-format 0.1.0 (git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4)", "craft-zip", "ruzstd", "thiserror 2.0.21", @@ -1997,10 +1999,21 @@ dependencies = [ "thiserror 2.0.21", ] +[[package]] +name = "craft-pcraft-format" +version = "0.1.0" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" +dependencies = [ + "flate2", + "serde", + "serde_json", + "thiserror 2.0.21", +] + [[package]] name = "craft-pdf" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "bytemuck", "flate2", @@ -2015,7 +2028,7 @@ dependencies = [ [[package]] name = "craft-pdn" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "flate2", "thiserror 2.0.21", @@ -2024,7 +2037,7 @@ dependencies = [ [[package]] name = "craft-platform" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "async-channel", "async-io", @@ -2050,7 +2063,7 @@ dependencies = [ [[package]] name = "craft-plist" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "thiserror 2.0.21", ] @@ -2058,7 +2071,7 @@ dependencies = [ [[package]] name = "craft-print" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "craft-behavior", "craft-ui", @@ -2087,7 +2100,7 @@ dependencies = [ [[package]] name = "craft-quit" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "dispatch2", "egui", @@ -2098,12 +2111,12 @@ dependencies = [ [[package]] name = "craft-raw" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "chrono", "craft-crw", - "craft-metadata 0.1.0 (git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead)", - "craft-tiff 0.1.0 (git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead)", + "craft-metadata 0.1.0 (git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4)", + "craft-tiff 0.1.0 (git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4)", "jxl-oxide", "miniz_oxide 0.9.1", "rayon", @@ -2116,7 +2129,7 @@ dependencies = [ [[package]] name = "craft-review" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "craft-behavior", "craft-host", @@ -2133,7 +2146,7 @@ dependencies = [ [[package]] name = "craft-settings" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "craft-atomic", "craft-host", @@ -2168,9 +2181,9 @@ dependencies = [ [[package]] name = "craft-svg" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ - "craft-xml 0.1.0 (git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead)", + "craft-xml 0.1.0 (git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4)", "flate2", "kurbo 0.13.1", "quick-xml 0.41.0", @@ -2185,7 +2198,7 @@ dependencies = [ [[package]] name = "craft-table" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "craft-behavior", "craft-keymap", @@ -2197,7 +2210,7 @@ dependencies = [ [[package]] name = "craft-text" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "craft-behavior", "craft-font-manager", @@ -2220,7 +2233,7 @@ dependencies = [ [[package]] name = "craft-theme" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "bitflags 2.13.2", "ecolor", @@ -2233,7 +2246,7 @@ dependencies = [ [[package]] name = "craft-theme-editor" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "craft-behavior", "craft-theme", @@ -2244,7 +2257,7 @@ dependencies = [ [[package]] name = "craft-theme-store" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "craft-atomic", "craft-behavior", @@ -2268,7 +2281,7 @@ dependencies = [ [[package]] name = "craft-tiff" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "serde", "thiserror 2.0.21", @@ -2277,7 +2290,7 @@ dependencies = [ [[package]] name = "craft-time" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "serde", "thiserror 2.0.21", @@ -2286,7 +2299,7 @@ dependencies = [ [[package]] name = "craft-timeline" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "craft-behavior", "craft-keymap", @@ -2301,12 +2314,12 @@ dependencies = [ [[package]] name = "craft-tracked" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" [[package]] name = "craft-ui" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "craft-cloud-ui", "craft-ui-canvas", @@ -2320,7 +2333,7 @@ dependencies = [ [[package]] name = "craft-ui-canvas" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "craft-behavior", "craft-i18n", @@ -2336,7 +2349,7 @@ dependencies = [ [[package]] name = "craft-ui-contract" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "accesskit", "craft-behavior", @@ -2348,7 +2361,7 @@ dependencies = [ "craft-platform", "craft-quit", "craft-settings", - "craft-svg 0.1.0 (git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead)", + "craft-svg 0.1.0 (git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4)", "craft-theme", "craft-tracked", "craft-ui-macros", @@ -2373,7 +2386,7 @@ dependencies = [ [[package]] name = "craft-ui-macros" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -2384,7 +2397,7 @@ dependencies = [ [[package]] name = "craft-ui-panels" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "craft-behavior", "craft-host", @@ -2402,7 +2415,7 @@ dependencies = [ [[package]] name = "craft-ui-patterns" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "craft-behavior", "craft-host", @@ -2423,13 +2436,13 @@ dependencies = [ [[package]] name = "craft-ui-shell" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "craft-behavior", "craft-host", "craft-i18n", "craft-platform", - "craft-svg 0.1.0 (git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead)", + "craft-svg 0.1.0 (git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4)", "craft-theme", "craft-ui-macros", "craft-ui-panels", @@ -2442,7 +2455,7 @@ dependencies = [ [[package]] name = "craft-ui-widgets" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "craft-behavior", "craft-host", @@ -2459,7 +2472,7 @@ dependencies = [ [[package]] name = "craft-update" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "chrono", "craft-host", @@ -2488,7 +2501,7 @@ dependencies = [ [[package]] name = "craft-win32" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "winsafe", ] @@ -2496,7 +2509,7 @@ dependencies = [ [[package]] name = "craft-window" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "craft-atomic", "craft-behavior", @@ -2526,7 +2539,7 @@ dependencies = [ [[package]] name = "craft-xcf" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "flate2", "thiserror 2.0.21", @@ -2545,7 +2558,7 @@ dependencies = [ [[package]] name = "craft-xml" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "quick-xml 0.41.0", "serde", @@ -2555,7 +2568,7 @@ dependencies = [ [[package]] name = "craft-zip" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "flate2", "thiserror 2.0.21", @@ -4018,7 +4031,7 @@ dependencies = [ [[package]] name = "hayro" version = "0.7.1" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "bytemuck", "hayro-interpret", @@ -4048,7 +4061,7 @@ dependencies = [ [[package]] name = "hayro-interpret" version = "0.7.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "bitflags 2.13.2", "hayro-cmap", @@ -4066,7 +4079,7 @@ dependencies = [ [[package]] name = "hayro-jbig2" version = "0.3.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "fearless_simd", "hayro-ccitt", @@ -4090,7 +4103,7 @@ checksum = "bc2d80da85f31c3fdc0366431f44cfd645a9da1e242ed1f4a61f213d9765660f" [[package]] name = "hayro-syntax" version = "0.7.2" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "flate2", "hayro-ccitt", @@ -5174,7 +5187,7 @@ checksum = "d4a5ff6bcca6c4867b1c4fd4ef63e4db7436ef363e0ad7531d1558856bae64f4" [[package]] name = "linesweeper" version = "0.5.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" dependencies = [ "arrayvec", "kurbo 0.13.1", @@ -6391,10 +6404,10 @@ dependencies = [ "core-graphics2", "craft", "craft-cms", - "craft-image-codecs 0.1.0 (git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead)", + "craft-image-codecs 0.1.0 (git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4)", "craft-svg 0.1.0 (git+https://github.com/storytold/craft-libs?rev=7b8c1eccea0c695a495ab279c9523e6efcc9b8be)", "craft-update", - "craft-xml 0.1.0 (git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead)", + "craft-xml 0.1.0 (git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4)", "eframe", "egui", "egui_kittest", @@ -6438,7 +6451,7 @@ name = "photocraft-algo" version = "0.23.1" dependencies = [ "craft", - "craft-metadata 0.1.0 (git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead)", + "craft-metadata 0.1.0 (git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4)", "criterion", "photocraft-color", "photocraft-geom", @@ -6458,7 +6471,7 @@ dependencies = [ "cap-std", "clap", "craft", - "craft-image-codecs 0.1.0 (git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead)", + "craft-image-codecs 0.1.0 (git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4)", "craft-psd", "getrandom 0.3.4", "photocraft-color", @@ -6491,7 +6504,7 @@ dependencies = [ "clap_mangen", "craft", "craft-cms", - "craft-image-codecs 0.1.0 (git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead)", + "craft-image-codecs 0.1.0 (git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4)", "craft-psd", "photocraft-automation", "photocraft-doc", @@ -6555,11 +6568,11 @@ dependencies = [ "craft-affinity", "craft-cms", "craft-file-formats", - "craft-image-codecs 0.1.0 (git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead)", - "craft-pcraft-format", + "craft-image-codecs 0.1.0 (git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4)", + "craft-pcraft-format 0.1.0 (git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead)", "craft-print", "craft-psd", - "craft-xml 0.1.0 (git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead)", + "craft-xml 0.1.0 (git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4)", "exr", "flate2", "photocraft-algo", @@ -6596,9 +6609,9 @@ name = "photocraft-format" version = "0.23.1" dependencies = [ "blake3", - "craft-image-codecs 0.1.0 (git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead)", + "craft-image-codecs 0.1.0 (git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4)", "craft-pcraft-bundle", - "craft-pcraft-format", + "craft-pcraft-format 0.1.0 (git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4)", "craft-zip", "crc32fast", "exacl", @@ -6656,16 +6669,16 @@ dependencies = [ "craft-crs", "craft-docpath", "craft-file-formats", - "craft-image-codecs 0.1.0 (git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead)", + "craft-image-codecs 0.1.0 (git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4)", "craft-kra", "craft-ora", "craft-pdf", "craft-pdn", "craft-psd", "craft-svg 0.1.0 (git+https://github.com/storytold/craft-libs?rev=7b8c1eccea0c695a495ab279c9523e6efcc9b8be)", - "craft-tiff 0.1.0 (git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead)", + "craft-tiff 0.1.0 (git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4)", "craft-xcf", - "craft-xml 0.1.0 (git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead)", + "craft-xml 0.1.0 (git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4)", "crc32fast", "flate2", "kurbo 0.13.1", @@ -6765,7 +6778,7 @@ dependencies = [ name = "photocraft-raw" version = "0.23.1" dependencies = [ - "craft-image-codecs 0.1.0 (git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead)", + "craft-image-codecs 0.1.0 (git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4)", "craft-raw", "flate2", "image", @@ -6827,7 +6840,7 @@ dependencies = [ "craft", "craft-file-formats", "craft-i18n", - "craft-image-codecs 0.1.0 (git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead)", + "craft-image-codecs 0.1.0 (git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4)", "craft-print", "craft-psd", "eframe", @@ -6877,7 +6890,7 @@ dependencies = [ name = "photocraft-web" version = "0.23.1" dependencies = [ - "craft-image-codecs 0.1.0 (git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead)", + "craft-image-codecs 0.1.0 (git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4)", "craft-psd", "eframe", "egui", @@ -11247,14 +11260,14 @@ source = "git+https://github.com/storytold/egui.git?rev=e9711ca9b69772f875ae0d1c [[patch.unused]] name = "hayro-cmap" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" [[patch.unused]] name = "hayro-postscript" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" [[patch.unused]] name = "krilla" version = "0.8.2" -source = "git+https://github.com/storytold/craft-libs?rev=bafb4522899d9f814a07dad636cdefcbf705dead#bafb4522899d9f814a07dad636cdefcbf705dead" +source = "git+https://github.com/storytold/craft-libs?rev=dfe98452b5a8d2cef5ab66cefa125220dd10ebe4#dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" diff --git a/Cargo.toml b/Cargo.toml index d1bb8a8954..a8d7f5cebd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,19 +12,19 @@ rust-version = "1.95" [workspace.dependencies] # The craft framework through its facade (`craft::ui::…`). The egui `[patch]` below must match # `craft::egui_fork::REV` (checked by `cargo xtask ci`). -craft = { git = "https://github.com/storytold/craft-libs", rev = "bafb4522899d9f814a07dad636cdefcbf705dead", default-features = false } +craft = { git = "https://github.com/storytold/craft-libs", rev = "dfe98452b5a8d2cef5ab66cefa125220dd10ebe4", default-features = false } # internal photocraft-geom = { path = "crates/geom" } photocraft-color = { path = "crates/color" } photocraft-raster = { path = "crates/raster" } photocraft-doc = { path = "crates/doc" } photocraft-ops = { path = "crates/ops" } -craft-plist = { git = "https://github.com/storytold/craft-libs", rev = "bafb4522899d9f814a07dad636cdefcbf705dead" } +craft-plist = { git = "https://github.com/storytold/craft-libs", rev = "dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" } craft-psd = { git = "https://github.com/storytold/craft-libs", rev = "219c1d0b14177af6f291395d6587f61a5e09043a" } -photocraft-codecs = { package = "craft-image-codecs", git = "https://github.com/storytold/craft-libs", rev = "bafb4522899d9f814a07dad636cdefcbf705dead" } -photocraft-formats = { package = "craft-file-formats", git = "https://github.com/storytold/craft-libs", rev = "bafb4522899d9f814a07dad636cdefcbf705dead", features = ["raster-codecs", "pdf", "svg", "ora", "kra", "xcf", "pdn", "raw", "psd", "affinity", "pcraft"] } +photocraft-codecs = { package = "craft-image-codecs", git = "https://github.com/storytold/craft-libs", rev = "dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" } +photocraft-formats = { package = "craft-file-formats", git = "https://github.com/storytold/craft-libs", rev = "dfe98452b5a8d2cef5ab66cefa125220dd10ebe4", features = ["raster-codecs", "pdf", "svg", "ora", "kra", "xcf", "pdn", "raw", "psd", "affinity", "pcraft"] } photocraft-raw = { path = "crates/raw" } -craft-affinity = { git = "https://github.com/storytold/craft-libs", rev = "bafb4522899d9f814a07dad636cdefcbf705dead" } +craft-affinity = { git = "https://github.com/storytold/craft-libs", rev = "dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" } photocraft-compose = { path = "crates/compose" } photocraft-gpu = { path = "crates/gpu" } photocraft-paint = { path = "crates/paint" } @@ -43,34 +43,34 @@ photocraft-ipp = { path = "crates/ipp" } # external # ICC colour management: the shared crate (replaces crates/cms; craft-libs#779). -craft-cms = { git = "https://github.com/storytold/craft-libs", rev = "bafb4522899d9f814a07dad636cdefcbf705dead" } -craft-print = { git = "https://github.com/storytold/craft-libs", rev = "bafb4522899d9f814a07dad636cdefcbf705dead" } +craft-cms = { git = "https://github.com/storytold/craft-libs", rev = "dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" } +craft-print = { git = "https://github.com/storytold/craft-libs", rev = "dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" } # HEIC/HEIF: the shared decoder (replaces crates/heif; craft-libs#784). -craft-heif = { git = "https://github.com/storytold/craft-libs", rev = "bafb4522899d9f814a07dad636cdefcbf705dead" } -craft-pdf = { git = "https://github.com/storytold/craft-libs", rev = "bafb4522899d9f814a07dad636cdefcbf705dead", features = ["raster", "write-raster"] } -craft-xml = { git = "https://github.com/storytold/craft-libs", rev = "bafb4522899d9f814a07dad636cdefcbf705dead" } -craft-docpath = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "bafb4522899d9f814a07dad636cdefcbf705dead" } -craft-jpeg = { git = "https://github.com/storytold/craft-libs", rev = "bafb4522899d9f814a07dad636cdefcbf705dead" } -craft-pcraft-format = { git = "https://github.com/storytold/craft-libs", rev = "bafb4522899d9f814a07dad636cdefcbf705dead" } -craft-pcraft-bundle = { git = "https://github.com/storytold/craft-libs", rev = "bafb4522899d9f814a07dad636cdefcbf705dead" } -craft-zip = { git = "https://github.com/storytold/craft-libs", rev = "bafb4522899d9f814a07dad636cdefcbf705dead" } -craft-ora = { git = "https://github.com/storytold/craft-libs", rev = "bafb4522899d9f814a07dad636cdefcbf705dead" } -craft-kra = { git = "https://github.com/storytold/craft-libs", rev = "bafb4522899d9f814a07dad636cdefcbf705dead" } -craft-xcf = { git = "https://github.com/storytold/craft-libs", rev = "bafb4522899d9f814a07dad636cdefcbf705dead" } -craft-pdn = { git = "https://github.com/storytold/craft-libs", rev = "bafb4522899d9f814a07dad636cdefcbf705dead" } +craft-heif = { git = "https://github.com/storytold/craft-libs", rev = "dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" } +craft-pdf = { git = "https://github.com/storytold/craft-libs", rev = "dfe98452b5a8d2cef5ab66cefa125220dd10ebe4", features = ["raster", "write-raster"] } +craft-xml = { git = "https://github.com/storytold/craft-libs", rev = "dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" } +craft-docpath = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" } +craft-jpeg = { git = "https://github.com/storytold/craft-libs", rev = "dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" } +craft-pcraft-format = { git = "https://github.com/storytold/craft-libs", rev = "dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" } +craft-pcraft-bundle = { git = "https://github.com/storytold/craft-libs", rev = "dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" } +craft-zip = { git = "https://github.com/storytold/craft-libs", rev = "dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" } +craft-ora = { git = "https://github.com/storytold/craft-libs", rev = "dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" } +craft-kra = { git = "https://github.com/storytold/craft-libs", rev = "dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" } +craft-xcf = { git = "https://github.com/storytold/craft-libs", rev = "dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" } +craft-pdn = { git = "https://github.com/storytold/craft-libs", rev = "dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" } # Keep the shared embedded-image validation API until the framework revision includes it. craft-svg = { git = "https://github.com/storytold/craft-libs", rev = "7b8c1eccea0c695a495ab279c9523e6efcc9b8be", features = ["tree-render", "tree-render-system-fonts"] } -craft-raw = { git = "https://github.com/storytold/craft-libs", rev = "bafb4522899d9f814a07dad636cdefcbf705dead" } -craft-tiff = { git = "https://github.com/storytold/craft-libs", rev = "bafb4522899d9f814a07dad636cdefcbf705dead" } +craft-raw = { git = "https://github.com/storytold/craft-libs", rev = "dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" } +craft-tiff = { git = "https://github.com/storytold/craft-libs", rev = "dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" } # Camera-field EXIF reader/writer, shared prerequisite craft-libs#1563. -craft-metadata = { git = "https://github.com/storytold/craft-libs", rev = "bafb4522899d9f814a07dad636cdefcbf705dead" } -craft-crs = { git = "https://github.com/storytold/craft-libs", rev = "bafb4522899d9f814a07dad636cdefcbf705dead" } +craft-metadata = { git = "https://github.com/storytold/craft-libs", rev = "dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" } +craft-crs = { git = "https://github.com/storytold/craft-libs", rev = "dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" } # Interface translations: lookup, fallback, CLDR plurals and language names over the craft-i18n # catalogs that `crates/ui-egui/build.rs` embeds from `CRAFT_I18N_DIR` (storytold/craft-i18n, at # the commit in `craft-i18n.rev`). Already in the tree through craft. -craft-i18n = { git = "https://github.com/storytold/craft-libs", rev = "bafb4522899d9f814a07dad636cdefcbf705dead" } +craft-i18n = { git = "https://github.com/storytold/craft-libs", rev = "dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" } # craft-update: app-specific pretend versions apply to startup and manual checks. -craft-update = { git = "https://github.com/storytold/craft-libs", version = "=0.1.0", rev = "bafb4522899d9f814a07dad636cdefcbf705dead", features = ["ui"] } +craft-update = { git = "https://github.com/storytold/craft-libs", version = "=0.1.0", rev = "dfe98452b5a8d2cef5ab66cefa125220dd10ebe4", features = ["ui"] } thiserror = "2" serde = { version = "1", features = ["derive", "rc"] } serde_json = "1" @@ -335,14 +335,14 @@ opt-level = 3 # Keep the complete egui family and native event bridge on reviewed fork commits. [patch.crates-io] -krilla = { git = "https://github.com/storytold/craft-libs", rev = "bafb4522899d9f814a07dad636cdefcbf705dead" } -hayro = { git = "https://github.com/storytold/craft-libs", rev = "bafb4522899d9f814a07dad636cdefcbf705dead" } -hayro-interpret = { git = "https://github.com/storytold/craft-libs", rev = "bafb4522899d9f814a07dad636cdefcbf705dead" } -hayro-syntax = { git = "https://github.com/storytold/craft-libs", rev = "bafb4522899d9f814a07dad636cdefcbf705dead" } -hayro-jbig2 = { git = "https://github.com/storytold/craft-libs", rev = "bafb4522899d9f814a07dad636cdefcbf705dead" } -hayro-cmap = { git = "https://github.com/storytold/craft-libs", rev = "bafb4522899d9f814a07dad636cdefcbf705dead" } -hayro-postscript = { git = "https://github.com/storytold/craft-libs", rev = "bafb4522899d9f814a07dad636cdefcbf705dead" } -linesweeper = { git = "https://github.com/storytold/craft-libs", rev = "bafb4522899d9f814a07dad636cdefcbf705dead" } +krilla = { git = "https://github.com/storytold/craft-libs", rev = "dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" } +hayro = { git = "https://github.com/storytold/craft-libs", rev = "dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" } +hayro-interpret = { git = "https://github.com/storytold/craft-libs", rev = "dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" } +hayro-syntax = { git = "https://github.com/storytold/craft-libs", rev = "dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" } +hayro-jbig2 = { git = "https://github.com/storytold/craft-libs", rev = "dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" } +hayro-cmap = { git = "https://github.com/storytold/craft-libs", rev = "dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" } +hayro-postscript = { git = "https://github.com/storytold/craft-libs", rev = "dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" } +linesweeper = { git = "https://github.com/storytold/craft-libs", rev = "dfe98452b5a8d2cef5ab66cefa125220dd10ebe4" } ecolor = { git = "https://github.com/storytold/egui.git", rev = "e9711ca9b69772f875ae0d1cef1977ff8c16234d" } emath = { git = "https://github.com/storytold/egui.git", rev = "e9711ca9b69772f875ae0d1cef1977ff8c16234d" } epaint = { git = "https://github.com/storytold/egui.git", rev = "e9711ca9b69772f875ae0d1cef1977ff8c16234d" } diff --git a/apps/photocraft/Cargo.toml b/apps/photocraft/Cargo.toml index 1cfd235e03..f93f70752a 100644 --- a/apps/photocraft/Cargo.toml +++ b/apps/photocraft/Cargo.toml @@ -31,7 +31,7 @@ photocraft-ui-egui = { workspace = true } photocraft-tablet = { workspace = true } # The framework facade: `craft::host` (Wake, window services), `craft::menu` (the macOS menu bar) # and `craft::automation` (the control server, the agent link and the launcher's agents switch). -craft = { workspace = true, features = ["ui", "menu", "automation-agents"] } +craft = { workspace = true, features = ["ui", "menu", "automation-agents", "control-agents"] } eframe = { workspace = true, features = ["wgpu", "accesskit", "wayland", "x11", "persistence", "clipboard"] } egui = { workspace = true } serde = { workspace = true } diff --git a/apps/photocraft/src/main.rs b/apps/photocraft/src/main.rs index 8791c82eff..cbbf58bc8c 100644 --- a/apps/photocraft/src/main.rs +++ b/apps/photocraft/src/main.rs @@ -80,7 +80,9 @@ fn title_bar_pref(prefs: &photocraft_engine::prefs::Preferences) -> TitleBarPref } /// The automation roots: `--automation-read-root` / `--automation-write-root` (or their -/// variables) win; a direction without one takes Preferences › AI Integrations' folder. A flag's +/// variables) win; a direction without one takes Preferences › AI Integrations' folder, and with +/// that empty too the default agent folder `Documents/ArtCraft/Agents/PhotoCraft`, created when +/// first used (`AgentSettings::folders`). A flag's /// root that can't be opened stops the launch (exit status 2) as before. A preference's root that /// can't be opened, or isn't an absolute path (it would depend on the folder the app was started /// from), is left out, so that direction fails closed, and the warning says why: a folder moved @@ -90,14 +92,30 @@ fn title_bar_pref(prefs: &photocraft_engine::prefs::Preferences) -> TitleBarPref fn automation_workspace( flags: &photocraft_automation::args::AutomationArgs, prefs: &craft::automation::agents::AgentSettings, +) -> Result<(photocraft_automation::workspace::AuthorizedWorkspace, Option), photocraft_automation::AutomationError> { + automation_workspace_in(flags, prefs, craft::control::agents::default_folder(AGENT_APP_NAME).as_deref()) +} + +/// The app's name in its default agent folder, `Documents/ArtCraft/Agents/PhotoCraft`. +const AGENT_APP_NAME: &str = "PhotoCraft"; + +/// [`automation_workspace`] with `default` as the default agent folder (tests use a temporary one). +fn automation_workspace_in( + flags: &photocraft_automation::args::AutomationArgs, + prefs: &craft::automation::agents::AgentSettings, + default: Option<&std::path::Path>, ) -> Result<(photocraft_automation::workspace::AuthorizedWorkspace, Option), photocraft_automation::AutomationError> { let mut workspace = flags.workspace()?; let mut warnings = Vec::new(); + let (read_given, write_given) = (!flags.automation_read_root.is_empty(), flags.automation_write_root.is_some()); + // Looked up (and the default folder created) only for a direction no flag names. + let folders = if read_given && write_given { Default::default() } else { prefs.folders_with(default) }; for read in [true, false] { - let given = if read { !flags.automation_read_root.is_empty() } else { flags.automation_write_root.is_some() }; - let Some(root) = (if read { prefs.read_folder() } else { prefs.write_folder() }).filter(|_| !given) else { + let given = if read { read_given } else { write_given }; + let Some(root) = (if read { folders.read.clone() } else { folders.write.clone() }).filter(|_| !given) else { continue; }; + let own = if read { prefs.read_folder() } else { prefs.write_folder() }.is_some(); let opened = if !root.is_absolute() { Err(photocraft_automation::AutomationError::BadRequest(format!("`{}` is not an absolute path", root.display()))) } else if read { @@ -107,10 +125,11 @@ fn automation_workspace( }; match opened { Ok(w) => workspace = w, - Err(e) => { + Err(e) if own => { let which = if read { "Automation Read Folder" } else { "Automation Write Folder" }; warnings.push(format!("Preferences › AI Integrations › {which} is not used: {e}")); } + Err(e) => warnings.push(format!("The default agent folder {} is not used: {e}", root.display())), } } Ok((workspace, (!warnings.is_empty()).then(|| warnings.join("\n")))) @@ -1066,13 +1085,47 @@ mod tests { let (ws, _) = super::automation_workspace(&flags(None, Some(&flag)), &roots(&flag, &pref)).unwrap(); assert_eq!(ws.read_with_save_path("b.txt").unwrap().1.as_deref(), Some("b.txt")); - // Empty preferences grant nothing, as no flags do. - let (ws, warning) = super::automation_workspace(&flags(None, None), &craft::automation::agents::AgentSettings::default()).unwrap(); + // Empty preferences and no default agent folder grant nothing, as no flags do. + let (ws, warning) = super::automation_workspace_in(&flags(None, None), &craft::automation::agents::AgentSettings::default(), None).unwrap(); assert_eq!(warning, None); assert!(ws.read("a.txt").is_err() && ws.write("c.txt", b"x").is_err()); let _ = std::fs::remove_dir_all(&dir); } + /// Empty preferences fall back to the default agent folder, created when first used, for + /// both directions (one shared capability); a flag or the person's own folder still wins. + #[test] + fn empty_folder_preferences_use_the_default_agent_folder() { + let dir = temp_dir("automation-roots-default"); + let default = dir.join("ArtCraft").join("Agents").join("PhotoCraft"); + let empty = craft::automation::agents::AgentSettings::default(); + + let (ws, warning) = super::automation_workspace_in(&flags(None, None), &empty, Some(&default)).unwrap(); + assert_eq!(warning, None); + assert!(default.is_dir(), "the default agent folder is created"); + ws.write("out.png", b"x").unwrap(); + assert_eq!(std::fs::read(default.join("out.png")).unwrap(), b"x"); + assert_eq!(ws.read_with_save_path("out.png").unwrap().1.as_deref(), Some("out.png"), "one folder for both: an implicit save is allowed"); + + let flag = dir.join("flag"); + std::fs::create_dir_all(&flag).unwrap(); + let (ws, _) = super::automation_workspace_in(&flags(None, Some(&flag)), &empty, Some(&default)).unwrap(); + assert_eq!((ws.read_folders(), ws.write_folder()), (vec![default.clone()], Some(flag.clone()))); + + let mut own = empty.clone(); + own.read_root = flag.to_string_lossy().into_owned(); + let (ws, _) = super::automation_workspace_in(&flags(None, None), &own, Some(&default)).unwrap(); + assert_eq!((ws.read_folders(), ws.write_folder()), (vec![flag.clone()], Some(default.clone()))); + + // A default that can't be made is left out with a warning; the app still starts. + let file = dir.join("file"); + std::fs::write(&file, b"x").unwrap(); + let (ws, warning) = super::automation_workspace_in(&flags(None, None), &empty, Some(&file.join("PhotoCraft"))).unwrap(); + assert_eq!(warning, None, "a folder that couldn't be created is no folder at all"); + assert!(ws.read_folders().is_empty() && ws.write_folder().is_none()); + let _ = std::fs::remove_dir_all(&dir); + } + /// A preference's folder that can't be opened is left out (that direction fails closed) and /// named in the warning; the app still starts. A flag's still stops the launch. #[test] diff --git a/crates/automation/Cargo.toml b/crates/automation/Cargo.toml index e4459ecbf6..94bb38bcc1 100644 --- a/crates/automation/Cargo.toml +++ b/crates/automation/Cargo.toml @@ -38,7 +38,7 @@ cap-std = "4" clap = { workspace = true } # The framework through its facade: the control channel's handshake (`craft::automation::security`), # and the agent settings, the ArtCraft Launcher's switch and the connection file (`craft::automation::agents`). -craft = { workspace = true, features = ["automation-agents"] } +craft = { workspace = true, features = ["automation-agents", "control-agents"] } # Optional native GPU rendering backend photocraft-gpu = { workspace = true, optional = true } diff --git a/crates/automation/src/headless.rs b/crates/automation/src/headless.rs index 99ff36038b..14ee7e316b 100644 --- a/crates/automation/src/headless.rs +++ b/crates/automation/src/headless.rs @@ -25,6 +25,17 @@ enum Filesystem { Workspace(AuthorizedWorkspace), } +/// The folders a session may open from and save to (`agent_folders`). +#[derive(Clone, Debug, Default, PartialEq, Eq)] +pub struct SessionFolders { + /// Read roots in lookup order; empty is none. + pub read: Vec, + /// The write root, if any. + pub write: Option, + /// A trusted local session: any path the user can reach, no folder limits. + pub any_path: bool, +} + /// A headless editing session. pub struct Headless { pub session: Session, @@ -88,6 +99,15 @@ impl Headless { untrusted(Filesystem::Workspace(workspace)) } + /// The folders this session may open from and save to. + pub fn folders(&self) -> SessionFolders { + match &self.filesystem { + Filesystem::Denied => SessionFolders::default(), + Filesystem::TrustedLocal => SessionFolders { any_path: true, ..SessionFolders::default() }, + Filesystem::Workspace(w) => SessionFolders { read: w.read_folders(), write: w.write_folder(), any_path: false }, + } + } + /// Configure a custom [`photocraft_io::BandRenderer`] for flat exports and previews. pub fn with_renderer(mut self, renderer: Box) -> Self { self.renderer = Some(renderer); diff --git a/crates/automation/src/live.rs b/crates/automation/src/live.rs index 23c7c9d9ad..7f27d4973a 100644 --- a/crates/automation/src/live.rs +++ b/crates/automation/src/live.rs @@ -52,6 +52,9 @@ pub struct LiveConfig { pub allowed: fn(&photocraft_engine::prefs::Integrations) -> bool, /// Prepares a headless session before its first call (the CLI's `--gpu` / `--no-gpu`). pub prepare_headless: Option, + /// The default agent folder for an empty folder setting: `Documents/ArtCraft/Agents/PhotoCraft` + /// (`craft::control::agents::default_folder`); tests replace it. + pub default_folder: Option, } impl LiveConfig { @@ -65,6 +68,7 @@ impl LiveConfig { launch_timeout: LAUNCH_TIMEOUT, allowed: agent_link::agents_allowed_now, prepare_headless: None, + default_folder: craft::control::agents::default_folder(APP_NAME), } } } @@ -89,11 +93,14 @@ type Shared = agents::Live, Arc>>; pub struct Live { shared: Arc, + /// The app's settings folder and default agent folder, for [`Self::window_folders`]. + config_dir: PathBuf, + default_folder: Option, } impl Live { pub fn new(cfg: LiveConfig) -> Self { - let LiveConfig { config_dir, when_closed, read_roots, write_root, launch, launch_timeout, allowed, prepare_headless } = cfg; + let LiveConfig { config_dir, when_closed, read_roots, write_root, launch, launch_timeout, allowed, prepare_headless, default_folder } = cfg; let consent = move |dir: &Path| { let integrations = agent_link::read_integrations(dir); Consent::new(allowed(&integrations), integrations.agents) @@ -108,13 +115,24 @@ impl Live { } Ok(Arc::new(Mutex::new(session))) }; - let mut shared = agents::LiveConfig::new(APP_NAME, config_dir, consent, connect, headless); + let mut shared = agents::LiveConfig::new(APP_NAME, config_dir.clone(), consent, connect, headless); shared.when_closed = when_closed; shared.read_roots = read_roots; shared.write_root = write_root; shared.launch = launch; shared.launch_timeout = launch_timeout; - Live { shared: Arc::new(agents::Live::new(shared)) } + shared.default_folder = default_folder.clone(); + Live { shared: Arc::new(agents::Live::new(shared)), config_dir, default_folder } + } + + /// The folders the open window lets agents use: its saved agent folders, the default agent + /// folder for an empty one, as the window's agent link opens them + /// (`AgentSettings::folders`). Reads the settings file, so it runs off the async runtime. + pub(crate) async fn window_folders(&self) -> Result { + let (dir, default) = (self.config_dir.clone(), self.default_folder.clone()); + tokio::task::spawn_blocking(move || agent_link::read_integrations(&dir).agents.folders_with(default.as_deref())) + .await + .map_err(|e| format!("task failed: {e}")) } pub(crate) fn current(&self) -> Option { diff --git a/crates/automation/src/server.rs b/crates/automation/src/server.rs index 91bf8f1cb0..cdcfa95a4c 100644 --- a/crates/automation/src/server.rs +++ b/crates/automation/src/server.rs @@ -785,6 +785,28 @@ impl PhotocraftMcp { to_result(b.call_read("ui.inspect", json!({})).await) } + #[tool( + description = "Where this app opens and saves files for agents. Put files the app should open in read_folder (or a folder below it) and find what it saves in write_folder. Both are usually the app's agent folder in Documents/ArtCraft/Agents; the person may have set others. null means the app has no such folder now. Paths passed to other tools may be relative to these folders." + )] + async fn agent_folders(&self) -> Result { + if let Some(r) = self.headless_op(|h| Ok(session_folders_answer(&h.folders()))).await { + return to_result(r); + } + match &*self.backend { + Backend::Live(live) => match live.window_folders().await { + Ok(folders) => Ok(ok_json(&craft::control::agents::folders_answer(&folders))), + Err(e) => Ok(fail(e)), + }, + // A window reached with --bridge may have been started with its own root flags. + Backend::Bridge(_) => Ok(ok_json(&json!({ + "read_folder": null, + "write_folder": null, + "note": "bridge mode: the app's folders are the ones it was started with (--automation-read-root, --automation-write-root) or set in Preferences > AI Integrations" + }))), + Backend::Headless(_) => Ok(no_backend()), + } + } + #[tool(description = "Open an image or document file and make it active. Returns index, size and import warnings.")] async fn doc_open(&self, Parameters(p): Parameters) -> Result { let path = PathBuf::from(&p.path); @@ -1153,6 +1175,24 @@ impl PhotocraftMcp { } } +/// `agent_folders`' answer for a headless session: the shared shape (`read_folder`, the first +/// read root; `write_folder`), plus every read root in lookup order and, for a trusted local +/// session, `any_path`. +fn session_folders_answer(f: &crate::headless::SessionFolders) -> Value { + let path = |p: &std::path::Path| p.to_string_lossy().into_owned(); + let mut answer = json!({ + "read_folder": f.read.first().map(|p| path(p)), + "write_folder": f.write.as_deref().map(path), + }); + if f.read.len() > 1 { + answer["read_folders"] = json!(f.read.iter().map(|p| path(p)).collect::>()); + } + if f.any_path { + answer["any_path"] = json!(true); + } + answer +} + /// Whether two targets are the same session or the same app connection. fn same_target(a: Option<&Target>, b: Option<&Target>) -> bool { match (a, b) { diff --git a/crates/automation/src/server/conventions.rs b/crates/automation/src/server/conventions.rs index 30d3344c0d..9fa686e968 100644 --- a/crates/automation/src/server/conventions.rs +++ b/crates/automation/src/server/conventions.rs @@ -9,7 +9,7 @@ use rmcp::service::RequestContext; const DOCUMENT: &str = "photocraft://document"; const COMMANDS: &str = "photocraft://commands"; -const INSTRUCTIONS: &str = "PhotoCraft image editor. Start with doc_new/doc_open, discover ids and parameter docs with command_list, edit with command_run or command_batch (one history step per command). Inspect with doc_inspect and render_preview; doc_save writes native .pcraft or exports by extension. File paths are relative to the read/write roots granted at launch. ui_inspect/ui_screenshot and other ui_* tools require bridge mode. Read photocraft://document and photocraft://commands for live JSON state."; +const INSTRUCTIONS: &str = "PhotoCraft image editor. Start with doc_new/doc_open, discover ids and parameter docs with command_list, edit with command_run or command_batch (one history step per command). Inspect with doc_inspect and render_preview; doc_save writes native .pcraft or exports by extension. File paths are relative to the read/write roots granted at launch; agent_folders tells where they are. ui_inspect/ui_screenshot and other ui_* tools require bridge mode. Read photocraft://document and photocraft://commands for live JSON state."; fn annotated(mut tool: Tool) -> Tool { let words = tool.name.replace('_', " "); @@ -17,7 +17,15 @@ fn annotated(mut tool: Tool) -> Tool { let title = chars.next().map(|c| c.to_uppercase().collect::() + chars.as_str()).unwrap_or_default(); let read = matches!( tool.name.as_ref(), - "command_list" | "doc_inspect" | "session_list" | "render_preview" | "doc_render_preview" | "ui_inspect" | "ui_screenshot" | "jobs_list" + "agent_folders" + | "command_list" + | "doc_inspect" + | "session_list" + | "render_preview" + | "doc_render_preview" + | "ui_inspect" + | "ui_screenshot" + | "jobs_list" ); // Changes state without discarding anything: the scoped exports refuse to overwrite a file, // and switching the active document edits nothing. diff --git a/crates/automation/src/workspace.rs b/crates/automation/src/workspace.rs index e50cbc1fbc..979cae498e 100644 --- a/crates/automation/src/workspace.rs +++ b/crates/automation/src/workspace.rs @@ -70,6 +70,16 @@ impl AuthorizedWorkspace { Ok(Self { read: self.read.clone(), write: Some(open_root(path, "write", &self.read)?) }) } + /// The read roots as configured at launch, in the order files are looked up. + pub fn read_folders(&self) -> Vec { + self.read.iter().map(|root| root.configured_path.clone()).collect() + } + + /// The write root as configured at launch, if any. + pub fn write_folder(&self) -> Option { + self.write.as_ref().map(|root| root.configured_path.clone()) + } + /// Read the first matching regular file, trying roots in their configured order. /// Only an open that reports NotFound tries the next root. Once opened, errors /// (including a non-regular file or a failed bounded read) never select another file. diff --git a/crates/automation/tests/it/mcp.rs b/crates/automation/tests/it/mcp.rs index fc668b7b64..b407e6e3fe 100644 --- a/crates/automation/tests/it/mcp.rs +++ b/crates/automation/tests/it/mcp.rs @@ -1511,6 +1511,7 @@ async fn convention_tool_hints_match_what_each_tool_does() { const ADDS: (bool, bool, bool) = (false, false, false); const EDITS: (bool, bool, bool) = (false, true, false); let expected = [ + ("agent_folders", READ), ("command_list", READ), ("doc_inspect", READ), ("session_list", READ), diff --git a/crates/automation/tests/it/mcp_live.rs b/crates/automation/tests/it/mcp_live.rs index 9c86e23e35..78d089aa7c 100644 --- a/crates/automation/tests/it/mcp_live.rs +++ b/crates/automation/tests/it/mcp_live.rs @@ -128,9 +128,94 @@ fn live(dir: &Path, when_closed: Option) -> LiveConfig { // The machine's own ArtCraft Launcher and feature flags stay out of the tests: agents are // allowed exactly when the test's preferences say so (as without the AI-MCP flag). c.allowed = |i| i.connect_agents; + // Nor the machine's own Documents folder: tests that want a default agent folder set one. + c.default_folder = None; c } +fn answer(r: &CallToolResult) -> Value { + assert_eq!(r.is_error, Some(false), "{}", text(r)); + serde_json::from_str(&text(r)).unwrap() +} + +fn shown(p: &Path) -> Value { + json!(p.to_string_lossy()) +} + +/// A closed app, agents allowed, "headless", no folders set: the session opens and saves in the +/// default agent folder, and `agent_folders` says so. A folder the person set wins. +#[tokio::test(flavor = "multi_thread")] +async fn agent_folders_names_the_default_agent_folder_of_a_headless_session() { + let dir = settings_dir("folders-headless"); + let default = dir.join("Agents").join("PhotoCraft"); + prefs(&dir, json!({"connectAgents": true, "whenAppClosed": "headless"})); + let mut config = live(&dir, None); + config.default_folder = Some(default.clone()); + let client = connect(PhotocraftMcp::live(config)).await; + assert!(client.list_all_tools().await.unwrap().iter().any(|t| t.name == "agent_folders")); + let a = answer(&call(&client, "agent_folders", json!({})).await); + assert_eq!(a, json!({"read_folder": shown(&default), "write_folder": shown(&default)})); + assert!(default.is_dir(), "the default agent folder is created"); + // The session really uses it: a new document saves there. + assert_eq!(call(&client, "doc_new", json!({"width": 4, "height": 4})).await.is_error, Some(false)); + let r = call(&client, "doc_save", json!({"path": "out.png"})).await; + assert_eq!(r.is_error, Some(false), "{}", text(&r)); + assert!(default.join("out.png").is_file()); + client.cancel().await.unwrap(); + + let own = dir.join("mine"); + std::fs::create_dir_all(&own).unwrap(); + prefs(&dir, json!({"connectAgents": true, "whenAppClosed": "headless", "writeRoot": own.to_string_lossy()})); + let mut config = live(&dir, None); + config.default_folder = Some(default.clone()); + let client = connect(PhotocraftMcp::live(config)).await; + let a = answer(&call(&client, "agent_folders", json!({})).await); + assert_eq!(a, json!({"read_folder": shown(&default), "write_folder": shown(&own)})); + // No arguments: anything else is refused, not ignored. + assert!(client.call_tool(CallToolRequestParams::new("agent_folders").with_arguments(json!({"x": 1}).as_object().unwrap().clone())).await.is_err()); + client.cancel().await.unwrap(); + let _ = std::fs::remove_dir_all(&dir); +} + +/// Calls going to the open window: `agent_folders` names the window's folders, its saved ones +/// with the default for an empty setting, as its agent link opens them. +#[tokio::test(flavor = "multi_thread")] +async fn agent_folders_names_the_open_windows_folders() { + let dir = settings_dir("folders-window"); + let default = dir.join("Agents").join("PhotoCraft"); + let own = dir.join("in"); + prefs(&dir, json!({"connectAgents": true, "whenAppClosed": "error", "readRoot": own.to_string_lossy()})); + let app = fake_app(&dir, "window"); + let mut config = live(&dir, None); + config.default_folder = Some(default.clone()); + let client = connect(PhotocraftMcp::live(config)).await; + let a = answer(&call(&client, "agent_folders", json!({})).await); + assert_eq!(a, json!({"read_folder": shown(&own), "write_folder": shown(&default)})); + client.cancel().await.unwrap(); + quit(app); + let _ = std::fs::remove_dir_all(&dir); +} + +/// `--headless` with root flags: `agent_folders` names them, every read root in lookup order. +#[tokio::test(flavor = "multi_thread")] +async fn agent_folders_names_the_root_flags_of_a_headless_session() { + let dir = settings_dir("folders-flags"); + let (a_in, b_in, out) = (dir.join("a"), dir.join("b"), dir.join("out")); + for d in [&a_in, &b_in, &out] { + std::fs::create_dir_all(d).unwrap(); + } + let workspace = photocraft_automation::AuthorizedWorkspace::with_read_roots([a_in.as_path(), b_in.as_path()], Some(&out)).unwrap(); + let client = connect(PhotocraftMcp::headless_with_workspace(workspace)).await; + let a = answer(&call(&client, "agent_folders", json!({})).await); + assert_eq!(a, json!({"read_folder": shown(&a_in), "write_folder": shown(&out), "read_folders": [shown(&a_in), shown(&b_in)]})); + client.cancel().await.unwrap(); + + let client = connect(PhotocraftMcp::headless_with_workspace(photocraft_automation::AuthorizedWorkspace::default())).await; + assert_eq!(answer(&call(&client, "agent_folders", json!({})).await), json!({"read_folder": null, "write_folder": null})); + client.cancel().await.unwrap(); + let _ = std::fs::remove_dir_all(&dir); +} + #[tokio::test(flavor = "multi_thread")] async fn a_closed_app_is_a_tool_error_that_says_what_to_do() { let dir = settings_dir("closed"); diff --git a/docs/architecture.md b/docs/architecture.md index b4abe6d766..de7d85cc85 100644 --- a/docs/architecture.md +++ b/docs/architecture.md @@ -466,7 +466,8 @@ psd/src/ - **`automation`:** an MCP server built on `rmcp`. Its tool names use underscores (the dotted names such as `doc.open` belong to the JSON control protocol, `docs/control-protocol.md`). It exposes: - - `session_list`, `doc_open`, `doc_new`, `doc_place` (place from the read root as a Smart Object), `doc_replace_smart_object` (replace a Smart Object's contents from the read root), + - `agent_folders` (the folders agents may open from and save to; the default agent folder `Documents/ArtCraft/Agents/PhotoCraft` when the preferences name none), + `session_list`, `doc_open`, `doc_new`, `doc_place` (place from the read root as a Smart Object), `doc_replace_smart_object` (replace a Smart Object's contents from the read root), `doc_export_layers`, `doc_export_data_sets` (write beneath the write root), `doc_import_data_sets` (a CSV from the read root), `doc_save`, `doc_export`, `doc_inspect` (layer tree as JSON), `doc_render_preview` (PNG), `doc_select`, `doc_close`. - `command_list`, `command_run` and `command_batch`, generated from the registry; `jobs_list` and `jobs_cancel` for background jobs. diff --git a/docs/control-protocol.md b/docs/control-protocol.md index 22225621a7..2af6f0fe67 100644 --- a/docs/control-protocol.md +++ b/docs/control-protocol.md @@ -25,8 +25,8 @@ An app started from the Dock, the Start menu or a file manager has no command li |---|---| | `integrations.connectAgents` (default off, not in the dialog) | Without the `AI-MCP` flag: serve agents on loopback without `--control`, and publish the connection (below). Set from a saved Control Port; with the flag only the launcher's switch counts | | `integrations.controlPort` (default 0) | The port for that; 0 = any free port (clients read it from the connection file) | -| `integrations.readRoot` (default empty) | The agents' read folder; with `--control`, stands in for `--automation-read-root` | -| `integrations.writeRoot` (default empty) | The agents' write folder; with `--control`, stands in for `--automation-write-root` | +| `integrations.readRoot` (default empty) | The agents' read folder; with `--control`, stands in for `--automation-read-root`. Empty: the default agent folder (below) | +| `integrations.writeRoot` (default empty) | The agents' write folder; with `--control`, stands in for `--automation-write-root`. Empty: the default agent folder (below) | | `integrations.whenAppClosed` (default `launch`) | What `photocraft-cli mcp` does while agents may use the app but it is closed: `launch`, `headless` or `error` | | `integrations.allowAgentControl` (default on, not in the dialog) | Off refuses `--control` too | @@ -34,6 +34,8 @@ A file whose `controlPort` (1 to 65535) started the server at launch, as on `mai With `--control`, each launch option, or its environment variable, wins over its preference; the two folders are decided separately (any `--automation-read-root` replaces the read folder). The same folder for both reading and writing shares one capability, as it does when given by flags, so an implicit save works there too. A folder named by a flag that can't be opened stops the launch (exit status 2), as before. A folder named only in the preferences that can't be opened, or isn't an absolute path, is left out, so that direction of file access fails closed; the app still starts, prints the reason on standard error and shows it in a notice. Automation can't change the two folders (`prefs.set` refuses `integrations.readRoot`, `integrations.writeRoot` and the whole `integrations` section): an agent must not widen its own file access. +A folder left empty (and named by no flag) is the default agent folder, `Documents/ArtCraft/Agents/PhotoCraft` in the system's Documents folder (Windows, macOS, and Linux's XDG Documents folder, else `~/Documents`), created when first used; the same folder for both directions shares one capability. It comes from the suite's shared agent settings (craft-libs `craft-control`, `AgentSettings::folders`), so every Craft app has its own beside it. A default folder that can't be created is left out, so that direction fails closed. The MCP tool `agent_folders` tells an agent which folders it may use. + While agents may connect, the app keeps its token in its settings folder, in `agent-control.token`, exactly as `--control-token-file /agent-control.token` would (created mode `0600` with a fresh token when missing, reused otherwise, also when the port changes; delete it to get a new token). If that file can't be written or read (a read-only or full settings folder), agents can't connect and the dialog shows why. Otherwise the app publishes the connection beside it, in `agent-connection.json`, and removes it when the connection stops: ```json @@ -501,7 +503,7 @@ variables are not supported by headless `photocraft-cli mcp` or `serve`; supply In MCP bridge mode, configure roots on the desktop process. Supplying root flags to `photocraft-cli mcp --bridge` is a usage error; a bridge client cannot grant filesystem access. While agents may use the app, the folders chosen in Preferences › AI Integrations (`readRoot` / -`writeRoot`) are the agents' roots; `mcp` uses them for a headless session only when the app's +`writeRoot`, the default agent folder for an empty one) are the agents' roots; `mcp` uses them for a headless session only when the app's *When PhotoCraft is closed* choice (or `--when-closed headless`) asks for one. Without the person's consent, `mcp` works headless with only the roots given to it, as before. diff --git a/docs/development.md b/docs/development.md index bd62ca10e1..6c43c8dac2 100644 --- a/docs/development.md +++ b/docs/development.md @@ -346,6 +346,7 @@ desktop directory `.pcraft` reads use only the granted read capabilities. Tools: +- `agent_folders` (where the app opens and saves files for agents: `read_folder`, `write_folder`; a headless session with several read roots adds `read_folders`. With the preferences' folders empty this is the default agent folder, `Documents/ArtCraft/Agents/PhotoCraft`. In `--bridge` mode both are `null`, with a note: the app's own launch decides) - `session_list` - `doc_open`, `doc_new`, `doc_place`, `doc_replace_smart_object`, `doc_export_layers`, `doc_export_data_sets`, `doc_import_data_sets`, `doc_save`, `doc_export`, `doc_inspect`, `doc_render_preview` (returns a PNG image), `doc_select`, `doc_close` - `command_list`, `command_run`, `command_batch` (several commands per call) From 5d60d84b8e0d77dd8aa1c91f79cb760caf275195 Mon Sep 17 00:00:00 2001 From: David Mann Date: Fri, 20 Nov 2026 16:03:24 +0100 Subject: [PATCH 2/9] automation: create the default agent folder only when a direction uses it (#15974) 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 --- apps/photocraft/src/main.rs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/apps/photocraft/src/main.rs b/apps/photocraft/src/main.rs index cbbf58bc8c..38ff2c94ad 100644 --- a/apps/photocraft/src/main.rs +++ b/apps/photocraft/src/main.rs @@ -108,8 +108,10 @@ fn automation_workspace_in( let mut workspace = flags.workspace()?; let mut warnings = Vec::new(); let (read_given, write_given) = (!flags.automation_read_root.is_empty(), flags.automation_write_root.is_some()); - // Looked up (and the default folder created) only for a direction no flag names. - let folders = if read_given && write_given { Default::default() } else { prefs.folders_with(default) }; + // The default folder is created only when a direction no flag names has no folder of the + // person's own; otherwise it would be made and never used. + let needs_default = (!read_given && prefs.read_folder().is_none()) || (!write_given && prefs.write_folder().is_none()); + let folders = prefs.folders_with(default.filter(|_| needs_default)); for read in [true, false] { let given = if read { read_given } else { write_given }; let Some(root) = (if read { folders.read.clone() } else { folders.write.clone() }).filter(|_| !given) else { @@ -1112,8 +1114,14 @@ mod tests { let (ws, _) = super::automation_workspace_in(&flags(None, Some(&flag)), &empty, Some(&default)).unwrap(); assert_eq!((ws.read_folders(), ws.write_folder()), (vec![default.clone()], Some(flag.clone()))); + // A write flag and the person's own read folder leave nothing for the default: not created. + let unused = dir.join("unused"); let mut own = empty.clone(); own.read_root = flag.to_string_lossy().into_owned(); + let (ws, _) = super::automation_workspace_in(&flags(None, Some(&flag)), &own, Some(&unused)).unwrap(); + assert_eq!((ws.read_folders(), ws.write_folder()), (vec![flag.clone()], Some(flag.clone()))); + assert!(!unused.exists(), "an unused default folder is not created"); + let (ws, _) = super::automation_workspace_in(&flags(None, None), &own, Some(&default)).unwrap(); assert_eq!((ws.read_folders(), ws.write_folder()), (vec![flag.clone()], Some(default.clone()))); From eaf864e3c93affc036982f77f45534ea801c13f6 Mon Sep 17 00:00:00 2001 From: David Mann Date: Fri, 20 Nov 2026 17:35:41 +0100 Subject: [PATCH 3/9] Pin craft-libs next at 62189858a for the Home screen rail Moves every craft-libs dependency to storytold/craft-libs next 62189858a and egui to the fork rev that next pins (6525c879). This brings craft-libs#2424 (Home screen rail and empty-state card) and the Home screen spacing fix. Call sites follow the new craft-libs API: Picked gained Failed and Downloaded (a failed save keeps its message, a browser download counts as nothing chosen, as the app writes its own saves), SettingsDocument's apply is the PreferencesDraft trait method, and the control channel's document map takes the page index (one page per document). --- Cargo.lock | 216 ++++++++++--------- Cargo.toml | 98 ++++----- crates/engine/Cargo.toml | 2 +- crates/ipp/Cargo.toml | 2 +- crates/ui-egui/src/control/dispatch.rs | 2 +- crates/ui-egui/src/dialogs/filter_dialog.rs | 4 +- crates/ui-egui/src/file_dialog.rs | 10 +- crates/ui-egui/src/panels/actions/files.rs | 4 +- crates/ui-egui/src/panels/actions/library.rs | 4 +- crates/ui-egui/src/prefs/prefs_ui/dialogs.rs | 4 +- 10 files changed, 186 insertions(+), 160 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 8001eef91f..2cb2c9d9a5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1365,7 +1365,7 @@ dependencies = [ [[package]] name = "craft" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "craft-automation", "craft-behavior", @@ -1404,7 +1404,7 @@ dependencies = [ [[package]] name = "craft-affinity" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "crc32fast", "flate2", @@ -1425,7 +1425,7 @@ dependencies = [ [[package]] name = "craft-atomic" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "rustix 1.1.5", ] @@ -1433,7 +1433,7 @@ dependencies = [ [[package]] name = "craft-automation" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "base64 0.22.1", "craft-behavior", @@ -1452,12 +1452,13 @@ dependencies = [ "serde_json", "sha2 0.10.9", "thiserror 2.0.21", + "web-time", ] [[package]] name = "craft-behavior" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "accesskit", "bitflags 2.13.2", @@ -1473,7 +1474,7 @@ dependencies = [ [[package]] name = "craft-browse" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "craft-behavior", "craft-docpath", @@ -1491,7 +1492,7 @@ dependencies = [ [[package]] name = "craft-cloud-ui" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "egui", ] @@ -1499,16 +1500,21 @@ dependencies = [ [[package]] name = "craft-cms" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "md-5", "rayon", ] +[[package]] +name = "craft-codepage" +version = "0.1.0" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" + [[package]] name = "craft-color-ui" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "craft-behavior", "craft-cms", @@ -1528,7 +1534,7 @@ dependencies = [ [[package]] name = "craft-control" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "craft-ai-agents", "craft-atomic", @@ -1542,7 +1548,7 @@ dependencies = [ [[package]] name = "craft-crs" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "craft-metadata", "craft-xml", @@ -1552,7 +1558,7 @@ dependencies = [ [[package]] name = "craft-crw" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "thiserror 2.0.21", ] @@ -1560,7 +1566,7 @@ dependencies = [ [[package]] name = "craft-dds" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "rayon", ] @@ -1568,11 +1574,12 @@ dependencies = [ [[package]] name = "craft-dialogs" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "block2 0.6.2", "craft-atomic", "craft-behavior", + "craft-browse", "craft-host", "craft-i18n", "craft-platform", @@ -1585,13 +1592,14 @@ dependencies = [ "objc2-foundation 0.3.2", "raw-window-handle", "rfd", + "serde_json", "zbus", ] [[package]] name = "craft-docpath" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "serde", ] @@ -1599,7 +1607,7 @@ dependencies = [ [[package]] name = "craft-draw" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "craft-behavior", "craft-color-ui", @@ -1618,12 +1626,12 @@ dependencies = [ [[package]] name = "craft-eps" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" [[package]] name = "craft-file-formats" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "craft-eps", "craft-idml", @@ -1641,7 +1649,7 @@ dependencies = [ [[package]] name = "craft-flags" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "craft-atomic", "dirs", @@ -1651,7 +1659,7 @@ dependencies = [ [[package]] name = "craft-font-catalog" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "fontique", "harfrust 0.13.3", @@ -1666,7 +1674,7 @@ dependencies = [ [[package]] name = "craft-font-manager" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "craft-behavior", "craft-font-catalog", @@ -1685,7 +1693,7 @@ dependencies = [ [[package]] name = "craft-font-store" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "cap-primitives", "craft-atomic", @@ -1706,12 +1714,12 @@ dependencies = [ [[package]] name = "craft-fonts-build" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" [[package]] name = "craft-heif" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "heic-rs", "rayon", @@ -1720,7 +1728,7 @@ dependencies = [ [[package]] name = "craft-host" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "bitflags 2.13.2", "craft-i18n", @@ -1733,7 +1741,7 @@ dependencies = [ [[package]] name = "craft-i18n" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "chrono", "fixed_decimal", @@ -1761,7 +1769,7 @@ dependencies = [ [[package]] name = "craft-idml" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "craft-xml", "craft-zip", @@ -1771,7 +1779,7 @@ dependencies = [ [[package]] name = "craft-image-codecs" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "craft-dds", "craft-heif", @@ -1799,7 +1807,7 @@ dependencies = [ [[package]] name = "craft-imaging" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "craft-behavior", "craft-color-ui", @@ -1817,12 +1825,12 @@ dependencies = [ [[package]] name = "craft-ipp" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" [[package]] name = "craft-jpeg" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "thiserror 2.0.21", ] @@ -1830,7 +1838,7 @@ dependencies = [ [[package]] name = "craft-keymap" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "craft-host", "craft-i18n", @@ -1843,7 +1851,7 @@ dependencies = [ [[package]] name = "craft-kra" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "craft-xml", "craft-zip", @@ -1853,7 +1861,7 @@ dependencies = [ [[package]] name = "craft-layers" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "craft-behavior", "craft-i18n", @@ -1867,7 +1875,7 @@ dependencies = [ [[package]] name = "craft-menu" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "craft-behavior", "craft-host", @@ -1885,7 +1893,7 @@ dependencies = [ [[package]] name = "craft-metadata" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "brotli-decompressor 6.3.2", "chrono", @@ -1897,7 +1905,7 @@ dependencies = [ [[package]] name = "craft-ora" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "craft-xml", "craft-zip", @@ -1907,9 +1915,10 @@ dependencies = [ [[package]] name = "craft-pages" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "craft-behavior", + "craft-keymap", "craft-text", "craft-theme", "craft-ui", @@ -1921,7 +1930,7 @@ dependencies = [ [[package]] name = "craft-pcraft-bundle" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "blake3", "craft-atomic", @@ -1934,7 +1943,7 @@ dependencies = [ [[package]] name = "craft-pcraft-format" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "flate2", "serde", @@ -1945,7 +1954,7 @@ dependencies = [ [[package]] name = "craft-pdf" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "bytemuck", "flate2", @@ -1960,7 +1969,7 @@ dependencies = [ [[package]] name = "craft-pdn" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "flate2", "thiserror 2.0.21", @@ -1969,7 +1978,7 @@ dependencies = [ [[package]] name = "craft-platform" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "async-channel", "async-io", @@ -1982,11 +1991,15 @@ dependencies = [ "futures-lite", "js-sys", "log", + "objc2-app-kit 0.3.2", + "rfd", "serde", "serde_json", "wasm-bindgen", + "wasm-bindgen-futures", "web-sys", "web-time", + "windows", "x11rb", "xcap", "zbus", @@ -1995,7 +2008,7 @@ dependencies = [ [[package]] name = "craft-plist" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "thiserror 2.0.21", ] @@ -2003,17 +2016,22 @@ dependencies = [ [[package]] name = "craft-print" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "craft-behavior", + "craft-host", "craft-ui", "craft-winprint-gdi", "egui", + "js-sys", "log", "miniz_oxide 0.9.1", "roxmltree 0.21.2", + "serde", "serde_json", "tempfile", + "wasm-bindgen", + "web-sys", "winprint", "winsafe", ] @@ -2021,7 +2039,7 @@ dependencies = [ [[package]] name = "craft-psd" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "encoding_rs", "flate2", @@ -2032,7 +2050,7 @@ dependencies = [ [[package]] name = "craft-quit" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "dispatch2", "egui", @@ -2043,7 +2061,7 @@ dependencies = [ [[package]] name = "craft-raw" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "chrono", "craft-crw", @@ -2061,12 +2079,13 @@ dependencies = [ [[package]] name = "craft-review" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "craft-behavior", "craft-host", "craft-i18n", "craft-keymap", + "craft-pages", "craft-theme", "craft-ui", "egui", @@ -2078,21 +2097,24 @@ dependencies = [ [[package]] name = "craft-settings" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "craft-atomic", "craft-host", "dirs", + "log", "serde", "serde_json", "toml", "toml_edit", + "web-sys", + "web-time", ] [[package]] name = "craft-svg" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "craft-image-codecs", "craft-xml", @@ -2113,7 +2135,7 @@ dependencies = [ [[package]] name = "craft-table" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "craft-behavior", "craft-keymap", @@ -2125,7 +2147,7 @@ dependencies = [ [[package]] name = "craft-text" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "craft-behavior", "craft-font-manager", @@ -2148,7 +2170,7 @@ dependencies = [ [[package]] name = "craft-theme" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "bitflags 2.13.2", "ecolor", @@ -2161,7 +2183,7 @@ dependencies = [ [[package]] name = "craft-theme-editor" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "craft-behavior", "craft-theme", @@ -2172,7 +2194,7 @@ dependencies = [ [[package]] name = "craft-theme-store" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "craft-atomic", "craft-behavior", @@ -2187,7 +2209,7 @@ dependencies = [ [[package]] name = "craft-tiff" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "serde", "thiserror 2.0.21", @@ -2196,7 +2218,7 @@ dependencies = [ [[package]] name = "craft-time" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "serde", "thiserror 2.0.21", @@ -2205,7 +2227,7 @@ dependencies = [ [[package]] name = "craft-timeline" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "craft-behavior", "craft-keymap", @@ -2220,12 +2242,12 @@ dependencies = [ [[package]] name = "craft-tracked" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" [[package]] name = "craft-ui" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "craft-cloud-ui", "craft-ui-canvas", @@ -2239,7 +2261,7 @@ dependencies = [ [[package]] name = "craft-ui-canvas" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "craft-behavior", "craft-i18n", @@ -2255,10 +2277,11 @@ dependencies = [ [[package]] name = "craft-ui-contract" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "accesskit", "craft-behavior", + "craft-codepage", "craft-font-catalog", "craft-fonts-build", "craft-host", @@ -2280,6 +2303,7 @@ dependencies = [ "inventory", "libtest-mimic", "log", + "scoped-tls", "serde", "serde_json", "siphasher", @@ -2292,7 +2316,7 @@ dependencies = [ [[package]] name = "craft-ui-macros" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -2303,7 +2327,7 @@ dependencies = [ [[package]] name = "craft-ui-panels" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "craft-behavior", "craft-host", @@ -2321,7 +2345,7 @@ dependencies = [ [[package]] name = "craft-ui-patterns" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "craft-behavior", "craft-host", @@ -2342,7 +2366,7 @@ dependencies = [ [[package]] name = "craft-ui-shell" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "craft-behavior", "craft-host", @@ -2361,7 +2385,7 @@ dependencies = [ [[package]] name = "craft-ui-widgets" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "craft-behavior", "craft-host", @@ -2378,7 +2402,7 @@ dependencies = [ [[package]] name = "craft-update" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "chrono", "craft-host", @@ -2407,7 +2431,7 @@ dependencies = [ [[package]] name = "craft-win32" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "winsafe", ] @@ -2415,7 +2439,7 @@ dependencies = [ [[package]] name = "craft-window" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "craft-atomic", "craft-behavior", @@ -2445,7 +2469,7 @@ dependencies = [ [[package]] name = "craft-xcf" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "flate2", "thiserror 2.0.21", @@ -2454,7 +2478,7 @@ dependencies = [ [[package]] name = "craft-xml" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "quick-xml 0.41.0", "serde", @@ -2464,7 +2488,7 @@ dependencies = [ [[package]] name = "craft-zip" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "flate2", "thiserror 2.0.21", @@ -2854,7 +2878,7 @@ dependencies = [ [[package]] name = "ecolor" version = "0.37.0" -source = "git+https://github.com/storytold/egui.git?rev=7e1c30d142bc7879d043e74b5ceb3ecfe7f51329#7e1c30d142bc7879d043e74b5ceb3ecfe7f51329" +source = "git+https://github.com/storytold/egui.git?rev=6525c87923ca47465aac244460fe4b1139349060#6525c87923ca47465aac244460fe4b1139349060" dependencies = [ "bytemuck", "emath", @@ -2864,7 +2888,7 @@ dependencies = [ [[package]] name = "eframe" version = "0.37.0" -source = "git+https://github.com/storytold/egui.git?rev=7e1c30d142bc7879d043e74b5ceb3ecfe7f51329#7e1c30d142bc7879d043e74b5ceb3ecfe7f51329" +source = "git+https://github.com/storytold/egui.git?rev=6525c87923ca47465aac244460fe4b1139349060#6525c87923ca47465aac244460fe4b1139349060" dependencies = [ "ahash", "bytemuck", @@ -2901,7 +2925,7 @@ dependencies = [ [[package]] name = "egui" version = "0.37.0" -source = "git+https://github.com/storytold/egui.git?rev=7e1c30d142bc7879d043e74b5ceb3ecfe7f51329#7e1c30d142bc7879d043e74b5ceb3ecfe7f51329" +source = "git+https://github.com/storytold/egui.git?rev=6525c87923ca47465aac244460fe4b1139349060#6525c87923ca47465aac244460fe4b1139349060" dependencies = [ "accesskit", "ahash", @@ -2922,7 +2946,7 @@ dependencies = [ [[package]] name = "egui-wgpu" version = "0.37.0" -source = "git+https://github.com/storytold/egui.git?rev=7e1c30d142bc7879d043e74b5ceb3ecfe7f51329#7e1c30d142bc7879d043e74b5ceb3ecfe7f51329" +source = "git+https://github.com/storytold/egui.git?rev=6525c87923ca47465aac244460fe4b1139349060#6525c87923ca47465aac244460fe4b1139349060" dependencies = [ "ahash", "bytemuck", @@ -2941,7 +2965,7 @@ dependencies = [ [[package]] name = "egui-winit" version = "0.37.0" -source = "git+https://github.com/storytold/egui.git?rev=7e1c30d142bc7879d043e74b5ceb3ecfe7f51329#7e1c30d142bc7879d043e74b5ceb3ecfe7f51329" +source = "git+https://github.com/storytold/egui.git?rev=6525c87923ca47465aac244460fe4b1139349060#6525c87923ca47465aac244460fe4b1139349060" dependencies = [ "accesskit_winit", "arboard", @@ -2967,7 +2991,7 @@ dependencies = [ [[package]] name = "egui_extras" version = "0.37.0" -source = "git+https://github.com/storytold/egui.git?rev=7e1c30d142bc7879d043e74b5ceb3ecfe7f51329#7e1c30d142bc7879d043e74b5ceb3ecfe7f51329" +source = "git+https://github.com/storytold/egui.git?rev=6525c87923ca47465aac244460fe4b1139349060#6525c87923ca47465aac244460fe4b1139349060" dependencies = [ "ahash", "egui", @@ -2981,7 +3005,7 @@ dependencies = [ [[package]] name = "egui_glow" version = "0.37.0" -source = "git+https://github.com/storytold/egui.git?rev=7e1c30d142bc7879d043e74b5ceb3ecfe7f51329#7e1c30d142bc7879d043e74b5ceb3ecfe7f51329" +source = "git+https://github.com/storytold/egui.git?rev=6525c87923ca47465aac244460fe4b1139349060#6525c87923ca47465aac244460fe4b1139349060" dependencies = [ "bytemuck", "egui", @@ -2994,7 +3018,7 @@ dependencies = [ [[package]] name = "egui_kittest" version = "0.37.0" -source = "git+https://github.com/storytold/egui.git?rev=7e1c30d142bc7879d043e74b5ceb3ecfe7f51329#7e1c30d142bc7879d043e74b5ceb3ecfe7f51329" +source = "git+https://github.com/storytold/egui.git?rev=6525c87923ca47465aac244460fe4b1139349060#6525c87923ca47465aac244460fe4b1139349060" dependencies = [ "dify", "eframe", @@ -3020,7 +3044,7 @@ checksum = "0e9c71c2167ca323c882b99918929403426e2373ea17242ff5653e0d5e1058be" [[package]] name = "emath" version = "0.37.0" -source = "git+https://github.com/storytold/egui.git?rev=7e1c30d142bc7879d043e74b5ceb3ecfe7f51329#7e1c30d142bc7879d043e74b5ceb3ecfe7f51329" +source = "git+https://github.com/storytold/egui.git?rev=6525c87923ca47465aac244460fe4b1139349060#6525c87923ca47465aac244460fe4b1139349060" dependencies = [ "bytemuck", "serde", @@ -3113,7 +3137,7 @@ dependencies = [ [[package]] name = "epaint" version = "0.37.0" -source = "git+https://github.com/storytold/egui.git?rev=7e1c30d142bc7879d043e74b5ceb3ecfe7f51329#7e1c30d142bc7879d043e74b5ceb3ecfe7f51329" +source = "git+https://github.com/storytold/egui.git?rev=6525c87923ca47465aac244460fe4b1139349060#6525c87923ca47465aac244460fe4b1139349060" dependencies = [ "ahash", "bytemuck", @@ -3140,7 +3164,7 @@ dependencies = [ [[package]] name = "epaint_default_fonts" version = "0.37.0" -source = "git+https://github.com/storytold/egui.git?rev=7e1c30d142bc7879d043e74b5ceb3ecfe7f51329#7e1c30d142bc7879d043e74b5ceb3ecfe7f51329" +source = "git+https://github.com/storytold/egui.git?rev=6525c87923ca47465aac244460fe4b1139349060#6525c87923ca47465aac244460fe4b1139349060" [[package]] name = "equivalent" @@ -3927,7 +3951,7 @@ dependencies = [ [[package]] name = "hayro" version = "0.7.1" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "bytemuck", "hayro-interpret", @@ -3957,7 +3981,7 @@ dependencies = [ [[package]] name = "hayro-interpret" version = "0.7.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "bitflags 2.13.2", "hayro-cmap", @@ -3975,7 +3999,7 @@ dependencies = [ [[package]] name = "hayro-jbig2" version = "0.3.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "fearless_simd", "hayro-ccitt", @@ -3999,7 +4023,7 @@ checksum = "bc2d80da85f31c3fdc0366431f44cfd645a9da1e242ed1f4a61f213d9765660f" [[package]] name = "hayro-syntax" version = "0.7.2" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "flate2", "hayro-ccitt", @@ -5083,7 +5107,7 @@ checksum = "d4a5ff6bcca6c4867b1c4fd4ef63e4db7436ef363e0ad7531d1558856bae64f4" [[package]] name = "linesweeper" version = "0.5.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" dependencies = [ "arrayvec", "kurbo 0.13.1", @@ -11141,29 +11165,29 @@ dependencies = [ [[patch.unused]] name = "egui_demo_lib" version = "0.37.0" -source = "git+https://github.com/storytold/egui.git?rev=7e1c30d142bc7879d043e74b5ceb3ecfe7f51329#7e1c30d142bc7879d043e74b5ceb3ecfe7f51329" +source = "git+https://github.com/storytold/egui.git?rev=6525c87923ca47465aac244460fe4b1139349060#6525c87923ca47465aac244460fe4b1139349060" [[patch.unused]] name = "egui_inspection" version = "0.37.0" -source = "git+https://github.com/storytold/egui.git?rev=7e1c30d142bc7879d043e74b5ceb3ecfe7f51329#7e1c30d142bc7879d043e74b5ceb3ecfe7f51329" +source = "git+https://github.com/storytold/egui.git?rev=6525c87923ca47465aac244460fe4b1139349060#6525c87923ca47465aac244460fe4b1139349060" [[patch.unused]] name = "egui_system_font_provider" version = "0.37.0" -source = "git+https://github.com/storytold/egui.git?rev=7e1c30d142bc7879d043e74b5ceb3ecfe7f51329#7e1c30d142bc7879d043e74b5ceb3ecfe7f51329" +source = "git+https://github.com/storytold/egui.git?rev=6525c87923ca47465aac244460fe4b1139349060#6525c87923ca47465aac244460fe4b1139349060" [[patch.unused]] name = "hayro-cmap" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" [[patch.unused]] name = "hayro-postscript" version = "0.1.0" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" [[patch.unused]] name = "krilla" version = "0.8.2" -source = "git+https://github.com/storytold/craft-libs?rev=e7e877ac57b0832cffc4b0e2ac6aca94224666bf#e7e877ac57b0832cffc4b0e2ac6aca94224666bf" +source = "git+https://github.com/storytold/craft-libs?rev=62189858af8593c22e8b943f384e9cf1dc7184b1#62189858af8593c22e8b943f384e9cf1dc7184b1" diff --git a/Cargo.toml b/Cargo.toml index 86867dad57..1fe9dc4bf9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,19 +12,19 @@ rust-version = "1.95" [workspace.dependencies] # The craft framework through its facade (`craft::ui::…`). The egui `[patch]` below must match # `craft::egui_fork::REV` (checked by `cargo xtask ci`). -craft = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf", default-features = false } +craft = { git = "https://github.com/storytold/craft-libs", rev = "62189858af8593c22e8b943f384e9cf1dc7184b1", default-features = false } # internal photocraft-geom = { path = "crates/geom" } photocraft-color = { path = "crates/color" } photocraft-raster = { path = "crates/raster" } photocraft-doc = { path = "crates/doc" } photocraft-ops = { path = "crates/ops" } -craft-plist = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } -craft-psd = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } -photocraft-codecs = { package = "craft-image-codecs", git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } -photocraft-formats = { package = "craft-file-formats", git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf", features = ["raster-codecs", "pdf", "svg", "ora", "kra", "xcf", "pdn", "raw", "psd", "affinity", "pcraft"] } +craft-plist = { git = "https://github.com/storytold/craft-libs", rev = "62189858af8593c22e8b943f384e9cf1dc7184b1" } +craft-psd = { git = "https://github.com/storytold/craft-libs", rev = "62189858af8593c22e8b943f384e9cf1dc7184b1" } +photocraft-codecs = { package = "craft-image-codecs", git = "https://github.com/storytold/craft-libs", rev = "62189858af8593c22e8b943f384e9cf1dc7184b1" } +photocraft-formats = { package = "craft-file-formats", git = "https://github.com/storytold/craft-libs", rev = "62189858af8593c22e8b943f384e9cf1dc7184b1", features = ["raster-codecs", "pdf", "svg", "ora", "kra", "xcf", "pdn", "raw", "psd", "affinity", "pcraft"] } photocraft-raw = { path = "crates/raw" } -craft-affinity = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } +craft-affinity = { git = "https://github.com/storytold/craft-libs", rev = "62189858af8593c22e8b943f384e9cf1dc7184b1" } photocraft-compose = { path = "crates/compose" } photocraft-gpu = { path = "crates/gpu" } photocraft-paint = { path = "crates/paint" } @@ -43,34 +43,34 @@ photocraft-ipp = { path = "crates/ipp" } # external # ICC colour management: the shared crate (replaces crates/cms; craft-libs#779). -craft-cms = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } -craft-print = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } +craft-cms = { git = "https://github.com/storytold/craft-libs", rev = "62189858af8593c22e8b943f384e9cf1dc7184b1" } +craft-print = { git = "https://github.com/storytold/craft-libs", rev = "62189858af8593c22e8b943f384e9cf1dc7184b1" } # HEIC/HEIF: the shared decoder (replaces crates/heif; craft-libs#784). -craft-heif = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } -craft-pdf = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf", features = ["raster", "write-raster"] } -craft-xml = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } -craft-docpath = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } -craft-jpeg = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } -craft-pcraft-format = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } -craft-pcraft-bundle = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } -craft-zip = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } -craft-ora = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } -craft-kra = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } -craft-xcf = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } -craft-pdn = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } +craft-heif = { git = "https://github.com/storytold/craft-libs", rev = "62189858af8593c22e8b943f384e9cf1dc7184b1" } +craft-pdf = { git = "https://github.com/storytold/craft-libs", rev = "62189858af8593c22e8b943f384e9cf1dc7184b1", features = ["raster", "write-raster"] } +craft-xml = { git = "https://github.com/storytold/craft-libs", rev = "62189858af8593c22e8b943f384e9cf1dc7184b1" } +craft-docpath = { version = "0.1.0", git = "https://github.com/storytold/craft-libs", rev = "62189858af8593c22e8b943f384e9cf1dc7184b1" } +craft-jpeg = { git = "https://github.com/storytold/craft-libs", rev = "62189858af8593c22e8b943f384e9cf1dc7184b1" } +craft-pcraft-format = { git = "https://github.com/storytold/craft-libs", rev = "62189858af8593c22e8b943f384e9cf1dc7184b1" } +craft-pcraft-bundle = { git = "https://github.com/storytold/craft-libs", rev = "62189858af8593c22e8b943f384e9cf1dc7184b1" } +craft-zip = { git = "https://github.com/storytold/craft-libs", rev = "62189858af8593c22e8b943f384e9cf1dc7184b1" } +craft-ora = { git = "https://github.com/storytold/craft-libs", rev = "62189858af8593c22e8b943f384e9cf1dc7184b1" } +craft-kra = { git = "https://github.com/storytold/craft-libs", rev = "62189858af8593c22e8b943f384e9cf1dc7184b1" } +craft-xcf = { git = "https://github.com/storytold/craft-libs", rev = "62189858af8593c22e8b943f384e9cf1dc7184b1" } +craft-pdn = { git = "https://github.com/storytold/craft-libs", rev = "62189858af8593c22e8b943f384e9cf1dc7184b1" } # Keep the shared embedded-image validation API until the framework revision includes it. -craft-svg = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf", features = ["tree-render", "tree-render-system-fonts"] } -craft-raw = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } -craft-tiff = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } +craft-svg = { git = "https://github.com/storytold/craft-libs", rev = "62189858af8593c22e8b943f384e9cf1dc7184b1", features = ["tree-render", "tree-render-system-fonts"] } +craft-raw = { git = "https://github.com/storytold/craft-libs", rev = "62189858af8593c22e8b943f384e9cf1dc7184b1" } +craft-tiff = { git = "https://github.com/storytold/craft-libs", rev = "62189858af8593c22e8b943f384e9cf1dc7184b1" } # Camera-field EXIF reader/writer, shared prerequisite craft-libs#1563. -craft-metadata = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } -craft-crs = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } +craft-metadata = { git = "https://github.com/storytold/craft-libs", rev = "62189858af8593c22e8b943f384e9cf1dc7184b1" } +craft-crs = { git = "https://github.com/storytold/craft-libs", rev = "62189858af8593c22e8b943f384e9cf1dc7184b1" } # Interface translations: lookup, fallback, CLDR plurals and language names over the craft-i18n # catalogs that `crates/ui-egui/build.rs` embeds from `CRAFT_I18N_DIR` (storytold/craft-i18n, at # the commit in `craft-i18n.rev`). Already in the tree through craft. -craft-i18n = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } +craft-i18n = { git = "https://github.com/storytold/craft-libs", rev = "62189858af8593c22e8b943f384e9cf1dc7184b1" } # craft-update: app-specific pretend versions apply to startup and manual checks. -craft-update = { git = "https://github.com/storytold/craft-libs", version = "=0.1.0", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf", features = ["ui"] } +craft-update = { git = "https://github.com/storytold/craft-libs", version = "=0.1.0", rev = "62189858af8593c22e8b943f384e9cf1dc7184b1", features = ["ui"] } thiserror = "2" serde = { version = "1", features = ["derive", "rc"] } serde_json = "1" @@ -335,28 +335,28 @@ opt-level = 3 # Keep the complete egui family and native event bridge on reviewed fork commits. [patch.crates-io] -krilla = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } -hayro = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } -hayro-interpret = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } -hayro-syntax = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } -hayro-jbig2 = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } -hayro-cmap = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } -hayro-postscript = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } -linesweeper = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } -ecolor = { git = "https://github.com/storytold/egui.git", rev = "7e1c30d142bc7879d043e74b5ceb3ecfe7f51329" } -emath = { git = "https://github.com/storytold/egui.git", rev = "7e1c30d142bc7879d043e74b5ceb3ecfe7f51329" } -epaint = { git = "https://github.com/storytold/egui.git", rev = "7e1c30d142bc7879d043e74b5ceb3ecfe7f51329" } -epaint_default_fonts = { git = "https://github.com/storytold/egui.git", rev = "7e1c30d142bc7879d043e74b5ceb3ecfe7f51329" } -egui = { git = "https://github.com/storytold/egui.git", rev = "7e1c30d142bc7879d043e74b5ceb3ecfe7f51329" } -egui-winit = { git = "https://github.com/storytold/egui.git", rev = "7e1c30d142bc7879d043e74b5ceb3ecfe7f51329" } -egui-wgpu = { git = "https://github.com/storytold/egui.git", rev = "7e1c30d142bc7879d043e74b5ceb3ecfe7f51329" } -egui_glow = { git = "https://github.com/storytold/egui.git", rev = "7e1c30d142bc7879d043e74b5ceb3ecfe7f51329" } -egui_extras = { git = "https://github.com/storytold/egui.git", rev = "7e1c30d142bc7879d043e74b5ceb3ecfe7f51329" } -egui_kittest = { git = "https://github.com/storytold/egui.git", rev = "7e1c30d142bc7879d043e74b5ceb3ecfe7f51329" } -egui_system_font_provider = { git = "https://github.com/storytold/egui.git", rev = "7e1c30d142bc7879d043e74b5ceb3ecfe7f51329" } -eframe = { git = "https://github.com/storytold/egui.git", rev = "7e1c30d142bc7879d043e74b5ceb3ecfe7f51329" } -egui_demo_lib = { git = "https://github.com/storytold/egui.git", rev = "7e1c30d142bc7879d043e74b5ceb3ecfe7f51329" } -egui_inspection = { git = "https://github.com/storytold/egui.git", rev = "7e1c30d142bc7879d043e74b5ceb3ecfe7f51329" } +krilla = { git = "https://github.com/storytold/craft-libs", rev = "62189858af8593c22e8b943f384e9cf1dc7184b1" } +hayro = { git = "https://github.com/storytold/craft-libs", rev = "62189858af8593c22e8b943f384e9cf1dc7184b1" } +hayro-interpret = { git = "https://github.com/storytold/craft-libs", rev = "62189858af8593c22e8b943f384e9cf1dc7184b1" } +hayro-syntax = { git = "https://github.com/storytold/craft-libs", rev = "62189858af8593c22e8b943f384e9cf1dc7184b1" } +hayro-jbig2 = { git = "https://github.com/storytold/craft-libs", rev = "62189858af8593c22e8b943f384e9cf1dc7184b1" } +hayro-cmap = { git = "https://github.com/storytold/craft-libs", rev = "62189858af8593c22e8b943f384e9cf1dc7184b1" } +hayro-postscript = { git = "https://github.com/storytold/craft-libs", rev = "62189858af8593c22e8b943f384e9cf1dc7184b1" } +linesweeper = { git = "https://github.com/storytold/craft-libs", rev = "62189858af8593c22e8b943f384e9cf1dc7184b1" } +ecolor = { git = "https://github.com/storytold/egui.git", rev = "6525c87923ca47465aac244460fe4b1139349060" } +emath = { git = "https://github.com/storytold/egui.git", rev = "6525c87923ca47465aac244460fe4b1139349060" } +epaint = { git = "https://github.com/storytold/egui.git", rev = "6525c87923ca47465aac244460fe4b1139349060" } +epaint_default_fonts = { git = "https://github.com/storytold/egui.git", rev = "6525c87923ca47465aac244460fe4b1139349060" } +egui = { git = "https://github.com/storytold/egui.git", rev = "6525c87923ca47465aac244460fe4b1139349060" } +egui-winit = { git = "https://github.com/storytold/egui.git", rev = "6525c87923ca47465aac244460fe4b1139349060" } +egui-wgpu = { git = "https://github.com/storytold/egui.git", rev = "6525c87923ca47465aac244460fe4b1139349060" } +egui_glow = { git = "https://github.com/storytold/egui.git", rev = "6525c87923ca47465aac244460fe4b1139349060" } +egui_extras = { git = "https://github.com/storytold/egui.git", rev = "6525c87923ca47465aac244460fe4b1139349060" } +egui_kittest = { git = "https://github.com/storytold/egui.git", rev = "6525c87923ca47465aac244460fe4b1139349060" } +egui_system_font_provider = { git = "https://github.com/storytold/egui.git", rev = "6525c87923ca47465aac244460fe4b1139349060" } +eframe = { git = "https://github.com/storytold/egui.git", rev = "6525c87923ca47465aac244460fe4b1139349060" } +egui_demo_lib = { git = "https://github.com/storytold/egui.git", rev = "6525c87923ca47465aac244460fe4b1139349060" } +egui_inspection = { git = "https://github.com/storytold/egui.git", rev = "6525c87923ca47465aac244460fe4b1139349060" } winit = { git = "https://github.com/storytold/winit.git", rev = "a517b3846ee8457d84ee4975110bfda6797c44dc" } diff --git a/crates/engine/Cargo.toml b/crates/engine/Cargo.toml index cc06c2c97b..de5552987f 100644 --- a/crates/engine/Cargo.toml +++ b/crates/engine/Cargo.toml @@ -16,7 +16,7 @@ photocraft-geom = { workspace = true } photocraft-color = { workspace = true } craft-cms = { workspace = true } # PCTIP codec from craft-libs#1564; isolated pin until the shared revision is adopted workspace-wide. -craft-pcraft-tip = { package = "craft-pcraft-format", git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } +craft-pcraft-tip = { package = "craft-pcraft-format", git = "https://github.com/storytold/craft-libs", rev = "62189858af8593c22e8b943f384e9cf1dc7184b1" } photocraft-raster = { workspace = true } photocraft-doc = { workspace = true } photocraft-ops = { workspace = true } diff --git a/crates/ipp/Cargo.toml b/crates/ipp/Cargo.toml index 3de77f75e3..46320c81e0 100644 --- a/crates/ipp/Cargo.toml +++ b/crates/ipp/Cargo.toml @@ -7,7 +7,7 @@ license.workspace = true rust-version.workspace = true [dependencies] -craft-ipp = { git = "https://github.com/storytold/craft-libs", rev = "e7e877ac57b0832cffc4b0e2ac6aca94224666bf" } +craft-ipp = { git = "https://github.com/storytold/craft-libs", rev = "62189858af8593c22e8b943f384e9cf1dc7184b1" } [lints] workspace = true diff --git a/crates/ui-egui/src/control/dispatch.rs b/crates/ui-egui/src/control/dispatch.rs index 52f5bb000c..7eb85f9422 100644 --- a/crates/ui-egui/src/control/dispatch.rs +++ b/crates/ui-egui/src/control/dispatch.rs @@ -1165,7 +1165,7 @@ fn input_methods(app: &mut PhotocraftApp, ctx: &egui::Context, req: &ControlRequ return Some(pointer(app, ctx, &req.params)); } let view = crate::canvas::document_display::active_view(app); - let map = move |at: egui::Pos2| view.as_ref().map(|view| view.to_screen(Point::new(f64::from(at.x), f64::from(at.y)))); + let map = move |_page: usize, at: egui::Pos2| view.as_ref().map(|view| view.to_screen(Point::new(f64::from(at.x), f64::from(at.y)))); let host = WindowHost::of(ctx); let queued = craft::automation::synthetic::input_method(&req.method, &req.params, &host, egui::ViewportId::ROOT, &map)?; Some(match queued { diff --git a/crates/ui-egui/src/dialogs/filter_dialog.rs b/crates/ui-egui/src/dialogs/filter_dialog.rs index 4962c83ca9..12694ba08e 100644 --- a/crates/ui-egui/src/dialogs/filter_dialog.rs +++ b/crates/ui-egui/src/dialogs/filter_dialog.rs @@ -1060,8 +1060,8 @@ pub(crate) fn ask_displace_map(app: &mut PhotocraftApp, command: String, result: app.ask_file(request, move |app, picked| { let path = match picked { Picked::Paths(paths) => paths.into_iter().next().ok_or("no displacement map was chosen")?, - Picked::Cancelled => return Err(crate::file_dialog::CANCELLED.into()), - Picked::Unavailable(error) => return Err(error), + Picked::Cancelled | Picked::Downloaded(_) => return Err(crate::file_dialog::CANCELLED.into()), + Picked::Unavailable(error) | Picked::Failed(error) => return Err(error), Picked::Contents(_) => return Err("open the displacement map as a document, then choose it as the Map Document".into()), }; let mut params = command_params(&command, &result.fields); diff --git a/crates/ui-egui/src/file_dialog.rs b/crates/ui-egui/src/file_dialog.rs index 5504054ca0..33d329eb18 100644 --- a/crates/ui-egui/src/file_dialog.rs +++ b/crates/ui-egui/src/file_dialog.rs @@ -112,7 +112,7 @@ fn path_string(path: &Path) -> String { fn path_strings(picked: &Picked) -> Vec { match picked { Picked::Paths(paths) => paths.iter().map(|p| path_string(p)).collect(), - Picked::Contents(_) | Picked::Cancelled | Picked::Unavailable(_) => Vec::new(), + Picked::Contents(_) | Picked::Cancelled | Picked::Unavailable(_) | Picked::Failed(_) | Picked::Downloaded(_) => Vec::new(), } } @@ -138,8 +138,8 @@ impl PhotocraftApp { }; let saving = request.kind == PickKind::Save; let then: Then = Box::new(move |app, picked| match picked { - Picked::Cancelled => Err(CANCELLED.into()), - Picked::Unavailable(why) => Err(why), + Picked::Cancelled | Picked::Downloaded(_) => Err(CANCELLED.into()), + Picked::Unavailable(why) | Picked::Failed(why) => Err(why), Picked::Paths(paths) => { // A lossy copy of a name that isn't valid Unicode would name another file (#6601). for path in &paths { @@ -311,7 +311,7 @@ impl PhotocraftApp { app.open_paths_in_order(&path_strings(&picked)); } Picked::Contents(files) => app.open_contents(files), - Picked::Cancelled | Picked::Unavailable(_) => return Err(UNEXPECTED.into()), + Picked::Cancelled | Picked::Unavailable(_) | Picked::Failed(_) | Picked::Downloaded(_) => return Err(UNEXPECTED.into()), } Ok(Value::Null) }) @@ -500,7 +500,7 @@ fn read_picked(picked: Picked) -> Result<(String, Vec), String> { let bytes = photocraft_format::read_file(Path::new(&path)).map_err(|e| format!("{}: {e}", display_name(&path)))?; Ok((path, bytes)) } - Picked::Cancelled | Picked::Unavailable(_) => Err(UNEXPECTED.into()), + Picked::Cancelled | Picked::Unavailable(_) | Picked::Failed(_) | Picked::Downloaded(_) => Err(UNEXPECTED.into()), } } diff --git a/crates/ui-egui/src/panels/actions/files.rs b/crates/ui-egui/src/panels/actions/files.rs index 5d92a20096..a078b627ee 100644 --- a/crates/ui-egui/src/panels/actions/files.rs +++ b/crates/ui-egui/src/panels/actions/files.rs @@ -71,8 +71,8 @@ pub(super) fn load_dialog(app: &mut PhotocraftApp) -> Result { let files: Vec<(String, Option>)> = match picked { Picked::Paths(paths) => paths.into_iter().map(|path| (path.to_string_lossy().into_owned(), None)).collect(), Picked::Contents(files) => files.into_iter().map(|(name, bytes)| (name, Some(bytes))).collect(), - Picked::Cancelled => return Err(crate::file_dialog::CANCELLED.into()), - Picked::Unavailable(why) => return Err(why), + Picked::Cancelled | Picked::Downloaded(_) => return Err(crate::file_dialog::CANCELLED.into()), + Picked::Unavailable(why) | Picked::Failed(why) => return Err(why), }; let count = files.len(); if count == 0 { diff --git a/crates/ui-egui/src/panels/actions/library.rs b/crates/ui-egui/src/panels/actions/library.rs index 4ec35ed0f8..3581b4a34d 100644 --- a/crates/ui-egui/src/panels/actions/library.rs +++ b/crates/ui-egui/src/panels/actions/library.rs @@ -124,8 +124,8 @@ pub(super) fn replace(app: &mut PhotocraftApp) -> Result { let (name, bytes) = files.into_iter().next().ok_or(crate::file_dialog::CANCELLED)?; (name, bytes, None) } - Picked::Cancelled => return Err(crate::file_dialog::CANCELLED.into()), - Picked::Unavailable(why) => return Err(why), + Picked::Cancelled | Picked::Downloaded(_) => return Err(crate::file_dialog::CANCELLED.into()), + Picked::Unavailable(why) | Picked::Failed(why) => return Err(why), }; if bytes.len() as u64 > MAX_PICKED_BYTES { return Err(tl!("The Actions file is too large.").into()); diff --git a/crates/ui-egui/src/prefs/prefs_ui/dialogs.rs b/crates/ui-egui/src/prefs/prefs_ui/dialogs.rs index 64a0727d53..58fd1ea579 100644 --- a/crates/ui-egui/src/prefs/prefs_ui/dialogs.rs +++ b/crates/ui-egui/src/prefs/prefs_ui/dialogs.rs @@ -14,7 +14,9 @@ use craft::ui::contract::Bind; use craft::ui::dialog::{DialogId, DialogResult, DialogStack, StackDialog, dialog_id}; #[cfg(test)] use craft::ui::patterns::preferences::PrefValue; -use craft::ui::patterns::preferences::{Closed, PageInfo, PreferencesModel, PreferencesState, PreferencesWindow, RowKind, SettingsDocument, StandardPage}; +use craft::ui::patterns::preferences::{ + Closed, PageInfo, PreferencesDraft, PreferencesModel, PreferencesState, PreferencesWindow, RowKind, SettingsDocument, StandardPage, +}; use craft::ui::runtime::env::{Words, WordsOverride, with_env}; use craft::ui::runtime::memory::SaveKey; use craft::ui::runtime::requests::ColorRequest; From 8477d24b13928542817ada0d959f138e3998778a Mon Sep 17 00:00:00 2001 From: David Mann Date: Fri, 20 Nov 2026 18:52:55 +0100 Subject: [PATCH 4/9] Turn on the craft-libs fixes the app opts into - Home screen: the rail's navigation (Home selected, Learn), the community links as its footer and the PhotoCraft title (home_layout). - Document scroll bars: document_chrome (wider bars, arrows, corner). - Save for Web: a typed width and height reach the export, replacing the percent; the ignored-slices notice shows, translatable. - Stroke's Width declares px; New Layer's Opacity shares the Mode row. Each with a test that fails without the change. --- crates/ui-egui/src/canvas/document_display.rs | 5 ++- crates/ui-egui/src/canvas/start_screen.rs | 19 ++++++-- .../ui-egui/src/canvas/start_screen/tests.rs | 44 +++++++++++++++++++ crates/ui-egui/src/dialogs/file_ui/tests.rs | 33 ++++++++++++++ crates/ui-egui/src/dialogs/file_ui/web.rs | 26 ++++++++++- crates/ui-egui/src/dialogs/new_layer_ui.rs | 26 ++++++++++- crates/ui-egui/src/dialogs/stroke_ui.rs | 4 +- crates/ui-egui/src/dialogs/stroke_ui/tests.rs | 9 ++++ 8 files changed, 157 insertions(+), 9 deletions(-) create mode 100644 crates/ui-egui/src/canvas/start_screen/tests.rs diff --git a/crates/ui-egui/src/canvas/document_display.rs b/crates/ui-egui/src/canvas/document_display.rs index a71a63affd..258ec27cdf 100644 --- a/crates/ui-egui/src/canvas/document_display.rs +++ b/crates/ui-egui/src/canvas/document_display.rs @@ -510,7 +510,10 @@ fn canvas_controls( if !app.ui.view.hides_chrome() { let size = app.session.documents()[host.idx].doc.size; let bounds = Rect64::from_origin_size(Point::ZERO, Size::new(f64::from(size.width), f64::from(size.height))); - CanvasScrollbars::new("Scroll bars", Bind::bound(&mut shown), bounds).overscroll(app.session.prefs().tools.overscroll).show_at(ui, rect); + CanvasScrollbars::new("Scroll bars", Bind::bound(&mut shown), bounds) + .overscroll(app.session.prefs().tools.overscroll) + .document_chrome() + .show_at(ui, rect); } if RotateView::visible(shown.rotation) { let mut rotation = shown.rotation; diff --git a/crates/ui-egui/src/canvas/start_screen.rs b/crates/ui-egui/src/canvas/start_screen.rs index e1229fa473..0199349d9e 100644 --- a/crates/ui-egui/src/canvas/start_screen.rs +++ b/crates/ui-egui/src/canvas/start_screen.rs @@ -21,11 +21,13 @@ pub(super) fn start_screen(app: &mut PhotocraftApp, ui: &mut egui::Ui) { // The source reads the app, so the page binds copies of the view and the sort and they are written back after. let (mut view, mut sort) = (app.ui.chrome.home_recent_view, app.ui.chrome.home_recent_sort); let links = links(); + let footer = footer_links(); let actions = { let source = crate::home_recent_ui::source(app, &ctx); StartScreen::new(Bind::bound(&mut view), Bind::bound(&mut sort), &recent) .thumbnails(&thumbs, &source) .links(&links[..]) + .home_layout(Label::from(crate::native_menu::APP_NAME), &footer[..]) .max_recent(HOME_RECENT) .drop_hint(Label::from(tl!("Drop an image or PSD anywhere to open it."))) .show(ui) @@ -60,11 +62,18 @@ fn reveal(app: &mut PhotocraftApp, path: &std::path::Path) { let _ = (app, path); } -/// The links of the Home rail: Home, which leaves Home for the open documents, then Learn and the community pages. -fn links() -> [StartLink; 5] { +/// The navigation of the Home rail: Home (the page shown, so selected), which leaves Home for the open documents, then +/// Learn. +fn links() -> [StartLink; 2] { [ - StartLink::command(tl!("Home"), Some(IconId::new("home")), "window.home"), + StartLink::command(tl!("Home"), Some(IconId::new("home")), "window.home").selected(true), StartLink::url(tl!("Learn"), Some(IconId::new("sparkles")), crate::links::TUTORIALS), + ] +} + +/// The community pages, at the bottom of the Home rail. +fn footer_links() -> [StartLink; 3] { + [ StartLink::url(tl!("Website"), Some(IconId::new("link")), crate::links::APP_PAGE), StartLink::url(tl!("Discord"), Some(IconId::new("globe")), crate::links::DISCORD), StartLink::url(tl!("GitHub"), Some(IconId::new("globe")), crate::links::GITHUB), @@ -82,3 +91,7 @@ pub(crate) fn toggle_home(app: &mut PhotocraftApp) { let up = app.ui.chrome.shows_home(documents, auto); app.ui.chrome.home = if up { None } else { Some(documents) }; } + +#[cfg(test)] +#[path = "start_screen/tests.rs"] +mod tests; diff --git a/crates/ui-egui/src/canvas/start_screen/tests.rs b/crates/ui-egui/src/canvas/start_screen/tests.rs new file mode 100644 index 0000000000..c60954e857 --- /dev/null +++ b/crates/ui-egui/src/canvas/start_screen/tests.rs @@ -0,0 +1,44 @@ +//! #15527: the Home screen uses the framework's Home layout, with Home and Learn in a left rail beside the content, +//! the community links at the bottom of that rail and the PhotoCraft title above the page. +use crate::PhotocraftApp; +use egui_kittest::Harness; +use egui_kittest::kittest::Queryable; + +type H = Harness<'static, Box>; + +const DROP_HINT: &str = "Drop an image or PSD anywhere to open it."; + +fn harness() -> H { + let app = PhotocraftApp::new(photocraft_engine::Session::new(), Default::default()); + let mut h = Harness::builder() + .with_size(egui::vec2(1100.0, 700.0)) + .with_max_steps(64) + .with_context(app.ctx().clone()) + .build_ui_state(|ui, app: &mut Box| super::start_screen(app, ui), app); + PhotocraftApp::setup_context(&h.ctx, Default::default()); + h.run_steps(4); + h +} + +/// The rectangle of the first node labelled `label`. +fn rect(h: &H, label: &str) -> egui::Rect { + h.query_all_by_label(label).next().unwrap_or_else(|| panic!("{label} is shown")).rect() +} + +#[test] +fn home_and_the_links_sit_in_a_rail_left_of_the_content_at_desktop_width() { + let h = harness(); + let hint = rect(&h, DROP_HINT); + let title = rect(&h, "PhotoCraft"); + for label in ["Home", "Learn", "Website", "Discord", "GitHub"] { + let link = rect(&h, label); + assert!(link.right() <= hint.left(), "{label} {link:?} must be in the rail left of the drop hint {hint:?}"); + assert!(link.right() <= title.left(), "{label} {link:?} must be left of the title {title:?}"); + } + assert!(rect(&h, "Home").bottom() <= rect(&h, "Learn").top(), "Learn follows Home"); + let middle = h.ctx.content_rect().center().y; + for label in ["Website", "Discord", "GitHub"] { + assert!(rect(&h, label).top() > middle, "{label} sits at the bottom of the rail"); + } + assert!(title.bottom() <= hint.top(), "the title is above the page"); +} diff --git a/crates/ui-egui/src/dialogs/file_ui/tests.rs b/crates/ui-egui/src/dialogs/file_ui/tests.rs index 59ded8cdff..a00d9402ba 100644 --- a/crates/ui-egui/src/dialogs/file_ui/tests.rs +++ b/crates/ui-egui/src/dialogs/file_ui/tests.rs @@ -389,6 +389,39 @@ fn save_for_web_width_keeps_proportions_and_sizes_the_file() { let _ = std::fs::remove_file(path); } +/// #15484: with Constrain Proportions off, a typed width and height both reach the file; the exact size replaces the +/// percent the dialog started with, and the document itself is never resized. +#[test] +fn save_for_web_unlinked_width_and_height_size_the_file() { + let mut app = app(); + let id = open_web(&mut app).expect("an open document"); + let revision = app.session.active().unwrap().revision; + set_option(&mut app, id, "format", json!(WebFormat::Png24)); + set_option(&mut app, id, "__constrain", json!(false)); + set_option(&mut app, id, "width", json!(90)); + set_option(&mut app, id, "height", json!(20)); + let path = std::env::temp_dir().join(format!("pc-webui-unlinked-{}.png", std::process::id())).to_string_lossy().into_owned(); + answer_path(&mut app, id, &path); + confirm(&mut app, id); + let written = photocraft_io::import("unlinked.png", &std::fs::read(&path).unwrap()).unwrap().document; + assert_eq!((written.size.width, written.size.height), (90, 20)); + let st = app.session.active().unwrap(); + assert_eq!((st.revision, st.doc.size), (revision, photocraft_doc::Size::new(120, 80))); + let _ = std::fs::remove_file(path); +} + +/// #15485: the panes get the ignored-slices notice only when the document has more slices than are resolved. +#[test] +fn save_for_web_warns_only_past_the_slice_limit() { + let mut doc = photocraft_doc::Document::new("slices", photocraft_doc::Size::new(8, 8), photocraft_doc::ColorMode::Rgb, photocraft_doc::SampleType::U8); + let slice = |i: usize| photocraft_doc::Slice { id: i as u32 + 1, rect: photocraft_doc::Rect::new(0, 0, 8, 8), ..Default::default() }; + doc.slices.list = (0..3).map(slice).collect(); + assert!(super::web::slice_warning(&doc).is_none(), "a few slices: no notice"); + doc.slices.list = (0..photocraft_doc::slices::MAX_RESOLVED_SLICES + 2).map(slice).collect(); + let warning = super::web::slice_warning(&doc).expect("past the limit: a notice"); + assert_eq!(warning.as_str(), "2 stored slices past the first 10000 were ignored"); +} + /// Reopened on another document, Save for Web starts at that document's full size again /// (#1857) but keeps the resampling method, like the other encoding choices. #[test] diff --git a/crates/ui-egui/src/dialogs/file_ui/web.rs b/crates/ui-egui/src/dialogs/file_ui/web.rs index 98dbe9031f..d0ae4c9f7c 100644 --- a/crates/ui-egui/src/dialogs/file_ui/web.rs +++ b/crates/ui-egui/src/dialogs/file_ui/web.rs @@ -10,6 +10,7 @@ use craft::ui::patterns::form_dialogs::{ Animation, ColorTable, Dither, HostedSaveForWeb, Resample, SaveForWebOptions, SaveForWebResult, WantedVariant, WebFormat, WebMetadata, WebPreset, WebSlice, WebSlices, WebVariant, }; +use craft::ui::runtime::env::Label; use egui::load::SizedTexture; use photocraft_engine::web_cmds::{self, WebSettings}; use serde_json::{Value, json}; @@ -130,7 +131,9 @@ pub(super) fn options_of(p: &Value) -> SaveForWebOptions { o } -/// The engine parameters of `o`. A document with slices adds the slice choice, its numbers and `html`. +/// The engine parameters of `o`. An exact size typed in the dialog (`o.size`, with Constrain Proportions on or off) is +/// sent as `width` and `height`, which replace `percent`. A document with slices adds the slice choice, its numbers and +/// `html`. pub(super) fn params_of(o: &SaveForWebOptions, has_slices: bool) -> Value { let mut p = json!({ "format": name_of(&WEB_FORMATS, o.format), @@ -152,6 +155,13 @@ pub(super) fn params_of(o: &SaveForWebOptions, has_slices: bool) -> Value { "resample": name_of(&RESAMPLES, o.resample), "webSnap": o.web_snap, }); + if let Some(size) = o.size { + if let Some(map) = p.as_object_mut() { + map.remove("percent"); + } + p["width"] = json!(size.width); + p["height"] = json!(size.height); + } if !o.palette_edits.is_empty() { p["colorTableEdits"] = Value::Object(o.palette_edits.iter().map(|(i, c)| (i.to_string(), json!(hex(*c)))).collect()); } @@ -249,13 +259,25 @@ pub fn open_web(app: &mut PhotocraftApp) -> Option { let mut dialog = HostedSaveForWeb::new(doc.name.clone(), PixelSize::new(doc.size.width, doc.size.height), original_texture(&ctx, &doc)) .options(options_of(&seed)) .presets(presets) - .slices(slices); + .slices(slices) + .slice_warning(slice_warning(&doc)); if let Some(t) = doc.timeline.as_ref().filter(|t| t.duration >= 2) { dialog = dialog.animation(Animation::new(t.duration as u32, t.fps)); } Some(app.framework.dialogs.open(dialog)) } +/// The notice under the preview captions when the document has more slices than are resolved (`overflow_warning`): +/// how many were ignored past the first [`photocraft_doc::slices::MAX_RESOLVED_SLICES`]. `None` otherwise. +pub(super) fn slice_warning(doc: &photocraft_doc::Document) -> Option