aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/client/sync/index.ts
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-12-07 19:42:47 +0900
committernsfisis <nsfisis@gmail.com>2025-12-07 19:42:47 +0900
commitae5a0bb97fbf013417a6962f7e077f0408b2a951 (patch)
tree719a02d0f9527e97089379b7bbf389f9400e8d20 /src/client/sync/index.ts
parent8ef0e4a54986f7e334136d195b7081f176de0282 (diff)
downloadkioku-ae5a0bb97fbf013417a6962f7e077f0408b2a951.tar.gz
kioku-ae5a0bb97fbf013417a6962f7e077f0408b2a951.tar.zst
kioku-ae5a0bb97fbf013417a6962f7e077f0408b2a951.zip
feat(client): add SyncManager for auto-sync on reconnect
Implements SyncManager class that orchestrates the sync process: - Monitors online/offline network status - Triggers debounced sync when coming back online - Coordinates push, pull, and conflict resolution - Provides event subscription for sync status updates 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat (limited to 'src/client/sync/index.ts')
-rw-r--r--src/client/sync/index.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/client/sync/index.ts b/src/client/sync/index.ts
index 2472871..a602753 100644
--- a/src/client/sync/index.ts
+++ b/src/client/sync/index.ts
@@ -39,3 +39,12 @@ export {
type ConflictResolutionResult,
type ConflictResolverOptions,
} from "./conflict";
+
+export {
+ createSyncManager,
+ SyncManager,
+ type SyncManagerEvent,
+ type SyncManagerListener,
+ type SyncManagerOptions,
+ type SyncResult,
+} from "./manager";