"""Push updated system prompt to Langfuse"""
import os
from dotenv import load_dotenv
load_dotenv(os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), ".env"))
from langfuse import Langfuse

prompt_path = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), 
                           "agent", "system_prompt.txt")
with open(prompt_path, "r", encoding="utf-8") as f:
    content = f.read()

lf = Langfuse()
lf.create_prompt(
    name="canifa-stylist-system-prompt",
    prompt=content,
    labels=["production"],
    tags=["canifa", "system-prompt"],
    type="text",
)
print("✅ System prompt pushed to Langfuse!")
