pcbjam/wasm/bindings
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Gergő Törcsvári f92266fcee
fix(ysync): wire dialect == file dialect, uuid churn, drift noise
The Y.Doc is the source of truth for the FILE, but both live wires wrote
KiCad's CLIPBOARD dialect — a lossy, paste-oriented format. Every
difference was permanent, unfixable drift.

- pcbnew: serialize footprint blobs with CTL_FOR_BOARD, not CLIPBOARD_IO's
  CTL_FOR_CLIPBOARD, which emitted (version)(generator)(generator_version)
  inside every (footprint …). Keep (locked yes).
- eeschema: aForClipboard=false — clipboard mode collapsed every symbol's
  (instances … (path "/sheet")) to (path "").
- Re-supply (version) at PARSE time only (withFootprintVersion): the token
  is invalid file content but load-bearing on decode — without it the
  parser starts at m_requiredVersion=0 and stamps (hide yes) on every
  mandatory field.
- FOOTPRINT copy ctor: restore mandatory-field uuids (EDA_ITEM::operator=
  keeps the target's const m_Uuid, so Clone() rerolled all four).
- drift: classify order-only diffs as `reordered` — y-sexpr v2 reorders
  legitimately; excluded from counts, report-worthiness and dedupe hashes.
  Migration 0017.
- fpedit from eeschema: AsyncLoad()+BlockUntilLoaded() in initLibraryTree —
  FACE_PCB starts lazily there and never preloaded its libraries.

Guards: wire-vs-file round-trip tests (pcbnew + eeschema),
fpedit-from-eeschema (verified red without the fix), symedit-from-eeschema.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016p9kjdGBdcpwUSjJ3q5xg2
2026-07-20 18:32:04 +02:00
..
calculator_embind.cpp add calculator build 2026-05-28 17:28:17 +02:00
collab_common.h refactor(collab): dedup embind collab/presence layer into shared headers (collab_common.h + collab_presence_core.h) 2026-07-10 09:17:32 +02:00
collab_presence_core.h fix(collab): re-push viewport on canvas resize — comment pins sat offset until pan/zoom 2026-07-10 09:25:14 +02:00
collab_presence_style.h feat(collab): follow-user (collab-presence 0008) + chip depth-layer fix 2026-07-10 09:25:13 +02:00
eeschema_embind.cpp fix(ysync): wire dialect == file dialect, uuid churn, drift noise 2026-07-20 18:32:04 +02:00
kicad_editor_embind.cpp e2e/CI: dual-engine suites, per-engine screenshots, SwiftShader retired, prod web suite, CI-coverage gate 2026-07-17 12:21:54 +02:00
kicad_tools_embind.cpp feat: kicad_tools headless CLI 2026-07-10 19:09:01 +02:00
pcbjam_libs_reload.h libs: peer lib edits reach the running editor + "placed symbol updated" toast 2026-07-10 09:26:07 +02:00
pcbnew_embind.cpp fix(ysync): wire dialect == file dialect, uuid churn, drift noise 2026-07-20 18:32:04 +02:00
pl_editor_embind.cpp feat(read-only-viewer): editor viewer mode + kicadSetReadOnly binding 2026-07-13 12:48:35 +02:00