How quvi-ai/sketchup-plugin works
QUVIAI is a SketchUp extension for AI architectural rendering and 3D object generation. The user opens the panel, authenticates, supplies render settings or object-generation input, and receives an opened render or an imported GLB. The graph follows these distinct workflows through the extension coordinator, API client, asynchronous job polling, and SketchUp result handling; authentication, saved preferences, and main-thread dispatch are supporting layers. README capabilities not visible in sampled client methods are retained as documented API capabilities. Edges reflect excerpts or README statements; unsampled wiring is omitted.
Main entry points: extension.rb Workflow coordinator · client.rb API and task client · panel.rb Web panel · http.rb Authenticated HTTP
Components 18
Panel and UI
- Extension entry
quviai_sketchup.rb - Web panel
quviai_sketchup/panel.rb - Panel interface
quviai_sketchup/ui/panel.html
Generation workflows
- Workflow coordinator
quviai_sketchup/extension.rb - Task and result models
quviai_sketchup/models.rb - Workflow errors
quviai_sketchup/exceptions.rb
SketchUp integration
- Viewport and image capture
quviai_sketchup/capture.rb - Saved session and credits
quviai_sketchup/store.rb - Render and model results
quviai_sketchup/importer.rb - Main-thread dispatch
quviai_sketchup/main_thread.rb
QUVIAI services
- API and task client
quviai_sketchup/client.rb - Job status polling
quviai_sketchup/polling.rb - Authenticated HTTP
quviai_sketchup/http.rb - JWT authentication
quviai_sketchup/auth.rb
Other components
- SketchUp user
- QUVIAI API
- SketchUp preferences
- SketchUp model and UI
Connections 25
- SketchUp user → Web panel: opens and uses
README.md - Extension entry → Workflow coordinator: registers extension
quviai_sketchup.rb - Workflow coordinator → Web panel: opens
quviai_sketchup/extension.rb - Web panel → Panel interface: loads interface
quviai_sketchup/panel.rb - Web panel → Workflow coordinator: routes actions
quviai_sketchup/panel.rb - Workflow coordinator → Saved session and credits: loads and saves
quviai_sketchup/extension.rb - Saved session and credits → SketchUp preferences: reads and writes
quviai_sketchup/store.rb - Workflow coordinator → API and task client: authenticates and runs jobs
quviai_sketchup/extension.rb - Workflow coordinator → Viewport and image capture: captures inputs
quviai_sketchup/extension.rb - API and task client → Authenticated HTTP: submits requests
quviai_sketchup/client.rb - API and task client → Job status polling: polls tasks
quviai_sketchup/client.rb - Job status polling → Authenticated HTTP: checks status
quviai_sketchup/polling.rb - Authenticated HTTP → JWT authentication: refreshes credentials
quviai_sketchup/http.rb - JWT authentication → QUVIAI API: refreshes token
quviai_sketchup/auth.rb - Authenticated HTTP → QUVIAI API: sends API requests
quviai_sketchup/http.rb - API and task client → QUVIAI API: logs in and downloads
quviai_sketchup/client.rb - Viewport and image capture → API and task client: provides encoded input
- API and task client → Workflow coordinator: returns generated bytes
quviai_sketchup/extension.rb - Workflow coordinator → Render and model results: hands off results
- Render and model results → SketchUp model and UI: opens or imports
quviai_sketchup/importer.rb - Web panel → Main-thread dispatch: queues UI updates
quviai_sketchup/panel.rb - Main-thread dispatch → SketchUp model and UI: runs on main thread
quviai_sketchup/main_thread.rb - Job status polling → Task and result models: creates task status
quviai_sketchup/polling.rb - Authenticated HTTP → Workflow errors: raises API errors
quviai_sketchup/http.rb - Job status polling → Workflow errors: raises task errors
quviai_sketchup/polling.rb