mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
Merge origin/main into feat/tool-213-7-live-retouch
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
commit
577c4eea67
179 files changed
+11219
-887
No files matched your search
@@ -0,0 +1,41 @@
|
||||
# Batch output naming
|
||||
|
||||
Select a recorded action, then open **File > Automate > Batch**. Set the input and output
|
||||
folders. **File Naming** accepts a filename stem template; the selected export format supplies
|
||||
the extension. Leave it blank to keep the existing source filenames and collision reporting.
|
||||
|
||||
| Token | Value |
|
||||
| --- | --- |
|
||||
| `{name}` | Input filename without its last extension |
|
||||
| `{serial}` | Input position plus **Starting serial** (default 1), padded to at least three digits |
|
||||
| `{date}` | UTC date at the start of the batch, in `YYYY-MM-DD` form |
|
||||
|
||||
For example, `{name}_{serial}` with starting serial 7 writes `photo_007.png` and
|
||||
`photo_008.png` for two PNG inputs named `photo.png`. A serial after 999 becomes 1000;
|
||||
it does not wrap. Folder inputs use the existing filename order, and an explicit input array
|
||||
keeps its order. Failed inputs consume their position, so later filenames do not shift.
|
||||
Braces in an input filename are literal text, not additional tokens.
|
||||
|
||||
Unknown tokens, unmatched braces, invalid parameter types, path separators, reserved filename
|
||||
characters, excessive filename length (255 UTF-8 bytes), and serial overflow are rejected before
|
||||
export writes begin. Starting serial must be an integer from 1 to 4,294,967,295.
|
||||
A custom template that resolves to an existing input file is also rejected; choose a separate
|
||||
destination or another template. Ordinary per-file read, action and save failures still appear
|
||||
in the batch's `errors` result. When two results share a name, including a case-only difference,
|
||||
the first successful result is kept and the later collision is reported.
|
||||
|
||||
The same options are available on `file.automate.batch` through the engine command interface:
|
||||
|
||||
```json
|
||||
{
|
||||
"input": ["first/photo.png", "second/photo.png"],
|
||||
"output": "exports",
|
||||
"steps": [["image.adjustments.invert", {}]],
|
||||
"format": "png",
|
||||
"naming": "{name}_{serial}",
|
||||
"startingSerial": 7
|
||||
}
|
||||
```
|
||||
|
||||
The CLI can invoke this command with `run --cmd file.automate.batch --params ...`.
|
||||
This option belongs to Batch; Image Processor and droplet options retain their existing behavior.
|
||||
@@ -45,7 +45,7 @@ The transport is `apps/photocraft/src/control_server.rs`, and the handlers are i
|
||||
## Methods
|
||||
|
||||
- `engine.execute {command, params}`: run any engine or UI command by id. Engine commands run directly with their default params and never open a dialog. Use `ui.menu.invoke` for menu-click behaviour, which opens a command's dialog when no params are given. `params` must be a JSON object (omit it or pass `null` for none); an array, string, number or boolean is an error naming the command, in every transport (control channel, `serve`, MCP and the CLI)
|
||||
- `engine.commands`: list commands with enablement
|
||||
- `engine.commands`: list commands with enablement; the `result` is a JSON array of command objects (see [Command list replies](#command-list-replies))
|
||||
- `ui.inspect`: full UI state (tool, panels, views, dialogs, windows, window size). The menu tree is not included; use `ui.menu.list`. `brushPicker` is `null` while closed and `{pos: [x, y], size: [w, h]?, list: {collapsed, filter, renaming, showName, showStroke, showTip, scale}}` while the Brush Preset picker is open (coordinates in screen points; `size` is the picker's content size once its corner grip was dragged, `null` before that, and the drag remembers both dimensions; the three `show*` flags pick the parts of each preset's card — at least one is always on; `scale` is the footer slider, 0.15–2 with 1 the standard, multiplying the cards' width and height — the heights stop at half size and the name and tip-size text hold their 1.0 size — and dropping the tips' size numbers at 0.40 and below; the parts and the scale are remembered across restarts, while the search, collapsed groups and a rename in progress are not). `view` holds the View/Window/Type preferences: `screen_mode`, `extras`, `show` and `snap_to` flags, `flip_horizontal`, `arrange` (Window › Arrange layout), pixel aspect, font preview size, language options. `perf.timings.gpuInfo` holds the graphics adapter, backend, driver, the backend chosen at launch and why, the canvas renderer (`gpu`/`cpu`) and, after a device loss, `lost` (`help.systemInfo` returns the same as `info`)
|
||||
- `ui.set {tool?, panels?, dockTabs?, dock?, dockWidth?, colorPanel?, maskTarget?, vectorMaskTarget?, selectionMode?, zoom?, center?, rotation?, fit?, theme?, brushSize?, brushSection?, brushTab?, brushesView?, brushPicker?, brushPickerName?, brushPickerStroke?, brushPickerTip?, brushPickerScale?, gradientBlendMode?, gradientClassic?, shapeStroke?}`: change UI state; any other field is an error, checked before anything changes (`zoom` is the canvas zoom where 1 = 100%, one document pixel per physical display pixel, so a scaled display doesn't magnify the image; `theme` is `pro`, `proMedium`, `studio`, `studioLight` or `classic`; `selectionMode` is the selection tools' options-bar mode, 0 New, 1 Add, 2 Subtract, 3 Intersect; `brushSection` indexes the Brush Settings sections, `brushTab` 0 = Brush Settings, 1 = Brushes; `brushesView` is `list` or `grid` for the Brushes panel; `brushPickerName`, `brushPickerStroke` and `brushPickerTip` are the Brush Preset picker's card parts (booleans, at least one on), and `brushPickerScale` its footer card-scale slider (0.15 to 2, 1 the standard); `brushPicker` is `[x, y]` in screen points to open the Brush Preset picker there (as a right-click with a painting tool does) or `null` to close it, and picking a preset in it is `tools.setBrush {"preset": name}`; `dock` is `{order: ["layers", …], heights: {"properties": 180}, collapsed: ["color"], tabOrder: {"layers": ["Paths", "Layers", "Channels"]}}`, the right-dock groups top to bottom, their heights in points, the groups collapsed to their tab strip and each group's tab order left to right by panel name (a group left out keeps its default order, unknown names are ignored and tabs not listed follow in their default order; `dockTabs` keeps indexing tabs in their default order); `dockWidth` sets the right dock width in points, clamped to 250..520; `colorPanel` is `{background}`, whether the Color panel edits the background colour; `maskTarget` targets the active layer's mask, which, like Photoshop, swaps in the foreground/background pair kept for masks (white/black until one is picked) and swaps the pixels' pair back when the pixels are targeted again)
|
||||
- `typeTransform` is `null` outside a temporary Ctrl/Cmd Type-tool drag. During a drag it reports its source document/revision, original affine, oriented `frame` (layer, local bounds, document-space corners and pivot), and captured `gesture`. Drive it with `ui.pointer` and `command: true` at `down`; `move`/`up` may release the modifier. The document/history remain unchanged during preview, and `up` applies one `type.edit` within `textEdit`'s session. Pressing Escape during the drag cancels only the preview. This pointer state is never restored from saved UI state.
|
||||
@@ -94,7 +94,7 @@ Change the UI language without restarting with `prefs.set`:
|
||||
are documented in [UI localisation](localization.md). `prefs.get` and the existing preference
|
||||
store expose and persist the same setting; scripts keep using canonical command IDs.
|
||||
|
||||
`engine.execute` runs any command by id. `engine.commands` (or the engine command `command.list`) lists them all, with labels, menu paths, shortcuts, a parameter description, and whether each is currently enabled. Each row carries `enabled` (bool), `disabledReason` (`null` when enabled, otherwise the precondition that failed, such as `"no document open"`, `"no selection"` or `"the clipboard is empty"`) and `needsDocument` (true when the command is off because no document is open, so the first step is to create or open one; a command may still have its own precondition after that, such as an active text layer. False when enabled or off for another reason). With no document open, nearly every document command reports `enabled: false, needsDocument: true`; plan around `needsDocument` rather than reading `enabled` alone (#3664). Examples:
|
||||
`engine.execute` runs any command by id. `engine.commands` (or the engine command `command.list`) lists them all, with labels, menu paths, shortcuts, a parameter description, and whether each is currently enabled (reply shape: [Command list replies](#command-list-replies)). Each row carries `enabled` (bool), `disabledReason` (`null` when enabled, otherwise the precondition that failed, such as `"no document open"`, `"no selection"` or `"the clipboard is empty"`) and `needsDocument` (true when the command is off because no document is open, so the first step is to create or open one; a command may still have its own precondition after that, such as an active text layer. False when enabled or off for another reason). With no document open, nearly every document command reports `enabled: false, needsDocument: true`; plan around `needsDocument` rather than reading `enabled` alone (#3664). Examples:
|
||||
|
||||
| Command | Params |
|
||||
|---|---|
|
||||
@@ -174,6 +174,35 @@ their usual file access. Source replacement, relinking and export commands remai
|
||||
double-clicking its thumbnail in Layers. Text input, Commit and Cancel use the existing Type tool
|
||||
editing session; non-type layers return an error without changing the tool or document.
|
||||
|
||||
### Command list replies
|
||||
|
||||
`engine.commands` (control channel and `serve`), the engine command `command.list` and the MCP
|
||||
tool `command_list` all reply with a bare JSON array, not an object: there is no
|
||||
`{"commands": [...]}` wrapper. On the control channel and `serve` the array is the reply's
|
||||
`result` (`{"id":1,"ok":true,"result":[…]}`); the MCP tool returns it as its JSON text.
|
||||
Each element describes one command, in registry order:
|
||||
|
||||
```json
|
||||
{"id":"file.new","label":"New…","menu":["File"],"shortcut":"Cmd+N","params":"{\"width\":1..300000=1920,…}","enabled":true,"disabledReason":null,"needsDocument":false}
|
||||
```
|
||||
|
||||
| Key | Type | Meaning |
|
||||
|---|---|---|
|
||||
| `id` | string | The id to pass to `engine.execute` / `command_run` |
|
||||
| `label` | string | Menu label |
|
||||
| `menu` | array of strings | Menu path above the item (`[]` for commands without a menu item) |
|
||||
| `shortcut` | string or `null` | Default shortcut, e.g. `"Cmd+Shift+X"` |
|
||||
| `params` | string | Human-readable parameter doc (not a JSON schema) |
|
||||
| `enabled` | boolean | Whether the command can run in the current state |
|
||||
| `disabledReason` | string or `null` | Why the command can't run now (`null` when `enabled`) |
|
||||
| `needsDocument` | boolean | `true` when it is off because no document is open (#3664) |
|
||||
|
||||
Filtering narrows the same array without changing its elements: `serve`'s `engine.commands
|
||||
{filter}` and the MCP tool's `filter` keep commands whose id or label contains the text
|
||||
(case-insensitive), and the MCP tool's `enabled_only` keeps those with `enabled: true`. The
|
||||
desktop control channel's `engine.commands` takes no filter and always returns every command.
|
||||
The shape is pinned by a test in `crates/automation/src/rpc.rs` (#3684).
|
||||
|
||||
### Background jobs (#210)
|
||||
|
||||
Long commands (every `filter.*`, `edit.contentAwareFill`, `edit.contentAwareScale`, `file.automate.photomerge`, `brush.presets.importAbr`), file opens and interactive saves (File › Save, Save As and the TIFF Options continuation, #2017) run as background jobs in the desktop app: the window keeps drawing, the status bar shows progress with a Cancel button, and jobs that lock the active document show a modal progress dialog (Esc cancels). `engine.execute`, `ui.menu.invoke`, `ui.dialog.confirm` and `app.save` still wait for the result by default; pass `"wait": false` to get `{job, pending: true}` at once, then poll `jobs.list` (`state`: running, done, failed, cancelled; `progress` 0–1; the result or error) and stop it with `jobs.cancel {job}`. A cancelled or failed job leaves the document unchanged. While a job runs, commands that would edit its document fail with "… is still running on this document". `ui.inspect` reports `jobs` (running jobs, opening files, saving files). Set `PHOTOCRAFT_INLINE_JOBS=1` to run everything inline.
|
||||
@@ -267,7 +296,7 @@ How each MCP tool maps onto control methods in bridge mode:
|
||||
|---|---|
|
||||
| `command_run {id, params, wait?}` | `engine.execute {command: id, params, wait}` |
|
||||
| `jobs_list` / `jobs_cancel {job?}` | `jobs.list` / `jobs.cancel {job?}` |
|
||||
| `command_list {filter?, enabled_only?}` | `engine.commands` (filtered by the MCP server; rows keep `disabledReason` and `needsDocument`) |
|
||||
| `command_list {filter?, enabled_only?}` | `engine.commands` (filtered by the MCP server; replies with the same bare array, rows keep `disabledReason` and `needsDocument`, see [Command list replies](#command-list-replies)) |
|
||||
| `doc_new {…}` | `engine.execute {command: "file.new", params}` |
|
||||
| `doc_inspect` | `engine.execute {command: "document.inspect"}` |
|
||||
| `doc_open {path}` | `app.open {path}` |
|
||||
@@ -325,7 +354,7 @@ no MCP framing, no app start-up per command. Configure its file access with the
|
||||
|---|---|
|
||||
| `engine.execute` | `{command, params?, wait?}`: any engine command (`wait: false` starts a long one as a background job: `{job, pending}`) |
|
||||
| `jobs.list` / `jobs.cancel` | `{}` / `{job?}`: background jobs; cancel one or all. Every request (and MCP tool call) first applies the jobs that finished, so `doc.save`, `doc.inspect`, `doc.render` and `session.list` include a finished job's result without polling `jobs.list` first |
|
||||
| `engine.commands` | `{filter?}`: registry with params docs and enablement (`enabled`, `disabledReason`, `needsDocument`) |
|
||||
| `engine.commands` | `{filter?}`: registry with params docs and enablement (`enabled`, `disabledReason`, `needsDocument`); `result` is a bare array of command objects ([Command list replies](#command-list-replies)) |
|
||||
| `session.list` | open documents and the active index |
|
||||
| `doc.open` / `doc.new` | `{path}` / `file.new` params |
|
||||
| `doc.place` | `{path, scale? (percent), fit? (true), center? ([x, y]), index?}`: places a file as a Smart Object layer above the active one and returns `{layer, scale, bounds}`. `path` resolves beneath the read root, so this is the capability-scoped `file.placeEmbedded` — that command itself still refuses an ambient path |
|
||||
|
||||
+1
-1
@@ -82,7 +82,7 @@ CRAFT_FONTS_DIR="$PWD/../craft-fonts" cargo test --workspace # runs the Japa
|
||||
|
||||
## Graphics startup and device loss
|
||||
|
||||
`--safe-gpu` starts with the CPU renderer for one launch (no GPU canvas; a software adapter for the window where the platform has one: WARP on Windows, llvmpipe over GL on Linux). Before creating the wgpu device the app writes and locks `gpu-starting.json` in the config directory; it clears it once the first frames have rendered. A launch that finds an unlocked marker knows the previous start died inside the graphics driver (#4) and uses the next safer backend (Windows: Vulkan → DX12 → CPU; Linux: Vulkan → GL → CPU; macOS: Metal → CPU), remembering it in `performance.gpuBackend` (Preferences › Performance › GPU Backend, with **Reset GPU Backend**). With `auto`, Intel adapters on Windows use DX12. Help › System Info shows the adapter, backend, driver and fallback state.
|
||||
`--safe-gpu` starts with the CPU renderer for one launch (no GPU canvas; a software adapter for the window where the platform has one: WARP on Windows, llvmpipe over GL on Linux). Before creating the wgpu device the app writes and locks `gpu-starting.json` in the config directory; it clears it once the first frames have rendered. A launch that finds an unlocked marker knows the previous start died inside the graphics driver (#4) and uses the next safer backend (Windows: Vulkan → DX12 → CPU; Linux: Vulkan → GL → CPU; macOS: Metal → CPU), remembering a working hardware backend in `performance.gpuBackend` (Preferences › Performance › GPU Backend, with **Reset GPU Backend**). CPU recovery is temporary until **Keep Using CPU** is chosen in the recovery dialog; dismissing the dialog or quitting without a choice preserves the previous GPU preference (#3483). With `auto`, Intel adapters on Windows use DX12. Help › System Info shows the adapter, backend, driver and fallback state.
|
||||
|
||||
On DX12 the shader compiler is FXC (`d3dcompiler_47.dll`, part of Windows), or a `dxcompiler.dll` placed beside `photocraft.exe`, loaded by its full path. wgpu's default looks `dxcompiler.dll` up by name, which reaches the current directory and `PATH` and loaded other programs' incompatible builds (#712).
|
||||
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
# PostScript font resolution
|
||||
|
||||
PSD text may identify a face by its PostScript name as well as a family/style.
|
||||
The PostScript prefix need not match the family name, and the family stored with
|
||||
a run can be a guess made from that name.
|
||||
|
||||
## Resolution
|
||||
|
||||
`FontDb::resolve_postscript` first looks for an installed face with that exact
|
||||
PostScript name (families that share the guessed prefix are read first), then
|
||||
falls back to a heuristic split of the name. The heuristic splits at the last
|
||||
hyphen. A name without a hyphen loses a trailing capitalised style word
|
||||
(`GmarketSansBold` → Gmarket Sans, 700; `ExampleSansSemiBoldItalic` → Example
|
||||
Sans, 600, italic). A lowercase ending is not a style (`Daylight`), and a style
|
||||
word after the vendor tag `MT` stays in the family (`ArialRoundedMTBold` →
|
||||
Arial Rounded MT Bold).
|
||||
|
||||
The heuristic also gives the family, weight and slant stored on PSD import when
|
||||
the exact face is absent. A legacy family whose name ends in a style word and
|
||||
has no `MT` tag before it (`CooperBlack`) is then stored as the shorter family
|
||||
(Cooper, 900) until the face is installed.
|
||||
|
||||
## Missing fonts
|
||||
|
||||
Opening a PSD or Affinity file already replaces a run's guessed family with the
|
||||
installed family its PostScript name resolves to. A guess still stays on a run
|
||||
when the face was absent at import and the document is reopened from `.pcraft`
|
||||
after the font is installed, when fonts are registered after opening, or when a
|
||||
command sets `font` and `postscriptName` together.
|
||||
|
||||
Missing-font detection (`missing_fonts` and `missing_fonts_in_layer`) and Replace
|
||||
Missing Fonts therefore use the same decision as layout: a run is missing only
|
||||
when neither its stored family, its exact PostScript face nor the heuristic
|
||||
family is installed. A run that resolves is not replaced because an unresolved
|
||||
run shares its family label.
|
||||
|
||||
## Cost
|
||||
|
||||
Detection resolves the PostScript name only for runs whose stored family is not
|
||||
installed. The first such lookup reads the name tables of installed faces; the
|
||||
result is cached until fonts are registered or system fonts are loaded, and
|
||||
layout performs the same lookup for those runs.
|
||||
+8
-2
@@ -1,6 +1,6 @@
|
||||
# Where PhotoCraft falls short of Photoshop
|
||||
|
||||
> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-13 · **Change:** minor (G4: Hue Jitter amount track, #3825 partial; G4: minimum field interaction, #3825 partial; G1: CMYK Invert, Posterize and Threshold on the inks, 16-bit Lab Invert; Photoshop-oracle floor 145/258; G11: `.atn` import maps 112 events: Select and Mask, Filter Gallery Spatter, Ripple, Crystallize, Pattern Fill layers, mask targeting, Step Backward, nudges in points, Bitmap mode; G5: Free Transform H/V skew fields; G9: toolbar tool shortcut editing; refreshed against main: G2, G5, G7, G9, G10, G13, G14, G17 items that landed; G10: DPX read and write, #1049; G4: checkbox-only Brush Settings rows; G11: Load/Save Actions `.atn` landed, AUTO-219-2 partial; G5: hold-a-key spring-loaded tools landed, #2672; G1: #2465 fixed; 2026-10-11: G4: Pattern Stamp and Background Eraser draw live, TOOL-213-7) · **Target:** Adobe Photoshop 2026
|
||||
> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-13 · **Change:** minor (G7: Field Blur's on-canvas pins, #3373; G4: Hue Jitter amount track, #3825 partial; G4: minimum field interaction, #3825 partial; G1: CMYK Invert, Posterize and Threshold on the inks, 16-bit Lab Invert; Photoshop-oracle floor 145/258; G11: `.atn` import maps 112 events: Select and Mask, Filter Gallery Spatter, Ripple, Crystallize, Pattern Fill layers, mask targeting, Step Backward, nudges in points, Bitmap mode; G5: Free Transform H/V skew fields; G9: toolbar tool shortcut editing; refreshed against main: G2, G5, G7, G9, G10, G13, G14, G17 items that landed; G10: DPX read and write, #1049; G4: checkbox-only Brush Settings rows; G11: Load/Save Actions `.atn` landed, AUTO-219-2 partial; G5: hold-a-key spring-loaded tools landed, #2672; G1: #2465 fixed; 2026-10-11: G4: Pattern Stamp and Background Eraser draw live, TOOL-213-7) · **Target:** Adobe Photoshop 2026
|
||||
|
||||
Every known shortfall against Photoshop 2026 (27.11.0), one entry each, ranked by user impact
|
||||
on the way to beta. This is the work list agents pick from: take the highest-ranked entry that
|
||||
@@ -70,6 +70,8 @@ what an agent can't finish alone.
|
||||
(TOOL-214-15); Vanishing Point plane editor (TOOL-214-14); Content-Aware Move's live preview
|
||||
of the result (TOOL-213-4; Transform On Drop and Content-Aware Scale through the transform box,
|
||||
TOOL-214-7, are done).
|
||||
Blur Gallery: Field Blur has its on-canvas pins (2026-10-11, #3373); Iris, Tilt-Shift, Spin and
|
||||
Path Blur still edit their pins as parameter dialogs.
|
||||
- **Evidence:** scorecard rows above, all partial or missing.
|
||||
- **Impact:** these are the tools retouchers and compositors use daily; a slider dialog is not a
|
||||
substitute.
|
||||
@@ -88,7 +90,10 @@ what an agent can't finish alone.
|
||||
- **Estimate:** 120–200 h.
|
||||
|
||||
### G11. Actions and scripting
|
||||
- **Missing:** document-independent action recording (AUTO-219-1), Batch recursion and naming
|
||||
- **2026-10-13 evidence:** Batch supports [output naming templates](batch-naming.md) using
|
||||
`{name}`, `{serial}` and a captured UTC `{date}`, with a starting serial number. Colliding
|
||||
names remain errors; custom output names cannot replace inputs. AUTO-219-5 stays partial.
|
||||
- **Missing:** document-independent action recording (AUTO-219-1), Batch recursion, open-document inputs, progress/cancel and an error-log file
|
||||
(AUTO-219-5), ExtendScript/UXP compatibility. `.atn` steps outside the
|
||||
mapped events (paths, scripts, Generative Fill, Filter Gallery effects other than Spatter,
|
||||
Duplicate Layers into a new document, Bitmap halftone screens…) load as kept Photoshop steps
|
||||
@@ -271,6 +276,7 @@ what an agent can't finish alone.
|
||||
| 2026-10-12 | minor | G4: checkbox-only Brush Settings rows preserve the open controls and Smoothing settings (#4283); no readiness percentage or estimate changed |
|
||||
| 2026-10-12 | minor | G11: Load/Save Actions `.atn` landed (AUTO-219-2 partial); remaining panel work listed |
|
||||
| 2026-10-12 | minor | Refreshed against main: G5 items fixed by #2480, #2327, #2609, #2684, #2675, #2556, #2396, #2527, #2625 and TOOL-214-5/#2442; G7 TOOL-214-7 and Transform On Drop done; G2 #2377 fixed (#2417); G9 UI scale (UI-217-9) and Stamp Visible (UI-217-22) done, prefs 27 of 156; G10 #2225 done (#2482); G13 Khmer, Lao, Myanmar fallback (#3259); G14 CR3 line; G17 Windows ARM64 done (DIST-220-2) |
|
||||
| 2026-10-11 | minor | G7: Field Blur pins are placed, dragged and tuned on the image (#3373); the other Blur Gallery filters remain dialogs |
|
||||
| 2026-10-11 | minor | D5100 image area and Camera Raw tuning validation; G14 remains open |
|
||||
| 2026-10-11 | minor | G13: Czech dynamic UI text localized; engine messages and native review remain open |
|
||||
| 2026-10-11 | minor | G8: triple/quadruple/five-click type selection done (TYPE-218-8, #3493); Type evidence recounted |
|
||||
|
||||
+3
-1
@@ -13,7 +13,9 @@ described in [development.md](development.md). UI tools require a running deskto
|
||||
## Tools and resources
|
||||
|
||||
- `command_list`: discover engine ids, parameter docs and current enabled state; accepts
|
||||
`filter` and `enabled_only`.
|
||||
`filter` and `enabled_only`. Returns a bare JSON array of
|
||||
`{id, label, menu, shortcut, params, enabled, disabledReason, needsDocument}` objects (see
|
||||
[Command list replies](control-protocol.md#command-list-replies)).
|
||||
- `command_run`: `id`, optional `params` and `wait`. Command parameters remain engine-defined.
|
||||
- `command_batch`: ordered `steps`, optional `stop_on_error` (default true); stops at the first
|
||||
error unless false. Not an atomic transaction: earlier successful steps stay applied, with
|
||||
|
||||
+5
-1
@@ -1,6 +1,6 @@
|
||||
# Roadmap
|
||||
|
||||
> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-10 · **Change:** minor (Photomerge implementation status corrected; real-world quality validation remains open) · **Target:** Adobe Photoshop 2026
|
||||
> **Last reviewed:** 2026-10-11 · **Last updated:** 2026-10-11 · **Change:** minor (adaptive Unsharp Mask performance evidence linked; Photomerge status correction retained; alpha gate, focus and estimates unchanged) · **Target:** Adobe Photoshop 2026
|
||||
|
||||
- UI.5: Panels can detach, join other tab groups, split, resize and redock through shared docking transactions. Custom layouts persist with workspaces, respect workspace locking, and retain collapse flags for intact native groups.
|
||||
|
||||
@@ -72,6 +72,9 @@ Ranked; each item links to its gap entry. Pick from the top unless an issue is a
|
||||
Photoshop re-open check (FILE-216-4); Photoshop-oracle floor 133/256 → 200+. 150–250 h.
|
||||
2. **Performance budgets** ([G2](gaps.md#g2-interactive-performance)): the 22 over-budget
|
||||
scenarios, the P12 GPU crash at 150 layers, brush and cursor lag (#2619, #2566). 200–350 h.
|
||||
Local adaptive [Unsharp Mask optimisation](unsharp-mask-performance.md) improves native
|
||||
threshold-zero 24 MP RGBA CPU application by 37–102x at radii 300–1000, with measured
|
||||
rounding differences and an exact fallback; no published budget is closed by that measurement.
|
||||
3. **User bug backlog** ([G3](gaps.md#g3-user-reported-bug-backlog)): 579 open issues, most from
|
||||
0.5/0.6 users; triage weekly, fix regressions first. 250–400 h.
|
||||
4. **Brush and transform feel** ([G4](gaps.md#g4-brush-feel), [G5](gaps.md#g5-transform-handles-and-modifiers)):
|
||||
@@ -113,6 +116,7 @@ Each milestone has a **definition of done (DoD)** and must leave `main` green on
|
||||
|
||||
| Date | Change | Summary |
|
||||
|---|---|---|
|
||||
| 2026-10-11 | minor | Linked adaptive Unsharp Mask performance and quality evidence; milestones, alpha gate and estimates unchanged |
|
||||
| 2026-10-10 | minor | Photomerge is implemented; real-world quality validation remains open |
|
||||
| 2026-10-10 | minor | Alpha gate table (core-workflow gate from the progress-docs standard): passes, stage stays alpha |
|
||||
| 2026-10-10 | major | Progress-docs standard: honest assessment and dated measurements moved to `target-app-parity.md`, Affinity notes to `file-format-parity.md`; new Current focus and estimates; `parity.md` renamed `parity-checklist.md` |
|
||||
|
||||
+3
-3
@@ -9,7 +9,7 @@ Generated by `cargo xtask scorecard` from `perf/budgets.toml`, `perf/baseline.js
|
||||
| [Performance](#performance) | 3 | 22 | 22 | 56 scenarios: 3 within budget, 22 over budget or failing, 9 tracked only, 17 not run, 5 not measurable yet (baseline 2026-10-05) |
|
||||
| [File compatibility](#file-compatibility) | 7 | 13 | 7 | io corpus: oracle ≥ 146/170, round trip ≥ 169/170; psd-tools corpus: oracle ≥ 236/309, round trip ≥ 308/309; photoshop oracles: oracle ≥ 145/256, round trip ≥ 258/256 |
|
||||
| [Tools](#tools) | 28 | 14 | 1 | |
|
||||
| [Workspace and UI](#workspace-and-ui) | 13 | 6 | 4 | settings that do nothing: 26 of 156 (target 0) |
|
||||
| [Workspace and UI](#workspace-and-ui) | 13 | 6 | 4 | settings that do nothing: 26 of 157 (target 0) |
|
||||
| [Type](#type) | 4 | 3 | 2 | |
|
||||
| [Automation](#automation) | 5 | 2 | 4 | 631 of 631 menu items live (100.0%) |
|
||||
| [Reliability](#reliability) | 5 | 2 | 0 | never-crash lints on 28 of 28 crates; panic_hunt present |
|
||||
@@ -176,7 +176,7 @@ Corpus floors (`crates/io/tests/corpus.rs`): the enforced minimums; the corpus t
|
||||
|
||||
## Workspace and UI
|
||||
|
||||
**Settings that do nothing: 26 of 156** (target 0, #204). Counted by the prefs audit (`xtask/src/scorecard.rs`): a `Preferences` field counts as read when code outside the prefs model (`prefs.rs` except its `impl Session` blocks; tests excluded; the schema-driven dialog never names a field) accesses `section.field`, or `.section` and `.field` in the same file, or calls a section method that reads `self.field`. It is a heuristic lower bound: a generic name can look read when it isn't.
|
||||
**Settings that do nothing: 26 of 157** (target 0, #204). Counted by the prefs audit (`xtask/src/scorecard.rs`): a `Preferences` field counts as read when code outside the prefs model (`prefs.rs` except its `impl Session` blocks; tests excluded; the schema-driven dialog never names a field) accesses `section.field`, or `.section` and `.field` in the same file, or calls a section method that reads `self.field`. It is a heuristic lower bound: a generic name can look read when it isn't.
|
||||
|
||||
Unread: `general.color_picker`, `general.animated_zoom`, `general.zoom_resizes_windows`, `workspace.auto_show_hidden_panels`, `workspace.enable_floating_document_window_docking`, `file_handling.save_in_background`, `performance.cache_levels`, `performance.legacy_compositing`, `scratch_disks.disks`, `units_and_rulers.column_width`, `units_and_rulers.gutter`, `plug_ins.show_extension_panels`, `plug_ins.allow_scripts_to_connect`, `plug_ins.generator_enabled`, `type_.text_engine`, `type_.recent_fonts`, `enhanced_controls.scrubby_slider_acceleration`, `enhanced_controls.touch_gestures`, `raw_defaults.color_space`, `raw_defaults.bit_depth`, `raw_defaults.resolution`, `raw_defaults.sharpen_for`, `raw_defaults.open_as_smart_object`, `raw_defaults.apply_auto_tone`, `integrations.allow_agent_control`, `integrations.control_port`.
|
||||
|
||||
@@ -231,7 +231,7 @@ Menu wiring (`docs/parity-checklist.md`): 631 of 631 menu items live (100.0%). T
|
||||
| AUTO-219-2 | Actions panel: step and dialog toggles, reorder, delete a step, Stop, sets, .atn import | done | [#219](https://github.com/storytold/photocraft/issues/219) | 2026-10-12: set folders (collapsible, drag between sets, actions.assignSet), dialog toggle column (playback opens the step's dialog seeded with its values and resumes on OK; actions.dialog), Insert Stop… (actions.insert), step toggles, reorder, delete a step; Load/Save Actions (.atn) in the panel menu, CLI batch and actions.load/save (atn_cmds.rs): 90 Photoshop events map to commands both ways, the rest are kept verbatim and fail at playback by name; step toggles, reorder and delete a step done; Stop steps play (actions.stopMessage) but there is no Insert Stop menu item; sets and dialog toggles are stored and round-trip but the panel neither groups by set nor edits the dialog toggle |
|
||||
| AUTO-219-3 | actions.record/stop/play/list commands for agents and the CLI | done | [#219](https://github.com/storytold/photocraft/issues/219) | actions.list/get/record/stop/play/delete in actions_cmds.rs; the panel, CLI and MCP share them. Nested steps pass the session authorize hook. |
|
||||
| AUTO-219-4 | Replay tests for crop, filters, selections and styled text on a second document | done | [#219](https://github.com/storytold/photocraft/issues/219) | actions_cmds.rs: a_recorded_edit_run_replays_on_a_second_document records a crop, a Gaussian Blur, a selection fill and faux-bold type on one document and replays all of them onto a second (plus the original layer/select/fill replay) |
|
||||
| AUTO-219-5 | Batch: subfolders, open documents, naming template, progress/cancel, error log, stop | partial | [#219](https://github.com/storytold/photocraft/issues/219) | file_cmds.rs:590-631 folder/array input, per-file errors; no recursion, template or cancel |
|
||||
| AUTO-219-5 | Batch: subfolders, open documents, naming template, progress/cancel, error log, stop | partial | [#219](https://github.com/storytold/photocraft/issues/219) | file_cmds.rs and file_cmds/batch_naming.rs: folder/array input, per-file errors, {name}/{serial}/{date} output templates and starting serial; no recursion, open-documents source, cancel or error-log file |
|
||||
| AUTO-219-6 | Plug-in ABI v2: panel kind, progress/cancel calls, read other layers, Last Filter repeats | missing | [#219](https://github.com/storytold/photocraft/issues/219) | runtime.rs:15 ABI_VERSION = 1; manifest.rs:18 Kind::Filter only |
|
||||
| AUTO-219-7 | Local ONNX models behind a flag, managed in Preferences; subject select, background removal | missing | [#219](https://github.com/storytold/photocraft/issues/219) | No ONNX runtime dependency |
|
||||
| AUTO-219-8 | xtask check that every panel button routes through a command id | missing | [#219](https://github.com/storytold/photocraft/issues/219) | No such xtask check |
|
||||
|
||||
@@ -184,6 +184,8 @@ parity for the area and are already contained in the dimension rows above.
|
||||
| Workspace, panels, preferences | 40% | 150–250 | 46 of 149 prefs do nothing; no floating/OS-window panel groups; Libraries, Comments, Contextual Task Bar missing |
|
||||
| AI / generative | 10% | 300–600 | See the dimension row |
|
||||
|
||||
Batch supports [output naming templates](batch-naming.md); AUTO-219-5 remains partial.
|
||||
|
||||
## Remaining effort and calibration
|
||||
|
||||
**Calibration.** The repository's history from the first commit (2026-09-30) to 2026-10-10: 1,152
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
# Unsharp Mask performance
|
||||
|
||||
Large-radius native Unsharp Mask uses separable FFT convolution with the original
|
||||
discrete Gaussian coefficients and the existing `rustfft` dependency. A streamed
|
||||
separable path preserves the original tap order for exact processing.
|
||||
|
||||
FFT is eligible for radii 64–1000 with at least 65,536 output pixels, a nonzero
|
||||
amount and a zero or negative threshold. Positive thresholds, unstable samples,
|
||||
unsupported geometry and insufficient scratch use the exact path. WebAssembly
|
||||
retains exact processing. Alpha, selections, edges and cancellation are preserved.
|
||||
Smart Sharpen, High Pass and shared blur math are unchanged.
|
||||
|
||||
FFT changes summation order and permits small rounding differences. The measured
|
||||
maximum was one 8-bit storage level, approximately one 16-bit level, and 8.762e-6
|
||||
for the HDR fixture. Exact-path comparisons were byte-identical. Transform axes
|
||||
are capped at 32,768; FFT scratch grouping has a 1 GiB budget, excluding document
|
||||
tiles. This is not a whole-process memory limit.
|
||||
|
||||
Before/after numbers, benchmark methodology, numerical tolerances and preview
|
||||
measurement limits are recorded in [PR #2987](https://github.com/storytold/photocraft/pull/2987).
|
||||
The comparisons use synthetic images and measure CPU computation, not slider
|
||||
event-to-screen latency. No published performance budget or rendering-parity
|
||||
floor is raised by these measurements.
|
||||
Reference in new issue
Block a user