Commit Graph
760 Commits
Author SHA1 Message Date
David Mann 5744b2547f Merge PR #14726: fix(web): explain when JavaScript is disabled 2026-11-22 00:24:53 +01:00
David Mann 66fcded472 Merge PR #14699: web: allow browser zoom on both host pages 2026-11-22 00:24:23 +01:00
David MannandClaude Opus 5.5 779b20eeb0 Open Recent lists an automation open where the file is on disk (#16098)
app.open is requested by a path relative to the automation read root. It went
into Open Recent as is, where it names nothing: Home drew a blank card and
clicking it failed. The workspace now reports the file's location below the
root that holds it, and app.open (also the directory .pcraft path) lists that.
The document's save-back path stays root-relative; without a location the open
is not listed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-21 12:50:56 +01:00
David MannandClaude Opus 5.5 5d60d84b8e automation: create the default agent folder only when a direction uses it (#15974)
Same fix as craft-libs#2557 for the window side: with a flag or the
person's own folder covering every direction, the default was created
and never used.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-20 16:03:24 +01:00
David MannandClaude Opus 5.5 acc82659ea automation: default agent folder and the agent_folders MCP tool (#15974)
With Preferences > AI Integrations' folders empty, agents had no file
access, and the launcher starts `mcp` with no root flags.

- An empty folder setting named by no flag uses the shared default agent
  folder Documents/ArtCraft/Agents/PhotoCraft (craft-libs#2550), in the
  open window (agent link, --control) and in the live headless session.
- agent_folders tells the agent which folders it may use: the headless
  session's roots, or the open window's saved folders with the default.
- Pin craft-libs to bafb452 + the craft-libs#2550 commit until it reaches
  next.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-20 15:23:05 +01:00
FredAppsandFredApps abad0deaea Hold the normalized layer selection across engine reads (#15907)
* Hold ordered layer selection across reads

* Migrate UI and automation to the borrowed document selection

* Fix held selection migration diagnostics

* Preserve held selection for unchanged active layer

* Keep owned selection snapshots in engine tests

* Allow consuming a document state without cloning

* Preserve document ownership on close and capture export selection

* Migrate engine integration tests to held selection

* Keep isolate-layer test selection snapshot

* Read the active layer before editing the gradient test document

* Remove redundant selection slice borrows

---------

Co-authored-by: FredApps <[email protected]>
2026-11-20 18:11:54 +07:00
aiongg eb7fae1898 Merge pull request #15819 from aiongg/test-exit-deadline
control_exit_code: drop the in-test exit deadline
2026-11-19 18:16:54 -05:00
David Mann 6dacd20f38 Merge pull request #15763 from davidmann4/automation/shared-live-client
automation: the MCP CLI uses the shared live client (#15762)
2026-11-19 22:09:37 +01:00
aiongg 6749fc1bb2 control_exit_code: drop the in-test exit deadline 2026-11-19 20:19:44 +00:00
David Mann 47c5abbecd Merge #13714 into the merge queue batch
Batch: the error log is UTF-16 big-endian with Start Batch / End Batch and native paths (#13665)
2026-11-19 21:04:29 +01:00
David Mann 810f4cb7eb Merge origin/main into automation/shared-live-client
# Conflicts:
#	Cargo.lock
#	Cargo.toml
#	crates/engine/Cargo.toml
2026-11-19 17:40:46 +01:00
David MannandClaude Opus 5.5 32b6d22b2a automation: the MCP CLI uses the shared live client (#15762)
photocraft-cli mcp resolved each tool call with its own copy of the
"find the open window" client. craft-libs now ships that client for
every app (craft_control::agents::Live, re-exported as
craft::automation::agents::Live by craft-libs#2391), so live.rs keeps
only PhotoCraft's parts: reading its saved preferences, its bridge
client and its headless session. The app's AgentSwitch::watch takes a
plain closure now instead of craft_host::Wake.

The craft-libs pin is craft-libs#2391's head for now; it moves to the
merge commit on next once that lands.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-19 15:52:51 +01:00
aiongg c353bd0274 windows_delay_loads: read the exe path at run time, so a run from a nextest archive finds it 2026-11-19 06:34:17 +00:00
David MannandClaude Opus 5.5 d4797333de Tests: trim repeated solves and loops in engine and GPU tests (#15367)
- parity.rs: the two paging tests use a 660x580 document (3x3 pages, one interior cell)
  instead of 1100x900, and eviction runs 2 rounds; the residency tests that share the large
  document keep it. 16-bit runs only where the GPU reads the 16-bit upload (one effect stack,
  Dissolve and pattern cases). The disjoint-damage test paints 2 distinct series of 8 strokes
  and isolates its layers so strokes capture checkpoints, which makes its bytes assert able to
  fail. many_layers_submit_inside_one_chunk_paged is removed: its stats equal the whole test's.
- Coarse preview: drop an unchecked full-resolution solve; colour tests reuse solves and use
  Extend where Move only adds an unread fill.
- Crop fill eligibility is a unit test on additional_target; the integration test keeps 3 cases.
- PSD write oracle: one run with a passing and a failing case instead of two runs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-18 20:47:59 +01:00
FredApps 6bbe4cc1df fix(cli): retain typed errors through launch option validation 2026-11-18 07:04:49 -05:00
aiongg 8bc1e51260 Merge storytold main into main-gate-fixes 2026-11-18 11:06:37 +00:00
FredApps 9d57ea4b1c Merge pull request #15095 from yoriswind/codex/define-brush-visible-source-14271
Define brush presets from the visible document composite
2026-11-18 16:28:32 +07:00
aiongg d6ca99a146 Tests: the app lives in one Box, so test frames no longer hold copies of it
PhotocraftApp::new and with_context return Box<Self>, and the test harness
holds the Box (a forwarding eframe::App impl for Box<PhotocraftApp>). The 85 KiB
app was held by value in the test, its helper, build_app, build_eframe and
from_builder, all under the first egui pass. The 11 overflowing tests need
0.34-0.78 MiB of stack instead of 1.7-2.0 MiB (mask_click 2032 -> 748 KiB,
navigator_gpu 1956 -> 760, native_tests 1848 -> 748, keys_run 1708 -> 776).
The 8 MiB test thread for the Type Mask click test is removed.
2026-11-18 07:11:02 +00:00
Dylan M. Taylor b4c6ef3814 fix(web): retain verified runtime fonts across UI rebuilds 2026-11-17 15:49:24 -05:00
aiongg 1d490ea99a Web app: the brush-preset warning takes a notice Tone, and served_fonts::install no longer takes the context 2026-11-17 17:46:50 +00: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
yoriswind 4f0cbe7477 Format compositor test placement 2026-11-16 01:57:45 -08:00
yoriswind 47eaef2f51 Use explicit preset-store imports in the Web bridge 2026-11-16 01:52:40 -08:00
Dylan M. Taylor 51e8a99bf0 Merge pull request #8455 from Higgs32584/fix/8272-delayload-prntvpt
Windows: PhotoCraft starts without prntvpt.dll (#8272)
2026-11-15 18:23:32 -05:00
Trevor BrownandClaude Opus 5.5 61dc2216c6 Merge storytold/photocraft main (d547d50c7) into fix/batch-log-format-13665
Picks up main's fix for the assign_shortcut test and the Cargo.lock order (#15196), so CI runs on a green base.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Model-Effort: Opus 5.5 driver, no subagent
2026-11-15 15:36:34 -05:00
David Mann 0362120fc4 Merge pull request #11674 from yoriswind/codex/actions-library-commands-10706
Add Clear All, Reset, and Replace Actions to the Classic panel
2026-11-15 16:53:01 +01:00
Trevor BrownandClaude Opus 5.5 04f04499ef Merge storytold/photocraft main (5bdbcc118) into fix/batch-log-format-13665
Picks up main's CI fixes (#14595), so CI runs on a green base.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Model-Effort: Opus 5.5 driver, no subagent
2026-11-15 08:35:57 -05:00
yoriswind dc69bb6e1e Merge current main to repair inherited Classic CI failures
Retain the Classic Actions feature unchanged and incorporate official main fixes for workspace write policy, Format persistence, RAW fixtures and SVG resource accounting. No manual merge resolution.
2026-11-15 05:04:53 -08:00
Dylan M. Taylor b675880b35 Format shared Base64 monitor-profile call 2026-11-15 12:02:29 +00:00
Dylan M. Taylor 3bae275d0a Refresh Base64 codec removal and retain plugin alphabet compatibility 2026-11-15 11:54:15 +00: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
Mex ecc766d199 fix(web): keep the boot host no-script fallback in sync
Added a noscript section to inform users about JavaScript requirements.
2026-11-14 19:08:25 +01:00
Mex 52128c4e7c fix(web): explain when JavaScript is disabled
Added a noscript section to inform users that JavaScript is required for PhotoCraft to function properly.
2026-11-14 19:07:10 +01:00
Mex d550b9458f web: allow browser zoom in the packaged host 2026-11-14 18:39:29 +01:00
Mex c37ba78a45 Update viewport meta tag for initial scale 2026-11-14 18:37:06 +01:00
yoriswind 2b3aa8de44 Merge main into Classic Actions library commands 2026-11-13 21:27:41 -08: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
Trevor BrownandClaude Opus 5.5 24d1044ff9 Merge upstream/main into fix/batch-log-format-13665
crates/engine/src/cmd/file_cmds.rs: both test modules kept (this PR's batch_log_format_tests and main's export_clut_cube_header_tests). file_cmds: 219 passed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-13 14:50:57 -05:00
Trevor BrownandClaude Sonnet 5.5 23827b9285 Batch: the error log is UTF-16 big-endian with Start Batch / End Batch and native paths (#13665)
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Model-Effort: Opus 5.5 drove; Fable 5.2 queued; Opus 5.5 briefed; Sonnet 5.5 wrote at medium
2026-11-13 06:38:35 -05:00
David MannandClaude Opus 5.5 dbd2cd1628 fix(mcp): plain mcp stays headless without the AI-MCP flag; integrations read leniently
- Without the AI-MCP flag plain `photocraft-cli mcp` is headless as before: a
  Control Port saved before the agents switch no longer makes it look for the
  app, start it or apply When PhotoCraft Is Closed. Test in
  mcp_without_consent_works_headless (fails without the gate).
- `prefs::read_integrations_section` (migrate + lenient read) is shared by the
  app's launch read and `photocraft-cli mcp`: one bad value resets only itself,
  so a saved "error" closed-app choice no longer falls back to Launch in the CLI.
  Replaces the app's hand-written per-field reader. Test in
  integrations_come_from_the_saved_preferences_or_default (fails without it).
- docs/development.md: the headless client examples pass --headless.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-13 12:36:22 +01:00
David MannandClaude Opus 5.5 6c53064e9b Drop the unused Command import in the malloc tuning test
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-13 02:04:48 +01: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
yoriswind b86c536216 Merge main and repair Actions library test imports 2026-11-12 13:22:38 -08:00
David MannandClaude Opus 5.5 113bec48cb test(cli): mcp --live test keeps the machine's launcher switch out
The test expects agents off, but `mcp --live` now also accepts the ArtCraft
Launcher's switch, read from the real per-user folder: on a machine with the
launcher's agents on it failed. It points CRAFT_MCP_DIR at its own folder.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-12 22:20:13 +01:00
David Mann c9d9b28697 Merge remote-tracking branch 'origin/main' into integration-mcp 2026-11-12 22:12:39 +01:00
RickiNano e660b4906b Clear the clippy 1.100 lints that fail the gate on main (#13531) (#13535)
* Clear the clippy 1.100 lints that fail the gate on main (#13531)

Clippy 1.100.0 flags needless_range_loop in cms synth.rs (the gate
failure on main), algo photo_util.rs and an engine multichannel test,
and, on Windows only, needless_bool in format noreplace.rs, where the
cfg(unix) branch compiles away. Each loop now iterates the slice it
indexed, with the same values in the same order.

* Clear the Linux-only clippy 1.100 needless_bool lints (#13531)

paths_match in ui-egui and is_redirect in the app ended with a
cfg(not(windows)) branch that is just `false`, which clippy 1.100
flags on Linux. Each platform's branch now returns the whole
comparison: the same results, in the same order.
2026-11-12 14:56:57 -06:00
yoriswind 7ddbfaa474 Merge current main into Classic Actions commands
Resolve public occurrence identity and main playback budgets, nested Batch context and Pen history together. Migrate the deleted local parser to main shared API while preserving public legacy-suffix refusal. No unpublished behavior fixes or local gate runs.
2026-11-12 11:39:06 -08:00
David MannandClaude Opus 5.5 d3a0166eeb Client setup moves to the ArtCraft Launcher
The launcher's Settings > AI agents adds one entry for every Craft app to
Claude Desktop, Claude Code, Cursor and LM Studio (craft-launcher#1432), so
PhotoCraft's page drops its Add to Claude Desktop / Claude Code / Cursor and
Copy Prompt for an Agent buttons. Copy Configuration stays for people
without the launcher, and so does `photocraft-cli mcp install --client`.
Docs, README and the AUTO-MCP-LIVE scorecard row follow.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-12 20:07:08 +01:00
David MannandClaude Opus 5.5 d0f01a515e The ArtCraft Launcher's agents switch lets agents in
Turning on ArtCraft Launcher > Settings > AI agents is the person's consent
for every Craft app (craft-ai-integrations#195). While the AI-MCP flag is on
and the launcher's app list (ArtCraft/mcp/apps.json) names photocraft,
PhotoCraft accepts agents as if Let AI agents connect were ticked: the
desktop app watches those files every 2 s and starts or stops the
connection, and `mcp --live` checks them before every call. The page shows
the box ticked and says the launcher turned it on; PhotoCraft's own choice
is kept. Allow Agent Control off still refuses agents.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-12 20:02:54 +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