* fix(reader): bound malformed-object load diagnostics (#2670)
* fix(reader): share diagnostic budget across eager load paths (#2670)
* M1: share diagnostic budgets through compressed Length lookups
* M1: share warning budgets across encrypted object streams
* M1: count encrypted stream failures and bound lookup warnings
* #2670: document bounded reader diagnostics and regressions
* M7: the Preferences language test opens the app menu on macOS
On macOS the in-window menu bar takes the Mac layout (Target::current() in
menus.rs), which moves Preferences out of Edit into the app menu as
Settings…. The test opened Edit and found no Preferences row, so it failed
on every macOS run. CI runs the tests only on Ubuntu and Windows, so it
never saw this.
The test now opens the menu that holds Preferences on the platform it runs
on: the PdfCraft app menu and its Settings… row on macOS, Edit and
Preferences elsewhere. The Windows and Linux path is unchanged, and so is
the app.
* M7: a doc comment on the Preferences language test
Says what the test checks and where each platform keeps Preferences, for the docstring coverage check.
* M7: a doc comment on the Ukrainian Preferences test
The doc comment added above the next test touches this one too, so CodeRabbit's docstring check counts it.
* M7: doc comments on the neighboring language and state tests
Each doc comment's context reaches the test above it, so CodeRabbit's docstring check counts those too.
* M14: the comments panel lays out only the cards in view (#5488)
With more than 100 comments, a card or page header out of view that
was measured at the current width only takes up its height instead of
being laid out every frame. The selected card is always drawn, so it
still scrolls itself into view. Shorter lists are laid out whole and
keep every card in the accessibility tree.
The 500-comment panel in tests/perf.rs drops from about 23 ms to 5 ms
per frame locally, well inside the 40 ms budget it overran on CI.
* ci: retrigger checks after the GitHub Actions outage
---------
Co-authored-by: Eric Kaden <[email protected]>
Co-authored-by: Perchenko Anton <[email protected]>
Co-authored-by: Lcoding15 <[email protected]>
Co-authored-by: Anton Pepperok <[email protected]>
Co-authored-by: PerchAnton <[email protected]>
* fix(js): a value a script assigns with field.value is shown through the field's Format script (#9140)
Only Calculate results were marked for redrawing through the Format script, so a button that copied
138 into a currency field drew "138" instead of "$ 138.00". The field.value setter now marks the
field formatted as well; the stored value is unchanged.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Rvu8dYQi7eW7nr4gjv2mgG
* fix(forms): a check box or radio button a script sets keeps its state appearances (#9140)
The Format redraw draws one text appearance and removes /AS, so a script assigning a check box's
value would have lost its on and off faces. Only text and combo boxes are redrawn through Format.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Rvu8dYQi7eW7nr4gjv2mgG
---------
Co-authored-by: Claude Opus 5.5 <[email protected]>
A command with folders of its own now sends each window request as agents.call with those
folders; the window runs it only while they are still its agent folders, so a Preferences change
while the request is on its way can't let it run (or save) under other folders.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The window holds agent requests to the agent folders of its Preferences (a Save writes the
document's own path) and never sees the command's roots. A command started with folders of its
own now reaches the window only when they are those same folders; otherwise the window tools are
refused with a reason, and the document tools still work. This replaces the per-path check of
ui.open and ui.pick, which couldn't cover Save or relative paths.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- One document session for the command's whole run: a route or agent-folder change swaps only
its automation roots, so open documents, unsaved edits and undo history stay.
- The command's own --automation-*-root folders count as a pair, as given, on every route; a
path a window tool names (ui.open, ui.pick) is checked against them before it is sent.
- `mcp --when-closed` without a value is refused (value_of_flag).
- resources/list returns the session lookup error instead of an empty list.
- The switch turning off withdraws input an agent queued, so it can't run unconfined.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
While the launcher's AI agents switch names PdfCraft (behind the AI-MCP flag), the window serves
its control channel to agents through the shared AgentLink and publishes agent-connection.json;
plain `pdfcraft-cli mcp` finds it with the shared Live client (challenge handshake, no port or
token in client configs) and adds ui_* tools, control_call and agent_folders. Agent requests and
the input they queue are held to the agent folders (open, save, file picks). Preferences gets the
shared Agents page as "AI Integrations". New `mcp --headless` and `--when-closed`.
Fixes#9172.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The v0.23.2 macOS job compiled Apple Silicon and Intel in series on one
macos-15 runner; the Build, sign, notarize step took about 3 hours 2
minutes (run 46835450051). macos-split-build: true compiles each
architecture on its own runner, then package.sh --skip-build lipos,
signs and notarizes the prebuilt pdfcraft and pdfcraft-cli binaries.
Fixes#9074.
* M3: restore native Wayland pinch through the resolved winit fork
Refresh #1580 on current main, pin the tested companion winit port and keep vendor changes as provenance. Permit only the exact temporary fork revision until storytold/winit#20 is merged. Retain the egui scale regressions and document current validation limits.
* docs: record native pinch verification and keep roadmap quotes contiguous
Document current-head GNOME feedback and protocol evidence, retain untested compositor and teardown limits, and address the MD028 review finding without changing runtime code or dependency-origin policy.
---------
Co-authored-by: FredApps <[email protected]>
development.md listed the other build inputs but not CRAFT_I18N_DIR.
Co-authored-by: Fredrik Hallin <[email protected]>
Co-authored-by: Claude Sonnet 5.5 <[email protected]>
Since the craft framework port, Find tools and commands (Ctrl+K) listed every row
disabled, so Enter and clicks ran nothing. The open palette counted as a modal in the
app's command gate (menus::gated), and craft-libs applies that gate to the palette's own
rows, which it resolves and fires as the window under the palette has them.
- The command gate counts dialogs and prompts only. While the palette is open its modal
layer still keeps the keys and the controls under it from the commands; menus::gated
keeps the palette for the menu bar's keys and the native menu, as 0.22.0's menu gate did.
- The palette's tool rows fire tool.group with the group in a parameter, which nothing
handled; run_catalog_command now opens the named tool, as it does for tools.<id>.
- split_view_render::a_late_edit_turns_the_page_in_both_panes opens the palette with
Ctrl+K and types its query, and runs again; its row leaves docs/port-known-gaps.md.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
alt.rs: main now resolves indirect structure kids (#5611), checks the parent and computes the new parent /K before it reads the page, and marks content through decode_page_streams/Marked (damaged streams refuse). This PR's mutation_mcids ownership checks replace main's has_child_structure + mcids in both actions, and its reachable-parent check runs with main's parent checks, before any write. Since main validates the parent first, the missing-/P + missing-content case now refuses with NoParent (test renamed), still without mutation. tools.rs and roadmap keep main's text plus this PR's refusal notes.
Main split organize/src/import.rs into import/{carry,combine,copy,fields}.rs and already made set_attachments UTF-16-safe and indirect-/Names-safe (this PR's other two hunks), so those take main's version. Ported the PR's core change: insert_file_pages now merges the source's catalog attachments via carry::collect_attachments + attachments::entries (made pub(crate)) + set_attachments. PR's engine regression test file kept as-is; parity evidence/notes merged onto main's entries (it/ paths); ROADMAP/docs entries added to main's text. cargo check -p pdfcraft-organize -p pdfcraft-engine --tests passes locally.
Auto-tag Apply finds text that repeats near the top or bottom edge of
most pages before assigning roles: the same text, digits and lone roman
numerals aside, within 4 units of the same height, on at least 40% of
the pages and at least two. It wraps that text in
/Artifact <</Type /Pagination /Subtype /Header|/Footer>> BDC ... EMC
with no MCID instead of tagging it (ISO 32000-2 14.8.2.2). A group of
changing, heading-sized text is left as headings. Running text is left
out of the body style and heading levels, MCIDs number the tagged
objects only, and AutoTagResult counts headers and footers.
a11y::running_text lists the findings without changing the document;
accessibility_autotag_apply returns them as running_text and
running_count, and its note says so.
Adapted from pdfcer (MIT, same author) at ccb49b46, block_layout.rs,
with distinct pages counted instead of objects.
Closes#7065
Co-Authored-By: Claude Opus 5.5 <[email protected]>