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)