138 Commits
Author SHA1 Message Date
David MannandClaude Opus 5.5 d4c630df0e Integration: drop #14714 from the batch
The book's relative links to docs/mcp.md follow the branch they are read on;
pinning them to main would send readers of a fork, a branch or an older
release to the wrong version.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-22 03:31:31 +01:00
David Mann 157451e9dd Merge PR #14721: docs: link the existing private vulnerability reporting channel 2026-11-22 00:24:48 +01:00
David Mann 795b4e8342 Merge PR #14714: docs: keep MCP guide links valid in the built book 2026-11-22 00:24:43 +01:00
David Mann e0e1ab7de5 Merge PR #14706: docs: describe absolute automation paths within granted roots 2026-11-22 00:24:38 +01:00
David Mann 1af671c3d4 Merge PR #14705: docs: distinguish browser and desktop native-format limits 2026-11-22 00:24:33 +01:00
David Mann 6b73bfd0a6 Merge PR #14703: docs: describe control workers before authentication 2026-11-22 00:24:28 +01:00
David Mann fbe6b1e594 Merge PR #14691: docs: correct MCP switches and repeatable read-root guidance 2026-11-22 00:24:17 +01:00
FredApps 359051359f Merge pull request #14695 from MMexicann/patch-2
docs: point format README links at craft-libs
2026-11-20 10:01:20 +07:00
HankGrimm fc034940b8 Merge branch 'main' into docs/affinity-readme-links 2026-11-20 09:25:49 +08:00
Mex 6a7c2ccb92 Merge branch 'main' into patch-5 2026-11-18 21:28:05 +01: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
Mex b14675db8c Merge branch 'storytold:main' into patch-1 2026-11-15 20:48:51 +01:00
Mex 7b97f09b65 Merge branch 'storytold:main' into patch-4 2026-11-15 20:48:10 +01:00
Mex 206b6bc010 Merge branch 'storytold:main' into patch-6 2026-11-15 20:47:34 +01:00
Mex b51282da9c Merge branch 'storytold:main' into patch-10 2026-11-15 20:46:40 +01:00
Mex b9927e16c9 Merge branch 'storytold:main' into patch-12 2026-11-15 20:45:48 +01:00
Mex 1e2ba87f38 Merge branch 'storytold:main' into patch-2 2026-11-15 20:42:31 +01:00
Mex 299d237afa docs: align architecture overview with granted-root paths
Complete the existing absolute-path documentation correction in the architecture overview. Reused mdBook build and source-policy checks passed.
2026-11-15 14:54:59 +01:00
Dylan M. Taylor fd105cccc4 Pin hardlink write-over behavior in the workspace (#14833)
* io: assert the embedded-SVG depth boundary is blank

The deepest-chain test treated any Ok raster as an accepted chain. At MAX_EMBEDDED_SVG_DEPTH + 1 the bounded non-strict path intentionally omits the image and returns a transparent canvas, so the test asserted the opposite of the documented behavior. Check that the over-limit image is blank instead.

* automation: pin hardlink write-over behavior

A hardlink inside a granted root shares the inode of its other name, so reads can see that content. Document that a write-over atomically replaces the directory entry inside the root and leaves the other name untouched, with a Unix regression test.
2026-11-14 17:31:37 -05:00
Dylan M. Taylor d6557b9a8b docs: reflect the screenshot admission budgets in the security notes (#14780) 2026-11-14 14:33:10 -05:00
Mex 996b9a2a1e docs: qualify guarded Windows UNC path operations 2026-11-14 20:04:34 +01:00
Mex f97c6478d8 docs: pin PSD README to the locked dependency revision 2026-11-14 20:03:28 +01:00
Mex 9375a5f459 docs: pin codec README to the locked dependency revision 2026-11-14 20:03:03 +01:00
Mex e15b4445b8 docs: scope parent requirements to ordinary file writes 2026-11-14 19:36:13 +01:00
Mex fac4e45079 docs: align automation security with native path normalization 2026-11-14 19:35:33 +01:00
Mex 414febdf10 docs: distinguish absolute normalization from relative path syntax 2026-11-14 19:35:08 +01:00
Mex 3f19791f15 docs: use the private reporting channel in the security book
Updated vulnerability reporting guidelines to include GitHub's private vulnerability reporting feature and fallback instructions.
2026-11-14 19:00:51 +01:00
Mex e80af6383a docs: keep MCP guide links valid in the built book 2026-11-14 18:52:44 +01:00
Mex f107883f2b docs: clarify granted-root paths in automation security
Clarified automation path handling in security documentation.
2026-11-14 18:45:27 +01:00
Mex 3fa7e8d1ec docs: align secure file handling with scoped absolute paths
Clarified handling of remote automation paths and their validation against granted roots. Enhanced rejection criteria for absolute paths and escaping paths.
2026-11-14 18:44:46 +01:00
Mex 42d0d86431 docs: distinguish browser and desktop native-format limits
Updated load limits for desktop and browser in pcraft.md.
2026-11-14 18:44:44 +01:00
Mex ee3c9e8c7c docs: describe absolute paths inside automation roots
Clarify automation file methods and request path handling.
2026-11-14 18:43:57 +01:00
Mex 206b35c93d docs: describe control workers before authentication
Clarify the listener's behavior regarding active connections and authentication.
2026-11-14 18:41:40 +01:00
Mex 362c994adf docs: repair raster codec README link 2026-11-14 18:41:11 +01:00
Mex 938b4e067a docs: point PSD API guide to craft-libs 2026-11-14 18:34:41 +01:00
Mex 4ae6e4df37 docs: list repeatable read-root flags in CLI guide 2026-11-14 18:30:02 +01:00
Mex df6e324920 docs: correct MCP switches and repeated read roots
Clarified usage of launch options and their requirements.
2026-11-14 18:28:38 +01:00
HankGrimm 9a9f2b7840 docs: point the Affinity format-notes links at craft-libs
crates/affinity moved to craft-libs (8c7544ed); the README it linked to no longer exists in this repository.
2026-11-14 12:06:13 +08: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
David MannandClaude Opus 5.5 fcbc0a69f8 docs: tests and agents run mcp --headless
Plain `photocraft-cli mcp` now works in the open window while the ArtCraft
Launcher's agents switch is on, and may start PhotoCraft, also on a
developer's machine. AGENTS.md says scripts, tests and agent sessions pass
`--headless` (and tests give the CLI their own settings, launcher and flags
folders); the headless examples in docs/development.md, docs/mcp.md,
docs/control-protocol.md, the book and the README use it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-12 23:55:27 +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
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 09ad48fcee Keep the page named AI Integrations, not MCP
The Integrations page holds more than the agent connection: open PRs add the
AI services for Generative Fill and other AI features to it (#10903, #12391,
#7007). The menu item stays "AI Integrations…" and the page "Integrations", as
on main; messages and docs say Edit › Preferences › AI Integrations.
2026-11-12 15:38:51 +01:00
David Mann a16144256f Merge main into integration-mcp
# Conflicts:
#	docs/scorecard.md
2026-11-12 13:51:25 +01:00
David Mann a037e55a7f Merge pull request #9952 from ashokram-si/feat/jpeg-options-size-readout
JPEG Options: show how big the file will be (FILE-215-19, #7843)
2026-11-12 13:26:45 +01: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
David MannandClaude Opus 5.5 9ac35b7e76 Batch: CodeRabbit findings on the MCP connection
- Allow Agent Control off refuses the Preferences connection too, as it refuses --control.
- A connection that is on but failed to start (taken port) is tried again every 5 s.
- Listening::drop waits for the accept loop, so the port is free when it returns.
- The session's automation gate follows the live policy (actions agents record).
- The folder picker answers the Preferences dialog that opened it.
- One controlPort migration (engine::prefs::migrate_integrations) for the app, its launch
  read and photocraft-cli mcp --live.
- --live: a batch stops when the app changes under it; a waited job is cancelled where it
  started; the bridge is keyed by pid too.
- mcp --live ignores an exported PHOTOCRAFT_CONTROL_PORT and refuses --gpu/--no-gpu.
- Claude Code: add first, replace an existing entry only when it exists, and stop a
  `claude` that hangs after 20 s.
- Book: the token survives restarts; the challenge handshake, not the probe, protects it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-12 03:23:22 +01:00
David MannandClaude Opus 5.5 cd41d63394 Batch: Preferences page is "MCP"; Copy Prompt for an Agent
The page only holds the MCP connection, so Edit › Preferences › AI Integrations… is now
Edit › Preferences › MCP… (command id and the `integrations` preference keys unchanged).

Copy Prompt for an Agent puts a text on the clipboard that an agent with a terminal
(Claude Code, Codex, Cursor's agent) pastes to register `photocraft-cli mcp --live` itself
and check the connection; Claude Desktop has no terminal and keeps Add to Claude Desktop.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-12 02:56:45 +01:00