
    wBj              
          d Z ddlZddlmZ ddlmZmZmZ ddlm	Z
 ddlmZmZ ddlmZ ddlmZ  ej$                  e      Z ed	d
g      Zej-                  de       ed       ee       ee      fdee   dede
defd       Zy)u  이미지 생성 파이프라인 캔버스 그래프 API (read-only).

설계 SOT: docs/w21b-pipeline-canvas-ui-20260629/. 메인 파이프라인 무접촉 — 오직
``build_pipeline_graph`` 로 nodes/edges 를 조립해 반환한다(신규 라우터, 기존 무수정).
    N)Optional)	APIRouterDependsQuery)Session)get_dbverify_project_access)PipelineGraphResponsebuild_pipeline_graphz/api/v1/projects/{project_id}pipeline)prefixtagsz/pipeline-graph)response_model)default
episode_id
project_iddbreturnc                     t        |||       S )u   프로젝트의 이미지 생성 파이프라인 그래프(에피소드 단위, read-only).

    episode_id 미지정 시 ``build_pipeline_graph`` 가 첫 에피소드를 default 로 선택한다.
    r   )r   r   r   s      I/Users/manta/Documents/Projects/TheRoad-I1/backend/app/api/v1/pipeline.pyget_pipeline_graphr      s      J
;;    )__doc__loggingtypingr   fastapir   r   r   sqlalchemy.ormr   
OrmSessionapp.api.depsr   r	   app.schemas.pipeliner
   #app.services.pipeline_graph_servicer   	getLogger__name__loggerroutergetstrr    r   r   <module>r*      s      - - 0 6 6 D			8	$	*

 .CD %d 334V_	<	<	< 		< 		< E	<r   