o2o-infinith-demo/supabase/functions/_shared
Haewon Kam 82e9ec6cc0 fix: correct base64 encoding for Vision Analysis screenshots
- Previous chunked btoa approach encoded each chunk independently,
  producing corrupted base64 that Gemini couldn't parse (returned {})
- Now builds complete binary string first, then encodes once with btoa
- Added screenshot debug info to channel errors for diagnostics
- Confirmed: foundingYear 2004, doctors, gangnamunni data all extracted

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-05 11:38:16 +09:00
..
config.ts feat: Sprint 1 — 7 data quality quick wins 2026-04-04 23:35:40 +09:00
extractSocialLinks.ts fix: type-safe string handling in extractSocialLinks/mergeSocialLinks 2026-04-04 01:17:49 +09:00
normalizeHandles.ts fix: Instagram data collection pipeline — handle normalization + DB persistence 2026-04-03 14:45:00 +09:00
researchPrompt.ts fix: simplify Perplexity prompt — short system + direct user query 2026-04-04 01:32:54 +09:00
retry.ts fix: add Authorization header to all Edge Function calls + fix Vision Analysis 2026-04-05 10:08:03 +09:00
verifyHandles.ts fix: add Authorization header to all Edge Function calls + fix Vision Analysis 2026-04-05 10:08:03 +09:00
visionAnalysis.ts fix: correct base64 encoding for Vision Analysis screenshots 2026-04-05 11:38:16 +09:00