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
5efe30d9d6
Format & lint
2025-12-14 17:19:25 +00:00
47f24e168b
Wait for idle instead
2025-12-14 17:19:25 +00:00
6608804d34
Refactor & lint
2025-12-07 16:42:23 +00:00
b05e415acf
Apply editorconfig
2025-12-07 16:42:23 +00:00
ad3191957a
Add event handler class
2025-12-07 16:42:23 +00:00
3f2ecfb0b6
Use efficient filters
2025-12-07 16:42:23 +00:00
9349afc00f
Run lint & fmt
2025-11-30 15:24:52 +00:00
c7c96b787a
Add log lines
2025-11-30 15:24:52 +00:00
d07fa32ba3
Format
2025-11-30 15:24:52 +00:00
13f5456b39
Fix race condition
2025-11-30 15:24:52 +00:00
18be9f4dd8
Fix lint
2025-11-30 15:24:52 +00:00
c94d732f24
Fix resetting
2025-11-30 15:24:52 +00:00
d8058d396c
Add awaitAll
2025-11-30 15:24:52 +00:00
ef4444afc2
Lint
2025-11-30 15:24:52 +00:00
17fa584ea1
use allSettled
2025-11-30 15:24:52 +00:00
213a9e18fb
Use new WS api
2025-11-30 15:24:52 +00:00
91675ea99c
Add remove event listener methods
2025-11-30 15:24:52 +00:00
56c1f4d58b
Restructure packages
2025-11-30 15:24:52 +00:00
c08feba0ad
Improve settings ( #168 )
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-19 19:53:10 +00:00
be1635c26e
Improve network usage for small text changes ( #166 )
2025-11-16 22:10:22 +00:00
1ddba47b80
Fix folder deletion ( #140 )
2025-10-20 20:24:35 +01:00
a36a24effc
Fix main & improve cursor sync ( #101 )
2025-08-25 17:15:52 +01:00
81b81e30ff
Use unknown return type for callbacks
2025-08-17 15:12:31 +01:00
e8b9bf40c5
Add API for propagating cursor locations ( #61 )
2025-06-08 20:20:52 +01:00
d59203b5b9
Improve vault history messages
2025-05-25 11:35:20 +01:00
a340039301
Remove double-delete notifications
2025-05-25 09:57:22 +01:00
383e2868c2
Small improvements
2025-05-24 13:56:06 +01:00
0cd2e9175f
Print pending id
2025-05-23 21:57:41 +01:00
45f9f37d0f
Make startup deletion check more robust
2025-05-14 22:14:34 +01:00
96bf542b91
Keep updating the last seen id correctly
2025-04-08 23:02:41 +01:00
1bd9331bfa
Fix E2E error
2025-04-08 20:45:42 +01:00
3ec6bd4d5b
Allow overriding WebSocket implementation and add flaky version for testing
2025-04-07 23:13:45 +01:00
f8b0501eea
Fix E2E tests
2025-04-06 13:55:27 +01:00
a25027bc90
Send device id to server
2025-04-04 23:15:05 +01:00
1f9728d893
Add cursor moving ( #19 )
2025-04-02 22:06:38 +01:00
1aad0fce31
Add WebSocket support ( #12 )
2025-03-29 10:17:46 +00:00
a8cadd1e53
Fix test
2025-03-22 20:50:43 +00:00
8cfbaa1bda
Fix reset flow
2025-03-22 17:21:59 +00:00
6906bc4f5e
Avoid duplication from initial sync
2025-03-22 14:06:17 +00:00
e7ec41eafe
Remove deleted files from DB
2025-03-20 22:26:19 +00:00
1b7ab8b038
Fix reset logic
2025-03-20 21:19:59 +00:00
8b8f1d91d9
Fix syncing when network latency is present ( #4 )
...
* WIP
* Add debug
* Dedupe inserts
* Add deterministic ordering
* Fix whitespaces
* Update insta
* Add integration test script
* Rename
* Add test
* Working for non-deletes
* omg it mostly works for deletes
* Isdeleted fix
* remove created dates
* update api
* Take document id
* No max attempt
* works
* Use string uuids
* .
* working!!!! (hopefully)
* Improve bundling
* Add module
* lint
* .
* lint
* Fix CI
* use toolchain
* clean up
* Add useSlowFileEvents
* Delete fuzz
* Fix CI
* use docker
* fix script
* clean up
* Clean up
* change node version
* Build docker image on every commit
* fix ci
* 1 db per vault
* Add scritps folder
* Bump versions
* Lint
* .
* Fix tests for real
* Style
* .
* try
* Consistent ordering
* Fix tests
* hmm
* .
* Clean up diff
* Fixes
* .
* Fix version bump
* .
* .
* .
2025-03-16 20:13:49 +00:00
5bde266c84
Fix wording
2025-02-23 21:35:33 +00:00
c69f84edf5
Fix agent behaviour
2025-02-23 16:45:52 +00:00
abba023c20
Gate settings updates
2025-02-23 14:47:20 +00:00
eeb7999d76
Reset locks
2025-02-23 11:31:03 +00:00
cd70f8b426
Lint
2025-02-23 10:44:51 +00:00
f8dcd33d3e
Lint & format
2025-02-23 10:13:34 +00:00
a2b7ad2a19
Split syncer logic
2025-02-23 10:12:22 +00:00