aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-12-31 15:32:58 +0900
committernsfisis <nsfisis@gmail.com>2025-12-31 15:32:58 +0900
commitf3952a509b2d98a25cbb80c9ad091b3b471be52e (patch)
tree23fdc7a024ab028f5c7d5fca2d7ea8e66073d3df /docs
parenta1383a9304ff457d6671e12ded4265b135256004 (diff)
downloadkioku-f3952a509b2d98a25cbb80c9ad091b3b471be52e.tar.gz
kioku-f3952a509b2d98a25cbb80c9ad091b3b471be52e.tar.zst
kioku-f3952a509b2d98a25cbb80c9ad091b3b471be52e.zip
feat(crdt): handle crdtChanges in sync pull response
Add applyCrdtChanges function to process CRDT payloads received from the server during pull operations. The function merges remote documents with local ones using Automerge and stores the result in sync state. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/dev/roadmap.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/dev/roadmap.md b/docs/dev/roadmap.md
index d17ba41..9251e15 100644
--- a/docs/dev/roadmap.md
+++ b/docs/dev/roadmap.md
@@ -24,7 +24,7 @@ Replace the current Last-Write-Wins (LWW) conflict resolution with Automerge CRD
### Phase 3: Modify Sync Protocol
- [x] Modify `src/client/sync/push.ts` - Add crdtChanges to push payload
-- [ ] Modify `src/client/sync/pull.ts` - Handle crdtChanges in pull response
+- [x] Modify `src/client/sync/pull.ts` - Handle crdtChanges in pull response
- [ ] Modify `src/client/sync/conflict.ts` - Replace LWW with Automerge merge
- [ ] Modify `src/client/sync/manager.ts` - Integrate CRDT sync flow