cad-editor/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
AI Assistant 8908a20902 CMMS embedding: AI Assistant editor-buffer bridge (read/replace the open drawing)
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.
2026-09-03 12:08:50 +10:00
..
app CMMS embedding: AI Assistant editor-buffer bridge (read/replace the open drawing) 2026-09-03 12:08:50 +10:00
entities fix(dimension): harden jogged radius workflow 2026-08-27 08:09:02 +03:00
io CMMS embedding: AI Assistant editor-buffer bridge (read/replace the open drawing) 2026-09-03 12:08:50 +10:00
modules EXTRUDE REGION: one-step extrude of outline + hole loops 2026-09-03 11:38:16 +10:00
plugin fix(tolerance): complete workflow integration 2026-08-27 00:14:08 +03:00
scene EXTRUDE REGION: one-step extrude of outline + hole loops 2026-09-03 11:38:16 +10:00
shaders fix(hatch): render weighted pattern strokes 2026-08-25 22:44:51 +03:00
ui Merge remote-tracking branch 'upstream/main' 2026-08-27 22:57:25 +10:00
cli.rs fix(renderer): add automatic compat fallback 2026-07-24 17:05:54 +03:00
command.rs EXTRUDE REGION: one-step extrude of outline + hole loops 2026-09-03 11:38:16 +10:00
config.rs feat(web): persist browser state 2026-07-29 00:44:00 +03:00
discussions.rs fix(plugins): trust platform certificates 2026-07-29 15:00:07 +03:00
i18n.rs feat(i18n): add Bulgarian locale 2026-08-17 23:45:04 +03:00
lib.rs feat(locale): add Fluent translations 2026-08-02 18:53:38 +03:00
locale_catalog.rs Complete jogged radius dimension workflow 2026-08-26 17:17:55 +03:00
main.rs feat(locale): add Fluent translations 2026-08-02 18:53:38 +03:00
network.rs fix(plugins): trust platform certificates 2026-07-29 15:00:07 +03:00
par.rs feat(wasm): sequential rayon shim for the web build 2026-06-16 17:11:20 +03:00
patreon.rs fix: normalize recent Patreon support 2026-08-04 12:17:21 +03:00
perf.rs perf(scene): make geometry edits incremental 2026-07-28 17:16:27 +03:00
snap.rs Merge pull request #856 from ramox81/codex/align-circle-behavior 2026-08-21 23:29:57 +03:00
sys.rs CMMS embedding: AI Assistant editor-buffer bridge (read/replace the open drawing) 2026-09-03 12:08:50 +10:00
videos.rs fix(plugins): trust platform certificates 2026-07-29 15:00:07 +03:00