The time-limit test checked only the worker's exit code, which the
test-lint exit-status-only rule rejects. It now also reads the worker's
output and checks that nothing was written before it exited.
- File > Open of a DWG drawing that is being converted for Place no
longer does nothing: only conversions started for opening count as
that file already being opened.
- A DWG worker gets an absolute deadline (`--dwg-worker-until`, in
milliseconds since the UNIX epoch) instead of a time limit counted
from its own start. `thumbnail` sets it when its own timer starts, so a
worker started late no longer outlives the thumbnail process. A worker
whose deadline has passed exits with code 1 at once.
Opening or placing a DWG drawing from the desktop UI converted it on the
UI thread before DXF Import Options opened, so the window stopped
responding until a large drawing was converted. File > Open, Open Recent,
the Home screen, a drop and Place now convert it on a job of their own;
the status bar says "Converting <name>..." and the dialog opens once the
conversion is done. A drawing that can't be converted is reported and
does not go on the recent files. Commands run at once (MCP, scripts)
still convert before they return.
`thumbnail` exits after 20 seconds, but a DWG worker it started kept
running after that. The CLI now starts the worker with
`--dwg-worker-seconds 20`, and a worker started that way exits with code
1 once its time is up.
The CLI `info` test requires the drawing cut to a third and the one cut
to its header to be refused. The File formats row and the DWG entry in
docs/target-app-parity.md name the remaining limits: the web build and
R1.x and R2.x drawings return an error that says to save as DXF.
- The DXF Import Options dialog test opens a DWG, confirms it at 1:1
in model space and places it.
- `vectorcraft-cli info` reads a DWG as the DXF it was written from,
and five damaged copies (cut short, overwritten, bytes flipped) end
in an error that names DWG or open with warnings, with the process
exiting normally.
- The engine's DWG and DXF test modules are listed in order.
A raster width or height that needs more than 64 or less than 0.01
pixels per point was written at the clamped size with no note. The
export now adds a warning naming the requested and the written size,
for MCP export and the CLI's --width and --height alike.
The raster export already reads width, height and background, but the
CLI only passed scale and ppi, so those options were reachable through
the MCP export tool alone. convert and run now take --width N,
--height N and --background V and send them for raster outputs only.
A width or height that is not a positive finite number, and a missing
or unreadable background, are refused when the flags are read, for
every output format.
Fixes#10577
`document.export`, `document.serialize` and `document.exportSelection`
accept a key that only another format takes. `{"format": "pdf",
"quality": 80}` wrote the PDF and gave no warning about `quality`.
The reply's `warnings` now name each such key, in the wording of a
save's note: "`quality` was not used: PDF files don't read it".
- The format's own options, the commands' own keys, null values and an
exporter plug-in's format get no note.
- The note names the kind of file written. A legacy `.ai` file
(`aiVersion: "7"`) reads `outlineText`, `hiddenObjects`,
`transparentImages`, the artboard choice and `useArtboards`, and
beside `aiVersion` no other option. The other `.ai` files don't read
those three options or `preserveEditing`, which is always on for
them.
- An export doesn't read `separateArtboards`, or `range` for a
`vectorcraft` or `template` file. A save reads them to write each
artboard to a file of its own.
- In the app, an export that automation asked for (`app.export` with a
path, `file.exportAs` run as a command) gives the same notes in its
reply and in the status bar. A Background Export replies before the
file is written, and that reply has the notes. An export that a
person starts from the File menu gets none.
- Export As gives a template export no `useArtboards` or `range`: a
template doesn't read them.
- `vectorcraft-cli convert` sends `outlineText` only with
`--outline-text`, and `hiddenLayers` only to the formats that read
it. A conversion then warns only about an option the command line
gave.
`document.save` gives its notes as before: it does not apply the `.ai`
rules above.
Docs: docs/mcp.md, docs/control-protocol.md,
docs/target-app-parity.md, the params text of the three commands.
## Summary
`vectorcraft-cli convert` to PDF now passes `preserveEditing: false`, matching
a command-line converter expectation while Save As PDF in the app still uses
the VectorCraft Default preset. `--preserve-editing` opts in and adds a JSON
warning when the native document attachment is written.
## Tests
Integration test in `vectorcraft-cli` checks default PDF output has no editing
attachment and `--preserve-editing` embeds it with a warning.
Closesstorytold/vectorcraft#3627
Co-authored-by: nrq6993-a11y <[email protected]>
* CI: line tables only for workspace crates, no debug info for dependencies
* CI: one integration-test binary per crate
Each crate's tests/*.rs files become modules of tests/it/main.rs. Files that change
process-wide state (Color Settings, the font database, installed plug-ins, the working
directory), the fuzz sweeps and the test targets the Affinity corpus workflow names stay
their own binaries.
* Docs: name the integration tests' new paths
* CI: xtask test with nextest and doctests, one wasm check, clippy --keep-going
cargo xtask ci runs the tests with cargo nextest (cargo test when it is not installed),
builds them with --lib --bins --tests, runs the doctests as their own step, and checks
the wasm crates in one cargo check --keep-going call.