""" 3-phase API routes for L1 server. Provides the plan/execute/run-recipe endpoints for programmatic access. """ from fastapi import APIRouter, Request, Depends, HTTPException from artdag_common.models.requests import PlanRequest, ExecutePlanRequest, RecipeRunRequest from ..dependencies import require_auth router = APIRouter() # TODO: Migrate routes from server.py lines 6036-6241 # - POST /plan - Generate execution plan # - POST /execute - Execute a plan # - POST /run-recipe - Run complete recipe @router.post("/plan") async def generate_plan(request: PlanRequest): """Generate an execution plan from recipe without executing.""" # TODO: Implement raise HTTPException(501, "Not yet migrated") @router.post("/execute") async def execute_plan(request: ExecutePlanRequest): """Execute a previously generated plan.""" # TODO: Implement raise HTTPException(501, "Not yet migrated") @router.post("/run-recipe") async def run_recipe(request: RecipeRunRequest): """Run a complete recipe through all 3 phases.""" # TODO: Implement raise HTTPException(501, "Not yet migrated")