feat(agents): Phase 7-10 API endpoints for hooks, plugins, skills, sessions
This commit is contained in:
@@ -23,6 +23,11 @@ from app.routers import (
|
||||
log_router,
|
||||
system_router,
|
||||
brain_router,
|
||||
hooks_router,
|
||||
plugins_router,
|
||||
marketplace_router,
|
||||
agent_skills_router,
|
||||
agent_sessions_router,
|
||||
)
|
||||
from app.routers.scheduler import router as scheduler_router
|
||||
from app.services.scheduler_service import start_scheduler, stop_scheduler, get_scheduler_status
|
||||
@@ -40,15 +45,15 @@ import os
|
||||
|
||||
|
||||
INSECURE_SECRET_KEYS = {
|
||||
'change-me-in-production',
|
||||
'change-me-to-a-random-secret-key',
|
||||
'jarvis-secret-key-change-in-production',
|
||||
"change-me-in-production",
|
||||
"change-me-to-a-random-secret-key",
|
||||
"jarvis-secret-key-change-in-production",
|
||||
}
|
||||
|
||||
|
||||
def validate_startup_security() -> None:
|
||||
if not settings.DEBUG and settings.SECRET_KEY in INSECURE_SECRET_KEYS:
|
||||
raise RuntimeError('SECRET_KEY must be changed before running with DEBUG disabled')
|
||||
raise RuntimeError("SECRET_KEY must be changed before running with DEBUG disabled")
|
||||
|
||||
|
||||
async def run_startup() -> None:
|
||||
@@ -117,6 +122,11 @@ app.include_router(log_router)
|
||||
app.include_router(system_router)
|
||||
app.include_router(brain_router)
|
||||
app.include_router(scheduler_router)
|
||||
app.include_router(hooks_router)
|
||||
app.include_router(plugins_router)
|
||||
app.include_router(marketplace_router)
|
||||
app.include_router(agent_skills_router)
|
||||
app.include_router(agent_sessions_router)
|
||||
|
||||
|
||||
@app.get("/api/health")
|
||||
|
||||
Reference in New Issue
Block a user