feat(quiver): add QuiverAI integration for SVG generation and vectorization#3728
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryMedium Risk Overview Implements new internal API routes for Registers the new Quiver tools in the tool and block registries, adds a Written by Cursor Bugbot for commit da17505. Configure here. |
Greptile SummaryThis PR adds a full QuiverAI integration with three operations — Text to SVG, Image to SVG, and List Models — following the established block/tool/route pattern used throughout the codebase. The two generative tools proxy through internal Next.js API routes (handling file download and base64 conversion server-side), while Key changes:
One issue to address: The Confidence Score: 4/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant UI as Quiver Block (UI)
participant TR as Tool Runner
participant TTS as /api/tools/quiver/text-to-svg
participant ITS as /api/tools/quiver/image-to-svg
participant Store as File Storage
participant QAI as api.quiver.ai
Note over UI,QAI: Text to SVG flow
UI->>TR: quiver_text_to_svg(prompt, model, refs?)
TR->>TTS: POST {apiKey, prompt, model, references?}
TTS->>Store: downloadFileFromStorage(ref)
Store-->>TTS: Buffer
TTS->>QAI: POST /v1/svgs/generations {model, prompt, references[base64]}
QAI-->>TTS: {data:[{svg}], id, usage}
TTS-->>TR: {success, output:{file, files, svgContent, id, usage}}
TR-->>UI: outputs
Note over UI,QAI: Image to SVG flow
UI->>TR: quiver_image_to_svg(model, image)
TR->>ITS: POST {apiKey, model, image}
ITS->>Store: downloadFileFromStorage(image)
Store-->>ITS: Buffer
ITS->>QAI: POST /v1/svgs/vectorizations {model, image:{base64}}
QAI-->>ITS: {data:[{svg}], id, usage}
ITS-->>TR: {success, output:{file, svgContent, id, usage}}
TR-->>UI: outputs
Note over UI,QAI: List Models flow
UI->>TR: quiver_list_models(apiKey)
TR->>QAI: GET /v1/models (Authorization: Bearer apiKey)
QAI-->>TR: {data:[{id, name, ...}]}
TR-->>UI: {success, output:{models}}
Reviews (3): Last reviewed commit: "fix(quiver): add files array to image-to..." | Re-trigger Greptile |
… import consistency
|
All three issues addressed in 9ab80e3:
@greptile @cursor review |
|
@cursor review |
|
@cursor review |
|
@greptile |
Summary
Type of Change
Testing
Tested manually
Checklist