mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-06 18:52:36 +00:00
- organize: a /FitR destination missing one of its four numbers is copied with its page and no view, instead of failing the whole copy (the rectangle can't be kept, and import refuses a partial one). - organize: `visit` keeps the visited node's path in step with its stack instead of rebuilding it per node (O(depth) per node before). - automation: an empty title is accepted when present, so a bookmark a file left untitled exports and imports back; a missing title is still refused. - automation: "no bookmark at" names the path 1-based, as it was given. - automation: `bookmark_copy` and `bookmark_import` report `truncated`; an exported file carries `"truncated": true` when the export left bookmarks out, and importing it says so. - automation: `bookmark_export` is marked destructive (it overwrites `out`) and idempotent for MCP. Tests: a_fit_r_missing_a_value_copies_with_its_page_and_no_view (organize), odd_bookmarks_round_trip_and_a_cut_tree_says_so (automation). Each fix reverted alone fails one of them; the visit change is behaviour-neutral and covered by the existing outline tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SqmHYx8FiWM5PcsoiErgp9