Commit Graph
5896 Commits
Author SHA1 Message Date
aiongg a635457fa0 merge-fwb: A13: blend row keys step past greyed modes, a greyed mode's letter picks nothing (#13852) 2026-11-16 12:39:46 +00:00
aiongg ab7c3c712c merge-fwb: FW7: a claimed key press takes its text; Image Size Alt+1..8 pick Resample (#15054) 2026-11-16 12:39:46 +00:00
aiongg c3f113a5c5 merge-c: 1.4a: Rectangle gear constraints in the drag (Square, Fixed Size, Proportional, From Center; ⇧ and ⌥ turn Square and From Center off) through one BoxRule for box_drag (#13343) 2026-11-16 12:39:18 +00:00
aiongg 08b5c2ac41 merge-fwb: A11: trial that a NumberField draft that is no number owes no range alert 2026-11-16 12:39:06 +00:00
aiongg 463acfe5bd merge-fwe: FW16 E4: craft_automation::agents: agent settings, the launcher's switch (AgentSwitch) and the connection file 2026-11-16 12:38:25 +00:00
aiongg 6540f19ff2 merge-c: 1.1: ⇧ squares a box drag from the drag's shorter side, ⇧⌥ the same from the centre (#13222) 2026-11-16 12:38:04 +00:00
aiongg a809ccadc6 merge-fwd: item 1: FW3: windows::mount_window decides a viewport mount's own window (not from a full-screen or Wayland-maximized opener) at all six sites; trials 2026-11-16 12:37:57 +00:00
aiongg 518da9acb9 merge-c4: Q9: the canvas publishes the precise cursor in its CanvasSpace (Canvas::precise_cursors, toggled by Caps Lock); ToolHost::precise_cursors goes 2026-11-16 12:37:53 +00:00
aiongg 73d68241d7 merge-c: 1.2: Line ⇧ snaps to the axis within 30° (keeping the along-axis offset, at least 1 px) or the diagonal at the shorter offset, one rule in craft-behavior (axis_or_diagonal) 2026-11-16 12:37:51 +00:00
aiongg 3f139e21af merge-fwb: FW2: a trackpad steps only a focused or armed value control; a value control lets go of a wheel gesture when the pointer leaves it 2026-11-16 12:37:30 +00:00
aiongg 77b98ad590 merge-fwe: FW16 E3: stoppable control server (listen, serve, Listening) replaces start 2026-11-16 12:36:06 +00:00
aiongg c36394fe4b merge-fwd: item 3: the window reads the focused canvas's leftover Escape last (with_window_intents), leave_to_window goes; a full-window dialog closes on Escape from its focused canvas; trial 2026-11-16 12:35:28 +00:00
aiongg dffe1048ed merge-fwe: FW16 E2: challenge handshake (ServerHandshake) in craft-automation's control channel, one-frame auth kept 2026-11-16 12:35:15 +00:00
aiongg bacbfc1ffb merge-c4: 3.2: Rotate View Clockwise and Counterclockwise step in screen space, so a mirrored view turns the same way (#4931) 2026-11-16 12:35:07 +00:00
aiongg dd1dbea3d4 merge-c4: 5.1: LassoTool::outline_operation, the operation the open outline latched at its press 2026-11-16 12:34:31 +00:00
aiongg 8f78c213de merge-c4: 3.1: a Lasso click deselects only when its operation is New (#13612) 2026-11-16 12:34:06 +00:00
aiongg fa2993004a merge-fwe: FW16 E1: craft-ai-agents in the workspace and the craft facade, craft-automation agents feature 2026-11-16 12:33:41 +00:00
aiongg 862486453d merge-fwa: FW7: Image Size readout counts whole-byte rows of the flat image and says (was …) only after a size change 2026-11-16 12:31:40 +00:00
aiongg e5e4c1cd2e merge-fwa: FW6: Export As Scale All rows (one file per size, folder for several), Enter does not export, Convert to sRGB on by default as a Color Space check box 2026-11-16 12:31:40 +00:00
aiongg 9befcd2612 merge-fwa: FW5: New Document Bitmap (1 bit, no Transparent), Pixel Aspect Ratio row, Web/Mobile cards turn Artboards on, Save Document Preset icon and pane 2026-11-16 12:31:40 +00:00
aiongg 743dfd1da6 merge-fwa: FW4: one tool-icon cursor with a crosshair or arrow pointer (PointerTool replaces CrosshairTool), protractor drawing 2026-11-16 12:31:40 +00:00
aiongg 4e69ea3f01 merge-fwa: FW1: actions library commands (Clear All, Reset, Replace) with one undo, PhotoCraft folder occurrences read into unique names 2026-11-16 12:31:25 +00:00
FredApps 8e03cd016d craft-pdf: content streams (parse, serialize, matrices) from PDFCraft (#1852)
Adds the content feature and cos::content: PDFCraft's crates/content, moved
here so other apps can read and write page content streams. The parser keeps
operator spans, skips and counts unreadable bytes, and keeps inline images
whole; tests move with it.

Refs #778
2026-11-16 07:30:09 -05:00
FredApps dd80bb5bc5 Keep cached results for shadowed XLSB name references 2026-11-16 13:21:01 +01:00
FredApps 083920ebd7 psd: keep a layer record's blocks before an overlong one (#1845) 2026-11-16 07:19:08 -05:00
FredApps a80c0f25f1 ps: add a write feature for PostScript tokens (#778, #790) (#1840)
* ps: add a write feature for PostScript tokens

Numbers, strings, matrices, path data and Flate, so apps can emit a
PostScript or EPS program without owning the token serializer. Path and
paint operators can use the Language Reference names or the one-letter
names a bound prolog defines. Container concerns stay in craft-eps.

Part of #778 and #790.

* ps: tighten write-feature number trimming and Flate bounds

- Require flate2 1.1.10 so inflate rejects an incomplete zlib stream.
- Trim trailing zeros only when the token has a decimal point, so
  places=0 keeps integer zeros at the 1e15 boundary.
- Use saturating_add when bounding inflate, so max = u64::MAX does not
  overflow.
2026-11-16 07:12:00 -05:00
FredApps ddbe78231b craft-video: pass the packet's Adobe APP14 transform to the MJPEG decoder (#1847)
mjpeg::Decoder called craft_jpeg::decode with no Adobe transform, so a
packet with numeric component ids and APP14 transform 0 (RGB as stored)
was converted as YCbCr and came out in the wrong colours. The decoder
now reads the transform with craft_jpeg::adobe_transform, as the JPEG
image readers do. A regression test injects APP14 transforms 0 and 1;
it fails without the fix.
2026-11-16 07:10:48 -05:00
FredApps 431f704478 svg: let SvgWriter name the encoding and write a DOCTYPE subset (#778, #789) (#1842)
* svg: let SvgWriter name the encoding and write a DOCTYPE subset

VectorCraft's SVG document wrapper needs a Latin-1 declaration and a
<!DOCTYPE svg [ <!ENTITY …> ]> internal subset, including a minified
form with no extra newlines. The existing declaration was UTF-8 only,
and craft-xml's doctype helper writes only <!DOCTYPE name>.

Part of #778 and #789.

* svg: expose SvgWriter::as_str for a second pass on open markup

A consumer that rewrites character references or hashes the document
around a metadata element needs the text of an unclosed root. finish()
would close it first.
2026-11-16 07:04:35 -05:00
FredApps 9f46880bf5 Merge remote-tracking branch 'origin/main' into w1849
# Conflicts:
#	Cargo.toml
#	README.md
2026-11-16 13:01:00 +01:00
FredApps 48dcd1b472 Merge remote-tracking branch 'origin/main' into w1846
# Conflicts:
#	Cargo.toml
#	README.md
2026-11-16 13:00:41 +01:00
FredApps 57f94d5283 Merge pull request #1834 from andyching168/docx/wps-shape-vml-fallback
craft-docx: write Word 2010 shapes inside mc:AlternateContent with a VML fallback
2026-11-16 13:00:13 +01:00
FredApps 356c7ceb29 Merge remote-tracking branch 'origin/main' into w1843
# Conflicts:
#	Cargo.toml
#	README.md
2026-11-16 12:59:40 +01:00
FredApps b836a71856 craft-svg: a paths feature, and CSS colours with their alpha (#1848)
The geometry reader (craft_svg::paths) is the only part of the crate that
needs vectorcraft-geom and vectorcraft-pathops, and the tree is the only part
that needs craft-image-codecs. Both are now optional: paths is a default
feature and tree turns it on, so existing users build the same crate, while
an app that only needs SVG text, guards, path data, colours and the writer can
turn default features off and take no app crates or image codecs.

parse_color_alpha is parse_color keeping the alpha of #rgba, #rrggbbaa and
the fourth value of rgb()/hsl(). parse_color now calls it and still drops it.

Refs #778, #789
2026-11-16 06:54:06 -05:00
Dylan M. Taylor e409e74333 fix(print): opt-in bounded discovery for larger CUPS fleets (#1734)
* fix(print): allow explicitly bounded fleet discovery

* print: frame fleet discovery fixture as an HTTP reply
2026-11-16 06:49:02 -05:00
tsw2k 8b876291a1 craft-docx: a frame preset shape is a border with a hole
Moves the format part of storytold/wordcraft#6162 into craft-wordmodel,
craft-docx, craft-flow and craft-odf, where WordCraft's DOCX and ODT I/O now
live (#778).

A DrawingML `prstGeom frame` (a letterhead's page border) was read as a
rectangle, so its fill covered the whole page behind the text. It is now
ShapeKind::Frame, its border width read from `adj1` (capped, as a rounded
rectangle's corner is) and written back as the same preset.
connector::frame_width gives the border in points. Formats with no frame
shape (ODT and the other flow formats) get the freeform it draws: its
outline and, wound the other way, its hole, so the hole stays empty under
either fill rule.
2026-11-16 11:46:35 +00:00
alehel 1676c70cd0 Merge remote-tracking branch 'origin/main' into claude/vmd-format-support-7746c5
# Conflicts:
#	crates/audio/src/lib.rs
#	crates/video/src/lib.rs
2026-11-16 12:43:58 +01:00
tsw2k fe68ce8c51 craft-flow: narrow table columns keep their width on import
Moves the import part of storytold/wordcraft#4964 into craft-flow, where
WordCraft's RTF and ODT import now builds its tables (#778).

Import raised every column under 6 pt to 6 pt, so a form with many narrow
columns came out wider than its source. Columns over 1 pt now keep the
width the file gives; one of a point or less, none or not a number still
gives the table equal columns, so nothing below a point, negative or NaN
reaches layout.

craft-rtf merged grid columns under 6 pt that no row needed, because import
would widen them. With import keeping them, that merge only moved cell
edges, so it goes: grid columns merge only while there are over 63 or one
is a point or less.

Stacked on the craft-rtf column grid change.
2026-11-16 11:40:14 +00:00
FredApps 070005125f Add craft-sniff: name a file's format, media type and extension from its first bytes (#1841) 2026-11-16 06:38:32 -05:00
tsw2k 69d26616e0 craft-rtf: tables keep their column grid on odd rows
Moves storytold/wordcraft#4595 into craft-rtf, where WordCraft's RTF
reader now lives (#778).

column_grid dropped the whole grid, so every spanning cell fell back to one
of N equal columns, when a table had more than 63 distinct cell edges, a
zero-width cell, a cell without \cellx, or two edges under a point apart
(which the document model rejects as a column width). Forms exported from
spreadsheets, with many narrow columns, hit this: a report title wrapped a
few words per line in a quarter of the page and the document grew to
hundreds of pages.

Now the narrowest column merges into the next, one at a time, while there
are over 63 columns, a column of a point or less, or a column under 6 pt
with more columns left than the widest row has cells; each cell edge snaps
to the nearest grid edge, and a zero-width or undefined cell takes a column
in its own row only.
2026-11-16 11:35:07 +00:00
FredApps 99e0f2be89 render-parity: compare two renders against a stated tolerance (#587) 2026-11-16 12:34:01 +01:00
FredApps b367c04c9d Keep cached results for malformed empty XLSB names 2026-11-16 12:25:17 +01:00
FredApps 712feab586 craft-zip: the lenient reader as craft_zip::lenient instead of a second ZIP crate
craft-unzip's raw-bytes reader moves unchanged into craft-zip as the
`lenient` module, behind the `lenient` feature (DEFLATE) and
`lenient-bzip2`, `lenient-lzma` and `lenient-zstd` for the other
methods, with `serde` for the listing types. craft-zip's default build
is unchanged; the module doesn't use the `zip` crate. Its unit and
integration tests move with it and run in craft-zip's test build.
2026-11-16 12:25:00 +01:00
dotCooCoo a57f393d97 craft-video: the ffmpeg MJPEG round-trip test encodes the same picture every run
we_decode_what_ffmpeg_encodes_to_what_ffmpeg_decodes built its input
with ffmpeg's gradients source, which picks random colors on every run,
so the agreement it measured changed from run to run. On one CI run the
4:2:0 case scored 30.5 dB against the 38 dB floor. The test now writes
the file's own picture(67, 41, 3) as raw RGB and feeds it to ffmpeg
through rawvideo, for both the plain and the default-tables encodes.
2026-11-16 03:21:19 -08:00
FredApps 1c33c7cfc3 Merge shared XLSB sizes into defined-name integration 2026-11-16 12:19:59 +01:00
FredApps 44d83fa8f6 Merge pull request #1323 from keithcsqueensu/xlsb-sizes
craft-xlsx: read row heights, column widths and default sizes of a binary sheet
2026-11-16 12:18:18 +01:00
FredApps eafb50aff3 Merge pull request #1653 from storytold/codex/dng-opcode-interpreter
Parse DNG opcode parameters into typed values
2026-11-16 12:03:21 +01:00
FredApps 806fa9a5a0 Merge pull request #1648 from storytold/codex/dng-capture-info
Share CinemaDNG capture metadata parsing
2026-11-16 12:02:33 +01:00
Dylan M. Taylor 37124f86d7 feat: add craft-mcp-server (JSON-RPC 2.0 MCP protocol) (#1649)
* feat: add craft-mcp-server (JSON-RPC 2.0 MCP protocol)

Port from solidcraft: MCP server machinery any app may share,
independent of transport and tools.

- JSON-RPC 2.0 over stdio (newline-delimited)
- MCP lifecycle: initialize, initialized, ping, notifications
- Tools: register, list, call with schema validation
- Resources: register, list, get by URI or template
- Prompts: register, list, get with argument completion
- Content blocks: text, image (base64), progress tokens

No external dependencies beyond serde_json.
Follows craft-libs safety pattern: #![deny(clippy::unwrap_used, ...)]

* retrigger CI

* retrigger CI

* Record MCP server dependencies in workspace lockfile

* chore: update rustls-webpki 0.103.15→0.103.16 and zip 9.1.0→9.1.3
2026-11-16 06:02:29 -05:00
FredApps 5ff3dd85b8 Merge pull request #1647 from storytold/codex/dng-metadata
Share bounded DNG processing and camera metadata
2026-11-16 11:56:50 +01:00
65848bfe29 Add craft-macho: Mach-O slice tables and header names from Craft Anything
Moves the header pieces of Craft Anything's crates/formats/src/macho.rs
into a pure-Rust crate: fat_slices (fat and fat64), FatSlice, cpu_name,
load_command_name, load_command_min_size, nibble_version and
unixthread_pc. The load command walker, symbols, stubs and Objective-C
metadata stay in the app.

Part of #778.

Co-authored-by: Afloat <ShuffleMonkey@163.com>
Co-authored-by: BFlat <bombayapirat@gmail.com>
Co-authored-by: Brandon Thomas <echelon@gmail.com>
Co-authored-by: Cr <60964294+Chr0mium24@users.noreply.github.com>
Co-authored-by: GGWA <65288322+rech4210@users.noreply.github.com>
2026-11-16 11:47:05 +01:00