- A commit or cancel with no drag open no longer ends an interaction for
plug-in events.
- A host query that panics during a handler still puts the session back.
- Handler calls after a replayed command are checked as calls from outside.
- A rolled-back batch puts back the events its opens pushed out of the
32-event queue.
- Installing a plug-in again, the same module included, turns its events
back on; plugin.info's eventsOff follows the same rule.
- A document added before the first check records its baseline.
- Handler failures show in the status bar from their English templates,
translated when shown, and event handler time counts toward the frame
time.
- Tests check that the handler ran in the tested pass, and the script-run
test no longer writes to other sessions' status bar.
A delivery between a script's slices no longer gives the opens and saves the
script queued; they wait until the run ends, so a run that fails never gives
the opens of documents it discarded. The desktop app now delivers after the
window keys run, so a selection Escape changes when it leaves isolation mode
reaches plug-ins in that pass, and the handlers' time counts toward the frame
time. The docs state the per-document grouping and the script rule.
Changes on main needed the events code and its tests to follow them.
- A module that carries its manifest in the `vc_manifest`
custom section is loaded without being instantiated, and its exports
are checked by `check_exports`. That check now also requires
`vc_event` with the type (param i32 i32) (result i32) when the
manifest lists `events`, as the instantiated path already did. The
`an_event_plugin_exports_vc_event` test covers a sectioned module
without `vc_event`, with the wrong type and with the right one.
- JavaScript plug-ins have no `vc_event`, so their manifest may not
list the permission `events`, next to `settings`, `cache` and
`commands`. The JavaScript bundle test and docs/plugins.md say so.
- The craft UI framework port removed
`VectorcraftApp::begin_host_iteration`, so the two UI-pass event
tests no longer call it.
- On the framework, the whole window draws only on a context with the
framework's runtime installed. `a_change_made_in_a_ui_pass_is_delivered_in_that_pass`
drew it on a plain `egui::Context`, where the runtime panics ("the
runtime plugin's hooks did not run for the previous pass") and the
test did not finish. It now draws its passes with
`testing::ui_context` and `testing::part_frame`, as the window tests
on main do.
The plug-in runtime keeps main's JavaScript plug-ins beside the web worker's module bytes and checked loads: a JavaScript plug-in's bundle is kept for the worker like a module, and load_checked loads it from its bundle.
A stored plug-in that didn't install, for example because its load
panicked or its module is broken, was only written to the log. The
person could not see it or load it again without restarting.
- plugin.list gains failed: [{file, error, from}], the plug-in files
that didn't load in this process: those of the Plug-ins folder, and
those the folder report of the Additional Plug-ins Folder (or the
folder plugin.reload loaded last) lists as failed. Disabled plug-ins,
files turned off since they failed, and modules skipped because
another install or removal of their id came first are left out. A
file that both loads list is listed once, as a stored file. A
plugin.reload replaces only the folder's rows. Installing or removing
a plug-in whose module is in a stored file that failed, or a later
load that installs it, takes the file off the list.
- plugin.retry {file?} loads one of those files again, or all of them,
with the same checks as the load it failed in, and reports for each
whether this retry installed it. A folder file's row in the folder
report moves to loaded or keeps its new error. Under automation read
roots, a file outside them is not read again, its row stays listed,
and the reply names it and its folder by their names. Safe Mode
returns an error.
- plugin.setEnabled {file} also takes the name failed gives a file
outside the read roots.
- Object › Plug-ins › Plug-ins That Didn't Load… lists the files with
why; Retry All loads them again under the read roots the list opened
under, and the status bar says how many loaded. The item is disabled
while nothing failed.
- A command.batch that runs a filter and then retries a module with
its id turns Apply Last Filter off, as a reinstall does.
Docs: docs/plugins.md (Plug-ins that didn't load), docs/mcp.md.
The example filter parsed its input with serde_json's default float
parser and handed every object back with its `path`. A coordinate could
come back changed in its last digit, which the host reads as a new path:
a live shape became a plain path after a color-only run, and a compound
path with a hidden, locked or guide member was refused.
The filter now leaves `path` out of each object it returns, so each
object keeps its geometry, as docs/plugins.md advises for a filter that
does not change it. The fixture desaturate.wasm is rebuilt from the
source with build.sh.
Docs: docs/plugins.md.
Type or an image an importer at API level 4 returns that reaches more than 4,000,000 pt from the origin is refused, as the document would drop it on the next open. plugin.list's description and docs/mcp.md name outputKinds and API level 4.
docs/plugins.md said a piece's opacity, when left out, is the object's.
The piece takes no opacity of its own in that case: the object's opacity
applies once to all the pieces together, so the line now says 100%.
The export test also opens the exported PDF and draws it: the piece is
half green and grown by Offset Path, as on the canvas, so a PDF that
drops the opacity or writes the original path fails the test.
Hosts from before api 3 refuse the manifest. A host at api 3 without writes
installs the filter, ignores the key and refuses an output that changes the
objects it was given.