Add proxy endpoints to Cloudflare Worker for AI services, keeping API credentials server-side for better security architecture. Changes: - Add fal.ai proxy endpoints (/api/fal/*) for image generation - Add RunPod proxy endpoints (/api/runpod/*) for image, video, text, whisper - Update client code to use proxy pattern: - useLiveImage.tsx (fal.ai live image generation) - VideoGenShapeUtil.tsx (video generation) - ImageGenShapeUtil.tsx (image generation) - runpodApi.ts (whisper transcription) - llmUtils.ts (LLM text generation) - Add Environment types for AI service configuration - Improve Automerge migration: compare shape counts between formats to prevent data loss during format conversion To deploy, set secrets: wrangler secret put FAL_API_KEY wrangler secret put RUNPOD_API_KEY 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| audioAnalysis.ts | ||
| handleInitialPageLoad.ts | ||
| llmUtils.ts | ||
| multiPasteHandler.ts | ||
| multiplayerAssetStore.tsx | ||
| pdfUtils.ts | ||
| searchUtils.ts | ||
| selectionTransforms.ts | ||
| shapeCollisionUtils.ts | ||
| toolSpawner.ts | ||
| unfurlBookmarkUrl.tsx | ||