@sogni-ai/sogni-creative-agent-skill 3.38.0 → 3.40.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
@@ -2150,14 +2150,25 @@ const MINIMAX_H3_MODEL_MODES = new Map([
2150
2150
  ['minimax-h3-fl2va-fp8_t2v_balanced', 't2v'],
2151
2151
  ['minimax-h3-fl2va-fp8_i2v_balanced', 'i2v'],
2152
2152
  ['minimax-h3-fl2va-fp8_flf2v_balanced', 'flf2v'],
2153
- ['minimax-h3-ref2va-fp8_r2v_balanced', 'r2v']
2153
+ ['minimax-h3-ref2va-fp8_r2v_balanced', 'r2v'],
2154
+ ['minimax-h3-fastvideo-int8_t2v_turbo', 't2v'],
2155
+ ['minimax-h3-fastvideo-int8_i2v_turbo', 'i2v'],
2156
+ ['minimax-h3-fastvideo-int8_flf2v_turbo', 'flf2v']
2154
2157
  ]);
2155
2158
  const MINIMAX_H3_MODEL_IDS = new Set(MINIMAX_H3_MODEL_MODES.keys());
2156
2159
  const MINIMAX_H3_TURBO_MODEL_IDS = new Set([
2157
2160
  'minimax-h3-fl2va-fp8_t2v_turbo',
2158
2161
  'minimax-h3-fl2va-fp8_i2v_turbo',
2159
2162
  'minimax-h3-fl2va-fp8_flf2v_turbo',
2160
- 'minimax-h3-ref2va-fp8_r2v_turbo'
2163
+ 'minimax-h3-ref2va-fp8_r2v_turbo',
2164
+ 'minimax-h3-fastvideo-int8_t2v_turbo',
2165
+ 'minimax-h3-fastvideo-int8_i2v_turbo',
2166
+ 'minimax-h3-fastvideo-int8_flf2v_turbo'
2167
+ ]);
2168
+ const MINIMAX_H3_FASTH3_TURBO_MODEL_IDS = new Set([
2169
+ 'minimax-h3-fastvideo-int8_t2v_turbo',
2170
+ 'minimax-h3-fastvideo-int8_i2v_turbo',
2171
+ 'minimax-h3-fastvideo-int8_flf2v_turbo'
2161
2172
  ]);
2162
2173
  const MINIMAX_H3_TURBO_SAMPLERS = Object.freeze(['euler', 'er_sde', 'sa_solver']);
2163
2174
  const MINIMAX_H3_TURBO_SAMPLER_SET = new Set(MINIMAX_H3_TURBO_SAMPLERS);
