Commit Graph
12508 Commits
Author SHA1 Message Date
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 1e3eae08cb test(automation): the fake claude removes its entry with a full path to rm
The test runs the fake `claude` with PATH set to its own folder and an empty
one, so the script's external `rm` was not found: `mcp remove` exited 0 without
removing anything, and the following `add` failed with "already exists". This,
not a busy executable, is why the test failed on Linux. Builtins (printf, [, :)
were unaffected.
2026-11-12 14:41:20 +01:00
David Mann 466f010a58 fix(automation): Claude Code install says when the older entry could not be removed
`install_claude_code` ignored the result of `claude mcp remove`, so a failed
remove (on CI, a freshly written script briefly busy) led to a second
"already exists" and an error claiming the entry had been removed. It now
reports the failed remove with the command to run instead, and the test
covers it.

Also the CLI tests for the new `mcp install` subcommand: a stray word after
`mcp` is an unrecognized subcommand, and it has its own man page.
2026-11-12 13:58:43 +01:00
David Mann a16144256f Merge main into integration-mcp
# Conflicts:
#	docs/scorecard.md
2026-11-12 13:51:25 +01:00
David Mann bc778cf4af Merge pull request #13442 from wanikhawar/fix/ellipse-path-menus-13235
Shape tools: Path operations, alignment and arrangement menus
2026-11-12 13:28:08 +01:00
David Mann 1f0bd2f807 Merge pull request #13179 from TrevorBrown-dev/feat/anchor-tools-path-menu-12771
Delete Anchor Point and Convert Point: right-click opens the path menu with the point's entry on top (#12771, #12744)
2026-11-12 13:27:56 +01:00
David Mann 7890f7d6c3 Merge pull request #13352 from RickiNano/fix/13336-rect-radius-range
Rectangle tool: Radius takes 0-150000 px and alerts past it (#13336)
2026-11-12 13:27:44 +01:00
David Mann 4901167120 Merge pull request #13081 from TrevorBrown-dev/fix/delete-anchor-drag-segment-12767
Delete Anchor Point: dragging a segment moves it, as Direct Selection does (#12767)
2026-11-12 13:27:33 +01:00
David Mann e0ad19b0f8 Merge pull request #12235 from hectorviov/fix/perspective-crop-cursors
Perspective Crop: hover cursors say what a press does
2026-11-12 13:27:21 +01:00
David Mann 2b7977accb Merge pull request #9301 from DuBearte/feat/9269-black-white-auto
feat: Black & White Auto (#9269)
2026-11-12 13:27:10 +01:00
David Mann e165933772 Merge pull request #12430 from ljkx/atn-fit-image
Actions: map File › Automate › Fit Image (#10723)
2026-11-12 13:26:58 +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
Khawar Zamman Wani 23a0772776 Custom Shape: refuse an operation for a shape that can't be one component
Its parts would all take the operation and change the shape.
2026-11-12 15:39:41 +05:30
ljkx da6f09ce70 docs/atn.md: Fit Image leaves a fitting document unchanged only with limit (Don't Enlarge) 2026-11-12 11:03:28 +01:00
Khawar Zamman Wani 4b16507738 Custom Shape: an operation adds the shape to the active shape layer
shape.create with addTo keeps a component's joined subpaths (holes)
joined, so a custom shape's hole doesn't become a component of its own.
2026-11-12 14:30:25 +05:30
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
Khawar Zamman Wani cc06433f0a Path mode's default Exclude in the custom-shape test; use layer.new.layer 2026-11-12 13:09:59 +05:30
Khawar Zamman Wani 5b5e706f90 Use craft_ui::ComboBox and Id::unique in Path alignment; fix test lifetime 2026-11-12 12:12:16 +05:30
Trevor Brown 5ec4790a8b Merge remote-tracking branch 'upstream/main' into feat/anchor-tools-path-menu-12771 2026-11-12 01:38:51 -05: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
Khawar Zamman Wani 5bfab0f449 Shape tools: Path operations, alignment and arrangement menus (#13235)
The shape tools' options bar gets Path operations, Path alignment and
Path arrangement after the shape options. The operation is the shape
tools' own setting (New Layer by default, Exclude in Path mode); any
other operation adds the next drag to the active shape layer with
shape.create addTo and op. Reset Tool restores New Layer. Alignment
and arrangement entries stay greyed until the engine can move path
components.
2026-11-12 11:41:46 +05:30
RickiNano 9c85072b0d Merge remote-tracking branch 'origin/main' into fix/13336-rect-radius-range
# Conflicts:
#	crates/ui-egui/src/widgets.rs
2026-11-12 07:02:50 +01: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
David Mann deff1c7ad2 Merge origin/main (eb3c99d653) into the MCP batch 2026-11-12 03:24:49 +01: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 Mann eb3c99d653 Merge pull request #12237 from hectorviov/fix/perspective-crop-field-limits
Perspective Crop: W, H and Resolution clamp to the measured ranges with alerts
2026-11-12 03:01:42 +01:00
David Mann 373941c786 Merge origin/main (d99b6a832c) into the MCP batch 2026-11-12 02:59:30 +01:00
David MannandClaude Opus 5.5 9dd0364db2 Batch: regenerate docs/scorecard.md (AUTO-MCP-LIVE, Integrations prefs)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-12 02:59:23 +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
David Mann 54cde24340 Merge remote-tracking branch 'origin/main' into fix-9301 2026-11-12 02:45:44 +01:00
David Mann d99b6a832c Merge pull request #13257 from davidmann4/fix/main-red-automation-gpu-group
ci: cap headless GPU backend tests with the nextest gpu group
2026-11-12 02:45:37 +01:00
Trevor BrownandClaude Sonnet 5.5 134d1aecd3 Merge remote-tracking branch 'upstream/main' into fix/delete-anchor-drag-segment-12767
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Model-Effort: Opus 5.5 drove; Opus 5.5 briefed; Sonnet 5.5 wrote at medium
2026-11-11 20:38:09 -05:00
7444ab6c03 Merge PR #5525: AI Integrations: connect Claude Desktop, Claude Code and Cursor to PhotoCraft without a terminal
Ported onto current main and #11363:
- The dialog moved into prefs/prefs_ui/agents.rs (prefs_ui.rs was split on main); the port
  field is labelled for the accessibility check.
- One agent connection: Preferences start and stop it live (agent_link service); only
  --control opens a port at launch. #11363's token reuse, folder rules (absolute paths,
  warnings) and readRoot/writeRoot names are kept; a saved controlPort from before loads
  with connectAgents on.
- agent_link.rs: #11363's connection file code plus #5525's client install code.
- CLI: mcp --live, --when-closed and mcp install --client on main's clap parser.
- control_server: listen()/Listening on top of main's challenge authentication.
- app_dirs: main's resolver moved to photocraft-automation so the CLI finds the same folder.
- Interface catalogs moved to craft-i18n on main; the PR's rows are not carried over.

Co-Authored-By: Furoxfufu <[email protected]>
Co-Authored-By: ingling <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-12 02:26:09 +01:00
David Mann 82adf56e11 Merge remote-tracking branch 'origin/main' into feat/jpeg-options-size-readout 2026-11-12 02:22:55 +01:00
David Mann de7cb6c0c4 Merge pull request #13234 from Raghav2012Code/fix/13065-pcrop-keep-clicked-corners
fix(ui): a Perspective Crop drag with no area keeps the clicked corners (#13065)
2026-11-12 02:20:01 +01:00
David Mann 3e6d361735 Merge pull request #13215 from TrevorBrown-dev/fix/add-anchor-straight-smooth-12706
Add Anchor Point: an anchor added to a straight segment is smooth, with handles (#12706)
2026-11-12 02:19:45 +01:00
David Mann 35887692ff Merge pull request #13176 from Raghav2012Code/fix/13072-delete-anchor-escape-stage
Delete Anchor Point keeps its path on the first Escape, and leaves a drag alone (#13072)
2026-11-12 02:19:30 +01:00
David Mann b554be38e7 Merge pull request #13303 from NaufalDzz/fix/issue-13244
Line tool: a drag is one History step named "Line Tool" (#13244)
2026-11-12 02:17:52 +01:00
David Mann 9677f2e73a Merge pull request #13020 from slafebre/feat/12054-type-bar-panels-toggle
Type options bar: Toggle Character and Paragraph panels button
2026-11-12 02:17:17 +01:00
David Mann 7755675ce7 Merge pull request #13342 from RickiNano/fix/13308-star-outer-corner-radius
Polygon tool: a rounded star rounds only its outer points (#13308)
2026-11-12 02:16:48 +01:00
Hector Villarreal 6545bfd768 Merge upstream/main into fix/perspective-crop-cursors 2026-11-11 18:52:18 -06:00
Hector Villarreal bed2e22d8e Merge upstream/main into fix/perspective-crop-field-limits 2026-11-11 18:52:17 -06:00
David Mann 2a4e0f4c99 Merge pull request #13378 from storytold/fix/paint-tests-use-stroke-results
paint: two stroke tests check the result the stroke now returns
2026-11-12 01:40:04 +01:00
David Mann 2261a98943 Merge PR #11363: Control from the Dock: publish the control connection, and automation folders in Preferences › Integrations
# Conflicts:
#	crates/ui-egui/src/i18n/ar.tsv
#	crates/ui-egui/src/i18n/cs.tsv
#	crates/ui-egui/src/i18n/da.tsv
#	crates/ui-egui/src/i18n/de.tsv
#	crates/ui-egui/src/i18n/el.tsv
#	crates/ui-egui/src/i18n/es.tsv
#	crates/ui-egui/src/i18n/fi.tsv
#	crates/ui-egui/src/i18n/fr.tsv
#	crates/ui-egui/src/i18n/hi.tsv
#	crates/ui-egui/src/i18n/hu.tsv
#	crates/ui-egui/src/i18n/id.tsv
#	crates/ui-egui/src/i18n/it.tsv
#	crates/ui-egui/src/i18n/ja.tsv
#	crates/ui-egui/src/i18n/ko.tsv
#	crates/ui-egui/src/i18n/nb.tsv
#	crates/ui-egui/src/i18n/nl.tsv
#	crates/ui-egui/src/i18n/pl.tsv
#	crates/ui-egui/src/i18n/pt-br.tsv
#	crates/ui-egui/src/i18n/ru.tsv
#	crates/ui-egui/src/i18n/sr.tsv
#	crates/ui-egui/src/i18n/sv.tsv
#	crates/ui-egui/src/i18n/tr.tsv
#	crates/ui-egui/src/i18n/uk.tsv
#	crates/ui-egui/src/i18n/vi.tsv
#	crates/ui-egui/src/i18n/zh-hans.tsv
#	crates/ui-egui/src/i18n/zh-hant.tsv
#	docs/control-protocol.md
2026-11-12 01:37:44 +01:00
David Mann 41280a2bcd Merge pull request #12206 from hectorviov/fix/count-options-bar
Count tool options bar: every control from the start in the reference order, tooltips and greying, scrubby size captions (#11765)
2026-11-12 01:36:14 +01:00
David Mann c4ae585613 Merge pull request #13305 from RickiNano/fix/13241-line-tool-defaults
Line tool: Weight 1 px and 5 × 10 px arrowheads by default and after Reset Tool (#13241)
2026-11-12 01:36:02 +01:00
David Mann 6ba21e3475 Merge pull request #13313 from rmsff/fix/freeform-pen-close-tolerance-12830
Freeform Pen: close a stroke only within 3 px of its start on each axis
2026-11-12 01:35:51 +01:00
David Mann 2bb1c3d0c6 Merge pull request #13141 from rmsff/fix/convert-point-drag-segment-12741
Convert Point: drag a segment as Direct Selection does
2026-11-12 01:35:41 +01:00
David Mann ef2a5031c5 Merge pull request #13188 from rmsff/fix/delete-anchor-alt-click-12770
Delete Anchor Point: Alt-click on an anchor selects its whole subpath
2026-11-12 01:35:30 +01:00
David Mann 8c8ba2c978 Merge pull request #13013 from RickiNano/feat/12066-zoom-out-mode
Zoom tool: Zoom In / Zoom Out mode buttons (#12066)
2026-11-12 01:35:18 +01:00