The CMMS AI Assistant's Stage 3 editor-buffer bridge already covers the
circuit / drawio / OpenSCAD editors; this adds the DXF/DWG one.
- src/sys.rs: ai_editor_bridge module - a window 'message' listener
(installed from boot_web only when cmms_config() is present) that parks
a 'cmms-ai-editor-get-buffer' / 'cmms-ai-editor-apply' request in a
thread-local. The listener can't reach app state, so:
- src/app/view/mod.rs: a 250ms CmmsAiBridgePoll subscription (embedded only)
- src/app/update/mod.rs: the poll handler - reply with the active drawing
serialized as ASCII DXF (save_to_bytes), or replace the active tab's
document in place with an applied buffer (reset the tab to blank so
on_file_opened reuses the slot, then load through the standard pipeline).
- src/io/mod.rs: load_ai_buffer_web() - load_from_cmms_web minus the fetch,
always DXF.
Additive, wasm-only, gated on window.CAD_EDITOR_CONFIG like every other
CMMS hook. Standalone use unaffected. cargo check --target wasm32 clean.