diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-12-07 19:42:47 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-12-07 19:42:47 +0900 |
| commit | ae5a0bb97fbf013417a6962f7e077f0408b2a951 (patch) | |
| tree | 719a02d0f9527e97089379b7bbf389f9400e8d20 /src/client/sync/index.ts | |
| parent | 8ef0e4a54986f7e334136d195b7081f176de0282 (diff) | |
| download | kioku-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.ts | 9 |
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"; |
