@sogni-ai/sogni-creative-agent-skill 3.69.0 → 3.71.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/sogni-agent.mjs CHANGED
@@ -3063,6 +3063,7 @@ const MINIMAX_H3_MODEL_MODES = new Map([
3063
3063
  ['minimax-h3-fl2va-fp8_flf2v_balanced', 'flf2v'],
3064
3064
  ['minimax-h3-ref2va-fp8_r2v_balanced', 'r2v'],
3065
3065
  ['minimax-h3-prism-int8_r2v', 'r2v'],
3066
+ ['minimax-h3-prism-int8_r2v_2stage', 'r2v'],
3066
3067
  ['minimax-h3-ref2va-fp8_r2v_2stage', 'r2v'],
3067
3068
  ['minimax-h3-ref2va-fp8_r2v_balanced_2stage', 'r2v'],
3068
3069
  ['minimax-h3-fastvideo-omni-int8_r2v_turbo', 'r2v'],
@@ -3150,11 +3151,22 @@ const MINIMAX_H3_R2V_TURBO_MODEL_ID = 'minimax-h3-ref2va-fp8_r2v_turbo';
3150
3151
  const MINIMAX_H3_R2V_BALANCED_MODEL_ID = 'minimax-h3-ref2va-fp8_r2v_balanced';
3151
3152
  // MiniMax H3 Prism: an optional reference-to-video model for mature themes on
3152
3153
  // Balanced R2V's graph, with its recipe fixed in the worker (8 Euler steps), so
3153
- // the CLI sends no steps or sampler, as for Balanced. 768p class only (no
3154
- // two-stage), Balanced's references, keyframes and LoRAs. It requires
3155
- // --no-filter and is never a default, a fallback or what a family alias picks.
3154
+ // the CLI sends no steps or sampler, as for Balanced. 768p class, Balanced's
3155
+ // references, keyframes and LoRAs. It requires --no-filter and is never a
3156
+ // default, a fallback or what a family alias picks.
3156
3157
  const MINIMAX_H3_R2V_PRISM_MODEL_ID = 'minimax-h3-prism-int8_r2v';
3157
3158
  const MINIMAX_H3_R2V_PRISM_SELECTOR = 'minimax-h3-r2v-prism';
3159
+ // Prism Two-Stage: the Prism request on its own id, rendered on the Ref2VA
3160
+ // Two-Stage canvas and delivered at exactly twice it, as Balanced Two-Stage is.
3161
+ // Every Prism rule applies. The pinned Intelligence Client does not list it yet
3162
+ // (MINIMAX_H3_PRISM_TWO_STAGE_SELECTOR), so the CLI adds its id and selector
3163
+ // until the pin carries them.
3164
+ const MINIMAX_H3_R2V_PRISM_TWO_STAGE_MODEL_ID = 'minimax-h3-prism-int8_r2v_2stage';
3165
+ const MINIMAX_H3_R2V_PRISM_TWO_STAGE_SELECTOR = 'minimax-h3-r2v-prism-2stage';
3166
+ const MINIMAX_H3_R2V_PRISM_TWO_STAGE_SELECTIONS = new Set([
3167
+ MINIMAX_H3_R2V_PRISM_TWO_STAGE_MODEL_ID,
3168
+ MINIMAX_H3_R2V_PRISM_TWO_STAGE_SELECTOR
3169
+ ]);
3158
3170
  // Ref2VA Two-Stage: the Standard (20-step) or Balanced (8-step) R2V request on
3159
3171
  // its own id, rendered on the FastH3 Two-Stage canvas (384, 544 or 768 px short
3160
3172
  // edge) and delivered at exactly twice it. Never Turbo; references, durations
@@ -3397,6 +3409,7 @@ function resolveSkillVideoModelAlias(
3397
3409
  return MINIMAX_H3_R2V_BALANCED_MODEL_ID;
3398
3410
  }
3399
3411
  if (normalized === MINIMAX_H3_R2V_PRISM_SELECTOR) return MINIMAX_H3_R2V_PRISM_MODEL_ID;
3412
+ if (normalized === MINIMAX_H3_R2V_PRISM_TWO_STAGE_SELECTOR) return MINIMAX_H3_R2V_PRISM_TWO_STAGE_MODEL_ID;
3400
3413
  if (normalized === 'minimax-h3-r2v-2stage') return MINIMAX_H3_R2V_TWO_STAGE_MODEL_ID;
3401
3414
  if (normalized === 'minimax-h3-r2v-balanced-2stage') return MINIMAX_H3_R2V_BALANCED_TWO_STAGE_MODEL_ID;
3402
3415
  if (normalized === 'minimax-h3-fasth3-r2v-turbo') return MINIMAX_H3_FASTH3_R2V_MODEL_ID;
@@ -3418,7 +3431,8 @@ function isMiniMaxH3TwoStageModel(modelId) {
3418
3431
  const normalized = String(modelId || '').trim().toLowerCase();
3419
3432
  return isMinimaxH3TwoStageModelId(modelId)
3420
3433
  || MINIMAX_H3_AUDIO_GUIDE_TWO_STAGE_SELECTIONS.has(normalized)
3421
- || MINIMAX_H3_FASTH3_R2V_TWO_STAGE_SELECTIONS.has(normalized);
3434
+ || MINIMAX_H3_FASTH3_R2V_TWO_STAGE_SELECTIONS.has(normalized)
3435
+ || MINIMAX_H3_R2V_PRISM_TWO_STAGE_SELECTIONS.has(normalized);
3422
3436
  }
3423
3437
 
3424
3438
  function isMiniMaxH3FastH3R2vModel(modelId) {
@@ -3467,27 +3481,33 @@ function isMiniMaxH3R2vModel(modelId) {
3467
3481
  || normalized === MINIMAX_H3_R2V_TURBO_MODEL_ID
3468
3482
  || normalized === MINIMAX_H3_R2V_BALANCED_MODEL_ID
3469
3483
  || normalized === MINIMAX_H3_R2V_PRISM_MODEL_ID
3484
+ || normalized === MINIMAX_H3_R2V_PRISM_TWO_STAGE_MODEL_ID
3470
3485
  || normalized === MINIMAX_H3_R2V_TWO_STAGE_MODEL_ID
3471
3486
  || normalized === MINIMAX_H3_R2V_BALANCED_TWO_STAGE_MODEL_ID
3472
3487
  || isMiniMaxH3FastH3R2vModel(normalized);
3473
3488
  }
3474
3489
 
3475
3490
  // The Intelligence Client selector for a Ref2VA Two-Stage selector or id. FastH3
3476
- // Reference Two-Stage renders the same 384/544/768 px canvases, so it sizes on
3477
- // the Balanced table until the pinned client carries its own selector.
3491
+ // Reference Two-Stage and Prism Two-Stage render the same 384/544/768 px
3492
+ // canvases, so they size on the Balanced table until the pinned client carries
3493
+ // their own selectors.
3478
3494
  function miniMaxH3R2vTwoStageSelector(modelId) {
3479
3495
  const normalized = String(modelId || '').trim().toLowerCase();
3480
3496
  return normalized === 'minimax-h3-r2v-balanced-2stage'
3481
3497
  || normalized === MINIMAX_H3_R2V_BALANCED_TWO_STAGE_MODEL_ID
3482
3498
  || MINIMAX_H3_FASTH3_R2V_TWO_STAGE_SELECTIONS.has(normalized)
3499
+ || MINIMAX_H3_R2V_PRISM_TWO_STAGE_SELECTIONS.has(normalized)
3483
3500
  ? 'minimax-h3-r2v-balanced-2stage'
3484
3501
  : 'minimax-h3-r2v-2stage';
3485
3502
  }
3486
3503
 
3487
- // MiniMax H3 Prism by its selector or worker id: the model that needs --no-filter.
3504
+ // MiniMax H3 Prism or Prism Two-Stage by selector or worker id: the models that
3505
+ // need --no-filter.
3488
3506
  function isMiniMaxH3PrismSelectionLocal(modelId) {
3489
3507
  const normalized = String(modelId || '').trim().toLowerCase();
3490
- return normalized === MINIMAX_H3_R2V_PRISM_SELECTOR || normalized === MINIMAX_H3_R2V_PRISM_MODEL_ID;
3508
+ return normalized === MINIMAX_H3_R2V_PRISM_SELECTOR
3509
+ || normalized === MINIMAX_H3_R2V_PRISM_MODEL_ID
3510
+ || MINIMAX_H3_R2V_PRISM_TWO_STAGE_SELECTIONS.has(normalized);
3491
3511
  }
3492
3512
 
3493
3513
  function isMiniMaxH3R2vTurboSelectionLocal(modelId, workflow = null) {
@@ -3597,6 +3617,7 @@ function miniMaxH3ModeFromModelId(modelId) {
3597
3617
  if (normalized === 'minimax-h3-flf2v-balanced') return 'flf2v';
3598
3618
  if (normalized === 'minimax-h3-r2v-balanced') return 'r2v';
3599
3619
  if (normalized === MINIMAX_H3_R2V_PRISM_SELECTOR) return 'r2v';
3620
+ if (normalized === MINIMAX_H3_R2V_PRISM_TWO_STAGE_SELECTOR) return 'r2v';
3600
3621
  if (normalized === 'minimax-h3-r2v-2stage') return 'r2v';
3601
3622
  if (normalized === 'minimax-h3-r2v-balanced-2stage') return 'r2v';
3602
3623
  if (normalized === 'minimax-h3-fasth3-r2v-turbo') return 'r2v';
@@ -5601,9 +5622,9 @@ Video Options:
5601
5622
  --video, -v Generate video instead of image
5602
5623
  --workflow <type> Video workflow: t2v|i2v|r2v|s2v|ia2v|a2v|v2v|animate-move|animate-replace
5603
5624
  --seedance-task-type <type> Seedance 2.5 loose-reference operation: reference|edit|extend
5604
- --seedance-draft Seedance 2.5: render a 480p draft that --seedance-finalize can render at 1080p
5605
- --seedance-finalize <draft-job-id> Seedance 2.5: render that draft at 1080p with its own prompt, media,
5606
- length, ratio, seed and audio (send none of them; the final is billed at 1080p)
5625
+ --seedance-draft Seedance 2.5: render a 480p draft that --seedance-finalize can render at 1080p or 4K
5626
+ --seedance-finalize <draft-job-id> Seedance 2.5: render that draft at 1080p by default; --target-resolution 2160 selects 4K.
5627
+ Its prompt, media, length, ratio, seed and audio are inherited; send none of them.
5607
5628
  --wan3-ratio <ratio> Wan 3 ratio: adaptive|16:9|4:3|1:1|3:4|9:16
5608
5629
  --smart-duration, --no-smart-duration Let Wan 3 choose 2-30s, or use --duration
5609
5630
  --reference-file-url <url> Wan 3 public HTTPS document context (one, up to 100 MB; supported paged formats up to 50 pages)
@@ -5612,7 +5633,7 @@ Video Options:
5612
5633
  --fps <num> Frames per second (model default unless set)
5613
5634
  --duration <sec> Duration in seconds (default: 5); Seedance 2.5 edit requires @Video1's source duration
5614
5635
  --frames <num> Override total frames (optional)
5615
- --target-resolution <px> Short-side target that preserves aspect ratio (Seedance 2.5: 480, 720 or 1080; Wan 3: 480, 720 (default) or 1080).
5636
+ --target-resolution <px> Short-side target that preserves aspect ratio (Seedance 2.5: 480, 720, 1080 or 2160 (4K); Wan 3: 480, 720 (default) or 1080).
5616
5637
  MiniMax H3 FastH3 and Ref2VA Two-Stage: the delivered size, 720, 1080, or 2K (1440; default),
5617
5638
  rendered on a half-size canvas (672x384, 960x544, 1344x768)
5618
5639
  --auto-resize-assets Auto-resize video reference assets (default)
@@ -5869,11 +5890,11 @@ Recommended LTX 2.5 Video Models:
5869
5890
  LTX 2.3 rollback-only capabilities:
5870
5891
  ltx23-22b-fp8_t2v_distilled Text-to-video with native dialogue/audio
5871
5892
  ltx23-22b-fp8_i2v_distilled Image-to-video; transition LoRA only when both frames are supplied
5872
- ltx23-eros Explicit uncensored I2V (30GB+ worker; requires --no-filter)
5893
+ ltx23-eros Older uncensored I2V, only when asked by name (30GB+ worker; requires --no-filter)
5873
5894
  ltx23-22b-fp8_ia2v_distilled Image+audio-to-video
5874
5895
  ltx23-22b-fp8_a2v_distilled Audio-to-video
5875
5896
  ltx23-22b-fp8_v2v_distilled Video-to-video rollback
5876
- ltx23-22b-10eros-v1.4-fp8mixed_i2v Private mature-theme I2V; first and/or last frame; requires --no-filter
5897
+ ltx23-22b-10eros-v1.4-fp8mixed_i2v Older mature-theme I2V, only when asked by name; first and/or last frame; requires --no-filter
5877
5898
 
5878
5899
  Video Upscale Model:
5879
5900
  flashvsr_v1.1_tiny_long_bf16 Promptless FlashVSR upscale to 1080p/1440p (--upscale-video)
@@ -5896,7 +5917,7 @@ Seedance Video Model Selectors:
5896
5917
  seedance2-ia2v Image+audio-to-video
5897
5918
  seedance2-v2v Video-to-video without ControlNet
5898
5919
  seedance2-5 Seedance 2.5 text-to-video (alias seedance2-5-t2v): 4-30s single clips,
5899
- 480p/720p/1080p (no 4K), MP4/MOV and last-frame export, native audio, first/last frame via
5920
+ 480p/720p/1080p/4K, MP4/MOV and last-frame export, native audio, first/last frame via
5900
5921
  --ref/--ref-end, up to 30 image / 10 video / 10 audio refs (50 total)
5901
5922
  seedance2-5-ia2v Seedance 2.5 image+audio-to-video
5902
5923
  seedance2-5-v2v Seedance 2.5 video-to-video, editing, and extension, no ControlNet
@@ -5930,6 +5951,8 @@ state negatives in the structured prompt.):
5930
5951
  minimax-h3-r2v-balanced Balanced Ref2VA with loose image/video/audio references
5931
5952
  minimax-h3-r2v-prism Optional Ref2VA model for mature themes on Balanced's graph: 768p class,
5932
5953
  Balanced's references, keyframes and LoRAs; requires --no-filter
5954
+ minimax-h3-r2v-prism-2stage Prism Two-Stage: the minimax-h3-r2v-prism request, delivered at twice the
5955
+ canvas like minimax-h3-r2v-balanced-2stage; requires --no-filter
5933
5956
  minimax-h3-r2v-2stage Ref2VA Two-Stage: the minimax-h3-r2v request (20 steps), delivered at twice the
5934
5957
  canvas, 2K by default (1344x768 -> 2688x1536); --target-resolution 1080 or 720
5935
5958
  minimax-h3-r2v-balanced-2stage Balanced Ref2VA Two-Stage: the minimax-h3-r2v-balanced request (8 steps),
@@ -6934,7 +6957,9 @@ if (options.music) {
6934
6957
  fatalCliError('MiniMax H3 Prism requires explicit --no-filter acknowledgement.', {
6935
6958
  code: 'INVALID_ARGUMENT',
6936
6959
  details: { model: options.model, requiredFlag: '--no-filter' },
6937
- hint: 'Retry with --video -m minimax-h3-r2v-prism --ref <image> --no-filter'
6960
+ hint: `Retry with --video -m ${isMiniMaxH3TwoStageModel(options.model)
6961
+ ? MINIMAX_H3_R2V_PRISM_TWO_STAGE_SELECTOR
6962
+ : MINIMAX_H3_R2V_PRISM_SELECTOR} --ref <image> --no-filter`
6938
6963
  });
6939
6964
  }
6940
6965
  try {
@@ -7011,9 +7036,11 @@ if (options.music) {
7011
7036
  fatalCliError(`--target-resolution 2K is the MiniMax H3 Two-Stage delivered size; ${options.model} takes a short side in pixels.`, {
7012
7037
  code: 'INVALID_ARGUMENT',
7013
7038
  details: { flag: '--target-resolution', value: '2K', model: options.model },
7014
- hint: isMiniMaxH3R2vModel(options.model)
7015
- ? 'Use -m minimax-h3-fasth3-r2v-turbo-2stage for 2K MiniMax H3 reference-to-video, or pass the short side in pixels.'
7016
- : 'Use -m minimax-h3-fasth3-turbo-2stage for 2K MiniMax H3 video, or pass the short side in pixels.'
7039
+ hint: isMiniMaxH3PrismSelectionLocal(options.model)
7040
+ ? `Use -m ${MINIMAX_H3_R2V_PRISM_TWO_STAGE_SELECTOR} --no-filter for 2K MiniMax H3 Prism, or pass the short side in pixels.`
7041
+ : isMiniMaxH3R2vModel(options.model)
7042
+ ? 'Use -m minimax-h3-fasth3-r2v-turbo-2stage for 2K MiniMax H3 reference-to-video, or pass the short side in pixels.'
7043
+ : 'Use -m minimax-h3-fasth3-turbo-2stage for 2K MiniMax H3 video, or pass the short side in pixels.'
7017
7044
  });
7018
7045
  }
7019
7046
  // Seedance 2.5 drafts render at 480p only, so a draft with no size asked for
@@ -7559,12 +7586,12 @@ if (options.video) {
7559
7586
  [cliSet.seed || options.lastSeed, '--seed/--last-seed'],
7560
7587
  [options.apiGenerateAudio !== null, '--generate-audio/--no-generate-audio'],
7561
7588
  [cliSet.seedanceTaskType || cliSet.workflow, '--seedance-task-type/--workflow'],
7562
- [cliSet.width || cliSet.height || cliSet.targetResolution, '-w/-h/--target-resolution'],
7589
+ [cliSet.width || cliSet.height, '-w/-h'],
7563
7590
  [cliSet.count && options.count !== 1, '-n']
7564
7591
  ].filter(([present]) => present).map(([, flag]) => flag);
7565
7592
  if (inherited.length > 0) {
7566
7593
  fatalCliError(
7567
- `A Seedance 2.5 finalize renders its draft at 1080p with the draft's own prompt, media, length, ratio, seed and audio; remove ${inherited.join(', ')}.`,
7594
+ `A Seedance 2.5 finalize uses the draft's own prompt, media, length, ratio, seed and audio; remove ${inherited.join(', ')}.`,
7568
7595
  {
7569
7596
  code: 'INVALID_ARGUMENT',
7570
7597
  details: { seedanceFinalize: options.seedanceFinalize, inherited },
@@ -7572,6 +7599,9 @@ if (options.video) {
7572
7599
  }
7573
7600
  );
7574
7601
  }
7602
+ if (cliSet.targetResolution && ![1080, 2160].includes(options.targetResolution)) {
7603
+ fatalCliError('Seedance 2.5 finalization --target-resolution must be 1080 or 2160 (4K).', { code: 'INVALID_ARGUMENT' });
7604
+ }
7575
7605
  options.count = 1;
7576
7606
  }
7577
7607
  if ((cliSet.wan3Ratio || options.wan3SmartDuration || options.wan3ReferenceFileUrl || options.wan3ReferenceLinkUrl || options.wan3Watermark) && !isWan3Video) {
@@ -7664,7 +7694,7 @@ if (options.video) {
7664
7694
  (cliSet.width || cliSet.height)
7665
7695
  ) {
7666
7696
  fatalCliError(
7667
- `Seedance 2.5 ${options.seedanceTaskType} inherits @Video1's aspect ratio; use --target-resolution 480, 720 or 1080 instead of --width/--height.`,
7697
+ `Seedance 2.5 ${options.seedanceTaskType} inherits @Video1's aspect ratio; use --target-resolution 480, 720, 1080 or 2160 instead of --width/--height.`,
7668
7698
  {
7669
7699
  code: 'INVALID_ARGUMENT',
7670
7700
  details: { seedanceTaskType: options.seedanceTaskType }
@@ -7674,9 +7704,9 @@ if (options.video) {
7674
7704
  if (
7675
7705
  isSeedance25Video &&
7676
7706
  cliSet.targetResolution &&
7677
- ![480, 720, 1080].includes(options.targetResolution)
7707
+ ![480, 720, 1080, 2160].includes(options.targetResolution)
7678
7708
  ) {
7679
- fatalCliError('Seedance 2.5 --target-resolution must be 480, 720 or 1080.', {
7709
+ fatalCliError('Seedance 2.5 --target-resolution must be 480, 720, 1080 or 2160 (4K).', {
7680
7710
  code: 'INVALID_ARGUMENT',
7681
7711
  details: { targetResolution: options.targetResolution }
7682
7712
  });
@@ -13768,9 +13798,12 @@ function projectLookupSummary(result) {
13768
13798
  ...(job.kind ? { kind: job.kind } : {}),
13769
13799
  ...(job.url ? { url: job.url } : {}),
13770
13800
  ...(job.urlUnavailable ? { urlUnavailable: job.urlUnavailable } : {}),
13771
- // Seedance 2.5 draft mode: render a draft at 1080p with --seedance-finalize <id> before it expires.
13801
+ // Seedance 2.5 draft mode: finalize before expiry; omit the final resolution for 1080p or request --target-resolution 2160 for 4K.
13772
13802
  ...(job.seedanceDraft === true ? { seedanceDraft: true, seedanceDraftExpiresAt: job.seedanceDraftExpiresAt ?? null } : {}),
13773
- ...(job.seedanceDraftJobId ? { seedanceDraftJobId: job.seedanceDraftJobId } : {})
13803
+ ...(job.seedanceDraftJobId ? { seedanceDraftJobId: job.seedanceDraftJobId } : {}),
13804
+ ...(['1080p', '4k'].includes(job.seedanceDraftFinalResolution)
13805
+ ? { seedanceDraftFinalResolution: job.seedanceDraftFinalResolution }
13806
+ : {})
13774
13807
  }))
13775
13808
  };
13776
13809
  }
@@ -14613,6 +14646,12 @@ function miniMaxH3R2vReferenceImageCount() {
14613
14646
  + (Array.isArray(options.contextImages) ? options.contextImages.length : 0);
14614
14647
  }
14615
14648
 
14649
+ function seedanceFinalResolutionOptions() {
14650
+ return options.seedanceFinalize !== null && cliSet.targetResolution
14651
+ ? { seedanceDraftFinalResolution: options.targetResolution === 2160 ? '4k' : '1080p' }
14652
+ : {};
14653
+ }
14654
+
14616
14655
  async function buildVideoEstimateParams({ tokenType, steps }) {
14617
14656
  const isSeedanceVideo = isSeedanceModel(options.model);
14618
14657
  const isWan3Video = isWan3ModelLocal(options.model);
@@ -14636,7 +14675,8 @@ async function buildVideoEstimateParams({ tokenType, steps }) {
14636
14675
  // Seedance 2.5 draft mode: a draft is quoted as its 480p job, a finalize
14637
14676
  // from its draft (the server ignores this request's size and length).
14638
14677
  ...(options.seedanceDraft ? { seedanceDraft: true } : {}),
14639
- ...(options.seedanceFinalize !== null ? { seedanceDraftJobId: options.seedanceFinalize } : {})
14678
+ ...(options.seedanceFinalize !== null ? { seedanceDraftJobId: options.seedanceFinalize } : {}),
14679
+ ...seedanceFinalResolutionOptions()
14640
14680
  };
14641
14681
 
14642
14682
  if ((isSeedanceVideo || isWan3Video || isMiniMaxH3R2v) && videoSources.length > 0) {
@@ -15558,10 +15598,10 @@ async function main() {
15558
15598
  count: options.count,
15559
15599
  ...(delivered ? { deliveredWidth: delivered.width, deliveredHeight: delivered.height } : {}),
15560
15600
  ...(options.keyframes.length > 0 ? { keyframeCount: options.keyframes.length } : {}),
15561
- // A finalize is quoted from its draft: 1080p in the draft's ratio, for
15562
- // the draft's length, not this request's defaults.
15601
+ // A finalize is quoted at the selected final resolution in the
15602
+ // draft's ratio and length, rather than this request's defaults.
15563
15603
  ...(options.seedanceFinalize !== null
15564
- ? { width: null, height: null, frames: null, duration: null, seedanceDraftJobId: options.seedanceFinalize }
15604
+ ? { width: null, height: null, frames: null, duration: null, seedanceDraftJobId: options.seedanceFinalize, ...seedanceFinalResolutionOptions() }
15565
15605
  : {}),
15566
15606
  ...(options.seedanceDraft ? { seedanceDraft: true } : {}),
15567
15607
  estimate
@@ -16306,13 +16346,14 @@ async function main() {
16306
16346
  }
16307
16347
 
16308
16348
  if (options.seedanceFinalize !== null) {
16309
- // The final is its draft at 1080p: Sogni takes the prompt, media, length,
16349
+ // Sogni takes the final's prompt, media, length,
16310
16350
  // ratio, seed and audio from the draft and refuses them sent again. The
16311
16351
  // flags that set them are refused up front; the default length is not.
16312
16352
  delete projectConfig.duration;
16313
16353
  projectConfig.positivePrompt = '';
16314
16354
  projectConfig.seedanceDraftJobId = options.seedanceFinalize;
16315
- log(`Rendering Seedance draft ${options.seedanceFinalize} at 1080p...`);
16355
+ Object.assign(projectConfig, seedanceFinalResolutionOptions());
16356
+ log(`Rendering Seedance draft ${options.seedanceFinalize} at ${projectConfig.seedanceDraftFinalResolution === '4k' ? '4K' : '1080p'}...`);
16316
16357
  }
16317
16358
 
16318
16359
  await warnAboutInFlightProjects(client, log);
@@ -17204,11 +17245,12 @@ async function main() {
17204
17245
  };
17205
17246
  }
17206
17247
  if (options.seedanceFinalize !== null) {
17207
- // The final's size and length are its draft's, at 1080p, not this
17208
- // request's defaults.
17248
+ // The final uses its draft's ratio and length at the selected
17249
+ // resolution, rather than this request's default canvas and length.
17209
17250
  output.width = null;
17210
17251
  output.height = null;
17211
17252
  output.duration = null;
17253
+ Object.assign(output, seedanceFinalResolutionOptions());
17212
17254
  }
17213
17255
  console.log(JSON.stringify(output));
17214
17256
  } else {
package/version.mjs CHANGED
@@ -1 +1 @@
1
- export const PACKAGE_VERSION = '3.69.0';
1
+ export const PACKAGE_VERSION = '3.71.0';