import "server-only"; import type { MappedStoryboardShot, PreparedStoryboardShot } from "@/lib/video-agent/types"; export async function runTileUpscalerSkill(params: { shots: MappedStoryboardShot[]; enableTileUpscale: boolean; sliceUpscaleMinEdge: number; }): Promise { const { shots, enableTileUpscale } = params; return shots.map((shot) => ({ ...shot, inputImageUrl: shot.tileImageUrl, upscaled: false, upscaleReason: enableTileUpscale ? "reserved_not_enabled" : "disabled", })); }