Codebase: Backend
API server, runtime services, process registry, and configuration for Luna.
API server, runtime services, process registry, and configuration for Luna.
server/main.py
FastAPI application bootstrap with lifecycle hooks, middleware, and router registration.
server/server.py
Standalone backend entrypoint used by Electron to launch the FastAPI server and manage PID cleanup.
server/config.py
Application settings and environment configuration using Pydantic BaseSettings.
server/processes/registry.py
Dynamic process registration and lifecycle management for background runtime work.
server/routers/chat.py
Chat API route implementation, prompt composition, streaming, and memory orchestration.
server/routers/agent.py
Agent and skill management API routes for workspace, browser, permissions, and audit data.