Commit Graph
172 Commits
Author SHA1 Message Date
FredApps 7cbc2b85e3 Build the craft UI framework below opt-level 2 in test builds (#15565)
* Build the craft UI framework at craft-libs' optimization levels in test builds

The test profile compiled the craft facade and its framework crates at the
opt-level 2 of package."*", serialised in front of every PhotoCraft crate
that uses craft. Build them at 0 (1 for the crates with per-frame or per-pixel
code), as craft-libs does. Test-profile build on 8 cores: 34m53s -> 21m32s.

* Build the framework at opt-level 1, not 0, in test builds

At opt-level 0 the framework's stack frames overflowed the 2 MiB test-thread
stack in ten more photocraft-ui-egui tests on the Windows runner
(0xc00000fd). Level 1 still shares generic instantiations across crates.

* Build the framework's panels, tools and services at opt-level 0 in test builds

At opt-level 1 throughout, the Windows unit leg still built for 67 minutes.
The runtime every frame passes through keeps level 1, so its stack frames
stay small; the panels, tools and services around it, most of the
framework's compile time, build at 0.

* Wrap the test-profile comment
2026-11-18 14:13:03 +07:00
aiongg ed14e1c413 PhotoCraft on the craft UI framework (#15449)
PhotoCraft's UI moves onto the shared craft UI framework in storytold/craft-libs (next branch): shell, dock and panels, hosted dialogs, keyboard, focus, IME and pointer routing, the canvas's view commands, themes and tokens. The engine, document model, file formats, commands and automation stay. PhotoCraft pins storytold/craft-libs next.
2026-11-17 10:41:35 -05:00
FredApps a94e84dd8d text: take the TySh envelope from craft-psd (#778)
parse_tysh/write_tysh/translate_tysh/transform_is_safe become adapters over
craft_psd::text::envelope (extracted from here in craft-libs#1594); only the
Affine <-> [f64; 6] mapping stays. write_tysh/build_tysh return Option: a block
the shared writer refuses (unsafe transform, non-finite bounds, > 8 MiB) is not
written, and export falls back to pixels with its existing warning. craft-psd
re-pinned to craft-libs main eafb50af (additions only in crates/psd).
2026-11-16 12:35:11 +01:00
FredApps e8531bbfd9 Merge main into codex/raw-adapter-safety
Keep main's newer craft-psd (2284a6bf) and craft-cms (c6eb84d4) pins;
keep this branch's unified fe6b443a pins elsewhere (newer than main's
ad8faa1c). Cargo.lock regenerated from main's lock.
2026-11-16 07:04:22 +01:00
Dylan M. Taylor 99657bbbf5 Merge pull request #15148 from storytold/refactor/shared-psd-annotations
io: cut PSD annotation records over to shared codec
2026-11-15 20:12:25 -05:00
Dylan M. Taylor 3c3976e4b9 Merge current main while preserving shared annotation codec 2026-11-15 14:13:07 -05:00
Dylan M. Taylor c4be7f2a8e Merge main including corrected artboard order regression test 2026-11-15 12:18:51 -05:00
Dylan M. Taylor a9785d7d3f Merge latest main preserving independent format cutovers 2026-11-15 11:59:23 -05:00
Dylan M. Taylor e847761ce9 Integrate main while preserving SVG resource and RAW safety guards 2026-11-15 11:37:06 -05:00
Dylan M. Taylor 3713b02f78 Merge pull request #15125 from storytold/dot/photo-plist-shared
Use shared binary plist lookup for macOS locale
2026-11-15 10:56:32 -05:00
Dylan M. Taylor 0ef7dd7daf Merge main and pin merged shared CUBE writer 2026-11-15 10:13:55 -05:00
Dylan M. Taylor 57c79bc82f Merge pull request #15100 from storytold/refactor/linked-shared-records
io: cut PSD linked-record parsing and editing over to craft-psd
2026-11-15 09:50:43 -05:00
Dylan M. Taylor db0ff2778e io: delegate PSD annotations to shared bounded codec 2026-11-15 09:27:42 -05:00
Dylan M. Taylor eb5e7d9539 merge: refresh CUBE cutover with current adapters and shared writer 2026-11-15 09:22:55 -05:00
Dylan M. Taylor a7cae622cd merge: retain latest main adapters with shared linked records 2026-11-15 08:54:27 -05:00
Dylan M. Taylor 47711b08b9 deps: pin shared PSD linked records to merged revision 2026-11-15 08:51:17 -05:00
Dylan M. Taylor eb758cc2c4 Refresh shared EXIF cutover with current PhotoCraft format fixes 2026-11-15 13:08:02 +00:00
Dylan M. Taylor 1d2074889e Replace local camera EXIF reader and writer with craft-metadata 2026-11-15 12:19:19 +00:00
Dylan M. Taylor 210d6da818 engine: stream baked LUT rows without an extra RGB allocation 2026-11-15 06:50:14 -05:00
Dylan M. Taylor 298caecc03 engine: delegate CUBE serialization to craft-cms
Retain composition and document depth policy; shared writer owns annotated header and precision. Preserve Trevor Brown original exporter behavior and existing header/quantization regressions.
2026-11-15 06:41:37 -05:00
Dylan M. Taylor e82d037eb4 build: adopt reviewed shared SVG omission accounting 2026-11-15 06:40:39 -05:00
Dylan M. Taylor 3236696848 deps: narrow linked-record cutover to craft-psd only 2026-11-15 06:30:32 -05:00
Dylan M. Taylor d94f9701af io: remove local PSD linked parsing and editing in favor of craft-psd 2026-11-15 06:26:19 -05:00
FredApps 2f20c51f91 deps: pin merged format adapter safety fixes 2026-11-15 06:21:09 +01:00
Terra854 1d45e64051 Adopt the published shared-adapter merge 2026-11-15 12:45:47 +08:00
Terra854 926779cd2f Preserve RAW calibration, decoder notices and bounded admission 2026-11-15 12:00:01 +08:00
FredApps fa8228698b Merge current main; retain strict SVG depth boundary regression 2026-11-15 01:46:11 +01:00
FredApps 50ceabe439 fix(io): reject decoded SVG budget overflow with corrected codecs 2026-11-15 01:41:54 +01:00
Dylan M. Taylor 6297515031 chore: cut over remaining resvg and roxmltree usages to craft-svg and craft-xml (#14320)
* chore: cut over remaining resvg and roxmltree usages to craft-svg and craft-xml

* Cut over remaining photocraft-io TIFF tests, rawinfo example, and move exr to dev-dependencies

* chore: remove unused zune-jpeg workspace dependency

* style: cargo fmt
2026-11-14 13:49:42 -05:00
David MannandClaude Opus 5.5 82fe7a4818 Pin craft-libs to craft-libs#1300: directory saves collect leftovers best effort after the manifest commit
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-14 15:49:55 +01:00
Dylan M. Taylor b0e0bcc6c4 Merge pull request #14236 from storytold/codex/photocraft-format-migration
Move remaining file formats and codecs to craft-libs (#778)
2026-11-13 23:03:16 -05:00
Dylan M. Taylor 8c7544ed2a Use craft-affinity from craft-libs; remove crates/affinity 2026-11-14 00:16:50 +00:00
Dylan M. Taylor 040962a5b4 Merge photo-cms-port: use craft-cms and remove crates/cms (#13393) 2026-11-14 00:02:22 +00:00
Dylan M. Taylor 8e78a9c1fe Merge switch-craft-svg: use craft-svg for SVG sniffing, SVGZ and draw-memory check (#13417) 2026-11-13 23:59:37 +00:00
Dylan M. Taylor 8f5aad2360 Merge switch-craft-kra-ora-xcf: use craft-kra, craft-ora, craft-xcf and craft-pdn (#13415) 2026-11-13 23:55:49 +00:00
David MannandClaude Opus 5.5 fd626999fc One switch for agents, in the ArtCraft Launcher; plain mcp works in the open app
As agreed in craft-ai-integrations#195: one switch for every Craft app, in
the launcher; only the launcher writes MCP client configurations; plain
`<app>-cli mcp` works in the open app.

- Consent: with the AI-MCP flag, the launcher's switch alone decides,
  read through `craft-ai-agents` (craft-ai-integrations#197), the crate the
  launcher writes the app list with and the gateway reads it with. The
  "Let AI agents connect" box is gone; without the flag everything is as on
  main (a saved Control Port keeps its connection).
- `photocraft-cli mcp`: works in the open window while agents may use it
  (what `--live` did), and headless otherwise, exactly as before (only the
  roots given to it; the app is never started). `--headless` forces that;
  `--bridge` / PHOTOCRAFT_CONTROL_PORT as before. `--live` and `mcp install`
  are gone. Several read roots work again, invalid roots stop the start, and
  `--gpu` applies to the headless session.
- Client setup is the launcher's: the client code (Claude Desktop, Claude
  Code, Cursor, JSON), Copy Configuration, its service and its docs are
  removed (about 740 lines net).
- CLI tests run with their own settings, launcher and flags folders: plain
  `mcp` would otherwise find (or start) the developer's own PhotoCraft.
- Docs, book, README, scorecard row, packaging comments follow.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-12 23:41:14 +01:00
David Mann 17337739fb build: pin craft-flags to its merge in craft-libs (86d6e8c5) 2026-11-12 16:14:27 +01:00
David Mann 1a63521c8b The agent settings wait for the suite's AI-MCP feature flag
Preferences › AI Integrations shows the new agent settings (Let AI agents
connect, the agent folders, When PhotoCraft is closed, the buttons that add
PhotoCraft to MCP clients) only while the Craft suite's AI-MCP feature flag is
on (craft-flags, storytold/craft-libs#1118: ArtCraft/flags.toml, which the
ArtCraft Launcher's Experimental features switch writes, or CRAFT_FLAGS).
Without it the page shows Allow Agent Control and Control Port as before, and
a Control Port already set keeps its connection.

craft-flags is pinned to the head of storytold/craft-libs#1119 until it merges.
2026-11-12 16:02:23 +01:00
Dylan M. Taylor 5092e62512 Merge remote-tracking branch 'origin/main' into switch-craft-svg
# Conflicts:
#	Cargo.lock
2026-11-12 07:55:24 +00:00
Dylan M. Taylor 8f780afad2 Merge remote-tracking branch 'origin/main' into switch-craft-kra-ora-xcf
# Conflicts:
#	Cargo.lock
2026-11-12 07:54:52 +00:00
Dylan M. Taylor 74330157cb Use craft-psd for PSD/PSB format code (#13414)
* Use craft-psd from craft-libs; remove crates/psd

* Regenerate the scorecard (28 crate roots)

* Take craft-psd at craft-libs 55d120f2

* Regenerate lockfile for current shared format crates

* Pin shared format crates to current craft-libs main

* Match brush import cap to shared decoder budget

* xtask: update layer fixtures after PSD extraction
2026-11-12 02:53:54 -05:00
Dylan M. Taylor e7ed2c3bac Merge remote-tracking branch 'origin/main' into switch-craft-svg
# Conflicts:
#	Cargo.lock
#	Cargo.toml
2026-11-12 06:48:18 +00:00
Dylan M. Taylor 66e204d45c Merge remote-tracking branch 'origin/main' into switch-craft-kra-ora-xcf
# Conflicts:
#	Cargo.toml
2026-11-12 06:46:43 +00:00
Dylan M. Taylor 21bb9fda63 Use shared crates for raster codecs (#13416)
* Use craft-raster-codecs, craft-dpx, craft-tga, craft-gif and craft-exr for the format code in crates/codecs

* Regenerate lockfile for current shared format crates

* Pin shared format crates to current craft-libs main

* Fix codec module imports for clippy
2026-11-12 01:29:33 -05:00
Dylan M. Taylor 8e35d0c3fb Pin shared format crates to current craft-libs main 2026-11-12 04:56:39 +00:00
Dylan M. Taylor 8bdc12a1c9 Pin shared format crates to current craft-libs main 2026-11-12 04:56:34 +00:00
Dylan M. Taylor d7f3793b63 Use craft-kra, craft-ora, craft-xcf and craft-pdn from craft-libs for the format code 2026-11-12 04:51:45 +00:00
Dylan M. Taylor 0df1c7628e Use craft-svg for SVG sniffing, SVGZ and the draw-memory check; resvg 0.48 2026-11-12 04:51:45 +00:00
Dylan M. Taylor eee667f1d9 Fix Flatpak updates and bump to 0.23.1 (#13322)
* fix(flatpak): allow release checks and self-update helpers

* test: keep Flatpak permission parsing within strict Clippy rules

* chore: bump version to 0.22.1 for the Flatpak update fix

* test: assert paint operations succeed with fallible APIs
2026-11-11 21:30:36 -05:00
Dylan M. Taylor 2f6719c703 Pin craft-cms to craft-libs main at eadfaf85 (the merge of storytold/craft-libs#860)
It adds the LUT parsing fixes from open PhotoCraft pull requests and
GamutCheck::mask_rgba to what 628a235a had.
2026-11-12 00:58:01 +00:00