vault-link/frontend/sync-client/src
Andras Schmelczer 42c9d55489 split: sync-engine rewrite (sync-operations + sync-client.ts)
Replace the single unrestricted-syncer.ts with a two-loop architecture:
- syncer.ts drains the FIFO wire queue (HTTP + WS handlers).
- reconciler.ts moves files to make localPath match remoteRelativePath
  (topo-sorted move graph, in-memory cycle resolution with crash-safe
  swap markers).
- sync-event-queue.ts holds the byDocId / byLocalPath indexes and the
  pending-create promise chain.
- offline-change-detector.ts, expected-fs-events.ts, types.ts, and a
  rewritten cursor-tracker.ts / file-change-notifier.ts round it out.
Plus sync-client.ts wiring, tracing/sync-history.ts updates, index.ts
re-exports, and sync-client tsconfig/webpack/package.json.
2026-05-08 21:37:26 +01:00
..
errors split: sync-client utils and errors reorganization 2026-05-08 21:36:29 +01:00
file-operations split: sync-client file-operations + persistence 2026-05-08 21:36:54 +01:00
persistence split: sync-client file-operations + persistence 2026-05-08 21:36:54 +01:00
services split: sync-client services layer 2026-05-08 21:36:41 +01:00
sync-operations split: sync-engine rewrite (sync-operations + sync-client.ts) 2026-05-08 21:37:26 +01:00
tracing split: sync-engine rewrite (sync-operations + sync-client.ts) 2026-05-08 21:37:26 +01:00
types Apply editorconfig 2025-12-07 16:42:23 +00:00
utils split: sync-client utils and errors reorganization 2026-05-08 21:36:29 +01:00
consts.ts split: sync-client utils and errors reorganization 2026-05-08 21:36:29 +01:00
index.ts split: sync-engine rewrite (sync-operations + sync-client.ts) 2026-05-08 21:37:26 +01:00
sync-client.ts split: sync-engine rewrite (sync-operations + sync-client.ts) 2026-05-08 21:37:26 +01:00