@sogni-ai/sogni-creative-agent-skill 3.27.0 → 3.29.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
@@ -1607,7 +1607,7 @@ function videoDurationLimitsLikeWrapper(modelId) {
1607
1607
  if (isMiniMaxH3Model(modelId)) return { ...MINIMAX_H3_DURATION_LIMITS };
1608
1608
  if (isSeedanceModel(modelId)) return { min: 4, max: 15 };
1609
1609
  if (isHappyHorseModel(modelId)) return { min: 3, max: 15 };
1610
- if (isLtx2Model(modelId) || isWanAnimateVideoModelId(modelId)) return { min: 1, max: 20 };
1610
+ if (isLtxFamilyModel(modelId) || isWanAnimateVideoModelId(modelId)) return { min: 1, max: 20 };
1611
1611
  return { min: 1, max: 10 };
1612
1612
  }
1613
1613
 
@@ -1880,6 +1880,13 @@ const LTX_TRANSITION_LORA_ID = 'transition';
1880
1880
  const LTX_TRANSITION_TRIGGER = 'zhuanchang';
1881
1881
  const LTX_TRANSITION_DEFAULT_STRENGTH = 1.0;
1882
1882
  const LTX23_10EROS_MODEL_ID = 'ltx23-22b-10eros-v1.4-fp8mixed_i2v';
