Commit Graph
5537 Commits
Author SHA1 Message Date
aiongg 04e1f2eda9 Merge remote-tracking branch 'upstream/next' into histogram-native-expand 2026-11-18 05:28:58 +00:00
aiongg 5455191f60 Merge pull request #2075 from aiongg/next-ci-baseline
Fix next's CI baseline: action pins, rustfmt, doc link, clippy
2026-11-18 00:26:14 -05:00
aiongg a61e91f4c7 story suite: the settle checks run on one OS
On macOS the menu bar moves to the system menu, so a MenuBar story draws nothing in the window and the leaf-allocation check failed on macOS runners. The checks (allocates, stable id and size, one pass) hold on every OS.
2026-11-18 03:55:02 +00:00
aiongg 80c7fd661c menu bar and list tests: PC keys on every runner
The in-window menu bar, its Alt, F10 and letter keys, and Ctrl moving only a list's lead are PC behaviour. The fixtures took the host's OS, so the tests failed on macOS runners.
2026-11-18 02:45:07 +00:00
aiongg 5e56f5c98b icon id scan: only crates that use icon ids
craft-cloud-ui is plain egui: its menu item's icon("..") is a text glyph, not a catalog id.
2026-11-18 02:20:23 +00:00
aiongg 72df1059bf cloud docs: no links to private items, as the workspace docs check requires 2026-11-18 01:42:39 +00:00
aiongg 06125b23ba ci: next's gate matches main's text except its Linux-only pushes
The workspace script tests pin main's gate. Clippy runs without --keep-going as on main, the
facade-as-an-app clippy moves to the Docs workflow, and the unix gpu test group is back.
2026-11-18 01:25:41 +00:00
aiongg 0d5611ea36 craft: the facade lists the member crates and features from the 18 Nov sync 2026-11-18 01:22:22 +00:00
aiongg 4d22e6b958 Merge storytold main d6b5b16bbb into next (18 Nov sync)
- Workflows: main's per-crate layout, with next in the push triggers, Linux only for pushes to
  next, next's crate features (keymap egui, window and update ui) and test paths (crw samples and
  the pdf fixtures run inside the lib's test binary). The workspace gate keeps --keep-going and
  the facade-as-an-app clippy from next's ui.yml. Per-crate doc steps live in docs.yml, which also
  documents craft-ui, the ui-* crates, craft-doc and craft-pdf with every feature. docpath, i18n,
  print and ui workflows go, as on main. actions.lock lists docs.yml and theme.yml.
- Main's cloud and share UI (account, cloud, share, presence, the overflow menu and split button)
  lives in the new crate craft-cloud-ui as main wrote it; the craft-ui facade forwards share and
  cloud and re-exports account, cloud, share and presence, so craft-cloud-local builds unchanged.
