export const API_BASE_URL = import.meta.env.VITE_API_BASE_URL || "http://localhost:8080";

export const AUTH_TOKEN_KEY = "yaoai-auth-token";
export const AUTH_USER_KEY = "yaoai-auth-user";

export const SCRIPT_EXTENSIONS = ["doc", "docx", "txt", "pdf", "md"];

export const PROJECT_STYLES = [
  { label: "真人短剧", value: "live_action_drama" },
  { label: "国漫风", value: "guoman" },
  { label: "写实电影感", value: "cinematic_realism" },
  { label: "3D 动画", value: "three_d_animation" }
];

export const ASPECT_RATIOS = ["9:16", "16:9", "1:1"];
export const RESOLUTIONS = ["720p", "1080p"];

export const PC_REFINE_AGENT_STEPS = [
  "script_understanding",
  "character_generation",
  "storyboard_generation"
];

export const QUICK_VIDEO_AGENT_STEPS = [
  "script_understanding",
  "character_generation",
  "storyboard_generation",
  "image_generation",
  "video_generation",
  "video_composition"
];

export const DEFAULT_AGENT_STEPS = PC_REFINE_AGENT_STEPS;

export type RunModeValue = "pc_refine" | "quick_video";

export const RUN_MODES: Array<{
  value: RunModeValue;
  label: string;
  title: string;
  description: string;
  runIntent: "auto" | "quick_video";
  selectedSteps: string[];
  actionLabel: string;
}> = [
  {
    value: "pc_refine",
    label: "PC 精修",
    title: "Agent 制作，PC 精修",
    description: "先生成剧本理解、角色和分镜，完成后回到 PC 工作台继续改图、改分镜、生成视频。",
    runIntent: "auto",
    selectedSteps: PC_REFINE_AGENT_STEPS,
    actionLabel: "创建 Agent 制作任务"
  },
  {
    value: "quick_video",
    label: "极速出片",
    title: "一键自动出片",
    description: "让 Agent 自动跑完图片、视频和合成流程，适合先快速拿到一版样片。",
    runIntent: "quick_video",
    selectedSteps: QUICK_VIDEO_AGENT_STEPS,
    actionLabel: "开始极速出片"
  }
];
