Commit Graph

367 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 59d0b9a5ff fix: move Worker config to separate file for Pages compatibility
Move wrangler.toml to worker/wrangler.toml to separate Worker and Pages configurations.
Cloudflare Pages was trying to read wrangler.toml and failing because it contained
Worker-specific configuration (Durable Objects, migrations, etc.) that Pages doesn't support.

Changes:
- Move wrangler.toml → worker/wrangler.toml
- Update deploy scripts to use --config worker/wrangler.toml
- Pages deployment now uses Cloudflare dashboard configuration only

This resolves the deployment error:
"Configuration file cannot contain both 'main' and 'pages_build_output_dir'"

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-16 04:14:40 -07:00
Jeff Emmett 9937a8fe16 fix: add pages_build_output_dir to wrangler.toml
Add Cloudflare Pages configuration to wrangler.toml to resolve deployment warning.
This tells Cloudflare Pages where to find the built static files (dist directory).

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-16 04:07:32 -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 f2cec8cc47 Merge pull request #14 from Jeff-Emmett/add-runpod-AI-API
fix custom shape type validation errors
2025-11-16 03:15:51 -07:00
Jeff Emmett fa6a9f4371 fix custom shape type validation errors
Add case normalization for custom shape types to prevent validation errors when loading shapes with lowercase type names (e.g., "chatBox" → "ChatBox"). The TLDraw schema expects PascalCase type names for custom shapes.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-16 03:13:07 -07:00
Jeff Emmett a57ec66ed2 Merge pull request #13 from Jeff-Emmett/add-runpod-AI-API
prevent coordinate collapse on reload
2025-11-16 03:08:07 -07:00
Jeff Emmett 298183cd33 prevent coordinate collapse on reload
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-16 03:03:39 -07:00
Jeff Emmett 7cd11509a8 Merge pull request #12 from Jeff-Emmett/add-runpod-AI-API
Add runpod ai api
2025-11-16 02:52:01 -07:00
Jeff Emmett 8b947bbc47 update multiplayer sync 2025-11-16 02:47:42 -07:00
Jeff Emmett 783a8702f9 update obsidian shape deployment 2025-11-12 16:23:08 -08:00
Jeff Emmett f905856bf3 Merge pull request #11 from Jeff-Emmett/pin-object-to-view
Pin object to view
2025-11-11 22:50:31 -08:00
Jeff Emmett 03c834779b fix cloudflare deployment glitches 2025-11-11 22:47:36 -08:00
Jeff Emmett 6464440139 deployment fix 2025-11-11 22:42:38 -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 356f7b4705 coordinate fix 2025-11-11 01:08:55 -08:00
Jeff Emmett 5b40c8e862 fix coords 2025-11-11 00:57:45 -08:00
Jeff Emmett 6a70c5b538 remove coordinate reset 2025-11-11 00:53:55 -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 5a8bfa41d2 update x & y coordinates 2025-11-10 22:42:52 -08:00
Jeff Emmett d090142a70 fix prod 2025-11-10 22:27:21 -08:00
Jeff Emmett 96e3f08a7a fix prod I hope 2025-11-10 20:53:29 -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 be6b52a07f fix shape deployment in prod 2025-11-10 19:26:44 -08:00
Jeff Emmett f4e962fc45 fix prod deployment 2025-11-10 19:23:15 -08:00
Jeff Emmett 1b36b19c4d update for prod 2025-11-10 19:21:22 -08:00
Jeff Emmett d65c37c405 update production shape loading 2025-11-10 19:15:36 -08:00
Jeff Emmett 365ad2f59f switch from github action to cloudflare native worker deployment 2025-11-10 19:05:11 -08:00
Jeff Emmett ae90f4943d updates to production 2025-11-10 18:57:04 -08:00
Jeff Emmett face742eef fix cloudflare 2025-11-10 18:48:39 -08:00
Jeff Emmett 664d0ca9c5 update for shape rendering in prod 2025-11-10 18:43:52 -08:00
Jeff Emmett c44056cf79 fix production automerge 2025-11-10 18:29:19 -08:00
Jeff Emmett 061b3871fe fix prod 2025-11-10 18:10:55 -08:00
Jeff Emmett 59562e07c5 final automerge errors on cloudflare 2025-11-10 18:01:36 -08:00
Jeff Emmett 7584ea7a11 fix final bugs for automerge 2025-11-10 17:58:23 -08:00
Jeff Emmett 2d0ae80e50 shape viewing bug fixed 2025-11-10 15:57:17 -08:00
Jeff Emmett e2fcd755ad update automerge bug fix 2025-11-10 15:41:56 -08:00
Jeff Emmett 1c50f2eeb0 final update fix old data conversion 2025-11-10 15:38:53 -08:00
Jeff Emmett f250eb3145 update automerge 2025-11-10 14:44:13 -08:00