mirror of
https://github.com/storytold/cadcraft.git
synced 2026-12-01 10:13:53 -06:00
The first commit made `cadcraft-cli convert` print the note, but the app's own commands write images through IoHooks::write and ::plot, which return bytes only, so the desktop and web apps and LISP stayed silent (#1069). - cmd::file::set_noted_io(NotedIo { write, plot }): an optional hook beside IoHooks (which is built by struct literal in ~70 places), installed by the CLI, desktop and web apps with cadcraft_io::write_framed_noted and the new cadcraft_io::plotter::plot_noted / pdf::plot_noted. - EXPORT, PLOT (so EXPORTPDF, PUBLISH and PDFBOOK per sheet), QSAVE and SAVEAS to an image and document.bytes echo the note and add it to the result's `warnings`. An image written with a `version` option goes through the same writer (same bytes), so it is noted too. - report_notes adds to `warnings` instead of replacing them; report_dwg_notes uses it (no result had `warnings` before it, so DWG results don't change). Without the hook nothing changes. Not covered: the plot preview and the canvas show no message. Fixes #1069. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>