feat(scanner): AI Gateway + Layer-1 OCR (convoy #3) #38
No reviewers
Labels
No labels
agent-context-drift
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: rstillwell/deckhearth#38
Loading…
Reference in a new issue
No description provided.
Delete branch "convoy/ai-gateway-and-ocr-layer"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
lib/scan-vision.js→https://ai-gateway.vercel.sh/v1/chat/completions. Env:AI_GATEWAY_API_KEY, optionalSCAN_VISION_MODEL(defaultgoogle/gemini-2.5-flash-lite).lib/ocr-worker.js) →POST /api/cards/identify-by-textwithpg_trgmsimilarity oncards.name. Escalates to vision only when similarity < 0.6 or OCR fails.1779853647565_add-pg-trgm-card-name-index.js—pg_trgmextension + GIN index oncards.name.schema-map-freshnow watchesmigrations/**; server-only allowlist updated forscan-vision.js.Operator action
AI_GATEWAY_API_KEYset on Vercel (user confirmed)npm run migrate upon production/preview Neon (pg_trgm migration)Test plan
npm run test:run— 21/21npm run build— green (Turbopack + tesseract.js dynamic import)scan_attempts.layerdistribution (target ≥70% layer=1 over time)Made with Cursor
The latest updates on your projects. Learn more about Vercel for GitHub.
Pipeline Health
Build + CI gates
Build runs on Vercel; this CI runs lint and schema-map drift only (no duplicate build).
Role reports
See individual comments above for details. This rollup updates automatically.
Visual Diff
Screenshots and diffs uploaded as artifacts: view run
If intentional changes: update snapshots locally with
npx playwright test --project=visual --update-snapshotsand commit.