Commit Graph
157 Commits
Author SHA1 Message Date
Dylan M. Taylor 3c3976e4b9 Merge current main while preserving shared annotation codec 2026-11-15 14:13:07 -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 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 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 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
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
Dylan M. Taylor 27f32c75f6 Pin craft-cms to craft-libs main (628a235a, the merge of storytold/craft-libs#858) 2026-11-11 23:46:42 +00:00
Dylan M. Taylor fd943c466b Merge main into photo-cms-port; pin craft-cms to the head of storytold/craft-libs#858
main's one change to crates/cms since (#11055, the per-profile CLUT budget) is
already in craft-cms (storytold/craft-libs#815).
2026-11-11 23:18:18 +00:00
FredAppsandFredApps 8a909b2673 Release: PhotoCraft v0.23.0 on main (#13345)
Co-authored-by: FredApps <[email protected]>
2026-11-11 20:54:32 +01:00
Dylan M. Taylor d33e704875 Merge main into photo-cms-port 2026-11-11 19:42:19 +00:00
Dylan M. Taylor 2b75a0092d Use craft-cms from craft-libs; remove crates/cms
craft-cms was extracted from crates/cms (storytold/craft-libs#779), and both
copies changed afterwards. storytold/craft-libs#PRNUM ports the 41 commits made
here since the extraction, so the shared crate now has everything this copy
had, and PhotoCraft depends on it.

craft-cms returns errors where the local crate panicked on caller input:
transforms, tables and LUT constructors return Result. Call sites propagate
the error where the function already returns one, and fall back where the
arguments are fixed by construction (each with a comment saying why).
Lut3d's fields are private there; the proof and HDR display table is built
with Lut3d::from_fn.

The pin is the head of the craft-libs branch and moves to main when that
pull request merges.
2026-11-11 19:41:51 +00:00
Dylan M. Taylor 8452ec9bde Updates: take craft-update from craft-libs main at 6e03f65bf 2026-11-11 12:53:01 -05:00
Dylan M. Taylor 5d4b68f04c Use craft-heif from craft-libs for HEIC/HEIF (#13076)
* Use craft-heif from craft-libs; remove crates/heif

PhotoCraft's HEIF decoder had drifted from LightCraft's by about 700 lines;
both now use craft-heif (storytold/craft-libs#784), built from LightCraft's
copy. HEIC colours now follow the HEVC VUI's range and matrix and libheif's
chroma upsampling. 8-bit files still open as 8-bit documents; a colour
description the VUI specifies now tags the image as an nclx did.

The codecs -> heif standalone exception ends with the local crate, and the
HEIF nextest step drops -p photocraft-heif, which no longer exists.

* Pin craft-heif to the merge of storytold/craft-libs#794

* heif: count the decoder's 16-bit buffer against max_alloc

* heif: match Apple's chroma upsampling; pin craft-heif to storytold/craft-libs#799

* heif: free the decoder's buffer before the HDR conversion and count that conversion's peak

* heif: hold the canvas the decoder really allocates to max_alloc
2026-11-11 01:59:37 -05:00
Martin BallandClaude Opus 5.5 60cc5c14f7 build: craft-i18n crate at craft-libs 1b34eba, with the rest of craft-libs
Main moved craft-libs to 1b34eba (a descendant of c5a1cbf); Cargo.lock
already resolves craft-i18n there, so the direct dependency follows.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-09 07:49:52 +00:00
Martin BallandClaude Opus 5.5 8d8fb69d6d Merge origin/main (d06ad7327, #12403 RAW Develop) into craft-i18n-cutover
Keeps the TSV deletions. The Hindi and RAW Develop catalog tests read the
embedded craft-i18n catalogs behind needs_catalogs(); display_names scans
CRAFT_I18N_DIR's locales/*/photocraft.tsv instead of the deleted src/i18n.
Pins craft-i18n 31d158f (storytold/craft-i18n#216 head, the #12403 top-up)
until #216 merges.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-09 07:38:51 +00:00
dotCooCoo 2ea37fc849 Updates: take craft-update from craft-libs main at 1b34eba41 2026-11-08 19:44:03 -08:00
dotCooCoo d92aab7b79 Updates: the updater reports installing, ready, installed and failed, and installs at exit
Move the craft-libs crates pinned at c5a1cbfb (craft-ui, craft-print,
craft-pdf, craft-docpath, craft-jpeg, craft-update and the hayro patches)
to a craft-libs branch that merges storytold/craft-libs#687 and #696.
craft-pcraft-format stays at b8f7d93b.

- At the first frame, the result window shows what the last self-update
  came to: the version it installed, or why it could not be installed.
  A new `Services::last_update` reads the outcome records once; a manual
  check made before that frame leaves them for the next start.
- A manual check that finds a release while an update installs or waits
  for the app to close, or while the launcher keeps this version, shows
  Installing, Ready (with Restart to Update) or the launcher's choice.
- Closing the result window clears the updater's status and the last
  update's outcome. The window comes back after the startup prompt
  closes while that outcome is still unread.
- The update helper starts when the app drops the updater at exit.
2026-11-08 09:22:02 -08:00
Martin BallandClaude Opus 5.5 0c628208b5 build(i18n): embed the craft-i18n catalogs pinned in craft-i18n.rev
- `craft-i18n` crate (craft-libs c5a1cbfb, PhotoCraft's existing pin; already in the tree through
  craft-ui) as a ui-egui dependency.
- build.rs writes `CRAFT_I18N` from `CRAFT_I18N_DIR`: one (locale, common.tsv, photocraft.tsv)
  entry per locale with a PhotoCraft catalog, paths written with `{:?}` and never canonicalized.
  Unset: empty, English only; `CRAFT_I18N_REQUIRED=1` makes a missing checkout an error.
- `craft-i18n.rev` pins storytold/craft-i18n 4bafe3ed (the cutover sync of photocraft@848fa30),
  LF through `.gitattributes`.
- Both flatpak manifests fetch craft-i18n at that commit; the source build sets `CRAFT_I18N_DIR`
  and `CRAFT_I18N_REQUIRED=1`. A test keeps both manifests equal to the pin.
- ci.yml: the Windows, without-heif and web jobs check out craft-i18n at the pin, as the shared
  gate and release workflows do; a pin bump selects the web and Windows jobs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-08 16:16:46 +00:00
Triwarr ca92d936c0 PDF: import raster pages through craft-pdf instead of PDFium
- craft-pdf (the shared Rust/Hayro reader in craft-libs, rev c5a1cbf) renders each page; no shared library is loaded or shipped, and every desktop platform works.
- Raster pages only: editable text/vector import and the pdf_text/pdf_vectors options are removed (they can return later through craft-pdf's interpret device). Page geometry, artboards, page range, budgets, cancellation and warnings are kept; the effective DPI now respects craft-pdf's 8192 px side and 64M px page limits.
- Drops pdfium-render, the PDFium download in CI, the build-script copy and the packaging/licence staging; records the Hayro/fonts/CMaps/ICC assets in ATTRIBUTION.md and NOTICE.
- \.ai\ files starting with %PDF- now take the PDF importer, matching the comment.
- Attribution, architecture and file-format-parity docs updated.
2026-11-07 19:41:22 +01:00
Brandon ThomasandClaude Opus 5.5 327c4cc82e Release 0.20.1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-02 19:47:05 -05:00
Brandon ThomasandClaude Opus 5.5 24d4f4db9f Release 0.20.0
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-02 19:27:12 -05:00