feat(canvas): resolution/ratio composer settings and quality/count controls

Replace the ratio-baked size presets with a resolution tier (1K/2K/4K) plus
ratio selection and normalized dimensions, send imageQuality/imageCount to
the agent, and add the output_format field to GeneratorTaskInputArgs.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-09 20:43:35 +08:00
parent f0ae237da5
commit 4ff246a294
9 changed files with 174 additions and 42 deletions
+3
View File
@@ -137,6 +137,7 @@ export type GeneratorTaskInputArgs = {
aspect_ratio?: string;
image?: string[];
image_url?: string;
output_format?: string;
prompt?: string;
resolution?: string;
src_box?: NormalizedBox;
@@ -327,6 +328,8 @@ export type AgentChatPayload = {
mode?: string;
imageModel?: string;
imageSize?: string;
imageQuality?: string;
imageCount?: number;
enableWebSearch?: boolean;
messages: Array<{
role: "user";