Commit Graph
2872 Commits
Author SHA1 Message Date
Ian 85446b50e5 Merge main and retain clone source allocation safeguards 2026-11-11 16:52:51 -05:00
tjbbjt e459bcc824 Scorecard: Free Transform budgets 2026-11-11 13:19:19 -08:00
vangel76andClaude Sonnet 5.5 c1f2ae16b8 Merge upstream/main into docs/parity-refresh-2
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-11 21:51:14 +01:00
tjbbjt 0926cf9663 Scorecard: list the Free Transform scenarios 2026-11-11 12:34:53 -08:00
Ian 8829007eb8 Document explicit clone coordinates selecting the destination 2026-11-11 15:01:25 -05:00
Dylan M. Taylor 639b5d928c Regenerate the scorecard: 28 crate roots 2026-11-11 19:56:18 +00:00
Ian 5839de951c Document explicit clone source layer overrides 2026-11-11 14:51:14 -05: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
Ian a078a37054 Clarify clone sampling fallbacks and composite boundaries 2026-11-11 14:27:30 -05:00
Ian 967e987edd Preserve clone canvas coverage for sources without alpha 2026-11-11 13:51:05 -05:00
Trevor Brown 4d7fd8bd34 Merge remote-tracking branch 'upstream/main' into fix/space-hand-menu-esc-pasteboard-11271 2026-11-11 11:39:40 -05:00
David MannandClaude Opus 5.5 0d9a9a5a70 Docs: the screenshot rule allows a doc's own before/after comparison
CodeRabbit on #13206: docs/multi-channel-editing.md displays before/after
comparisons, which the rule keeps; it targets screenshots that only show a
PR's change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-11 16:41:05 +01:00
David MannandClaude Opus 5.5 0cc411241b Docs: before/after screenshots go in the PR description, not the repo
AGENTS.md rule 6 and docs/images/SOURCES.md now say docs/images holds only
images the README or a doc displays. Removes the nine PR before/after
captures nothing references (gradient-overlay-method, guide-position,
native-pipette-macos, preferences-apply; 1.9 MB) and their ATTRIBUTION.md
rows.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-11 16:28:16 +01:00
ljkx 0a2a49852a Merge remote-tracking branch 'origin/main' into atn-fit-image
# Conflicts:
#	crates/engine/src/cmd/atn_cmds.rs
2026-11-11 16:24:18 +01:00
Trevor BrownandClaude Opus 5.5 0eafc3b674 Docs: under the Space-Hand view menu Esc closes it and Enter does nothing (#11271)
A plain Enter is only withheld from the dispatch; it doesn't close the
menu. Both rows said "Esc or Enter only closes the menu".

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-11 09:38:40 -05:00
Trevor BrownandClaude Opus 5.5 44b175ef7a Docs: the Space-Hand rows name only what this follow-up adds (#11271)
The menu itself came with #11292; these rows now describe the Esc/Enter
guard and the pasteboard menu under Space.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-11 09:14:37 -05:00
Trevor BrownandClaude Sonnet 5.5 6146287eda Space-Hand view menu: a plain Esc or Enter only closes the menu; pasteboard tests (#11271)
Follow-up to #11323 as asked there, on top of main's Space-Hand view menu (#11292). With the view menu open under Space, a plain Esc or Enter no longer reaches a pending crop (Esc only closes the menu); modified keys dispatch as before. Space + right-click on the pasteboard now keeps its menu open after Space is released (the menu records the tool underneath, as the view menu does). Tests for both, plus the context-menu and UI parity rows.

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 09:13:42 -05:00
David Mann 9b3435cedb Merge pull request #12523 from SvenCarstensen/codex/fix-macos-pipette-lag
Fix macOS Text Color Picker cursor lag with a native pipette
2026-11-11 14:40:57 +01:00
David Mann b68d82b807 Merge branch 'main' into actions-frame-from-layers (merge queue)
# Conflicts:
#	docs/atn.md
2026-11-11 14:40:01 +01:00
David Mann 91badc3a97 Merge pull request #12469 from ljkx/actions-artboard-section
Actions: map Layer › New › Artboard and Artboard from Layers (#10723)
2026-11-11 14:39:50 +01:00
Ian 9e74e79d5b Match Adobe's cross-document clone color-mode rules 2026-11-11 05:15:01 -05:00
FredApps 36bfc50fd3 Merge branch 'main' into feat/image-processor-open-documents
Resolve conflicts by keeping both the Image Processor source parameter
and main's pdfSpotPlates text, and by combining the Last updated
headers in docs/gaps.md and docs/target-app-parity.md.
2026-11-11 11:10:40 +01:00
Ian 35e45defd7 Avoid overflow in off-canvas clone resampling 2026-11-11 04:37:07 -05:00
Ian b714332497 Keep Clone Source offsets consistent with preview and painting 2026-11-11 03:59:11 -05:00
Tanish Manku 066c55c98e Merge pull request #11297 from TrevorBrown-dev/fix/close-prompt-cmd-d-11282
Unsaved-changes prompt: ⌘D is Don't Save on macOS (#11282)
2026-11-11 00:30:55 -07:00
Tanish Manku 8c142f7e3b Merge pull request #11292 from indy2kro/fix/11271-space-hand-view-menu
Hand held by Space: right-click opens the view menu, as in Photoshop (#11271)
2026-11-11 00:30:10 -07:00
Tanish Manku e301a1d835 Merge pull request #11106 from pkubaj/main
Enable winit's font-free Adwaita decorations on FreeBSD
2026-11-11 00:27:28 -07:00
Tanish Manku ce8e7c6a19 Merge pull request #11054 from yoriswind/codex/preset-import-choice-validation
Preserve preset import dialogs after invalid API answers
2026-11-11 00:26:42 -07:00
Tanish Manku e12da4d048 Merge pull request #10720 from dark13b/fix/issue-10492
Drops: route by a pure function, say when a folder is dropped, log how far a drag got (#10492)
2026-11-11 00:23:15 -07:00
Tanish Manku 4ed05762c0 Merge pull request #10426 from ebosido444-ai/perf/box-line-kernel
perf(algo): gather a strip before walking box-blur columns
2026-11-11 00:18:50 -07:00
Tanish Manku 2dbbdde170 Merge pull request #10395 from qvest-ssels/fix/dialog-label-overrun-9635
Dialogs: one shared label column that never overruns in a longer translation (#9635)
2026-11-11 00:15:36 -07:00
Tanish Manku 0fc597634a Merge pull request #10384 from ingling/pdf-spot-plates
PDF: spot channels as overprinting Separation plates (FILE-215-17)
2026-11-11 00:15:13 -07:00
Tanish Manku 3ffcc590eb Merge pull request #9980 from ljkx/fix/opacity-next-to-mode
Options bar: Opacity right after Mode in every theme (#9784)
2026-11-11 00:11:33 -07:00
Tanish Manku 00895b90bf Merge pull request #8836 from kuvshin888/guide-shift-existing
Guides: Shift snaps a moved guide to ruler ticks too, on whole pixels in a pixel ruler
2026-11-11 00:01:14 -07: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
Tanish Manku e5cffe2375 Merge pull request #7239 from haranishi/review/packaged-cli-docs-20261018
Linux packages: ship the CLI in source Flatpaks and offline automation guides
2026-11-10 23:58:52 -07:00
Tanish Manku 254000acaa Merge pull request #7020 from fjamesprice/perf/camera-raw-gpu-texture-dehaze
perf(camera-raw): develop Dehaze, Clarity and Texture on the GPU in the preview (#6916)
2026-11-10 23:58:06 -07:00
Tanish Manku 1d6cd334ba Merge pull request #6951 from fjamesprice/perf/camera-raw-gpu-local-tone
perf(camera-raw): develop Shadows and Highlights on the GPU in the preview (#6916)
2026-11-10 23:57:54 -07:00
Tanish Manku dc855ae902 Merge pull request #6864 from hidoba/codex/curves-followup-fixes
Fix remaining grayscale Levels/Curves target mismatches
2026-11-10 23:57:32 -07:00
Tanish Manku c2e8c4db82 Merge pull request #6787 from ingling/spot-dot-gain
Color Settings › Spot: dot gain for spot channel and Multichannel ink previews
2026-11-10 23:57:09 -07:00
Ian 9b8536f5e6 Fix Clone Stamp sources across layers and documents
Retain picked source layers and document snapshots for preview, live painting and commits. Apply brush opacity and flow to hover previews, convert cross-document colors through the CMS, and reject stale or closed sources.

Add regressions for source re-picking, source-edge clipping, large hard stamps, color/depth handling and reopened document identities, with before/after captures and contributor credit preference.
2026-11-11 01:39:48 -05:00
Michael Higgins 9d5be5ec8e Bridge: never send the control token to a listener that is not the app
## Summary

`photocraft-cli mcp --bridge` sent the control token in clear as its first frame, to whatever had accepted the connection: a `[::1]` listener reached through a `localhost` lookup, or any process holding `127.0.0.1:<port>` while the app was not listening. This PR fixes both cases:

- **Literal loopback only.** `BridgeClient` parses its address into a socket address and connects to it. Only `127.0.0.1:<port>` and `[::1]:<port>` are accepted. `localhost:<port>` means `127.0.0.1:<port>` (what the desktop app binds) and is never looked up.
- **Challenge authentication.** The bridge authenticates with `auth.challenge {clientNonce}` → `{serverNonce, serverProof}` → `auth {proof}`. Both proofs are HMAC-SHA256 keyed by the token over both nonces, each under its own label. The client checks the server's proof before it sends its own and never falls back to sending the token. The token never crosses the wire, so a listener that is not the app gets only a random nonce.
- **One shared server implementation.** `security::ServerHandshake` replaces `authentication_reply`, and both the desktop control server and `photocraft-cli serve` use it. The servers still accept the one-frame `auth {token}`, so existing scripts and older clients keep working. A repeat `auth.challenge` after authenticating gets "already authenticated", like a repeat `auth`.
- HMAC comes from RustCrypto's `hmac` 0.12 with `sha2` 0.10 (`sha2` was already in the lockfile). The proofs are compared without an early exit.
- `docs/control-protocol.md` documents the handshake, the exact HMAC message, and the bridge's address rules. The book's protocol summary is updated too.

Compatibility: a new bridge needs an app from the same release. Against an older app it fails with "refused challenge authentication … the control token was not sent". It does not downgrade.

Known limit: the channel is plain TCP with no TLS, so nothing binds the handshake to the connection. A party sitting between a bridge and a real app could relay the handshake without learning the token. On loopback that needs it to hold the port the bridge dials while the app listens on another, which the literal-address rule above narrows. Older clients that still send `auth {token}` keep their old exposure until they upgrade.

Closes #9777

## Tests

New in `crates/automation/tests/it/bridge_token.rs`:

- `localhost_reaches_the_ipv4_app_not_an_ipv6_listener`: a listener on `[::1]:P` gets no connection, and the app on `127.0.0.1:P` does.
- `a_listener_that_is_not_the_app_never_receives_the_token`: on both loopbacks, a listener that stays silent, refuses, or fakes the challenge receives only the challenge frame, never the token. The error says why.
- `the_bridge_authenticates_to_the_headless_server_by_challenge`: end to end against `rpc::serve_tcp`. A wrong token is refused before its proof is sent.

Unit tests: the handshake in both directions, and that wrong, missing or replayed proofs, the token after a challenge, a second challenge and malformed nonces are all refused (`security.rs`). `loopback_socket` address parsing (`bridge.rs`). The desktop server answering a challenge, then dispatching (`control_server.rs`). The existing bridge and MCP fakes now run the real `ServerHandshake`.

Run locally (Windows 11, targeted tests only):

- **Fail before.** I put upstream's `crates/automation/src/bridge.rs` (the old client) back and ran `cargo test -p photocraft-automation --test it bridge_token`: **3 failed**. The `[::1]` listener received `{"method":"auth","params":{"token":"<the token>"}}`, a `127.0.0.1` listener received the raw token, and the headless test got "authentication required" instead of the refusal. The original audit tests (`audit_nv6_bridge_sends_token_to_ipv6_impostor`, `audit_nv6_bridge_sends_token_to_any_ipv4_holder`) fail the same way on upstream/main.
- **Pass after.**
  - `cargo test -p photocraft-automation --lib --test it -- bridge security tcp`: 23 + 21 passed. This covers the new tests, the existing bridge, MCP-bridge, security and serve TCP tests, and the legacy-token tests that still pass unchanged.
  - `cargo test -p photocraft control_server`: 6 passed, including the new challenge test. The legacy-token tests still pass.
  - `cargo clippy -p photocraft-automation --all-targets -- -D warnings`: clean.
  - `cargo fmt`: clean.
- `Cargo.lock` adds only `hmac` 0.12.1, plus `subtle` under `digest` (already in the lock). Checked with `cargo metadata --locked`.

Not run here: the full gate (`cargo xtask ...`, the workspace-wide tests, wasm, clippy on the desktop app crate). That is left to CI.

API note: the workspace-internal `security::authentication_reply` is replaced by `ServerHandshake::reply`, which returns an `AuthStep`.


<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **Security**
  * Control connections support challenge-response authentication, verifying possession of the configured token without sending it. Token-in-frame authentication remains available for scripts.
  * The MCP bridge accepts literal loopback addresses and maps `localhost` directly to IPv4 loopback. It rejects servers that refuse or cannot complete challenge authentication.
* **Bug Fixes**
  * Rejected authentication exchanges close the connection; successful authentication allows requests to proceed.
* **Documentation**
  * Control protocol and bridge authentication behavior are documented.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-11-11 07:35:17 +01:00
ashokram-si 23104adb7e Merge remote-tracking branch 'origin/main' into feat/jpeg-options-size-readout
# Conflicts:
#	crates/ui-egui/src/i18n/cs.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/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/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/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/gaps.md
#	docs/target-app-parity.md
2026-11-11 10:26:12 +05:30
skylar taylor-barrick 1f77e59589 Merge origin/main (2772ac1e7) into craft-i18n cutover
Keep all 34 catalog deletions; sync crop options and fill rasterization text via craft-i18n 4a642c06dbcb8172f307f827c1167cd5dd8ac341. Adapt the fill prompt catalog test to embedded catalogs and preserve both parity-document updates.
2026-11-10 20:16:09 -06:00
ljkxandClaude Fable 5.2 c1fb12fe1d Merge main into fix/opacity-next-to-mode
Co-Authored-By: Claude Fable 5.2 <[email protected]>
2026-11-10 23:13:50 +01:00
vangel76andClaude Sonnet 5.5 d8096772f5 Merge upstream/main into docs/parity-refresh-2
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-10 22:50:00 +01:00
Vlad Grankovsky 333566a616 Merge upstream main 609e2aa72 into curves follow-up 2026-11-10 19:51:17 +01:00
Tom InglingandClaude Opus 5.5 faeb22949b Merge main into control-prefs
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-10 13:49:32 -05:00
Tom InglingandClaude c77f589184 Merge storytold main (0d08cb7dd) into pdf-spot-plates
One conflict, the gaps.md header: main's line (2026-11-08, G9 Column
Size now leads it) with this branch's G10 spot-plate item in front.
Main's changes to control-protocol.md and pdf/text.rs merged cleanly;
the doc.save row keeps `pdfSpotPlates`.

Co-Authored-By: Claude <[email protected]>
2026-11-10 13:48:01 -05:00