INNER CODE UNIT · Python
scene_type
F-R-L/forge-film · forge/cli.py:196
scene_type=types[i % len(types)],
estimated_duration_sec=5.0,
)
for i in range(num_scenes)
]
dag = {s.id: [] for s in scenes}
return ProductionPlan(title="Mock Film", scenes=scenes, assets=[], dag=dag)
def _print_dag_enhanced(plan, routing: dict, cfg=None):
"""Print DAG with scene_type, assigned backend, and CPM priority."""
from forge.scheduler.cpm import compute_critical_path_with_routing
cp = compute_critical_path_with_routing(plan.dag, plan.scenes, routing)
max_cp = max(cp.values(), default=1.0)
table = Table(title=f"Production Plan: {plan.title}", show_lines=True)
table.add_column("Scene", style="cyan", no_wrap=True)
table.add_column("Type", style="magenta")