@@ -2265,6 +2276,29 @@ function resolveSkillVideoModelAlias(
2265
2276
  if (normalized === 'minimax-h3-flf2v-turbo') {
2266
2277
  return 'minimax-h3-fl2va-fp8_flf2v_turbo';
2267
2278
  }
2279
+ if (normalized === 'minimax-h3-fasth3-turbo' && workflow) {
2280
+ if (workflow === 'r2v') {
2281
+ fatalCliError('MiniMax H3 FastH3 Turbo has no r2v workflow.', {
2282
+ code: 'INVALID_ARGUMENT',
2283
+ details: { model: modelId, workflow }
2284
+ });
2285
+ }
2286
+ if (workflow === 'i2v') {
2287
+ return hasStartFrame && hasEndFrame
2288
+ ? 'minimax-h3-fastvideo-int8_flf2v_turbo'
2289
+ : 'minimax-h3-fastvideo-int8_i2v_turbo';
2290
+ }
2291
+ return 'minimax-h3-fastvideo-int8_t2v_turbo';
2292
+ }
2293
+ if (normalized === 'minimax-h3-fasth3-t2v-turbo') {
2294
+ return 'minimax-h3-fastvideo-int8_t2v_turbo';
2295
+ }
2296
+ if (normalized === 'minimax-h3-fasth3-i2v-turbo') {
2297
+ return 'minimax-h3-fastvideo-int8_i2v_turbo';
2298
+ }
2299
+ if (normalized === 'minimax-h3-fasth3-flf2v-turbo') {
2300
+ return 'minimax-h3-fastvideo-int8_flf2v_turbo';
2301
+ }
2268
2302
  if (normalized === 'minimax-h3-balanced' && workflow) {
2269
2303
  if (workflow === 'r2v') {
2270
2304
  return MINIMAX_H3_R2V_BALANCED_MODEL_ID;
@@ -2315,6 +2349,15 @@ function isMiniMaxH3R2vTurboSelectionLocal(modelId, workflow = null) {
2315
2349
  || (normalized === 'minimax-h3-turbo' && workflow === 'r2v');
2316
2350
  }
2317
2351
 
2352
+ function isMiniMaxH3FastH3TurboSelectionLocal(modelId) {
2353
+ const normalized = String(modelId || '').trim().toLowerCase();
2354
+ return normalized === 'minimax-h3-fasth3-turbo'
2355
+ || normalized === 'minimax-h3-fasth3-t2v-turbo'
2356
+ || normalized === 'minimax-h3-fasth3-i2v-turbo'
2357
+ || normalized === 'minimax-h3-fasth3-flf2v-turbo'
2358
+ || MINIMAX_H3_FASTH3_TURBO_MODEL_IDS.has(normalized);
2359
+ }
2360
+
2318
2361
  function isMiniMaxH3ModelSelectionLocal(modelId) {
2319
2362
  const normalized = String(modelId || '').trim().toLowerCase();
2320
2363
  return normalized === 'minimax-h3'
@@ -2327,6 +2370,10 @@ function isMiniMaxH3ModelSelectionLocal(modelId) {
2327
2370
  || normalized === 'minimax-h3-i2v-turbo'
2328
2371
  || normalized === 'minimax-h3-flf2v-turbo'
2329
2372
  || normalized === 'minimax-h3-r2v-turbo'
2373
+ || normalized === 'minimax-h3-fasth3-turbo'
2374
+ || normalized === 'minimax-h3-fasth3-t2v-turbo'
2375
+ || normalized === 'minimax-h3-fasth3-i2v-turbo'
2376
+ || normalized === 'minimax-h3-fasth3-flf2v-turbo'
2330
2377
  || normalized === 'minimax-h3-balanced'
2331
2378
  || normalized === 'minimax-h3-t2v-balanced'
2332
2379
  || normalized === 'minimax-h3-i2v-balanced'
@@ -2342,6 +2389,10 @@ function isMiniMaxH3TurboModelSelectionLocal(modelId) {
2342
2389
  || normalized === 'minimax-h3-i2v-turbo'
2343
2390
  || normalized === 'minimax-h3-flf2v-turbo'
2344
2391
  || normalized === 'minimax-h3-r2v-turbo'
2392
+ || normalized === 'minimax-h3-fasth3-turbo'
2393
+ || normalized === 'minimax-h3-fasth3-t2v-turbo'
2394
+ || normalized === 'minimax-h3-fasth3-i2v-turbo'
2395
+ || normalized === 'minimax-h3-fasth3-flf2v-turbo'
2345
2396
  || isMiniMaxH3TurboModel(normalized);
2346
2397
  }
2347
2398
 
@@ -2355,6 +2406,9 @@ function miniMaxH3ModeFromModelId(modelId) {
2355
2406
  if (normalized === 'minimax-h3-i2v-turbo') return 'i2v';
2356
2407
  if (normalized === 'minimax-h3-flf2v-turbo') return 'flf2v';
2357
2408
  if (normalized === 'minimax-h3-r2v-turbo') return 'r2v';
2409
+ if (normalized === 'minimax-h3-fasth3-t2v-turbo') return 't2v';
2410
+ if (normalized === 'minimax-h3-fasth3-i2v-turbo') return 'i2v';
2411
+ if (normalized === 'minimax-h3-fasth3-flf2v-turbo') return 'flf2v';
2358
2412
  if (normalized === 'minimax-h3-t2v-balanced') return 't2v';
2359
2413
  if (normalized === 'minimax-h3-i2v-balanced') return 'i2v';
2360
2414
  if (normalized === 'minimax-h3-flf2v-balanced') return 'flf2v';
@@ -3872,7 +3926,7 @@ Image Options:
3872
3926
  --angle-strength <n> LoRA strength for multiple_angles (default: 0.9)
3873
3927
  --angle-description <text> Optional subject description
3874
3928
  --output-format <f> Image output format: png|jpg (webp for gpt-image-2)
3875
- --sampler <name> Sampler (images/music; H3 Turbo video: euler|er_sde|sa_solver)
3929
+ --sampler <name> Sampler (images/music; H3 LightX2V Turbo: euler|er_sde|sa_solver; FastH3: euler)
3876
3930
  --scheduler <name> Scheduler (model-dependent)
3877
3931
  --lora <id> Image LoRA id (repeatable; order is significant)
3878
3932
  --loras <ids> Comma-separated LoRA ids
@@ -4147,8 +4201,9 @@ HappyHorse 1.1 Video Model Selectors (3-15s, fixed 24fps, native audio, 720P/108
4147
4201
  happyhorse-1.1-r2v Reference-to-video from 1-9 reference images (-c/--context)
4148
4202
 
4149
4203
  MiniMax H3 Video Model Selectors (fixed 24fps, native 32kHz stereo audio + dialogue,
4150
- frames 124+n*17 = 5.17-15.08s, sizes /32 up to 1,032,192px. FL2VA/Balanced/Turbo and
4204
+ frames 124+n*17 = 5.17-15.08s, sizes /32 up to 1,032,192px. FL2VA/Balanced/LightX2V Turbo and
4151
4205
  image-only R2V need 32GB-class workers; video-conditioned R2V needs above 40GB.
4206
+ FastH3 keeps the FastVideo engine with H3 LoRAs: base jobs need 23GB and LoRA jobs need 32GB.
4152
4207
  Prompts use MiniMax's exact ordered-field contracts and [Shot N] notation; see
4153
4208
  references/video-prompting.md "MiniMax H3 Prompting". No negative prompt field:
4154
4209
  state negatives in the structured prompt.):
@@ -4157,21 +4212,26 @@ state negatives in the structured prompt.):
4157
4212
  minimax-h3-flf2v First-frame -> last-frame transition (--ref plus --ref-end)
4158
4213
  minimax-h3-r2v Multi-reference video: --ref/-c images, repeatable --ref-video/--ref-audio
4159
4214
  (9 images / 3 videos / 3 audios / 12 files total; requires an image or video)
4160
- minimax-h3-balanced Fixed 8-step Euler/simple PDD tier; infers T2VA/I2VA/L2VA/FL2VA
4215
+ minimax-h3-balanced Fixed 8-step LightX2V/Larry v4 tier; infers T2VA/I2VA/L2VA/FL2VA
4161
4216
  minimax-h3-t2v-balanced Balanced text-to-video
4162
4217
  minimax-h3-i2v-balanced Balanced I2VA (--ref) or L2VA (--ref-end)
4163
4218
  minimax-h3-flf2v-balanced Balanced first-frame -> last-frame (--ref plus --ref-end)
4164
4219
  minimax-h3-r2v-balanced Balanced Ref2VA with loose image/video/audio references
4165
- minimax-h3-turbo 4-step Turbo; --ref selects I2VA, --ref-end L2VA, and both FL2VA
4166
- minimax-h3-t2v-turbo 4-step Turbo text-to-video
4167
- minimax-h3-i2v-turbo 4-step Turbo I2VA (--ref) or L2VA (--ref-end)
4168
- minimax-h3-flf2v-turbo 4-step Turbo first-frame -> last-frame (--ref plus --ref-end)
4220
+ minimax-h3-turbo 4-step LightX2V Turbo; --ref selects I2VA, --ref-end L2VA, and both FL2VA
4221
+ minimax-h3-t2v-turbo 4-step LightX2V Turbo text-to-video
4222
+ minimax-h3-i2v-turbo 4-step LightX2V Turbo I2VA (--ref) or L2VA (--ref-end)
4223
+ minimax-h3-flf2v-turbo 4-step LightX2V Turbo first-frame -> last-frame (--ref plus --ref-end)
4169
4224
  minimax-h3-r2v-turbo 4-step Ref2VA Turbo with loose image/video/audio references
4170
4225
  (upstream default: 960x544, Euler/simple)
4226
+ minimax-h3-fasth3-turbo FastVideo VSA FastH3 Turbo; infers T2VA/I2VA/L2VA/FL2VA; no R2V
4227
+ minimax-h3-fasth3-t2v-turbo FastH3 text-to-video (up to 6x faster than Standard)
4228
+ minimax-h3-fasth3-i2v-turbo FastH3 I2VA (--ref) or L2VA (--ref-end)
4229
+ minimax-h3-fasth3-flf2v-turbo FastH3 first-frame -> last-frame (--ref plus --ref-end)
4171
4230
  H3 FL2VA Turbo sampler override --sampler euler|er_sde|sa_solver
4172
4231
  (Socket default: er_sde; CLI omits unless set)
4173
4232
  (scheduler remains fixed to simple)
4174
4233
  H3 Ref2VA Turbo sampler Euler only; CLI omits unless --sampler euler is passed
4234
+ H3 FastH3 Turbo sampler Euler/simple only; CLI omits unless --sampler euler is passed
4175
4235
 
4176
4236
  WAN 2.2 Video Models:
4177
4237
  wan_v2.2-14b-fp8_t2v_lightx2v Text-to-video (fast)
@@ -4678,7 +4738,7 @@ if (options.video && options.loras.length > 0) {
4678
4738
  const unknownVideoLoras = options.loras.filter(loraId => !videoLoraEntries.has(loraId));
4679
4739
  if (unknownVideoLoras.length > 0) {
4680
4740
  const availableIds = [...videoLoraEntries.keys()];
4681
- const isUnresolvedH3Alias = /^minimax-h3(-turbo)?$/.test(String(options.model || ''));
4741
+ const isUnresolvedH3Alias = /^minimax-h3(?:-(?:fasth3-)?turbo)?$/.test(String(options.model || ''));
4682
4742
  fatalCliError(
4683
4743
  `Video LoRA "${unknownVideoLoras[0]}" is not published for model "${options.model}". ` +
4684
4744
  (availableIds.length > 0
@@ -4729,6 +4789,12 @@ if (options.video && options.sampler) {
4729
4789
  details: { model: options.model, sampler: options.sampler, allowed: MINIMAX_H3_TURBO_SAMPLERS }
4730
4790
  });
4731
4791
  }
4792
+ if (isMiniMaxH3FastH3TurboSelectionLocal(options.model) && options.sampler !== 'euler') {
4793
+ fatalCliError('MiniMax H3 FastH3 Turbo --sampler must be euler.', {
4794
+ code: 'INVALID_ARGUMENT',
4795
+ details: { model: options.model, sampler: options.sampler, allowed: ['euler'] }
4796
+ });
4797
+ }
4732
4798
  if (isMiniMaxH3R2vTurboSelectionLocal(options.model, options.videoWorkflow) && options.sampler !== 'euler') {
4733
4799
  fatalCliError('MiniMax H3 Ref2VA Turbo --sampler must be euler.', {
4734
4800
  code: 'INVALID_ARGUMENT',
@@ -4824,8 +4890,9 @@ if (options.video) {
4824
4890
  options.model = isEnhancedSelection ? WAN3_ENHANCED_MODEL_ID : WAN3_MODEL_ID;
4825
4891
  }
4826
4892
 
4827
- // Each MiniMax H3 tier has four concrete worker selectors and five prompt
4828
- // shapes. The FL2VA checkpoint covers t2v, first-frame i2v, last-frame-only
4893
+ // Standard, Balanced, and LightX2V Turbo each have four concrete worker
4894
+ // selectors; FastH3 has three and deliberately has no r2v. The FL2VA and
4895
+ // FastVideo checkpoints cover t2v, first-frame i2v, last-frame-only
4829
4896
  // l2v, and first/last-frame (represented by the CLI's i2v workflow); Ref2VA
4830
4897
  // is a separate r2v checkpoint and is never inferred from loose references.
4831
4898
  // Selecting the tier's minimax-h3-r2v* alias or explicitly passing
package/version.mjs CHANGED
@@ -1 +1 @@
1
- export const PACKAGE_VERSION = '3.38.0';
1
+ export const PACKAGE_VERSION = '3.40.0';