- audio and media: main's new tests join tests/main.rs under their features.
- cms: main's new synth and FOGRA39 tests, with the fogra39() helper they use.
- nextest: no gpu group on unix; next's tests create no GPU device.
2026-11-18 01:22:22 +00:00
aiongg 988aea1845 timeline: the row-menu test presses the Menu key on a PC shell
A Mac keyboard has no Menu key and the shell reads it only off the Mac, so the test failed on
macOS runners.
2026-11-18 00:28:14 +00:00
aiongg 8648f6743b gitattributes: the craft facade manifest keeps LF on checkout 2026-11-17 23:14:08 +00:00
aiongg 27e28cd24e menu: the bar and context rows take the shell's platform unless one is set
MenuBarUi and context::rows used the build's target, so a test that runs the shell as Linux on
a Mac runner still got a Mac bar without Alt letters. They read Target::of_shell from the
frame's Env, as the shortcut column already does; the CJK mnemonic test runs as Linux.
2026-11-17 22:58:38 +00:00
aiongg d6b5b16bbb Merge pull request #2113 from aiongg/ci-speed-b
ci: lint leg, cached corpora, platform legs only when needed, superseded main runs cancelled
2026-11-17 17:57:30 -05:00
Dylan M. TaylorandBrandon Thomas e5f00f5bf6 Extract bounded XFDF field-value reader (#2056)
* Extract bounded XFDF field-value reader

* Record retained XFDF source contributor provenance

---------

Co-authored-by: Brandon Thomas <echelon@gmail.com>
2026-11-17 23:47:23 +01:00
Dylan M. Taylor 5cd16f2b9a Merge pull request #2107 from storytold/cutover/vectordrawable-depth
vectordrawable: bounded depth option and iterative XML writer
2026-11-17 17:43:09 -05:00
Dylan M. Taylor 2e686d9668 Merge pull request #2110 from storytold/dot/jpeg-tokenless-20261117
jpeg: tokenless two-pass encoding with MCU-row scratch
2026-11-17 17:41:57 -05:00
aiongg 5f74a21acb ci: UI and update limits sized for uncached Windows builds on pull requests into next 2026-11-17 22:18:47 +00:00
aiongg 4f62bf48d8 ui-contract: a drive that changes nothing names each run and the edits it sent 2026-11-17 22:18:47 +00:00
aiongg baceabad8e pages: the margin handle stories fit the page to the stage
The story showed a Letter page at 100 % centred on the stage, so on a stage narrower than the
page the left and top margins sat outside the canvas and the drag pressed nothing. It fits the
page with the canvas's Fit on Screen, and the drive fails loudly when the Left Margin handle is
missing.
2026-11-17 22:18:47 +00:00
aiongg 019d54bfff ci(jpeg): the uncached wasm check gets a 20-minute limit 2026-11-17 22:07:49 +00:00
aiongg c016bbb209 gitattributes: theme size files and token dumps keep LF on checkout 2026-11-17 21:43:23 +00:00
aiongg 1dd6bb654c ui-widgets: FitMode::Shrink is non_exhaustive 2026-11-17 21:43:23 +00:00
aiongg ae51a53334 design-lint: source sites use the root without the verbatim prefix and '/' separators; restore the trial-rooms exception; tests compare '/' paths 2026-11-17 21:43:23 +00:00
aiongg e388ed46c0 browse: link and relink tests use paths that are absolute on Windows 2026-11-17 21:43:23 +00:00
Dylan M. Taylor dfdc68c46b Merge pull request #2093 from storytold/dot/psd-guides-v1-20261117
psd: share legacy Grid and Guides record framing
2026-11-17 16:35:45 -05:00
aiongg 1e446ebe05 Merge pull request #2092 from aiongg/ci-speed-a
ci: faster Workspace gate: nextest everywhere, one test feature set, fuzz caps with a nightly full run, per-crate workflows without duplicates
2026-11-17 16:28:16 -05:00
aiongg f79937d3be craft: the facade's features table lists the member crates' features from the 17 Nov sync 2026-11-17 21:24:33 +00:00
d118983bf9 Extract Java class reader and JVM opcode decoder (#2048)
* Port Java class source: Craft Anything

Source: storytold/craft-anything@f64ae3bf3c

* Port Java class source: Find class usage in multidimensional object arrays (R0.5) (#437)

Source: storytold/craft-anything@ffe15c9165

* Port Java class source: More format parsers keep to their declared lengths and refuse impossible values (#722)

Source: storytold/craft-anything@b9ca099903

* Port Java class source: Address the parser review findings from #722 (#766)

Source: storytold/craft-anything@eab6a0f01b

* Port Java class source: Read JVM method parameters containing parentheses in class names (R3.12) (#1342)

Source: storytold/craft-anything@fb4c437fe6

* Port Java class source: Reject Java constants that exceed the constant-pool slots (R3.12) (#1373)

Source: storytold/craft-anything@1c4f233f08

* Port Java class source: Validate JVM switch tables before allocating decoded pairs (R3.12) (#1503)

Source: storytold/craft-anything@b40c56ef5c

* Port Java class source: Reuse constant-pool names while reading Java attributes (R3.12) (#1549)

Source: storytold/craft-anything@76fcdaadb7

* Port Java class source: Trace JVM bootstrap dependencies at their bytecode use sites (R3.12) (#1648)

Source: storytold/craft-anything@c5e524dd08

* Port Java class source: Reject impossible JVM array allocation operands (R3.12) (#1675)

Source: storytold/craft-anything@f04d7456e0

* Port Java class source: Report truncated Java class attribute tables (R3.12)

Source: storytold/craft-anything@420552ff74

* Expose neutral Java class API and retain checked reader and synthetic fixtures

* Retain Java regression: java_array_operands

Source: storytold/craft-anything@f04d7456e0

* Retain Java regression: java_attribute_names

Source: storytold/craft-anything@76fcdaadb7

* Retain Java regression: java_constant_pool_slots

Source: storytold/craft-anything@1c4f233f08

* Retain Java regression: java_invoke_operands

Source: storytold/craft-anything@eab6a0f01b

* Retain Java regression: java_linkage_references

Source: storytold/craft-anything@c5e524dd08

* Retain Java regression: java_truncated_attributes

Source: storytold/craft-anything@420552ff74

* Retain Java regression: java_wide_opcodes

Source: storytold/craft-anything@b9ca099903

* Register Java class reader and retain source regression coverage

---------

Co-authored-by: Brandon Thomas <echelon@gmail.com>
Co-authored-by: Afloat <132809511+Afloat16@users.noreply.github.com>
Co-authored-by: BFlat <bombayapirat@gmail.com>
Co-authored-by: Afloat <ShuffleMonkey@163.com>
Co-authored-by: RRFZ <247457381+Plastic-time@users.noreply.github.com>
2026-11-17 16:13:18 -05:00
aiongg e92fce95d5 ui-contract: the palette-level test expects Windows' inactive palette at the bottom 2026-11-17 21:08:01 +00:00
Dylan M. Taylor 971e8ad8f8 jpeg: add tokenless two-pass baseline encoding 2026-11-17 16:00:45 -05:00
aiongg 9f6ee78987 harfbuzz-subset-sys at storytold/harfbuzz rust-subset-15.0.0 f32ed1e54 (the /bigobj merge) 2026-11-17 20:59:30 +00:00
Dylan M. Taylor 1d5255e07f vectordrawable: bound configurable XML depth with iterative writing 2026-11-17 15:48:26 -05:00
aiongg 04d32b745e nextest: drop the craft-ui GPU group; next's craft-ui has no visual_regression binary and its nextest-run tests create no GPU device 2026-11-17 20:43:00 +00:00
aiongg 76ea2fb7ad gitattributes: the components index keeps LF line endings on every checkout 2026-11-17 20:39:27 +00:00
aiongg 0c53094f03 ci(print): the test build runs before the 10-minute limit on the test run 2026-11-17 20:37:44 +00:00
aiongg d193553451 platform: the macOS clipboard check compares the pasteboard's type identifiers without unsafe 2026-11-17 20:34:19 +00:00
aiongg 9c9d12e4e3 docpath: the link-status test uses a path that is absolute on Windows too 2026-11-17 20:19:49 +00:00
aiongg dca128d42f harfbuzz-subset-sys at 639cb004d: builds with /bigobj under MSVC 2026-11-17 20:15:10 +00:00
aiongg 3b0164c312 menu: the AppKit test passes each document's command as a str 2026-11-17 19:55:49 +00:00
Dylan M. Taylor 8d5c939e20 psd: use fixed-size guide chunks for strict clippy 2026-11-17 14:46:32 -05:00
Martin BallandClaude Sonnet 5.5 93dac78c93 craft-image-codecs: wrap a clipboard DIB as a BMP (dib_to_bmp, dib_layout) (#2062)
* image-codecs: wrap a clipboard DIB as a BMP (#778)

Add bmp_probe::dib_to_bmp (prepend the 14-byte file header, pixel offset
from the header with saturating arithmetic, try_reserve for the output)
and bmp_probe::dib_layout (V4/V5 alpha-mask BI_RGB becomes BI_BITFIELDS,
mask copy after the header). Both are ported from WordCraft's
crates/geom/src/picture.rs so it can drop its local copies. Tests compare
byte-for-byte with the originals over crafted DIBs and every prefix, and
decode wrapped results.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* image-codecs: fix DIB offsets for V2/V3 bitfields and ambiguous mask copies (#778)

- dib_to_bmp no longer adds 12 appended-mask bytes to the pixel offset for 52- and
  56-byte BI_BITFIELDS headers, which carry their masks inside the header; the
  decoder reads the pixels at bfOffBits, so the offset was 12 bytes too far.
- dib_layout treats 12 bytes after the header that equal the masks as an existing
  copy only when more bytes follow than the pixels need, so an exact-length DIB
  whose pixels equal the masks gets its copy inserted.
- dib_layout reserves the 12 bytes before changing compression or masks, so a
  failed reservation returns the DIB unchanged; the mask bytes are a [u8; 12]
  array, not a heap copy.

The differential tests against the WordCraft originals now exclude exactly the
52/56-byte bitfields offset and the exact-length payload cases, and assert the new
behaviour for them.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 14:45:56 -05:00
Martin BallandClaude Sonnet 5.5 3e82d1719c craft-mcp-server: options for apps that report argument errors as tool results (#2061)
* craft-mcp-server: options for apps that report argument errors as tool results (#778)

Add `Options` (default = today's behaviour) and `Server::with_options`:

- `website_url`: sent as `serverInfo.websiteUrl` at `initialize`.
- `tool_errors_as_results`: a `tools/call` whose arguments fail the schema check, or whose tool
  is unknown, returns a tool result with `isError: true` and the message as text, not -32602.
- `strict_request_ids`: a request id that is not a string or number gets -32600 with a null id.

`Info` is unchanged, so existing struct-literal callers still compile. Tests cover each option on
and off, and hostile input with all options on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* craft-mcp-server: strict request ids also apply to the missing-method error (#778)

With strict_request_ids, a message without `method` echoed an object, array or
bool id in its -32600 reply. It now answers with a null id for any id that is
not a string or number, as the later strict check does. Valid ids, absent ids
and incoming responses behave as before.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 14:45:52 -05:00
aiongg bb56cb044f NumberField story: the unit-after row's Field holds only the field, the unit follows it 2026-11-17 19:39:34 +00:00
aiongg 12dfe2c497 Fix macOS gate: docs, Linux-only test helpers, NSGraphicsContext feature for AppKit event tests 2026-11-17 19:34:21 +00:00
Martin BallandClaude Opus 5.5 1928693fbb image-codecs: header-only PNG pixel model and WebP alpha probes (#778) (#2064)
png_probe::pixel_model reads width, height, bit depth, colour type and tRNS
presence from IHDR and the chunk headers before IDAT without inflating iCCP;
PixelModel::bytes_per_pixel and has_alpha give a caller's pixel size and alpha.
webp_probe::has_alpha reads the VP8X alpha flag, the VP8L alpha_is_used bit,
and treats plain VP8 as opaque. Differential tests compare against WordCraft's
png_chunks as an oracle.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 14:27:53 -05:00
Martin BallandClaude Opus 5.5 ea02182945 image-codecs: add jpeg_worst_case_coefficients (#778) (#2063)
A conservative pre-decode coefficient budget for hostile JPEG headers: the
larger of JpegInfo::held_coefficients and a whole-picture estimate over every
progressive frame header (SOF2/6/10/14, any precision, sampling clamped to
1..=4), with the costliest frame charged at the first frame's size when the
header can't be followed. held_coefficients is unchanged.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 14:27:49 -05:00
aionggandDylan M. Taylor d55beb8f61 psd: share legacy guide header and record encoding
Extract PhotoCraft guide framing from 2aa88b0956; leave rounding and document ordering with callers. Add fixed-byte and hostile-prefix coverage.

Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
2026-11-17 14:23:06 -05:00
Brandon ThomasandDylan M. Taylor e1d883e444 psd: share legacy guide record prefix decoding
Adapt PhotoCraft parse_guides from 16941f7198, retaining signed-position semantics from 1a54384d80. Allocation-free framing preserves complete-prefix recovery.

Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
2026-11-17 14:23:06 -05:00
aiongg 17aef21bc6 update: the atomic-write tests are Unix-only as a module 2026-11-17 19:17:13 +00:00
7107fb8daf cms: keep black-only CMYK black-only across CMYK → CMYK transforms (#2029)
* cms: keep black-only CMYK black-only across CMYK to CMYK transforms

Opt-in BlackPreserving: a colour with exactly zero C, M and Y converts to
exactly (0, 0, 0, K'), K' matching the source K-only L* in the destination
(both ramps sampled at construction with the transform's intent and BPC).
Transform itself is unchanged.

Adapted from icccer (MIT, same author) black_preserve.rs at 08ca16ab.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* cms: map black past the destination maximum to exactly K = 1 between samples

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* cms: README says the K-ramp check is sampled

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: KenM76 <KenM76>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 14:14:51 -05:00