"""Build showcase v2 with current code."""
import sys, os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".claude", "worktrees", "gracious-tesla", "src"))
from pbix_mcp.builder import PBIXBuilder

b = PBIXBuilder("Northwind Analytics Dashboard v2")

# Same tables as original showcase (abbreviated for brevity)
exec(open(os.path.join(os.path.dirname(__file__), "test_data", "build_showcase.py")).read().split("b = PBIXBuilder")[1].split("b.save(out)")[0].replace("PBIXBuilder(", "None and PBIXBuilder("), {"b": b, "__builtins__": __builtins__, "os": os})

out = os.path.join(os.path.dirname(__file__), "test_showcase_v2.pbix")
b.save(out)
print(f"Built: {out}")