1883
+ const LTX25_DISTILLED_WORKFLOW_MODELS = Object.freeze({
1884
+ t2v: 'ltx25-22b-int8_t2v_distilled',
1885
+ i2v: 'ltx25-22b-int8_i2v_distilled',
1886
+ a2v: 'ltx25-22b-int8_a2v_distilled',
1887
+ ia2v: 'ltx25-22b-int8_ia2v_distilled',
1888
+ v2v: 'ltx25-22b-int8_v2v_distilled'
1889
+ });
1883
1890
  const MINIMAX_H3_MODEL_MODES = new Map([
1884
1891
  ['minimax-h3-fl2va-fp8_t2v', 't2v'],
1885
1892
  ['minimax-h3-fl2va-fp8_i2v', 'i2v'],
@@ -1890,6 +1897,13 @@ const MINIMAX_H3_MODEL_MODES = new Map([
1890
1897
  ['minimax-h3-fl2va-fp8_flf2v_turbo', 'flf2v']
1891
1898
  ]);
1892
1899
  const MINIMAX_H3_MODEL_IDS = new Set(MINIMAX_H3_MODEL_MODES.keys());
1900
+ const MINIMAX_H3_TURBO_MODEL_IDS = new Set([
1901
+ 'minimax-h3-fl2va-fp8_t2v_turbo',
1902
+ 'minimax-h3-fl2va-fp8_i2v_turbo',
1903
+ 'minimax-h3-fl2va-fp8_flf2v_turbo'
1904
+ ]);
1905
+ const MINIMAX_H3_TURBO_SAMPLERS = Object.freeze(['euler', 'er_sde', 'sa_solver']);
1906
+ const MINIMAX_H3_TURBO_SAMPLER_SET = new Set(MINIMAX_H3_TURBO_SAMPLERS);
1893
1907
  const MINIMAX_H3_R2V_MODEL_ID = 'minimax-h3-ref2va-fp8_r2v';
1894
1908
  const MINIMAX_H3_REFERENCE_LIMITS = Object.freeze({
1895
1909
  images: 9,
@@ -1941,6 +1955,14 @@ const DR34ML4Y_SUPPORTED_MODEL_IDS = new Set([
1941
1955
 
1942
1956
  function resolveSkillVideoModelAlias(modelId, workflow = null, hasEndFrame = false) {
1943
1957
  const normalized = String(modelId || '').trim().toLowerCase();
1958
+ if (normalized === 'ltx25' || normalized === 'ltx25-t2v') {
1959
+ const mode = ['i2v', 'a2v', 'ia2v', 'v2v'].includes(workflow) ? workflow : 't2v';
1960
+ return LTX25_DISTILLED_WORKFLOW_MODELS[mode];
1961
+ }
1962
+ if (normalized === 'ltx25-i2v') return LTX25_DISTILLED_WORKFLOW_MODELS.i2v;
1963
+ if (normalized === 'ltx25-a2v') return LTX25_DISTILLED_WORKFLOW_MODELS.a2v;
1964
+ if (normalized === 'ltx25-ia2v') return LTX25_DISTILLED_WORKFLOW_MODELS.ia2v;
1965
+ if (normalized === 'ltx25-v2v') return LTX25_DISTILLED_WORKFLOW_MODELS.v2v;
1944
1966
  if (normalized === 'minimax-h3' && workflow) {
1945
1967
  if (workflow === 'r2v') return MINIMAX_H3_R2V_MODEL_ID;
1946
1968
  if (workflow === 'i2v') {
@@ -1986,6 +2008,10 @@ function isMiniMaxH3Model(modelId) {
1986
2008
  return MINIMAX_H3_MODEL_IDS.has(String(modelId || '').trim().toLowerCase());
1987
2009
  }
1988
2010
 
2011
+ function isMiniMaxH3TurboModel(modelId) {
2012
+ return MINIMAX_H3_TURBO_MODEL_IDS.has(String(modelId || '').trim().toLowerCase());
2013
+ }
2014
+
1989
2015
  function isMiniMaxH3R2vModel(modelId) {
1990
2016
  return String(modelId || '').trim().toLowerCase() === MINIMAX_H3_R2V_MODEL_ID;
1991
2017
  }
@@ -2004,6 +2030,15 @@ function isMiniMaxH3ModelSelectionLocal(modelId) {
2004
2030
  || isMiniMaxH3Model(normalized);
2005
2031
  }
2006
2032
 
2033
+ function isMiniMaxH3TurboModelSelectionLocal(modelId) {
2034
+ const normalized = String(modelId || '').trim().toLowerCase();
2035
+ return normalized === 'minimax-h3-turbo'
2036
+ || normalized === 'minimax-h3-t2v-turbo'
2037
+ || normalized === 'minimax-h3-i2v-turbo'
2038
+ || normalized === 'minimax-h3-flf2v-turbo'
2039
+ || isMiniMaxH3TurboModel(normalized);
2040
+ }
2041
+
2007
2042
  function miniMaxH3ModeFromModelId(modelId) {
2008
2043
  const normalized = String(modelId || '').trim().toLowerCase();
2009
2044
  if (normalized === 'minimax-h3-t2v') return 't2v';
@@ -2060,15 +2095,43 @@ function parseOutpaintAspectRatio(value) {
2060
2095
  return width / height;
2061
2096
  }
2062
2097
 
2063
- function isLtx23V2VModelId(modelId) {
2064
- return !!modelId && modelId.includes('ltx23') && /_v2v(_|$)/.test(modelId);
2098
+ function isLtxV2VModelId(modelId) {
2099
+ return !!modelId && (modelId.includes('ltx23') || modelId.includes('ltx25')) && /_v2v(_|$)/.test(modelId);
2100
+ }
2101
+
2102
+ function isLtx23ModelId(modelId) {
2103
+ return String(modelId || '').trim().toLowerCase().startsWith('ltx23-');
2104
+ }
2105
+
2106
+ function isLtx25ModelId(modelId) {
2107
+ return String(modelId || '').trim().toLowerCase().startsWith('ltx25-');
2108
+ }
2109
+
2110
+ function isLtxFamilyModel(modelId) {
2111
+ return isLtx2Model(modelId) || isLtx25ModelId(modelId);
2112
+ }
2113
+
2114
+ function ltx25WorkflowFromModelSelection(modelId) {
2115
+ const normalized = String(modelId || '').trim().toLowerCase();
2116
+ const exact = normalized.match(/^ltx25-22b-int8_(t2v|i2v|a2v|ia2v|v2v)_(?:distilled|dev)$/);
2117
+ if (exact) return exact[1];
2118
+ const alias = normalized.match(/^ltx25-(t2v|i2v|a2v|ia2v|v2v)$/);
2119
+ return alias ? alias[1] : null;
2120
+ }
2121
+
2122
+ function upgradeBuiltInLtx23Default(modelId, workflow) {
2123
+ const normalized = String(modelId || '').trim().toLowerCase();
2124
+ const match = normalized.match(/^ltx23-22b-fp8_(t2v|i2v|a2v|ia2v|v2v)_(distilled|dev)$/);
2125
+ if (!match) return modelId;
2126
+ const mode = ['t2v', 'i2v', 'a2v', 'ia2v', 'v2v'].includes(workflow) ? workflow : match[1];
2127
+ return `ltx25-22b-int8_${mode}_${match[2]}`;
2065
2128
  }
2066
2129
 
2067
2130
  function isLtxI2vTransitionModelId(modelId) {
2068
2131
  return (
2069
2132
  !!modelId &&
2070
2133
  modelId !== LTX23_10EROS_MODEL_ID &&
2071
- modelId.includes('ltx') &&
2134
+ isLtx23ModelId(modelId) &&
2072
2135
  /_i2v(_|$)/.test(modelId)
2073
2136
  );
2074
2137
  }
@@ -2273,8 +2336,8 @@ const options = {
2273
2336
  refVideo: null, // Reference video for animate workflows (primary)
2274
2337
  refVideos: [], // Additional Seedance loose video refs; first --ref-video fills refVideo, subsequent calls append here
2275
2338
  videoStart: null, // Optional start offset into reference video
2276
- refMask: null, // Inpaint mask image for LTX-2.3 v2v inpaint
2277
- outpaintPosition: null, // LTX-2.3 v2v outpaint canvas anchor
2339
+ refMask: null, // Inpaint mask image for LTX v2v inpaint
2340
+ outpaintPosition: null, // LTX v2v outpaint canvas anchor
2278
2341
  outpaintAspectRatio: null, // Optional target aspect ratio for outpaint canvas growth
2279
2342
  contextImages: [], // Context images for image editing
2280
2343
  looping: false, // Create looping video (i2v only): generate A→B then B→A and concatenate
@@ -2383,7 +2446,7 @@ const options = {
2383
2446
  // Tier 2 local storyboard planning surface:
2384
2447
  storyboardPlanAction: false,
2385
2448
  storyboardPlanFrames: null,
2386
- storyboardPlanModel: null, // seedance|seedance2|gpt-image-2|ltx23|wan
2449
+ storyboardPlanModel: null, // seedance|seedance2|gpt-image-2|ltx25|ltx23|wan
2387
2450
  storyboardPlanStage: null, // storyboard_image|scene_clip
2388
2451
  noFilter: false // Disable NSFW content filter
2389
2452
  };
@@ -3378,7 +3441,7 @@ Image Options:
3378
3441
  --angle-strength <n> LoRA strength for multiple_angles (default: 0.9)
3379
3442
  --angle-description <text> Optional subject description
3380
3443
  --output-format <f> Image output format: png|jpg (webp for gpt-image-2)
3381
- --sampler <name> Sampler (model-dependent)
3444
+ --sampler <name> Sampler (images/music; H3 Turbo video: euler|er_sde|sa_solver)
3382
3445
  --scheduler <name> Scheduler (model-dependent)
3383
3446
  --lora <id> Image LoRA id (repeatable; order is significant)
3384
3447
  --loras <ids> Comma-separated LoRA ids
@@ -3422,7 +3485,7 @@ Video Options:
3422
3485
  --estimate-video-cost Estimate video cost and exit
3423
3486
  --ref <path|url> Reference image for video (start frame; Picture 1 on H3 r2v)
3424
3487
  --ref-end <path|url> End frame for interpolation/morphing; with --ref it
3425
- defaults to the LTX-2.3 transition/morph model
3488
+ defaults to the LTX-2.5 i2v first/last-frame workflow
3426
3489
  (last frame on Seedance)
3427
3490
  --ref-audio <path|url> Audio reference. Repeatable on Seedance and H3 r2v (up to 3 total);
3428
3491
  first entry is the primary, extras must be HTTPS URLs in CLI
@@ -3437,13 +3500,15 @@ Video Options:
3437
3500
  direct-gen for Seedance. On LTX/WAN: single primary for animate/v2v.
3438
3501
  --generate-audio, --no-generate-audio Keep or strip MiniMax H3's generated audio track
3439
3502
 
3440
- Seedance Reference Modes (mutually exclusive on seedance2 / seedance2-mini / seedance2-fast):
3503
+ Seedance Reference Modes (mutually exclusive on seedance2 / seedance2-mini / seedance2-fast / seedance2-5):
3441
3504
  - DEDICATED FRAME MODE: --ref (first frame) and/or --ref-end (last frame).
3442
3505
  Best when you want canonical first/last frame anchoring; max 2 images.
3443
3506
  - LOOSE REFERENCE MODE: -c/--context image refs plus optional --ref-audio /
3444
3507
  --ref-video extras. Anchor frame intent in the prompt with @Image1, @Image2,
3445
3508
  @Video1, @Audio1 etc. (e.g. "Use @Image1 as the opening shot reference").
3446
- Up to 9 image / 3 video / 3 audio / 12 total references per video request.
3509
+ Up to 9 image / 3 video / 3 audio / 12 total references per video request
3510
+ on the 2.0 family; seedance2-5 raises the caps to 30 image / 10 video /
3511
+ 10 audio / 30 total.
3447
3512
  Combining --ref/--ref-end with -c/--context on Seedance is rejected client-side.
3448
3513
  All three modalities pull caps from the canonical
3449
3514
  @sogni-ai/sogni-protocol seedance-reference-limits catalog.
@@ -3451,9 +3516,9 @@ Seedance Reference Modes (mutually exclusive on seedance2 / seedance2-mini / see
3451
3516
  --controlnet-name <n> ControlNet type for v2v: canny|pose|depth|detailer|outpaint|inpaint
3452
3517
  --control-type <n> Alias for --controlnet-name
3453
3518
  --controlnet-strength <n> ControlNet strength for v2v (0.0-1.0, default: 0.8)
3454
- --mask <path|url> Inpaint mask image for LTX-2.3 v2v inpaint (white = regenerate)
3455
- --outpaint-position <p> LTX-2.3 outpaint anchor: center|top|bottom|left|right
3456
- --outpaint-aspect-ratio <r> LTX-2.3 outpaint target ratio, e.g. 16:9 or 9:16
3519
+ --mask <path|url> Inpaint mask image for LTX v2v inpaint (white = regenerate)
3520
+ --outpaint-position <p> LTX outpaint anchor: center|top|bottom|left|right
3521
+ --outpaint-aspect-ratio <r> LTX outpaint target ratio, e.g. 16:9 or 9:16
3457
3522
  --sam2-coordinates <coords> SAM2 click coords for animate-replace (x,y or x1,y1;x2,y2)
3458
3523
  --trim-end-frame Trim last frame for seamless video stitching
3459
3524
  --first-frame-strength <n> Keyframe strength for start frame (0.0-1.0)
@@ -3592,13 +3657,21 @@ Image Models:
3592
3657
  qwen_image_edit_2511_fp8 Image editing with context (up to 3 images)
3593
3658
  qwen_image_edit_2511_fp8_lightning Fast image editing
3594
3659
 
3595
- Recommended LTX 2.3 Video Models:
3660
+ Recommended LTX 2.5 Video Models:
3661
+ ltx25 / ltx25-t2v Distilled text-to-video with native dialogue/audio
3662
+ ltx25-i2v Distilled image-to-video and first/last-frame workflow
3663
+ ltx25-a2v Distilled audio-to-video
3664
+ ltx25-ia2v Distilled image+audio-to-video
3665
+ ltx25-v2v Distilled video-to-video control, inpaint, and outpaint
3666
+ ltx25-22b-int8_<mode>_dev Dev/HQ two-stage workflow for t2v/i2v/a2v/ia2v/v2v
3667
+
3668
+ LTX 2.3 rollback-only capabilities:
3596
3669
  ltx23-22b-fp8_t2v_distilled Text-to-video with native dialogue/audio
3597
- ltx23-22b-fp8_i2v_distilled Image-to-video with native dialogue/audio; default for --ref + --ref-end pairs
3670
+ ltx23-22b-fp8_i2v_distilled Image-to-video; transition LoRA only when both frames are supplied
3598
3671
  ltx23-eros Explicit uncensored I2V (30GB+ worker; requires --no-filter)
3599
3672
  ltx23-22b-fp8_ia2v_distilled Image+audio-to-video
3600
3673
  ltx23-22b-fp8_a2v_distilled Audio-to-video
3601
- ltx23-22b-fp8_v2v_distilled Video-to-video with ControlNet
3674
+ ltx23-22b-fp8_v2v_distilled Video-to-video rollback
3602
3675
  ltx23-22b-10eros-v1.4-fp8mixed_i2v Private mature-theme I2V; first and/or last frame; requires --no-filter
3603
3676
 
3604
3677
  Music Models:
@@ -3607,12 +3680,17 @@ Music Models:
3607
3680
  ace_step_1.5_turbo Legacy direct music generation
3608
3681
  ace_step_1.5_sft Legacy lyric-focused music generation
3609
3682
 
3610
- Seedance 2.0 Video Model Selectors:
3611
- seedance2 Text-to-video, 4-15s, native audio, HTTPS multimodal refs
3683
+ Seedance Video Model Selectors:
3684
+ seedance2 Seedance 2.0 text-to-video, 4-15s, native audio, HTTPS multimodal refs
3612
3685
  seedance2-mini Lower-cost 720p-capped text-to-video
3613
3686
  seedance2-fast Legacy fast 720p-capped text-to-video
3614
3687
  seedance2-ia2v Image+audio-to-video
3615
3688
  seedance2-v2v Video-to-video without ControlNet
3689
+ seedance2-5 Seedance 2.5 text-to-video (alias seedance2-5-t2v): 4-30s single clips,
3690
+ 480p/720p only (no 1080p/4K), native audio, first/last frame via
3691
+ --ref/--ref-end, up to 30 image / 10 video / 10 audio refs (30 total)
3692
+ seedance2-5-ia2v Seedance 2.5 image+audio-to-video
3693
+ seedance2-5-v2v Seedance 2.5 video-to-video, editing, and extension, no ControlNet
3616
3694
 
3617
3695
  HappyHorse 1.1 Video Model Selectors (3-15s, fixed 24fps, native audio, 720P/1080P):
3618
3696
  happyhorse-1.1-t2v Text-to-video (also accepts the bare "happyhorse" alias)
@@ -3635,6 +3713,9 @@ state negatives in the structured prompt.):
3635
3713
  minimax-h3-i2v-turbo 4-step Turbo image-to-video (--ref)
3636
3714
  minimax-h3-flf2v-turbo 4-step Turbo first-frame -> last-frame (--ref plus --ref-end)
3637
3715
  (Turbo has no r2v/Ref2VA variant)
3716
+ H3 Turbo sampler override --sampler euler|er_sde|sa_solver
3717
+ (Socket default: er_sde; CLI omits unless set)
3718
+ (scheduler remains fixed to simple)
3638
3719
 
3639
3720
  WAN 2.2 Video Models:
3640
3721
  wan_v2.2-14b-fp8_t2v_lightx2v Text-to-video (fast)
@@ -3645,7 +3726,14 @@ WAN 2.2 Video Models:
3645
3726
  wan_v2.2-14b-fp8_animate-move_lightx2v Animate-move (fast)
3646
3727
  wan_v2.2-14b-fp8_animate-replace_lightx2v Animate-replace (fast)
3647
3728
 
3648
- LTX-2 / LTX-2.3 Video Models:
3729
+ LTX-2.5 standard models (Distilled fast path; replace _distilled with _dev for Dev/HQ):
3730
+ ltx25-22b-int8_t2v_distilled Text-to-video with native audio
3731
+ ltx25-22b-int8_i2v_distilled Image-to-video; also first/last-frame conditioning
3732
+ ltx25-22b-int8_a2v_distilled Audio-to-video
3733
+ ltx25-22b-int8_ia2v_distilled Image+audio-to-video
3734
+ ltx25-22b-int8_v2v_distilled Video-to-video controls, inpaint, and outpaint
3735
+
3736
+ LTX-2 / LTX-2.3 rollback models:
3649
3737
  ltx2-19b-fp8_t2v_distilled Text-to-video, fast 8-step
3650
3738
  ltx2-19b-fp8_t2v Text-to-video, quality 20-step
3651
3739
  ltx2-19b-fp8_i2v_distilled Image-to-video, fast 8-step
@@ -3674,7 +3762,7 @@ Examples:
3674
3762
  sogni-agent --api-workflow --video-prompt "slow push-in as it comes alive" "a graphite robot sketch"
3675
3763
  sogni-agent --api-workflow --workflow-input @workflow.json
3676
3764
  sogni-agent --api-workflow storyboard-video --storyboard-frames 6 "Create a 12s 9:16 bakery launch video with GPT Image 2 and Seedance"
3677
- sogni-agent --video -m ltx23-22b-fp8_t2v_distilled --duration 20 "A wide cinematic aerial shot opens over steep tropical cliffs at golden hour, warm sunlight grazing the rock faces while sea mist drifts above the water below. Palm trees bend gently along the ridge as waves roll against the shoreline, leaving bright bands of foam across the dark stone. The camera glides forward in one continuous pass, revealing more of the coastline as sunlight flickers across wet surfaces and distant birds wheel through the haze. The scene holds a calm, upscale travel-film mood with smooth stabilized motion and crisp environmental detail."
3765
+ sogni-agent --video -m ltx25 --duration 20 "A wide cinematic aerial shot opens over steep tropical cliffs at golden hour, warm sunlight grazing the rock faces while sea mist drifts above the water below. Palm trees bend gently along the ridge as waves roll against the shoreline, leaving bright bands of foam across the dark stone. The camera glides forward in one continuous pass, revealing more of the coastline as sunlight flickers across wet surfaces and distant birds wheel through the haze. The scene holds a calm, upscale travel-film mood with smooth stabilized motion and crisp environmental detail."
3678
3766
  sogni-agent --video --ref subject.jpg --ref-video motion.mp4 --workflow animate-move "transfer motion"
3679
3767
  sogni-agent --video --last-image "gentle camera pan"
3680
3768
  sogni-agent -c photo.jpg "make the background a beach" -m qwen_image_edit_2511_fp8
@@ -4101,8 +4189,23 @@ if (options.video && options.loras.length > 0) {
4101
4189
  }
4102
4190
  }
4103
4191
 
4104
- if (options.video && (options.sampler || options.scheduler)) {
4105
- fatalCliError('--sampler/--scheduler are image-only options.', { code: 'INVALID_ARGUMENT' });
4192
+ if (options.video && options.scheduler) {
4193
+ fatalCliError('--scheduler is an image-only option.', { code: 'INVALID_ARGUMENT' });
4194
+ }
4195
+
4196
+ if (options.video && options.sampler) {
4197
+ if (!isMiniMaxH3TurboModelSelectionLocal(options.model)) {
4198
+ fatalCliError('--sampler is supported for video only with MiniMax H3 Turbo.', {
4199
+ code: 'INVALID_ARGUMENT',
4200
+ details: { model: options.model }
4201
+ });
4202
+ }
4203
+ if (!MINIMAX_H3_TURBO_SAMPLER_SET.has(options.sampler)) {
4204
+ fatalCliError(`MiniMax H3 Turbo --sampler must be one of: ${MINIMAX_H3_TURBO_SAMPLERS.join(', ')}.`, {
4205
+ code: 'INVALID_ARGUMENT',
4206
+ details: { model: options.model, sampler: options.sampler, allowed: MINIMAX_H3_TURBO_SAMPLERS }
4207
+ });
4208
+ }
4106
4209
  }
4107
4210
 
4108
4211
  applyPersonaAndVoiceReferences();
@@ -4212,7 +4315,9 @@ if (options.video) {
4212
4315
  options.model = resolveHappyHorseModelId(options.model, options.videoWorkflow);
4213
4316
  }
4214
4317
 
4215
- const workflowFromModel = inferVideoWorkflowFromModel(resolveVideoModelAlias(options.model, options.videoWorkflow));
4318
+ const workflowFromModel =
4319
+ ltx25WorkflowFromModelSelection(options.model) ||
4320
+ inferVideoWorkflowFromModel(resolveVideoModelAlias(options.model, options.videoWorkflow));
4216
4321
  if (options.videoWorkflow && workflowFromModel && options.videoWorkflow !== workflowFromModel) {
4217
4322
  fatalCliError(`Workflow "${options.videoWorkflow}" does not match model "${options.model}".`, {
4218
4323
  code: 'INVALID_ARGUMENT',
@@ -4284,19 +4389,34 @@ if (options.music) {
4284
4389
  } else if (options.video) {
4285
4390
  if (!options.model) {
4286
4391
  let defaultVideoModel = selectDefaultVideoModel(options.videoWorkflow, options, openclawConfig);
4287
- // Two-image first/last-frame animation defaults to the LTX-2.3 i2v morph
4288
- // path (transition LoRA auto-applies); a configured videoModels.i2v or an
4289
- // LTX pick from audio/quality routing still wins.
4392
+ const configuredWorkflowModel = openclawConfig?.videoModels?.[options.videoWorkflow];
4393
+ if (!configuredWorkflowModel) {
4394
+ defaultVideoModel = upgradeBuiltInLtx23Default(defaultVideoModel, options.videoWorkflow);
4395
+ }
4396
+ // Two-image first/last-frame animation defaults to the current LTX-2.5
4397
+ // i2v/FLF workflow. A configured videoModels.i2v or an LTX pick from
4398
+ // audio/quality routing still wins.
4290
4399
  if (
4291
4400
  options.videoWorkflow === 'i2v'
4292
4401
  && options.refImage && options.refImageEnd
4293
4402
  && !openclawConfig?.videoModels?.i2v
4294
- && !isLtx2Model(defaultVideoModel)
4403
+ && !isLtxFamilyModel(defaultVideoModel)
4295
4404
  ) {
4296
- defaultVideoModel = 'ltx23-22b-fp8_i2v_distilled';
4405
+ defaultVideoModel = LTX25_DISTILLED_WORKFLOW_MODELS.i2v;
4297
4406
  }
4298
4407
  options.model = defaultVideoModel || 'wan_v2.2-14b-fp8_i2v_lightx2v';
4299
4408
  }
4409
+ // Voice identity is a legacy LTX 2.3-only capability. Route an implicit
4410
+ // request (including an OpenClaw default) to the matching 2.3 workflow, but
4411
+ // preserve an explicit -m choice so the validation below can reject an
4412
+ // incompatible LTX 2.5 selection clearly.
4413
+ if (
4414
+ (options.referenceAudioIdentity || options.voicePersonaName)
4415
+ && !cliSet.model
4416
+ && (options.videoWorkflow === 't2v' || options.videoWorkflow === 'i2v')
4417
+ ) {
4418
+ options.model = LTX23_WORKFLOW_MODELS[options.videoWorkflow];
4419
+ }
4300
4420
  options.model = resolveVideoModelAlias(options.model, options.videoWorkflow);
4301
4421
  try {
4302
4422
  await loadLiveModelDefaults(options.model);
@@ -4692,6 +4812,16 @@ if (options.video) {
4692
4812
  if (!options.videoControlNetName && !isSeedanceModel(options.model)) {
4693
4813
  fatalCliError(`v2v requires --controlnet-name/--control-type (${VIDEO_CONTROLNET_NAMES.join('|')}).`, { code: 'INVALID_ARGUMENT' });
4694
4814
  }
4815
+ if (
4816
+ options.videoControlNetName === 'pose'
4817
+ && isLtx25ModelId(options.model)
4818
+ && !options.refImage
4819
+ ) {
4820
+ fatalCliError('LTX 2.5 pose control requires both --ref-video and --ref (a still image that defines the subject appearance).', {
4821
+ code: 'INVALID_ARGUMENT',
4822
+ details: { model: options.model, controlType: 'pose', requiredFlag: '--ref' }
4823
+ });
4824
+ }
4695
4825
  if (!isSeedanceVideo && options.refAudio) {
4696
4826
  fatalCliError('v2v does not accept reference audio.', { code: 'INVALID_ARGUMENT' });
4697
4827
  }
@@ -4758,9 +4888,10 @@ if (options.video) {
4758
4888
  code: 'INVALID_ARGUMENT'
4759
4889
  });
4760
4890
  }
4761
- if (options.referenceAudioIdentity && !isLtx2Model(options.model)) {
4762
- fatalCliError('--reference-audio-identity/--voice-persona requires an LTX video model.', {
4891
+ if (options.referenceAudioIdentity && !isLtx23ModelId(options.model)) {
4892
+ fatalCliError('--reference-audio-identity/--voice-persona requires an LTX-2.3 video model.', {
4763
4893
  code: 'INVALID_ARGUMENT',
4894
+ details: { model: options.model, unsupportedOnLtx25: isLtx25ModelId(options.model) },
4764
4895
  hint: `Use -m ${LTX23_WORKFLOW_MODELS[options.videoWorkflow] || LTX23_WORKFLOW_MODELS.t2v}`
4765
4896
  });
4766
4897
  }
@@ -4773,15 +4904,15 @@ if (options.video) {
4773
4904
  details: { flag: '--controlnet-name', value: options.videoControlNetName, allowed: VIDEO_CONTROLNET_NAMES }
4774
4905
  });
4775
4906
  }
4776
- if ((options.videoControlNetName === 'outpaint' || options.videoControlNetName === 'inpaint') && !isLtx23V2VModelId(options.model)) {
4777
- fatalCliError(`${options.videoControlNetName} control requires the LTX-2.3 v2v model.`, {
4907
+ if ((options.videoControlNetName === 'outpaint' || options.videoControlNetName === 'inpaint') && !isLtxV2VModelId(options.model)) {
4908
+ fatalCliError(`${options.videoControlNetName} control requires an LTX v2v model.`, {
4778
4909
  code: 'INVALID_ARGUMENT',
4779
4910
  details: { controlNetName: options.videoControlNetName, model: options.model },
4780
- hint: 'Use --workflow v2v -m ltx23 --control-type ' + options.videoControlNetName
4911
+ hint: 'Use --workflow v2v -m ltx25-v2v --control-type ' + options.videoControlNetName
4781
4912
  });
4782
4913
  }
4783
4914
  if (options.videoControlNetName === 'inpaint' && !options.refMask) {
4784
- fatalCliError('LTX-2.3 v2v inpaint requires --mask <image> (white pixels = region to regenerate).', {
4915
+ fatalCliError('LTX v2v inpaint requires --mask <image> (white pixels = region to regenerate).', {
4785
4916
  code: 'INVALID_ARGUMENT'
4786
4917
  });
4787
4918
  }
@@ -4932,7 +5063,7 @@ if (options.video) {
4932
5063
  heightFromPrompt ||
4933
5064
  targetResolutionFromPrompt;
4934
5065
  if (
4935
- isLtx2Model(options.model) &&
5066
+ isLtxFamilyModel(options.model) &&
4936
5067
  options.videoWorkflow === 'i2v' &&
4937
5068
  !hasRequestedVideoCanvas
4938
5069
  ) {
@@ -7113,7 +7244,7 @@ function runStoryboardPlanAction() {
7113
7244
  promptAuthorship: 'user',
7114
7245
  });
7115
7246
  // --storyboard-plan is a model-agnostic preview surface that hands off to
7116
- // a per-model adapter (seedance / gpt-image-2 / ltx23 / wan). When the
7247
+ // a per-model adapter (seedance / gpt-image-2 / ltx25 / ltx23 / wan). When the
7117
7248
  // user doesn't pick one, prefer the seedance adapter because it owns the
7118
7249
  // canonical storyboard-reference prompt; the user's currently-set image
7119
7250
  // model (e.g., z_image_turbo_bf16) is not a registered storyboard adapter.
@@ -11056,7 +11187,9 @@ async function main() {
11056
11187
  if (guidance !== null && guidance !== undefined && !isMiniMaxH3Model(options.model)) {
11057
11188
  projectConfig.guidance = guidance;
11058
11189
  }
11059
- if (modelDefaults?.sampler && !isMiniMaxH3Model(options.model)) {
11190
+ if (cliSet.sampler && isMiniMaxH3TurboModel(options.model)) {
11191
+ projectConfig.sampler = options.sampler;
11192
+ } else if (modelDefaults?.sampler && !isMiniMaxH3Model(options.model)) {
11060
11193
  projectConfig.sampler = modelDefaults.sampler;
11061
11194
  }
11062
11195
  if (modelDefaults?.scheduler && !isMiniMaxH3Model(options.model)) {
package/version.mjs CHANGED
@@ -1 +1 @@
1
- export const PACKAGE_VERSION = '3.27.0';
1
+ export const PACKAGE_VERSION = '3.29.0';