Add effects upload endpoint

- New /effects/upload endpoint for uploading effect files
- Parses PEP 723 dependencies and @-tag metadata
- Lists, gets, and deletes effects by content hash

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
gilesb
2026-01-12 06:37:24 +00:00
parent 8e0b473925
commit 8e1c08abdc
2 changed files with 315 additions and 1 deletions

View File

@@ -55,7 +55,7 @@ def create_app() -> FastAPI:
return JSONResponse({"detail": "Not found"}, status_code=404)
# Include routers
from .routers import auth, storage, api, recipes, cache, runs, home
from .routers import auth, storage, api, recipes, cache, runs, home, effects
# Home and auth routers (root level)
app.include_router(home.router, tags=["home"])
@@ -74,6 +74,9 @@ def create_app() -> FastAPI:
# Also mount cache router at /media for convenience
app.include_router(cache.router, prefix="/media", tags=["media"])
# Effects router
app.include_router(effects.router, prefix="/effects", tags=["effects"])
return app