pi-mono/packages/chord/src/sync
Cristina Poncela Cubeiro e5f3b41506
feat(storage): replication (#11696)
Adds experimental session sync (`@earendil-works/pi-durable/sync`).

Devices upload and pull a session's commits through a remote, reading
them from the Chord store's outbox and applying them with `applyBatch`.
If two devices continue the same session, the one that uploads second
forks to a new session.

I took out the extra sequence indexes from the earlier version of this
branch, since the Chord outbox already persists every commit, so this no
longer touches storage.

---------

Co-authored-by: Armin Ronacher <armin.ronacher@active-4.com>
2026-11-05 12:03:16 +01:00
..
batch.ts feat(storage): replication (#11696) 2026-11-05 12:03:16 +01:00
client.ts feat(storage): replication (#11696) 2026-11-05 12:03:16 +01:00
files.ts feat(storage): replication (#11696) 2026-11-05 12:03:16 +01:00
filesystem.ts feat(storage): replication (#11696) 2026-11-05 12:03:16 +01:00
index.ts feat(storage): replication (#11696) 2026-11-05 12:03:16 +01:00
lines.ts feat(storage): replication (#11696) 2026-11-05 12:03:16 +01:00
remote.ts feat(storage): replication (#11696) 2026-11-05 12:03:16 +01:00
state.ts feat(storage): replication (#11696) 2026-11-05 12:03:16 +01:00