Repository navigation
NexusInDesign 4.3.0
Changed
-
The engine is compiled ahead of time (Native AOT) instead of a self-contained single-file .NET program: one native
image that Windows maps, nothing read again from its file after it starts, so an update that replaces the engine
while an AI session runs it can no longer break that session (NexusFree's single-file dispatcher still crashed after
such a replacement, on an assembly loaded late that no preload had reached). Measured on the same PC (win-x64,
median of 7 runs, MCP server 10 s afterinitializeandtools/list):4.2.3 (single file) 4.3.0 (Native AOT) NexusInDesign.exe73.6 MB 8.8 MB --version42 ms 24 ms Start to initializeanswer224 ms 93 ms Working set at rest 47.8 MB 25.2 MB Private bytes at rest 16.0 MB 11.3 MB -
InDesign's COM automation goes through a source-generated
IDispatch(ComWrappers) instead of the runtime's
built-in COM interop andType.InvokeMember; JSON through source-generated contexts; process and signature checks
throughLibraryImportwith blittable structures. No reflection or runtime marshalling is left (IsAotCompatible,
AOT and trim analysis clean, warnings as errors). The AOT compiler and the trimmer are pinned in
packages.lock.json.
Added
- Test: the release build is started, its file renamed aside and replaced by other bytes the way an installer
replaces an exe in use, and its tools (tool list, DOM index, doctor, schema validation) must still answer.
Fixed
- Tests: processes started by tests always inherit the no-error-box mode. The runtime loads each native library
between aSetErrorModeand a restore of the previous mode, so parallel loads could leave the test process without
SEM_NOGPFAULTERRORBOX(seen once in CI); every test now starts its processes through a helper that sets the mode
again first, and the test checks a child started after that flag was removed.