sync
sync
¶
Secure, local-first replication for the native Succès workspace.
The transport is deliberately separate from the data model: the Mac keeps working offline, every mutation remains in the immutable operation log, and a paired client exchanges batches using cursors. Pairing and peer credentials are stored only as SHA-256 hashes.
Classes¶
SuccesSyncStore
¶
Bases: SuccesPhotosStore
Continuity store extended with authenticated operation replication.
Source code in src/diapason/succes/sync.py
Methods:¶
apply_inbound_operations
¶
Apply a trusted exchange bundle locally (guest side, no peer row).
Source code in src/diapason/succes/sync.py
join_remote
¶
join_remote(
pairing_token: str,
*,
relay_url: str | None = None,
device_name: str = "",
) -> dict[str, Any]
Redeem a host invitation through the configured (or provided) relay.
Source code in src/diapason/succes/sync.py
run_exchange
¶
Push local ops and pull host ops through the configured relay (guest).