Commit Graph

24 Commits

Author SHA1 Message Date
Jeff Emmett 11c61a3d1c fix: remove ImageGen references to fix build
Remove ImageGenShape import and references from useAutomergeStoreV2.ts
to fix TypeScript build error. ImageGen feature files are not yet committed.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-16 04:17:49 -07:00
Jeff Emmett 4dd8b2f444 fix: enable real-time multiplayer sync for automerge
Add manual sync triggering to broadcast document changes to other peers in real-time.
The Automerge Repo wasn't auto-broadcasting because the WebSocket setup doesn't use peer discovery.

Changes:
- Add triggerSync() helper function to manually trigger sync broadcasts
- Call triggerSync() after all document changes (position updates, eraser changes, regular changes)
- Pass Automerge document to patch handlers to prevent coordinate loss
- Add ImageGenShape support to schema

This fixes the issue where changes were being saved to Automerge locally but not
broadcast to other connected clients until page reload.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-16 04:00:31 -07:00
Jeff Emmett 03c834779b fix cloudflare deployment glitches 2025-11-11 22:47:36 -08:00
Jeff Emmett 453a190768 update cloudflare errors 2025-11-11 22:38:24 -08:00
Jeff Emmett de59c4a726 pin object, fix fathom, and a bunch of other things 2025-11-11 22:32:36 -08:00
Jeff Emmett 8f00732f54 fix coordinates 2025-11-10 23:54:54 -08:00
Jeff Emmett 8e3db10245 preserve coordinates 2025-11-10 23:51:53 -08:00
Jeff Emmett 8bcbf082c5 shape rendering on prod 2025-11-10 23:36:12 -08:00
Jeff Emmett eb4dafaf9b fix coordinates 2025-11-10 23:25:44 -08:00
Jeff Emmett 0bea258d39 preserve coordinates 2025-11-10 23:17:16 -08:00
Jeff Emmett 7b15c9af4a fix coordinates 2025-11-10 23:04:52 -08:00
Jeff Emmett 857e94fe6a prevent coordinate reset 2025-11-10 23:01:35 -08:00
Jeff Emmett e27dacc610 update dev and prod shape render 2025-11-10 20:16:45 -08:00
Jeff Emmett 333159b0da fix prod shape render 2025-11-10 20:05:07 -08:00
Jeff Emmett d64ba711b8 update prod shape render 2025-11-10 19:54:20 -08:00
Jeff Emmett 7151cc1419 update prod 2025-11-10 19:44:49 -08:00
Jeff Emmett d006fd4fb1 fix shape rendering in prod 2025-11-10 19:42:06 -08:00
Jeff Emmett 7584ea7a11 fix final bugs for automerge 2025-11-10 17:58:23 -08:00
Jeff Emmett f250eb3145 update automerge 2025-11-10 14:44:13 -08:00
Jeff Emmett 6a870f8c67 update worker 2025-11-10 14:18:23 -08:00
Jeff Emmett abfbed50e1 final updates to Automerge conversion 2025-11-10 13:34:55 -08:00
Jeff Emmett 8d5b41f530 update typescript errors for vercel 2025-11-10 11:19:24 -08:00
Jeff Emmett e727deea19 everything working in dev 2025-11-10 11:06:13 -08:00
Jeff Emmett a2e9893480 automerge, obsidian/quartz, transcribe attempt, fix AI APIs 2025-09-21 11:43:06 +02:00