ai-chatbot/lib/video-agent/skills/tile-upscaler.ts
Your Name 20898e1ac1
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
feat(video-agent): add ruxa nine-grid storyboard skill pipeline
2026-03-05 14:48:24 +08:00

19 lines
541 B
TypeScript

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