How ojaswip2828/clouddeploy works
CloudDeploy is a mini-PaaS with an incident-diagnosis Copilot. Its main workflow is user authentication, app creation and ZIP upload, asynchronous deployment, then retrieval of deployment status and URL. Failed builds or crashes can open incidents; users can investigate, review agent proposals, approve or reject destructive actions, and resolve incidents so fixes can be indexed. The graph preserves the documented runbook search and configurable model/embedding providers. Some deployment and Copilot internals were not sampled; uncertain links are omitted or marked unverified.
Main entry points: copilot/routes.py Incident API · deploy/routes.py App and deployment API · main.py FastAPI application · auth/routes.py Authentication
Components 20
API and identity
- FastAPI application
backend/app/main.py - Authentication
backend/app/auth/routes.py - Token security
backend/app/auth/security.py
App deployment
- App and deployment API
backend/app/deploy/routes.py - Image build and run
backend/app/deploy/builder.py - Deployment logs
backend/app/deploy/logs.py - Runtime monitor
backend/app/deploy/monitor.py - Deployment operations
backend/app/deploy/operations.py
Incident Copilot
- Incident lifecycle
backend/app/copilot/incidents.py - Incident API
backend/app/copilot/routes.py - Investigation agent
backend/app/copilot/agent.py - Agent tools
backend/app/copilot/tools.py - Runbook search and indexing
backend/app/copilot/rag.py - Embedding providers
backend/app/copilot/embeddings - LLM providers
backend/app/copilot/llm
Persistence
- Database session
backend/app/db.py - Domain records
backend/app/models.py
Other components
- Platform user
- Hosted model services
- Docker engine
Connections 32
- Platform user → FastAPI application: uses
- FastAPI application → Authentication: registers routes
backend/app/main.py - FastAPI application → App and deployment API: registers routes
backend/app/main.py - FastAPI application → Incident API: registers routes
backend/app/main.py - FastAPI application → Runtime monitor: starts monitor
backend/app/main.py - Authentication → Token security: uses tokens
backend/app/auth/routes.py - Authentication → Database session: uses session
backend/app/auth/routes.py - Authentication → Domain records: reads and writes
backend/app/auth/routes.py - App and deployment API → Token security: requires identity
backend/app/deploy/routes.py - App and deployment API → Database session: uses session
backend/app/deploy/routes.py - App and deployment API → Domain records: reads and writes
backend/app/deploy/routes.py - App and deployment API → Image build and run: queues build
backend/app/deploy/routes.py - App and deployment API → Deployment logs: reads logs
backend/app/deploy/routes.py - App and deployment API → Platform user: returns status and URL
- Image build and run → Docker engine: builds and runs
- Runtime monitor → Incident lifecycle: opens on failures
- Incident API → Token security: requires identity
backend/app/copilot/routes.py - Incident API → Investigation agent: starts investigation
backend/app/copilot/routes.py - Incident API → Incident lifecycle: opens and updates
backend/app/copilot/routes.py - Incident API → Runbook search and indexing: indexes resolution
backend/app/copilot/routes.py - Incident API → Embedding providers: selects embedder
backend/app/copilot/routes.py - Incident API → LLM providers: selects model
backend/app/copilot/routes.py - Incident API → Deployment operations: executes approved actions
backend/app/copilot/routes.py - Incident API → App and deployment API: checks deployment ownership
backend/app/copilot/routes.py - Incident API → Database session: uses session
backend/app/copilot/routes.py - Incident API → Domain records: reads and writes
backend/app/copilot/routes.py - Investigation agent → Agent tools: dispatches tools
- Investigation agent → Runbook search and indexing: searches knowledge
- Investigation agent → Hosted model services: requests completions
- LLM providers → Hosted model services: calls provider
- Embedding providers → Hosted model services: creates vectors
- Runbook search and indexing → Embedding providers: embeds runbooks
backend/scripts/ingest_runbooks.py