Commit Graph
800 Commits
Author SHA1 Message Date
aiongg dc3ad35f9c Merge pull request #9173 from davidmann4/feat/agents-open-window
feat(automation): agents in the open window through the ArtCraft Launcher's switch
2026-12-05 02:36:40 -05:00
d89b67d045 fix(reader): bound malformed-object diagnostics per load (#3044)
* 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]>
2026-12-04 17:58:22 +01:00
Dylan M. Taylor eb409650da Docs: state FreeBSD 15.1 requirement for prebuilt packages 2026-12-04 09:09:39 -05:00
bmh129andClaude Opus 5.5 116224fa72 fix(js): a value a script assigns with field.value is shown through the field's Format script (#9140) (#9141)
* 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]>
2026-12-04 12:00:15 +01:00
David MannandClaude Opus 5.5 68b54296e5 fix(automation): bind a window request to the agent folders it was checked against
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]>
2026-12-03 06:04:28 +01:00
David MannandClaude Opus 5.5 b9d994903f fix(automation): window tools only with the window's own agent folders
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]>
2026-12-03 05:49:44 +01:00
David MannandClaude Opus 5.5 ab0af83428 fix(automation): review fixes for agents in the open window
- 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]>
2026-12-03 05:36:22 +01:00
David MannandClaude Opus 5.5 181eee0158 feat(automation): agents in the open window through the ArtCraft Launcher's switch
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]>
2026-12-03 04:59:21 +01:00
FredApps b0bb861807 CI: compile each macOS release architecture on a separate runner (#9075)
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.
2026-12-02 19:35:43 +01:00
FredApps e1a260b3b6 Merge remote-tracking branch 'origin/main' into HEAD 2026-12-02 08:53:31 +01:00
FredApps 7b5e9ee871 Merge branch 'main' into fix/persist-form-reminder 2026-12-02 06:33:17 +01:00
FredApps dd90ee980d Merge branch 'main' into feat/alpha-hit-testing 2026-12-02 06:33:04 +01:00
FredApps 9a9534b27a Merge pull request #8810 from storytold/fix/pdfcraft-windows-startup
Recover startup on Windows OpenGL-only GPUs and record first-frame diagnostics
2026-11-30 19:15:15 +01:00
Codex 8c1cb78aab Read legacy preferences from the active profile and document upgrade recovery (#8788) 2026-11-30 13:25:27 +01:00
Codex 90a460cc7d Record timed startup stages through the first UI frame and preserve explicit renderer overrides 2026-11-30 13:13:31 +01:00
tomasmark79andFredApps d3c6bce447 Use canonical Wayland trackpad pinch support in PDFCraft (#1580)
* 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]>
2026-11-29 09:35:42 +01:00
FredApps 11a1928207 Merge main into command-palette-runs 2026-11-28 22:50:33 +01:00
e5812b8f17 Document CRAFT_I18N_DIR in the environment table (#8621)
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]>
2026-11-28 21:25:16 +01:00
PerchAnton 0ad44c2087 Merge current main and reconcile Remember form-field reminder dismissal across sessions (#2725) 2026-11-27 08:35:00 +02:00
mtlcl410 c4c22df1b2 Merge main (d492d8890) into feat/alpha-hit-testing 2026-11-27 05:58:33 +08:00
codeiouandClaude Opus 5.5 806b7721f6 fix(ui): the command palette runs what is picked in it
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]>
2026-11-27 04:19:23 +10:00
FredApps c7b433206c Merge main into #3280
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.
2026-11-26 23:00:01 +07:00
FredApps 8856cb2753 Merge main into #3539 2026-11-26 21:55:31 +07:00
FredApps d3850a77b0 Merge pull request #7704 from alehel/codex/fix-watermark-visible-crop
Fix PDF watermark source clipping to visible page bounds
2026-11-26 15:37:24 +01:00
FredApps 6f1c601a38 Merge pull request #7810 from KenM76/feat/autotag-pagination
Auto-tag marks running headers, footers and page numbers as pagination artifacts (#7065)
2026-11-26 14:12:01 +01:00
FredApps ed1b40aa06 Merge pull request #3972 from bmh129/fix/startup-activation-token
M3: hand the launcher's activation token back from the first window (Linux)
2026-11-26 14:11:08 +01:00
FredApps ada013f042 Merge main into #7704
docs/roadmap.md change-log table: kept this PR's 2026-11-18 row and main's new 2026-10-16 row.
2026-11-26 20:03:47 +07:00
FredApps 257407147d Merge main into #2896
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.
2026-11-26 19:53:56 +07:00
FredApps dc3aab8af9 Merge branch 'main' into feat/autotag-pagination 2026-11-26 13:23:18 +01:00
FredApps b0944dce35 Merge branch 'main' into codex/fix-watermark-visible-crop 2026-11-26 13:23:12 +01:00
FredApps 9b6e2a1660 Merge branch 'main' into fix/startup-activation-token 2026-11-26 13:22:30 +01:00
mtlcl410 ebc579a595 Merge main (6e910675c) into feat/alpha-hit-testing 2026-11-25 10:31:04 +08:00
Dylan M. Taylor b86eff8259 merge deps: union workspace deps at the port pin (wordmodel, mcp-server, jsonrpc; craft-pdf fonts; 0.22.0), hayro/framework patch paths, shared AGENTS.md with port facts, comment wording, port Cargo.lock restored. The lead re-pins craft-libs after the framework sync. 2026-11-22 22:50:16 -05:00
Dylan M. Taylor 333b287a8b Production merge skeleton: upstream/main 9b3e6d6f3 into area/app-1 6cfe35235, conflict markers left in (42 files; 4 modify/delete keep the port's deletion) 2026-11-22 22:39:00 -05:00
Dylan M. Taylor 7956a53fd8 Clip picture drag previews to their source page 2026-11-21 16:01:18 -05:00
Dylan M. Taylor df2d8196b7 Keep form edits when switching split panes 2026-11-21 15:24:22 -05:00
Dylan M. Taylor 7561f576d1 Enable field table Escape regression 2026-11-21 14:30:18 -05:00
Dylan M. Taylor 63cc4622ca Keep clipped image preview inside its live frame 2026-11-21 13:32:10 -05:00
Dylan M. Taylor 01131a176a Enable popup text and close undo test 2026-11-21 12:00:14 -05:00
Dylan M. Taylor 18eb0f125f Known gaps: record the traced causes (comment double-click, split-pane field press) 2026-11-21 02:04:46 -05:00
Dylan M. Taylor 28f3077010 Record current image and split view failures 2026-11-21 01:43:46 -05:00
Dylan M. Taylor 5c3d95b269 Find panel snapshot roots in the dock 2026-11-21 01:37:23 -05:00
Dylan M. Taylor b727272baf Exercise link appearance without rewriting its destination 2026-11-21 01:36:22 -05:00
Dylan M. Taylor 78b34cd076 Exercise attachment menu after closing the existing tab 2026-11-21 01:33:36 -05:00
Dylan M. Taylor d1ace9e5ef Port: ignore the 12 remaining failing app tests as documented known gaps (docs/port-known-gaps.md) 2026-11-20 21:06:44 -05:00
aiongg 3f3b3e634a Adopt the shared AGENTS.md (RFC-0072) (#7937)
* Adopt the shared AGENTS.md (RFC-0072) and test rules (RFC-0071)

* Point removed AGENTS.md section references at the shared standards
2026-11-20 18:10:17 +07:00
Dylan M. Taylor 35d9b8c956 pdf-dialogs-w9: net change of 2 commits
- pdf-dialogs-w9: written from its sheet
- pdf-dialogs-w9: review fixes (review-1)
2026-11-18 16:15:26 -05:00
Dylan M. Taylor cb94bfbaa0 pdf-shell-w12: net change of 2 commits
- pdf-shell-w12: written by an agent
- pdf-shell-w12: finished by an agent
2026-11-18 16:15:24 -05:00
Dylan M. Taylor 7e8413ac40 pdf-shell-w7: net change of 3 commits
- pdf-shell-w7: written from its sheet
- pdf-shell-w7: repair 1
- pdf-shell-w7: review fixes (review-1)
2026-11-18 16:15:24 -05:00
KenM76andClaude Opus 5.5 1b9fa432f0 feat(a11y): mark running headers and footers as pagination artifacts
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]>
2026-11-18 14:59:31 -05:00