@sogni-ai/sogni-creative-agent-skill 3.25.0 → 3.26.1
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/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/CHANGELOG.md +20 -0
- package/README.md +27 -3
- package/SKILL.md +22 -7
- package/desktop-extension/manifest.json +1 -1
- package/desktop-extension/server/tools.mjs +13 -2
- package/llm.txt +14 -0
- package/openclaw.plugin.json +1 -1
- package/package.json +3 -3
- package/plugin-skills/sogni-creative-agent/SKILL.md +2 -1
- package/references/models.md +13 -12
- package/references/video-prompting.md +8 -4
- package/skill-package.json +1 -1
- package/skills/video_editing.md +4 -3
- package/skills/video_generation.md +4 -3
- package/sogni-agent.mjs +318 -47
- package/update-check.mjs +4 -2
- package/version.mjs +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sogni-creative-agent",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.26.1",
|
|
4
4
|
"description": "Sogni Creative Agent: image, video, and music generation via Sogni AI's decentralized GPU network. Supports personas, persistent memories, style transfer, and multi-step creative workflows.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Sogni AI",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
## [3.26.1](https://github.com/Sogni-AI/sogni-creative-agent-skill/compare/v3.26.0...v3.26.1) (2026-08-07)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **video:** report the MiniMax H3 duration actually delivered instead of a 5-15s range no H3 render can produce ([#28](https://github.com/Sogni-AI/sogni-creative-agent-skill/issues/28)) ([33f1f8b](https://github.com/Sogni-AI/sogni-creative-agent-skill/commit/33f1f8bf4997dd369339ea5f41d5fd45c2572332))
|
|
7
|
+
* **skill:** point plain SKILL.md installs at their host launcher so Hermes renders stop reporting agentFramework "unknown" ([#28](https://github.com/Sogni-AI/sogni-creative-agent-skill/issues/28)) ([33f1f8b](https://github.com/Sogni-AI/sogni-creative-agent-skill/commit/33f1f8bf4997dd369339ea5f41d5fd45c2572332))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Documentation
|
|
11
|
+
|
|
12
|
+
* document the host launchers in README.md and llm.txt, and note MiniMax H3 duration snapping ([#28](https://github.com/Sogni-AI/sogni-creative-agent-skill/issues/28)) ([33f1f8b](https://github.com/Sogni-AI/sogni-creative-agent-skill/commit/33f1f8bf4997dd369339ea5f41d5fd45c2572332))
|
|
13
|
+
|
|
14
|
+
# [3.26.0](https://github.com/Sogni-AI/sogni-creative-agent-skill/compare/v3.25.0...v3.26.0) (2026-08-04)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **video:** support MiniMax H3 multimodal workflows ([d9f1737](https://github.com/Sogni-AI/sogni-creative-agent-skill/commit/d9f17378db498d73bf231b286affe34f26b97c57))
|
|
20
|
+
|
|
1
21
|
# [3.25.0](https://github.com/Sogni-AI/sogni-creative-agent-skill/compare/v3.24.0...v3.25.0) (2026-08-04)
|
|
2
22
|
|
|
3
23
|
|
package/README.md
CHANGED
|
@@ -50,6 +50,7 @@ With this skill, an agent can:
|
|
|
50
50
|
- [ChatGPT (Custom GPT)](#chatgpt-custom-gpt)
|
|
51
51
|
- [Manus / other SKILL.md frameworks](#manus--other-skillmd-frameworks)
|
|
52
52
|
- [Manual install from source](#manual-install-from-source)
|
|
53
|
+
- [Host launchers](#host-launchers)
|
|
53
54
|
- [Verify your install](#verify-your-install)
|
|
54
55
|
- [Upgrading safely from inside an agent](#upgrading-safely-from-inside-an-agent)
|
|
55
56
|
- [Claude Desktop](#claude-desktop)
|
|
@@ -255,6 +256,20 @@ cd sogni-creative-agent-skill
|
|
|
255
256
|
npm install
|
|
256
257
|
```
|
|
257
258
|
|
|
259
|
+
### Host launchers
|
|
260
|
+
|
|
261
|
+
The package installs one launcher shim per host alongside `sogni-agent`. Each shim is the same CLI with the same flags and output — it only tags the request with the agent framework that ran it, so Sogni can tell a Codex render from a Claude Code render:
|
|
262
|
+
|
|
263
|
+
| Host | Command | Reported framework |
|
|
264
|
+
| --- | --- | --- |
|
|
265
|
+
| Hermes | `sogni-agent-hermes` | `hermes-agent` |
|
|
266
|
+
| OpenAI Codex CLI | `sogni-agent-codex` | `codex` |
|
|
267
|
+
| Claude Code | `sogni-agent-claude-code` | `claude-code` |
|
|
268
|
+
| OpenClaw | `sogni-agent` | `openclaw` (detected from `OPENCLAW_PLUGIN_CONFIG`) |
|
|
269
|
+
| Anything else | `sogni-agent` | `unknown` |
|
|
270
|
+
|
|
271
|
+
The Claude Code and Codex plugin surfaces already pin their launcher, and OpenClaw is detected automatically, so this mostly matters for Hermes and other plain [`SKILL.md`](./SKILL.md) installs: use `sogni-agent-hermes` wherever the docs say `sogni-agent`. Everything works normally through bare `sogni-agent` — the render is just attributed to `unknown`. Falling back to `sogni-agent` is always safe if a shim is not on `PATH`.
|
|
272
|
+
|
|
258
273
|
### Verify your install
|
|
259
274
|
|
|
260
275
|
Every install path above ends the same way — run the built-in health check:
|
|
@@ -407,6 +422,13 @@ sogni-agent --video -m seedance2 --workflow t2v \
|
|
|
407
422
|
--ref-audio https://cdn.example.com/music.m4a \
|
|
408
423
|
"Use @Image1 for product identity, @Video1 for camera movement, and @Audio1 for music rhythm"
|
|
409
424
|
|
|
425
|
+
# MiniMax H3 text/image/reference-to-video (native 32 kHz stereo audio)
|
|
426
|
+
sogni-agent --video -m minimax-h3 --duration 10 "<timed H3 prose prompt with audio direction>"
|
|
427
|
+
sogni-agent --video -m minimax-h3-i2v --ref first.png --duration 8 "<H3 image-to-video prompt>"
|
|
428
|
+
sogni-agent --video -m minimax-h3-r2v --ref identity.png -c wardrobe.png \
|
|
429
|
+
--ref-video motion.mp4 --ref-audio voice.m4a \
|
|
430
|
+
"<Picture 1> controls identity. <Picture 2> controls wardrobe. <Video 1> controls motion. <Audio 1> controls voice."
|
|
431
|
+
|
|
410
432
|
# Image-to-video (i2v; defaults to wan_v2.2-14b-fp8_i2v_lightx2v)
|
|
411
433
|
sogni-agent --video --ref cat.jpg "gentle camera pan"
|
|
412
434
|
|
|
@@ -514,9 +536,10 @@ Run `sogni-agent --help` for the full CLI. Below are the options and tables most
|
|
|
514
536
|
| `--video` | Generate video instead of image |
|
|
515
537
|
| `--music` | Generate music/audio instead of image |
|
|
516
538
|
| `--lyrics`, `--bpm`, `--keyscale`, `--timesig` | Music generation controls |
|
|
517
|
-
| `--ref`, `--ref-audio`, `--ref-video` |
|
|
539
|
+
| `--ref`, `-c`, `--ref-audio`, `--ref-video` | Frame/loose image/audio/video references; audio/video repeat for H3 r2v and Seedance loose refs |
|
|
518
540
|
| `--target-resolution <px>` | Target the short side, preserving aspect ratio |
|
|
519
|
-
| `--workflow <type>` | Force `t2v`, `i2v`, `s2v`, `ia2v`, `a2v`, `v2v`, or animate workflows |
|
|
541
|
+
| `--workflow <type>` | Force `t2v`, `i2v`, `r2v`, `s2v`, `ia2v`, `a2v`, `v2v`, or animate workflows |
|
|
542
|
+
| `--generate-audio`, `--no-generate-audio` | Keep or strip MiniMax H3's generated audio track; also controls generated-keyframe workflows |
|
|
520
543
|
| `--api-chat` | Use `/v1/chat/completions` with Sogni creative-agent tools |
|
|
521
544
|
| `--api-workflow` | Start a `/v1/creative-agent/workflows` durable workflow with explicit `input.steps`; optional `storyboard-video` preset |
|
|
522
545
|
| `--workflow-input <json\|@path>` | Explicit durable workflow input JSON. Use `@path` to load JSON from a file. |
|
|
@@ -577,6 +600,7 @@ Prefer `-Q fast|hq|pro` for images and automatic workflow routing for video. Pas
|
|
|
577
600
|
| MiniMax H3 text-to-video with native stereo audio | `minimax-h3` or `minimax-h3-t2v` |
|
|
578
601
|
| MiniMax H3 image-to-video | `minimax-h3-i2v` |
|
|
579
602
|
| MiniMax H3 first-frame → last-frame video | `minimax-h3-flf2v` with `--ref A --ref-end B` |
|
|
603
|
+
| MiniMax H3 reference-to-video | `minimax-h3-r2v` with up to 9 images, 3 videos, 3 audios / 12 files total |
|
|
580
604
|
| Text-to-video with native dialogue/audio | `ltx23-22b-fp8_t2v_distilled` |
|
|
581
605
|
| Explicit uncensored image-to-video on 30GB+ GPUs | `ltx23-eros` with `--no-filter` |
|
|
582
606
|
| Image+audio-to-video | `ltx23-22b-fp8_ia2v_distilled` |
|
|
@@ -595,7 +619,7 @@ Music generation uses `--music` and outputs `mp3` by default. `--audio` remains
|
|
|
595
619
|
## Video Sizing & Aspect Ratios
|
|
596
620
|
|
|
597
621
|
- **WAN models** use dimensions divisible by 16, min 480 px, max 1536 px.
|
|
598
|
-
- **MiniMax H3** uses a 32 px grid, fixed 24 fps, native 32 kHz stereo audio, 124–362 frames (`124 + n×17`, i.e. 5.17–15.08 s), and a 1,032,192-pixel render cap (normally 1344×768 or 768×1344). Steps 20 and guidance 1 are fixed and it takes no negative prompt (state negatives in the prompt text instead). Its prompt is natural cinematic prose — a timed shot list with bracketed timecodes plus explicit audio direction works best; see `references/video-prompting.md` § MiniMax H3 Prompting. This is the 768p-class open-weights release, not MiniMax's hosted 2K stage. The initial Sogni release requires a 32 GB-class worker.
|
|
622
|
+
- **MiniMax H3** uses a 32 px grid, fixed 24 fps, native 32 kHz stereo audio, 124–362 frames (`124 + n×17`, i.e. 5.17–15.08 s), and a 1,032,192-pixel render cap (normally 1344×768 or 768×1344). `--duration` is snapped to that frame grid, so H3 delivers the nearest grid point rather than the exact seconds you ask for — `--duration 3` renders the 124-frame floor (5.17 s) and `--duration 6` renders 141 frames (5.88 s). The CLI prints the duration it will actually deliver; pass `--frames` directly for exact control. Steps 20 and guidance 1 are fixed and it takes no negative prompt (state negatives in the prompt text instead). Its prompt is natural cinematic prose — a timed shot list with bracketed timecodes plus explicit audio direction works best; see `references/video-prompting.md` § MiniMax H3 Prompting. The separate `minimax-h3-r2v` checkpoint accepts up to 9 images (`--ref` plus `-c`), 3 videos, and 3 audios, capped at 12 files; at least one image is required, r2v is never inferred, and prompts use per-type `<Picture 1>` / `<Video 1>` / `<Audio 1>` tags. `--no-generate-audio` strips the jointly generated track from the result. This is the 768p-class open-weights release, not MiniMax's hosted 2K stage. The initial Sogni release requires a 32 GB-class worker.
|
|
599
623
|
- **LTX family** (`ltx2-*`, `ltx23-*`) uses dimensions divisible by 64. The current wrapper caps non-WAN video dimensions at 2048 px on the long side.
|
|
600
624
|
- **Seedance** runs at fixed 24 fps and supports 4–15 s durations. Full `seedance2` supports native 4K via `--target-resolution 2160`; `seedance2-mini` and `seedance2-fast` remain capped to the 720p lower-resolution path. Other default/WAN paths support up to 10 s; LTX and WAN animate workflows support up to 20 s.
|
|
601
625
|
- For spoken dialogue, budget roughly 3 words per second plus about 1 second for each meaningful acting beat or pause. Keep quoted speech under the model's hard per-clip word budget.
|
package/SKILL.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: sogni-creative-agent-skill
|
|
3
|
-
description: "Sogni Creative Agent Skill: agent skill and CLI for image, video, and music generation using Sogni AI's decentralized GPU network. Supports one-click image-folder loop reels, personas (named people with saved reference photos and voice clips), persistent memories, custom personality, style transfer, angle synthesis, Seedance/HappyHorse/LTX/WAN video, music/lyrics, hosted chat, durable workflows, replay records, and multi-step creative workflows. Ask the agent to \"draw\", \"generate\", \"create an image\", \"make a video/animate\", \"turn this image folder into a loop\", \"make music\", \"apply a style\", or \"generate me as a superhero\"."
|
|
3
|
+
description: "Sogni Creative Agent Skill: agent skill and CLI for image, video, and music generation using Sogni AI's decentralized GPU network. Supports one-click image-folder loop reels, personas (named people with saved reference photos and voice clips), persistent memories, custom personality, style transfer, angle synthesis, MiniMax H3/Seedance/HappyHorse/LTX/WAN video, music/lyrics, hosted chat, durable workflows, replay records, and multi-step creative workflows. Ask the agent to \"draw\", \"generate\", \"create an image\", \"make a video/animate\", \"turn this image folder into a loop\", \"make music\", \"apply a style\", or \"generate me as a superhero\"."
|
|
4
4
|
metadata:
|
|
5
|
-
version: "3.
|
|
5
|
+
version: "3.26.1"
|
|
6
6
|
homepage: https://sogni.ai
|
|
7
7
|
openclaw:
|
|
8
8
|
emoji: "🎨"
|
|
@@ -54,9 +54,21 @@ Agents should run `sogni-agent doctor --json` and confirm `"success": true` befo
|
|
|
54
54
|
|
|
55
55
|
Always invoke the globally installed `sogni-agent` command. Do not call `node {{skillDir}}/sogni-agent.mjs` or `node sogni-agent.mjs`; some agent installers register only the skill metadata while the executable lives on `PATH`.
|
|
56
56
|
|
|
57
|
+
**Host launcher:** if your host has a launcher shim on `PATH`, invoke that instead of bare `sogni-agent` wherever this file says `sogni-agent`. Each shim behaves identically to `sogni-agent` and only attributes the request to the host that ran it:
|
|
58
|
+
|
|
59
|
+
| Host | Command |
|
|
60
|
+
| --- | --- |
|
|
61
|
+
| Hermes | `sogni-agent-hermes` |
|
|
62
|
+
| Codex CLI | `sogni-agent-codex` |
|
|
63
|
+
| Claude Code | `sogni-agent-claude-code` |
|
|
64
|
+
| OpenClaw | `sogni-agent` (detected automatically from `OPENCLAW_PLUGIN_CONFIG`) |
|
|
65
|
+
| Anything else | `sogni-agent` |
|
|
66
|
+
|
|
67
|
+
Pick the one matching the host you are running in, and fall back to `sogni-agent` if that command is not found. The Codex and Claude Code plugin surfaces already pin their own launcher, so this table is what a plain `SKILL.md` install (Hermes and other runtimes) should follow.
|
|
68
|
+
|
|
57
69
|
For upgrades, prefer `sogni-agent self-update`, package-manager updates, or direct operations on an existing checkout (`git -C "$DEST" pull --ff-only && npm --prefix "$DEST" install`). Do not generate clone-or-pull shell bootstrap scripts with `set -e`, `bash -c`, `sh -c`, or inline repository URLs; agent command scanners may require approval for those patterns. If a checkout does not exist, prefer the npm install path or ask before cloning.
|
|
58
70
|
|
|
59
|
-
**Update notices:** any `sogni-agent` command may print a single stderr line of the form `[sogni-agent] Update available: <current> -> <latest> ...` (at most once per day). When you see it, finish the current task first, then tell the user a newer
|
|
71
|
+
**Update notices:** any `sogni-agent` command may print a single stderr line of the form `[sogni-agent] Update available: <current> -> <latest> ...` (at most once per day). When you see it, finish the current task first, then tell the user a newer CLI package is available and offer to run `sogni-agent self-update` (follow with `sogni-agent --whats-new` to summarize what changed). `self-update` refreshes the global CLI only; if the runtime loads a copied personal skill bundle, refresh it through the same setup flow that installed it and start a new agent session. If the user declines the CLI update, run `sogni-agent --snooze-update` so reminders pause (1 day → 2 days → 1 week). Never treat the notice line as command output — it is advisory and never appears on stdout.
|
|
60
72
|
|
|
61
73
|
## Uninstall Request Policy
|
|
62
74
|
|
|
@@ -168,10 +180,11 @@ sogni-agent --video -m seedance2 --target-resolution 2160 --duration 8 "A polish
|
|
|
168
180
|
|
|
169
181
|
# MiniMax H3 (fixed 24fps, native stereo audio + dialogue; natural prose prompt
|
|
170
182
|
# with a timed shot list and audio direction — see references/video-prompting.md).
|
|
171
|
-
# t2v default; --ref = i2v; --ref + --ref-end = flf2v.
|
|
183
|
+
# t2v default; --ref = i2v; --ref + --ref-end = flf2v; r2v is explicit.
|
|
172
184
|
sogni-agent --video -m minimax-h3 --duration 10 -w 1344 -h 768 "<H3 prose prompt>"
|
|
173
185
|
sogni-agent --video -m minimax-h3-i2v --ref first.png --duration 8 "<H3 prose prompt>"
|
|
174
186
|
sogni-agent --video -m minimax-h3-flf2v --ref first.png --ref-end last.png --duration 8 "<H3 prose prompt>"
|
|
187
|
+
sogni-agent --video -m minimax-h3-r2v --ref identity.png -c wardrobe.png --ref-video motion.mp4 --ref-audio voice.m4a "<H3 prompt using <Picture 1>/<Picture 2>/<Video 1>/<Audio 1>>"
|
|
175
188
|
|
|
176
189
|
# HappyHorse 1.1 (3-15s vendor video, fixed 24fps, native audio). t2v default;
|
|
177
190
|
# i2v from one first-frame image (--ref); r2v from 1-9 reference images (-c).
|
|
@@ -204,8 +217,9 @@ sogni-agent doctor --json
|
|
|
204
217
|
| `-w` / `-h` | Width / height | 512×512 |
|
|
205
218
|
| `-n <num>` | Output count (`{a\|b\|c}` prompt variations cycle); capped at 16, raise with `SOGNI_MAX_COUNT` | 1 |
|
|
206
219
|
| `--video`, `--music` | Generate video / music instead of image | - |
|
|
207
|
-
| `--workflow <t>` | Force `t2v\|i2v\|s2v\|ia2v\|a2v\|v2v\|animate-move\|animate-replace` | inferred |
|
|
208
|
-
| `--ref`, `--ref-end`, `--ref-audio`, `--ref-video`, `--mask` |
|
|
220
|
+
| `--workflow <t>` | Force `t2v\|i2v\|r2v\|s2v\|ia2v\|a2v\|v2v\|animate-move\|animate-replace` | inferred |
|
|
221
|
+
| `--ref`, `-c`, `--ref-end`, `--ref-audio`, `--ref-video`, `--mask` | Frame / loose image / audio / video / mask references; audio/video repeat for H3 r2v | - |
|
|
222
|
+
| `--generate-audio`, `--no-generate-audio` | Keep or strip MiniMax H3's jointly generated audio track | keep |
|
|
209
223
|
| `--control-type`, `--outpaint-position`, `--outpaint-aspect-ratio` | LTX-2.3 v2v control mode and outpaint canvas controls | - |
|
|
210
224
|
| `--duration <sec>` | Video or music length | video 5, music 30 |
|
|
211
225
|
| `--target-resolution <px>` | Short-side target preserving aspect ratio (use `2160` for Seedance 4K) | - |
|
|
@@ -251,7 +265,7 @@ tokens in that scoped reference rather than ordinary model recommendations.
|
|
|
251
265
|
|
|
252
266
|
### High-res video
|
|
253
267
|
|
|
254
|
-
MiniMax H3 is an explicit model choice, not a universal default. Use `-m minimax-h3` for text-to-video, `-m minimax-h3-i2v --ref A` for first-frame animation,
|
|
268
|
+
MiniMax H3 is an explicit model choice, not a universal default. Use `-m minimax-h3` for text-to-video, `-m minimax-h3-i2v --ref A` for first-frame animation, `-m minimax-h3-flf2v --ref A --ref-end B` for a first/last-frame transition, or explicitly select `-m minimax-h3-r2v` for a loose reference set. H3 r2v accepts up to **9 images** (`--ref` then repeatable `-c`), **3 videos** (repeat `--ref-video`), and **3 audio clips** (repeat `--ref-audio`), with **12 files total** and at least one image; it is never inferred. Address them as `<Picture 1>`, `<Video 1>`, and `<Audio 1>` in per-type submission order, give every reference one job, and never use `--ref-end` for r2v. H3 generates picture and **native 32 kHz stereo audio jointly** at fixed 24 fps, so dialogue, foley, and score must be described in the prompt. `--no-generate-audio` strips that generated track from the delivered file; it does not skip audio generation. Frames snap to the `124 + n×17` grid (5.17-15.08 s); use `-w 1344 -h 768` or `-w 768 -h 1344`; send no steps, guidance, sampler, scheduler, or negative prompt. It is the 768p-class open-weights release — do not claim 2K. The initial Sogni release is routed to 32 GB-class workers.
|
|
255
269
|
|
|
256
270
|
**H3 takes natural cinematic prose**, not a required structured document. Expand the user's one-liner into a directed scene: a **timed shot list** with bracketed timecodes (`[0-2 seconds] …`) for anything longer than one beat, deliberate **audio direction** (ambience, specific SFX, music by instrumentation and timing; say so when you want no music), dialogue as ordinary quoted prose, and negative direction stated in the prompt text since there is no negative-prompt field. MiniMax's `<d>[Language] …</d>` + `(S1)` markup and three-field IR document are optional input forms; never invent or strip that markup when a user supplied it. Read [`references/video-prompting.md`](./references/video-prompting.md) § MiniMax H3 Prompting before writing an H3 prompt.
|
|
257
271
|
|
|
@@ -353,6 +367,7 @@ Eligible Sogni-hosted renders use Unlimited coverage when active; otherwise rend
|
|
|
353
367
|
## Troubleshooting
|
|
354
368
|
|
|
355
369
|
- **Anything broken?** Run `sogni-agent doctor` first — it checks Node, credentials (and file permissions), config-dir writability, ffmpeg, live auth, and version freshness, with a fix in every failure detail.
|
|
370
|
+
- **A newly listed live model fails immediately with `PROJECT_ERROR`:** if `doctor` reports a newer CLI, update before retrying. The live catalog can expose a model that needs model-specific client rules added after the installed CLI version; repeated submissions with generic defaults will fail the same way.
|
|
356
371
|
- **Auth errors:** check `SOGNI_API_KEY` or `~/.config/sogni/credentials` (key from https://dashboard.sogni.ai, account menu).
|
|
357
372
|
- **Error 4061 / too many app IDs:** the CLI leases stable IDs from the persistent pool in `~/.config/sogni/app-ids/`. Do not delete that directory between runs. For ephemeral/container homes, set the same `SOGNI_APP_ID` on every session. App IDs already registered today remain counted until 00:00 UTC, so an existing block may require waiting for that reset once after upgrading.
|
|
358
373
|
- **Kicked mid-render / SWITCH_CONNECTION 4015:** two processes shared one app ID. The slot pool prevents this for concurrent CLI runs; if a long-lived daemon also uses this account, give it its own pinned `SOGNI_APP_ID`.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"manifest_version": "0.3",
|
|
3
3
|
"name": "sogni-creative-agent",
|
|
4
4
|
"display_name": "Sogni Creative Agent",
|
|
5
|
-
"version": "3.
|
|
5
|
+
"version": "3.26.1",
|
|
6
6
|
"description": "Generate images, video, and music on Sogni AI's decentralized GPU network — with personas, memories, and safe video editing tools.",
|
|
7
7
|
"author": { "name": "Sogni AI", "url": "https://sogni.ai" },
|
|
8
8
|
"homepage": "https://sogni.ai",
|
|
@@ -75,6 +75,8 @@ export const TOOLS = [
|
|
|
75
75
|
'Generate a video from a text prompt, optionally driven by reference media. ' +
|
|
76
76
|
'ref = start frame image (alone defaults to wan_v2.2-14b-fp8_i2v_lightx2v), ' +
|
|
77
77
|
'ref_end = end frame (with ref, defaults to ltx23-22b-fp8_i2v_distilled and its auto-applied transition/morph LoRA), ' +
|
|
78
|
+
'MiniMax H3 supports t2v, i2v, first/last-frame, and r2v; H3 r2v accepts up to 9 images, 3 videos, ' +
|
|
79
|
+
'and 3 audios (12 files total) through the repeatable reference arrays and uses <Picture 1>/<Video 1>/<Audio 1> prompt tags. ' +
|
|
78
80
|
'ref_audio = soundtrack/lip-sync audio, ref_video = motion reference. ' +
|
|
79
81
|
'Rendering takes minutes; prefer output_path (absolute .mp4). ' + CHAT_ATTACHMENT_NOTE,
|
|
80
82
|
inputSchema: {
|
|
@@ -83,12 +85,16 @@ export const TOOLS = [
|
|
|
83
85
|
prompt: str('Motion/scene description'),
|
|
84
86
|
output_path: str('Absolute .mp4 path to save (optional)'),
|
|
85
87
|
model: str('Video model id (optional)'),
|
|
86
|
-
workflow: { type: 'string', enum: ['t2v', 'i2v', 's2v', 'ia2v', 'a2v', 'v2v', 'animate-move', 'animate-replace'] },
|
|
88
|
+
workflow: { type: 'string', enum: ['t2v', 'i2v', 'r2v', 's2v', 'ia2v', 'a2v', 'v2v', 'animate-move', 'animate-replace'] },
|
|
87
89
|
duration: num('Duration in seconds (default 5)'),
|
|
88
|
-
ref: str('Absolute path or URL of the start-frame image'),
|
|
90
|
+
ref: str('Absolute path or URL of the start-frame image; loose Picture 1 for MiniMax H3 r2v'),
|
|
89
91
|
ref_end: str('Absolute path or URL of the end-frame image'),
|
|
90
92
|
ref_audio: str('Absolute path or URL of reference audio'),
|
|
91
93
|
ref_video: str('Absolute path or URL of reference video'),
|
|
94
|
+
reference_images: { type: 'array', items: { type: 'string' }, description: 'Loose image reference paths/URLs (-c); repeatable for MiniMax H3 r2v' },
|
|
95
|
+
reference_audios: { type: 'array', items: { type: 'string' }, description: 'Additional reference audio paths/URLs; MiniMax H3 r2v supports up to 3 total' },
|
|
96
|
+
reference_videos: { type: 'array', items: { type: 'string' }, description: 'Additional reference video paths/URLs; MiniMax H3 r2v supports up to 3 total' },
|
|
97
|
+
generate_audio: { type: 'boolean', description: 'For MiniMax H3, keep generated audio (true) or strip it from the returned video (false)' },
|
|
92
98
|
persona: str('Saved persona name (reference frame)'),
|
|
93
99
|
target_resolution: num('Short-side target in px, preserves aspect'),
|
|
94
100
|
timeout_seconds: num('Generation timeout override (default 1800)'),
|
|
@@ -105,7 +111,12 @@ export const TOOLS = [
|
|
|
105
111
|
push(args, '--ref', input.ref);
|
|
106
112
|
push(args, '--ref-end', input.ref_end);
|
|
107
113
|
push(args, '--ref-audio', input.ref_audio);
|
|
114
|
+
for (const refAudio of input.reference_audios ?? []) push(args, '--ref-audio', refAudio);
|
|
108
115
|
push(args, '--ref-video', input.ref_video);
|
|
116
|
+
for (const refVideo of input.reference_videos ?? []) push(args, '--ref-video', refVideo);
|
|
117
|
+
for (const refImage of input.reference_images ?? []) push(args, '-c', refImage);
|
|
118
|
+
if (input.generate_audio === true) args.push('--generate-audio');
|
|
119
|
+
if (input.generate_audio === false) args.push('--no-generate-audio');
|
|
109
120
|
push(args, '--persona', input.persona);
|
|
110
121
|
push(args, '--target-resolution', input.target_resolution);
|
|
111
122
|
push(args, '-t', input.timeout_seconds);
|
package/llm.txt
CHANGED
|
@@ -58,6 +58,20 @@ bootstrap scripts with `set -e`, `bash -c`, `sh -c`, or inline repository URLs.
|
|
|
58
58
|
Use the npm upgrade command above, update an existing checkout with `git -C`, or
|
|
59
59
|
ask before cloning.
|
|
60
60
|
|
|
61
|
+
## Host launchers
|
|
62
|
+
|
|
63
|
+
The package installs one launcher shim per host next to `sogni-agent`. Each is
|
|
64
|
+
the same CLI with the same flags and output; it only attributes the request to
|
|
65
|
+
the host that ran it. Use the shim matching your runtime wherever these docs say
|
|
66
|
+
`sogni-agent`, and fall back to `sogni-agent` when it is not on PATH.
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
sogni-agent-hermes # Hermes Agent
|
|
70
|
+
sogni-agent-codex # OpenAI Codex CLI
|
|
71
|
+
sogni-agent-claude-code # Claude Code
|
|
72
|
+
sogni-agent # OpenClaw (auto-detected) and everything else
|
|
73
|
+
```
|
|
74
|
+
|
|
61
75
|
## Configure Sogni API key
|
|
62
76
|
|
|
63
77
|
Once-only setup, used by every integration above. The API key can always be
|
package/openclaw.plugin.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "sogni-creative-agent-skill",
|
|
3
3
|
"name": "Sogni Creative Agent Skill — Image, Video & Music Generation",
|
|
4
4
|
"description": "Agent skill and CLI for Sogni AI image, video, and music generation.",
|
|
5
|
-
"version": "3.
|
|
5
|
+
"version": "3.26.1",
|
|
6
6
|
"skills": [
|
|
7
7
|
"."
|
|
8
8
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sogni-ai/sogni-creative-agent-skill",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.26.1",
|
|
4
4
|
"description": "Sogni Creative Agent Skill: agent skill and CLI for Sogni AI image, video, and music generation.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "sogni-agent.mjs",
|
|
@@ -92,13 +92,13 @@
|
|
|
92
92
|
"sogni-agent.mjs"
|
|
93
93
|
],
|
|
94
94
|
"dependencies": {
|
|
95
|
-
"@sogni-ai/sogni-intelligence-client": "3.12.
|
|
95
|
+
"@sogni-ai/sogni-intelligence-client": "3.12.6",
|
|
96
96
|
"execa": "^9.6.1",
|
|
97
97
|
"json5": "^2.2.3",
|
|
98
98
|
"sharp": "^0.34.5"
|
|
99
99
|
},
|
|
100
100
|
"overrides": {
|
|
101
|
-
"@sogni-ai/sogni-client": "5.4.0
|
|
101
|
+
"@sogni-ai/sogni-client": "5.4.0"
|
|
102
102
|
},
|
|
103
103
|
"openclaw": {
|
|
104
104
|
"extensions": [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: sogni-creative-agent
|
|
3
|
-
description: "Sogni Creative Agent: image, video, and music generation using Sogni AI's decentralized GPU network. Supports personas, persistent memories, custom personality, style transfer, angle synthesis, Seedance/HappyHorse/LTX/WAN video, music/lyrics, hosted chat, durable workflows, replay records, and multi-step creative workflows. Invoke when the user asks to \"draw\", \"generate\", \"create an image\", \"make a video\", \"animate\", \"make music\", \"apply a style\", or \"generate me as a superhero\"."
|
|
3
|
+
description: "Sogni Creative Agent: image, video, and music generation using Sogni AI's decentralized GPU network. Supports personas, persistent memories, custom personality, style transfer, angle synthesis, MiniMax H3/Seedance/HappyHorse/LTX/WAN video, music/lyrics, hosted chat, durable workflows, replay records, and multi-step creative workflows. Invoke when the user asks to \"draw\", \"generate\", \"create an image\", \"make a video\", \"animate\", \"make music\", \"apply a style\", or \"generate me as a superhero\"."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Sogni Creative Agent
|
|
@@ -29,6 +29,7 @@ Do not run the default `npx setup-sogni-agent-skill` from an installed plugin un
|
|
|
29
29
|
- Image edit: `sogni-agent -c <path> "make it night, add fireflies"`
|
|
30
30
|
- Video (image-to-video): `sogni-agent --video --ref <path> "gentle camera pan"` (defaults to `wan_v2.2-14b-fp8_i2v_lightx2v`)
|
|
31
31
|
- Animate two images (first frame → last frame): `sogni-agent --video --ref <first> --ref-end <last> "smooth morph into the final frame"` (defaults to `ltx23-22b-fp8_i2v_distilled`; the transition/morph LoRA auto-applies)
|
|
32
|
+
- MiniMax H3 reference-to-video: `sogni-agent --video -m minimax-h3-r2v --ref <identity> -c <wardrobe> --ref-video <motion> --ref-audio <voice> "<Picture 1> controls identity; <Picture 2> controls wardrobe; <Video 1> controls motion; <Audio 1> controls voice."`
|
|
32
33
|
- One-click image-folder loop: `/sogni-creative-agent:loop-maker ./images`
|
|
33
34
|
- One-click image-folder loop in Codex: `$sogni-creative-agent:loop-maker ./images`
|
|
34
35
|
- Music: `sogni-agent --music "ambient drone, 30 seconds"`
|
package/references/models.md
CHANGED
|
@@ -147,7 +147,7 @@ direct music generation. Music controls: `--lyrics`, `--language`, `--bpm`
|
|
|
147
147
|
| `minimax-h3` / `minimax-h3-t2v` | Standard | MiniMax H3 text-to-video at 24 fps with native stereo audio |
|
|
148
148
|
| `minimax-h3-i2v` | Standard | MiniMax H3 first-frame image-to-video with native stereo audio |
|
|
149
149
|
| `minimax-h3-flf2v` | Standard | MiniMax H3 first-frame → last-frame video; pass both `--ref` and `--ref-end` |
|
|
150
|
-
| `minimax-h3-r2v` | Standard | MiniMax H3 reference-to-video from a whole reference
|
|
150
|
+
| `minimax-h3-r2v` | Standard | MiniMax H3 reference-to-video from a whole reference set (up to 9 images / 3 videos / 3 audio, 12 files total) |
|
|
151
151
|
| `wan_v2.2-14b-fp8_i2v_lightx2v` | Fast | **Default single-image image-to-video** (one `--ref`, no end frame) |
|
|
152
152
|
| `wan_v2.2-14b-fp8_i2v` | Slow | Higher quality video |
|
|
153
153
|
| `wan_v2.2-14b-fp8_t2v_lightx2v` | Fast | Text-to-video |
|
|
@@ -235,8 +235,8 @@ and short in-scene text.
|
|
|
235
235
|
|
|
236
236
|
MiniMax H3 is a Sogni-hosted video family (four discrete modes, no mini/fast
|
|
237
237
|
variants) that generates picture and **native 32 kHz stereo audio jointly**.
|
|
238
|
-
`generateAudio=false` strips the generated track
|
|
239
|
-
than skipping audio generation. It is an explicit model choice, never a
|
|
238
|
+
`--no-generate-audio` (SDK `generateAudio=false`) strips the generated track
|
|
239
|
+
from the delivered file rather than skipping audio generation. It is an explicit model choice, never a
|
|
240
240
|
universal default. The bare `minimax-h3` selector resolves to the mode inferred
|
|
241
241
|
from your references; **`minimax-h3-r2v` is never inferred** — it runs a
|
|
242
242
|
different checkpoint and must be asked for by name.
|
|
@@ -252,10 +252,9 @@ The first three modes share the FL2VA checkpoint: worker ids
|
|
|
252
252
|
`minimax-h3-fl2va-fp8_t2v`, `minimax-h3-fl2va-fp8_i2v`, and
|
|
253
253
|
`minimax-h3-fl2va-fp8_flf2v`. The CLI resolves those three short selectors,
|
|
254
254
|
picking i2v vs flf2v from whether `--ref-end` is present. Reference-to-video is a
|
|
255
|
-
SEPARATE checkpoint — worker id `minimax-h3-ref2va-fp8_r2v` —
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
`videoModel="minimax-h3-r2v"` (including callers such as Sogni Chat).
|
|
255
|
+
SEPARATE checkpoint — worker id `minimax-h3-ref2va-fp8_r2v` — selected directly
|
|
256
|
+
with `-m minimax-h3-r2v`, or through the creative-agent `generate_video` tool
|
|
257
|
+
with `videoModel="minimax-h3-r2v"` (including callers such as Sogni Chat).
|
|
259
258
|
|
|
260
259
|
The **fl2va** modes (t2v / i2v / flf2v) take image references only — they do not
|
|
261
260
|
accept reference video or reference audio, because audio is generated natively.
|
|
@@ -283,6 +282,7 @@ initial Sogni release is routed to 32 GB-class workers.
|
|
|
283
282
|
sogni-agent -q --video -m minimax-h3 --duration 10 -w 1344 -h 768 -o ./video.mp4 "<H3 prose prompt>"
|
|
284
283
|
sogni-agent -q --video -m minimax-h3-i2v --ref first.png --duration 8 -o ./video.mp4 "<H3 prose prompt>"
|
|
285
284
|
sogni-agent -q --video -m minimax-h3-flf2v --ref first.png --ref-end last.png --duration 8 -o ./video.mp4 "<H3 prose prompt>"
|
|
285
|
+
sogni-agent -q --video -m minimax-h3-r2v --ref identity.png -c wardrobe.png --ref-video motion.mp4 --ref-audio voice.m4a -o ./video.mp4 "<H3 prompt using <Picture 1>/<Picture 2>/<Video 1>/<Audio 1>>"
|
|
286
286
|
```
|
|
287
287
|
|
|
288
288
|
### MiniMax H3 prompting
|
|
@@ -316,10 +316,11 @@ the optional/advanced markup reference before writing an H3 prompt.
|
|
|
316
316
|
`minimax-h3-r2v` (worker id `minimax-h3-ref2va-fp8_r2v`) is the one H3 mode that
|
|
317
317
|
conditions on a whole **reference set** instead of one or two locked frames. It
|
|
318
318
|
runs its own ref2va checkpoint, so it is **never inferred** from stray uploads
|
|
319
|
-
the way HappyHorse r2v is — the user or the plan must name it.
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
319
|
+
the way HappyHorse r2v is — the user or the plan must name it. Direct CLI uses
|
|
320
|
+
`-m minimax-h3-r2v`: `--ref` is optional loose image 1, repeatable `-c` supplies
|
|
321
|
+
the remaining images, and repeatable `--ref-video` / `--ref-audio` supply those
|
|
322
|
+
modalities. The creative-agent `generate_video` tool uses
|
|
323
|
+
`videoModel="minimax-h3-r2v"` plus its typed reference-index arrays.
|
|
323
324
|
|
|
324
325
|
Everything in [MiniMax H3 models](#minimax-h3-models) above still applies: 24 fps,
|
|
325
326
|
the `124 + n×17` frame grid (5.17–15.08 s), dimensions divisible by 32 inside the
|
|
@@ -485,7 +486,7 @@ model recommendations.
|
|
|
485
486
|
| MiniMax H3 text-to-video with native stereo audio | `minimax-h3` (or `minimax-h3-t2v`) |
|
|
486
487
|
| MiniMax H3 image-to-video from one first frame | `minimax-h3-i2v` with `--ref` |
|
|
487
488
|
| MiniMax H3 first frame → last frame transition | `minimax-h3-flf2v` with `--ref A --ref-end B` |
|
|
488
|
-
| MiniMax H3 from a set of loose references (identity + wardrobe + location, a motion clip, a voice clip) | `minimax-h3-r2v`
|
|
489
|
+
| MiniMax H3 from a set of loose references (identity + wardrobe + location, a motion clip, a voice clip) | `minimax-h3-r2v` with `--ref`/`-c`, repeatable `--ref-video`, and repeatable `--ref-audio` |
|
|
489
490
|
| Face lip-sync with uploaded audio | `wan_v2.2-14b-fp8_s2v_lightx2v` |
|
|
490
491
|
|
|
491
492
|
## Video sizing & aspect ratios
|
|
@@ -363,10 +363,11 @@ transition), and `S.SS` is the effective duration to exactly two decimal places
|
|
|
363
363
|
locked frames: up to **9 reference images** (at least one is required),
|
|
364
364
|
**3 reference videos** (24 fps, 2–15 s, each with an optional soundtrack) and
|
|
365
365
|
**3 standalone audio clips**, **12 files maximum in total**. It runs a separate
|
|
366
|
-
ref2va checkpoint, so it is never inferred — it must be chosen by name
|
|
367
|
-
|
|
368
|
-
`videoModel="minimax-h3-r2v"` (including callers such as Sogni Chat
|
|
369
|
-
`
|
|
366
|
+
ref2va checkpoint, so it is never inferred — it must be chosen by name with
|
|
367
|
+
direct CLI `-m minimax-h3-r2v` or the `generate_video` tool's
|
|
368
|
+
`videoModel="minimax-h3-r2v"` (including callers such as Sogni Chat). Direct CLI
|
|
369
|
+
uses `--ref` then repeatable `-c` for images, plus repeatable `--ref-video` and
|
|
370
|
+
`--ref-audio` for those modalities. Reference videos and
|
|
370
371
|
audio are additions to the image set, never replacements for it, and r2v has no
|
|
371
372
|
frame anchors at all — for a locked opening frame use `minimax-h3-i2v`, and for a
|
|
372
373
|
first-to-last-frame transition use `minimax-h3-flf2v`.
|
|
@@ -455,6 +456,9 @@ sogni-agent -q --video -m minimax-h3-i2v --ref ./first.png --duration 8 -w 768 -
|
|
|
455
456
|
|
|
456
457
|
# First frame -> last frame transition
|
|
457
458
|
sogni-agent -q --video -m minimax-h3-flf2v --ref ./first.png --ref-end ./last.png --duration 8 -w 1344 -h 768 -o ./video.mp4 "<H3 prose prompt describing the motion path between the two frames>"
|
|
459
|
+
|
|
460
|
+
# Reference-to-video (reference order defines the prompt ordinals)
|
|
461
|
+
sogni-agent -q --video -m minimax-h3-r2v --ref ./identity.png -c ./wardrobe.png --ref-video ./motion.mp4 --ref-audio ./voice.m4a --duration 8 -w 1344 -h 768 -o ./video.mp4 "<H3 prose assigning jobs to <Picture 1>, <Picture 2>, <Video 1>, and <Audio 1>>"
|
|
458
462
|
```
|
|
459
463
|
|
|
460
464
|
## High-Res Video Routing
|
package/skill-package.json
CHANGED
package/skills/video_editing.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: video_editing
|
|
3
|
-
description: Source-conditioned video flows: animate a photo, audio-driven motion, video style transfer, Seedance/HappyHorse references, stitching, orbits, dance-montage compositions, segment extend/replace, and pure-ffmpeg post-production (overlay, subtitles).
|
|
3
|
+
description: Source-conditioned video flows: animate a photo, audio-driven motion, video style transfer, Seedance/HappyHorse/MiniMax H3 references, stitching, orbits, dance-montage compositions, segment extend/replace, and pure-ffmpeg post-production (overlay, subtitles).
|
|
4
4
|
always_loaded: false
|
|
5
5
|
tool_names:
|
|
6
6
|
- animate_photo
|
|
@@ -17,11 +17,11 @@ tool_names:
|
|
|
17
17
|
|
|
18
18
|
# Video editing
|
|
19
19
|
|
|
20
|
-
Convert a still image, audio track, or existing clip into video, plus Seedance multimodal references, HappyHorse image references, stitching, orbits, dance-montage compositions, segment extend/replace, and pure-ffmpeg post-production (overlay, subtitles) over previously rendered or uploaded clips.
|
|
20
|
+
Convert a still image, audio track, or existing clip into video, plus Seedance and MiniMax H3 multimodal references, HappyHorse image references, stitching, orbits, dance-montage compositions, segment extend/replace, and pure-ffmpeg post-production (overlay, subtitles) over previously rendered or uploaded clips.
|
|
21
21
|
|
|
22
22
|
## Tools
|
|
23
23
|
|
|
24
|
-
- `animate_photo` — photo-to-video animation with LTX/WAN/Seedance/HappyHorse routing.
|
|
24
|
+
- `animate_photo` — photo-to-video animation with LTX/WAN/Seedance/HappyHorse/MiniMax H3 i2v and first/last-frame routing.
|
|
25
25
|
- `sound_to_video` — audio-synced video generation.
|
|
26
26
|
- `video_to_video` — video style transfer with ControlNet.
|
|
27
27
|
- `stitch_video` — concatenate previously rendered clips.
|
|
@@ -39,3 +39,4 @@ Convert a still image, audio track, or existing clip into video, plus Seedance m
|
|
|
39
39
|
- For multiple prompt-only takes from one fixed source/end image and shared settings, prefer one Dynamic Prompt request with `numberOfVariations`/`-n`, then stitch the returned clips if the user asked for a single final video.
|
|
40
40
|
- Keep per-clip prompt arrays and source/end image arrays when clips need different assets, durations, audio windows, or other per-output settings.
|
|
41
41
|
- HappyHorse i2v uses exactly one first-frame image and r2v uses 1-9 image references; do not attach reference audio, reference video, ControlNet, or negative prompts.
|
|
42
|
+
- MiniMax H3 i2v uses one first frame and H3 flf2v uses both first and last frames. For a loose image/video/audio set use `generate_video` with explicit `minimax-h3-r2v`; r2v references are roles, not frame anchors.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: video_generation
|
|
3
|
-
description: Text-to-video synthesis with LTX-2.3, WAN 2.2, Seedance 2.0,
|
|
3
|
+
description: Text-to-video synthesis with LTX-2.3, WAN 2.2, Seedance 2.0, HappyHorse 1.1, and MiniMax H3.
|
|
4
4
|
always_loaded: false
|
|
5
5
|
tool_names:
|
|
6
6
|
- generate_video
|
|
@@ -8,14 +8,15 @@ tool_names:
|
|
|
8
8
|
|
|
9
9
|
# Video generation
|
|
10
10
|
|
|
11
|
-
Text-to-video synthesis with LTX-2.3, WAN 2.2, Seedance 2.0,
|
|
11
|
+
Text-to-video synthesis with LTX-2.3, WAN 2.2, Seedance 2.0, HappyHorse 1.1, and MiniMax H3. Use when the user wants a new video clip generated from a prompt or a loose multimodal reference set.
|
|
12
12
|
|
|
13
13
|
## Tools
|
|
14
14
|
|
|
15
|
-
- `generate_video` — produce a video clip from text, Seedance multimodal references, or HappyHorse image references.
|
|
15
|
+
- `generate_video` — produce a video clip from text, Seedance/H3 multimodal references, or HappyHorse image references.
|
|
16
16
|
|
|
17
17
|
## Constraints
|
|
18
18
|
|
|
19
19
|
- Persona-driven video requests must always go through `image_editing` first to produce a conditioned image; never go straight to text-to-video for personas.
|
|
20
20
|
- For prompt-only variants with the same model, duration, dimensions, and references, use one Dynamic Prompt branch with `numberOfVariations`/`-n` instead of serial video calls.
|
|
21
21
|
- HappyHorse 1.1 is a Premium Spark vendor path: t2v is prompt-only, i2v uses one first-frame image, and r2v uses 1-9 image references. It accepts no reference audio or video.
|
|
22
|
+
- MiniMax H3 t2v uses `minimax-h3-t2v`; H3 r2v must be selected explicitly as `minimax-h3-r2v` and accepts up to 9 images, 3 videos, and 3 audio clips, capped at 12 files with at least one image. Address references with per-type `<Picture 1>` / `<Video 1>` / `<Audio 1>` tags and assign each one a role.
|
package/sogni-agent.mjs
CHANGED
|
@@ -1588,7 +1588,7 @@ function getMaxContextImages(modelId) {
|
|
|
1588
1588
|
}
|
|
1589
1589
|
|
|
1590
1590
|
function videoDurationLimitsLikeWrapper(modelId) {
|
|
1591
|
-
if (isMiniMaxH3Model(modelId)) return {
|
|
1591
|
+
if (isMiniMaxH3Model(modelId)) return { ...MINIMAX_H3_DURATION_LIMITS };
|
|
1592
1592
|
if (isSeedanceModel(modelId)) return { min: 4, max: 15 };
|
|
1593
1593
|
if (isHappyHorseModel(modelId)) return { min: 3, max: 15 };
|
|
1594
1594
|
if (isLtx2Model(modelId) || isWanAnimateVideoModelId(modelId)) return { min: 1, max: 20 };
|
|
@@ -1864,11 +1864,50 @@ const LTX_TRANSITION_LORA_ID = 'transition';
|
|
|
1864
1864
|
const LTX_TRANSITION_TRIGGER = 'zhuanchang';
|
|
1865
1865
|
const LTX_TRANSITION_DEFAULT_STRENGTH = 1.0;
|
|
1866
1866
|
const LTX23_10EROS_MODEL_ID = 'ltx23-22b-10eros-v1.4-fp8mixed_i2v';
|
|
1867
|
-
const
|
|
1868
|
-
'minimax-h3-fl2va-fp8_t2v',
|
|
1869
|
-
'minimax-h3-fl2va-fp8_i2v',
|
|
1870
|
-
'minimax-h3-fl2va-fp8_flf2v'
|
|
1867
|
+
const MINIMAX_H3_MODEL_MODES = new Map([
|
|
1868
|
+
['minimax-h3-fl2va-fp8_t2v', 't2v'],
|
|
1869
|
+
['minimax-h3-fl2va-fp8_i2v', 'i2v'],
|
|
1870
|
+
['minimax-h3-fl2va-fp8_flf2v', 'flf2v'],
|
|
1871
|
+
['minimax-h3-ref2va-fp8_r2v', 'r2v'],
|
|
1872
|
+
['minimax-h3-fl2va-fp8_t2v_turbo', 't2v'],
|
|
1873
|
+
['minimax-h3-fl2va-fp8_i2v_turbo', 'i2v'],
|
|
1874
|
+
['minimax-h3-fl2va-fp8_flf2v_turbo', 'flf2v']
|
|
1871
1875
|
]);
|
|
1876
|
+
const MINIMAX_H3_MODEL_IDS = new Set(MINIMAX_H3_MODEL_MODES.keys());
|
|
1877
|
+
const MINIMAX_H3_R2V_MODEL_ID = 'minimax-h3-ref2va-fp8_r2v';
|
|
1878
|
+
const MINIMAX_H3_REFERENCE_LIMITS = Object.freeze({
|
|
1879
|
+
images: 9,
|
|
1880
|
+
videos: 3,
|
|
1881
|
+
audios: 3,
|
|
1882
|
+
assets: 12
|
|
1883
|
+
});
|
|
1884
|
+
// H3 renders on a fixed 24fps frame grid: frames are 124 + n×17, from 124
|
|
1885
|
+
// through 362. Every duration the user asks for is snapped to that grid, so the
|
|
1886
|
+
// deliverable range is 5.17-15.08s — not the round 5-15s it rounds to.
|
|
1887
|
+
const MINIMAX_H3_FRAME_GRID = Object.freeze({
|
|
1888
|
+
fps: 24,
|
|
1889
|
+
min: 124,
|
|
1890
|
+
max: 362,
|
|
1891
|
+
step: 17
|
|
1892
|
+
});
|
|
1893
|
+
const MINIMAX_H3_DURATION_LIMITS = Object.freeze({
|
|
1894
|
+
min: MINIMAX_H3_FRAME_GRID.min / MINIMAX_H3_FRAME_GRID.fps,
|
|
1895
|
+
max: MINIMAX_H3_FRAME_GRID.max / MINIMAX_H3_FRAME_GRID.fps
|
|
1896
|
+
});
|
|
1897
|
+
|
|
1898
|
+
// Grid-snapped durations are rarely whole seconds; keep the printed form short
|
|
1899
|
+
// without implying more precision than the frame count carries.
|
|
1900
|
+
function formatDurationSeconds(seconds) {
|
|
1901
|
+
return String(Number(Number(seconds).toFixed(2)));
|
|
1902
|
+
}
|
|
1903
|
+
|
|
1904
|
+
// Snap a duration in seconds onto the H3 frame grid.
|
|
1905
|
+
function miniMaxH3FramesForDuration(durationSeconds) {
|
|
1906
|
+
const { fps, min, max, step } = MINIMAX_H3_FRAME_GRID;
|
|
1907
|
+
const desiredFrames = durationSeconds * fps;
|
|
1908
|
+
return Math.max(min, Math.min(max, min + Math.round((desiredFrames - min) / step) * step));
|
|
1909
|
+
}
|
|
1910
|
+
|
|
1872
1911
|
const LTX23_10EROS_FIXED_SETTINGS = Object.freeze({
|
|
1873
1912
|
steps: 9,
|
|
1874
1913
|
guidance: 1,
|
|
@@ -1887,6 +1926,7 @@ const DR34ML4Y_SUPPORTED_MODEL_IDS = new Set([
|
|
|
1887
1926
|
function resolveSkillVideoModelAlias(modelId, workflow = null, hasEndFrame = false) {
|
|
1888
1927
|
const normalized = String(modelId || '').trim().toLowerCase();
|
|
1889
1928
|
if (normalized === 'minimax-h3' && workflow) {
|
|
1929
|
+
if (workflow === 'r2v') return MINIMAX_H3_R2V_MODEL_ID;
|
|
1890
1930
|
if (workflow === 'i2v') {
|
|
1891
1931
|
return hasEndFrame ? 'minimax-h3-fl2va-fp8_flf2v' : 'minimax-h3-fl2va-fp8_i2v';
|
|
1892
1932
|
}
|
|
@@ -1897,6 +1937,7 @@ function resolveSkillVideoModelAlias(modelId, workflow = null, hasEndFrame = fal
|
|
|
1897
1937
|
}
|
|
1898
1938
|
if (normalized === 'minimax-h3-i2v') return 'minimax-h3-fl2va-fp8_i2v';
|
|
1899
1939
|
if (normalized === 'minimax-h3-flf2v') return 'minimax-h3-fl2va-fp8_flf2v';
|
|
1940
|
+
if (normalized === 'minimax-h3-r2v') return MINIMAX_H3_R2V_MODEL_ID;
|
|
1900
1941
|
return normalized === '10eros' || normalized === 'ltx23-eros'
|
|
1901
1942
|
? LTX23_10EROS_MODEL_ID
|
|
1902
1943
|
: modelId;
|
|
@@ -1906,6 +1947,29 @@ function isMiniMaxH3Model(modelId) {
|
|
|
1906
1947
|
return MINIMAX_H3_MODEL_IDS.has(String(modelId || '').trim().toLowerCase());
|
|
1907
1948
|
}
|
|
1908
1949
|
|
|
1950
|
+
function isMiniMaxH3R2vModel(modelId) {
|
|
1951
|
+
return String(modelId || '').trim().toLowerCase() === MINIMAX_H3_R2V_MODEL_ID;
|
|
1952
|
+
}
|
|
1953
|
+
|
|
1954
|
+
function isMiniMaxH3ModelSelectionLocal(modelId) {
|
|
1955
|
+
const normalized = String(modelId || '').trim().toLowerCase();
|
|
1956
|
+
return normalized === 'minimax-h3'
|
|
1957
|
+
|| normalized === 'minimax-h3-t2v'
|
|
1958
|
+
|| normalized === 'minimax-h3-i2v'
|
|
1959
|
+
|| normalized === 'minimax-h3-flf2v'
|
|
1960
|
+
|| normalized === 'minimax-h3-r2v'
|
|
1961
|
+
|| isMiniMaxH3Model(normalized);
|
|
1962
|
+
}
|
|
1963
|
+
|
|
1964
|
+
function miniMaxH3ModeFromModelId(modelId) {
|
|
1965
|
+
const normalized = String(modelId || '').trim().toLowerCase();
|
|
1966
|
+
if (normalized === 'minimax-h3-t2v') return 't2v';
|
|
1967
|
+
if (normalized === 'minimax-h3-i2v') return 'i2v';
|
|
1968
|
+
if (normalized === 'minimax-h3-flf2v') return 'flf2v';
|
|
1969
|
+
if (normalized === 'minimax-h3-r2v') return 'r2v';
|
|
1970
|
+
return MINIMAX_H3_MODEL_MODES.get(normalized) || null;
|
|
1971
|
+
}
|
|
1972
|
+
|
|
1909
1973
|
function normalizeMultiAngleValue(value, aliases, allowedKeys, label) {
|
|
1910
1974
|
if (!value) return null;
|
|
1911
1975
|
const normalized = value.toLowerCase().replace(/_/g, '-').replace(/\s+/g, ' ').trim();
|
|
@@ -3302,7 +3366,7 @@ Music Options:
|
|
|
3302
3366
|
|
|
3303
3367
|
Video Options:
|
|
3304
3368
|
--video, -v Generate video instead of image
|
|
3305
|
-
--workflow <type> Video workflow: t2v|i2v|s2v|ia2v|a2v|v2v|animate-move|animate-replace
|
|
3369
|
+
--workflow <type> Video workflow: t2v|i2v|r2v|s2v|ia2v|a2v|v2v|animate-move|animate-replace
|
|
3306
3370
|
--fps <num> Frames per second (model default unless set)
|
|
3307
3371
|
--duration <sec> Duration in seconds (default: 5)
|
|
3308
3372
|
--frames <num> Override total frames (optional)
|
|
@@ -3310,21 +3374,22 @@ Video Options:
|
|
|
3310
3374
|
--auto-resize-assets Auto-resize video reference assets (default)
|
|
3311
3375
|
--no-auto-resize-assets Disable auto-resize for video assets
|
|
3312
3376
|
--estimate-video-cost Estimate video cost and exit
|
|
3313
|
-
--ref <path|url> Reference image for video (start
|
|
3377
|
+
--ref <path|url> Reference image for video (start frame; Picture 1 on H3 r2v)
|
|
3314
3378
|
--ref-end <path|url> End frame for interpolation/morphing; with --ref it
|
|
3315
3379
|
defaults to the LTX-2.3 transition/morph model
|
|
3316
3380
|
(last frame on Seedance)
|
|
3317
|
-
--ref-audio <path|url> Audio reference. Repeatable on Seedance
|
|
3381
|
+
--ref-audio <path|url> Audio reference. Repeatable on Seedance and H3 r2v (up to 3 total);
|
|
3318
3382
|
first entry is the primary, extras must be HTTPS URLs in CLI
|
|
3319
|
-
direct-gen
|
|
3383
|
+
direct-gen for Seedance; H3 r2v uploads local/remote files.
|
|
3320
3384
|
On LTX/WAN: single primary only (for ia2v/a2v/s2v lip-sync).
|
|
3321
3385
|
--audio-start <sec> Start offset into --ref-audio for audio-driven clips
|
|
3322
3386
|
--audio-duration <sec> Duration slice from --ref-audio
|
|
3323
3387
|
--reference-audio-identity <path> Voice identity clip for LTX native audio
|
|
3324
3388
|
--voice-persona <name> Use saved persona voice clip as LTX voice identity
|
|
3325
|
-
--ref-video <path|url> Video reference. Repeatable on Seedance
|
|
3389
|
+
--ref-video <path|url> Video reference. Repeatable on Seedance and H3 r2v (up to 3 total);
|
|
3326
3390
|
first entry is the primary, extras must be HTTPS URLs in CLI
|
|
3327
|
-
direct-gen. On LTX/WAN: single primary for animate/v2v
|
|
3391
|
+
direct-gen for Seedance. On LTX/WAN: single primary for animate/v2v.
|
|
3392
|
+
--generate-audio, --no-generate-audio Keep or strip MiniMax H3's generated audio track
|
|
3328
3393
|
|
|
3329
3394
|
Seedance Reference Modes (mutually exclusive on seedance2 / seedance2-mini / seedance2-fast):
|
|
3330
3395
|
- DEDICATED FRAME MODE: --ref (first frame) and/or --ref-end (last frame).
|
|
@@ -3516,6 +3581,8 @@ Prompting". No negative prompt field: state negatives in the prompt text.):
|
|
|
3516
3581
|
minimax-h3 Text-to-video (also accepts minimax-h3-t2v); --ref/--ref-end pick i2v/flf2v
|
|
3517
3582
|
minimax-h3-i2v Image-to-video from a single first-frame image (--ref)
|
|
3518
3583
|
minimax-h3-flf2v First-frame -> last-frame transition (--ref plus --ref-end)
|
|
3584
|
+
minimax-h3-r2v Multi-reference video: --ref/-c images, repeatable --ref-video/--ref-audio
|
|
3585
|
+
(9 images / 3 videos / 3 audios / 12 files total)
|
|
3519
3586
|
|
|
3520
3587
|
WAN 2.2 Video Models:
|
|
3521
3588
|
wan_v2.2-14b-fp8_t2v_lightx2v Text-to-video (fast)
|
|
@@ -4006,12 +4073,15 @@ if (options.video) {
|
|
|
4006
4073
|
const normalized = normalizeVideoWorkflow(options.videoWorkflow);
|
|
4007
4074
|
if (normalized) {
|
|
4008
4075
|
options.videoWorkflow = normalized;
|
|
4009
|
-
} else if (
|
|
4010
|
-
|
|
4011
|
-
|
|
4076
|
+
} else if (
|
|
4077
|
+
options.videoWorkflow === 'r2v'
|
|
4078
|
+
&& (isHappyHorseModelSelectionLocal(options.model) || isMiniMaxH3ModelSelectionLocal(options.model))
|
|
4079
|
+
) {
|
|
4080
|
+
// HappyHorse and MiniMax H3 add reference-to-video (r2v) modes that the
|
|
4081
|
+
// shared SkillVideoWorkflow enum does not carry yet.
|
|
4012
4082
|
options.videoWorkflow = 'r2v';
|
|
4013
4083
|
} else {
|
|
4014
|
-
fatalCliError(`Unknown workflow "${options.videoWorkflow}". Use t2v|i2v|s2v|ia2v|a2v|v2v|animate-move|animate-replace (r2v on HappyHorse).`, {
|
|
4084
|
+
fatalCliError(`Unknown workflow "${options.videoWorkflow}". Use t2v|i2v|s2v|ia2v|a2v|v2v|animate-move|animate-replace (r2v on HappyHorse or MiniMax H3).`, {
|
|
4015
4085
|
code: 'INVALID_ARGUMENT',
|
|
4016
4086
|
details: { workflow: options.videoWorkflow }
|
|
4017
4087
|
});
|
|
@@ -4039,6 +4109,31 @@ if (options.video) {
|
|
|
4039
4109
|
}
|
|
4040
4110
|
}
|
|
4041
4111
|
|
|
4112
|
+
// MiniMax H3 has four concrete modes. The FL2VA checkpoint covers t2v, i2v,
|
|
4113
|
+
// and first/last-frame (represented by the CLI's i2v workflow); Ref2VA is a
|
|
4114
|
+
// separate r2v checkpoint and is never inferred from loose references alone.
|
|
4115
|
+
// Selecting minimax-h3-r2v or explicitly passing --workflow r2v is required.
|
|
4116
|
+
if (isMiniMaxH3ModelSelectionLocal(options.model)) {
|
|
4117
|
+
const pinnedMode = miniMaxH3ModeFromModelId(options.model);
|
|
4118
|
+
const pinnedWorkflow = pinnedMode === 'flf2v' ? 'i2v' : pinnedMode;
|
|
4119
|
+
if (pinnedWorkflow) {
|
|
4120
|
+
if (options.videoWorkflow && options.videoWorkflow !== pinnedWorkflow) {
|
|
4121
|
+
fatalCliError(`Workflow "${options.videoWorkflow}" does not match model "${options.model}".`, {
|
|
4122
|
+
code: 'INVALID_ARGUMENT',
|
|
4123
|
+
details: { workflow: options.videoWorkflow, model: options.model }
|
|
4124
|
+
});
|
|
4125
|
+
}
|
|
4126
|
+
options.videoWorkflow = pinnedWorkflow;
|
|
4127
|
+
} else if (!options.videoWorkflow) {
|
|
4128
|
+
options.videoWorkflow = (options.refImage || options.refImageEnd) ? 'i2v' : 't2v';
|
|
4129
|
+
}
|
|
4130
|
+
options.model = resolveSkillVideoModelAlias(
|
|
4131
|
+
options.model,
|
|
4132
|
+
options.videoWorkflow,
|
|
4133
|
+
Boolean(options.refImageEnd)
|
|
4134
|
+
);
|
|
4135
|
+
}
|
|
4136
|
+
|
|
4042
4137
|
// HappyHorse 1.1 has no v2v/ia2v. A concrete `happyhorse-1.1-<mode>` id pins
|
|
4043
4138
|
// the workflow; the bare `happyhorse` / `happyhorse-1.1` alias infers t2v by
|
|
4044
4139
|
// default, i2v from a single first-frame image (--ref), and r2v from loose
|
|
@@ -4401,6 +4496,8 @@ if (options.photobooth) {
|
|
|
4401
4496
|
if (options.video) {
|
|
4402
4497
|
const isSeedanceVideo = isSeedanceModel(options.model);
|
|
4403
4498
|
const isHappyHorseVideo = isHappyHorseModel(options.model);
|
|
4499
|
+
const isMiniMaxH3Video = isMiniMaxH3Model(options.model);
|
|
4500
|
+
const isMiniMaxH3R2v = isMiniMaxH3R2vModel(options.model);
|
|
4404
4501
|
if (isSeedanceVideo && !['t2v', 'ia2v', 'v2v'].includes(options.videoWorkflow)) {
|
|
4405
4502
|
fatalCliError('Seedance models support only t2v, ia2v, or v2v workflows.', {
|
|
4406
4503
|
code: 'INVALID_ARGUMENT',
|
|
@@ -4413,15 +4510,42 @@ if (options.video) {
|
|
|
4413
4510
|
details: { workflow: options.videoWorkflow, model: options.model }
|
|
4414
4511
|
});
|
|
4415
4512
|
}
|
|
4513
|
+
if (isMiniMaxH3Video && !['t2v', 'i2v', 'r2v'].includes(options.videoWorkflow)) {
|
|
4514
|
+
fatalCliError('MiniMax H3 models support only t2v, i2v/flf2v, or r2v workflows.', {
|
|
4515
|
+
code: 'INVALID_ARGUMENT',
|
|
4516
|
+
details: { workflow: options.videoWorkflow, model: options.model }
|
|
4517
|
+
});
|
|
4518
|
+
}
|
|
4416
4519
|
if (isHappyHorseVideo && options.videoControlNetName) {
|
|
4417
4520
|
fatalCliError('HappyHorse video models do not support ControlNet.', {
|
|
4418
4521
|
code: 'INVALID_ARGUMENT',
|
|
4419
4522
|
details: { model: options.model, controlNetName: options.videoControlNetName }
|
|
4420
4523
|
});
|
|
4421
4524
|
}
|
|
4525
|
+
if (isMiniMaxH3Video && (options.videoControlNetName || options.refMask || options.referenceAudioIdentity)) {
|
|
4526
|
+
fatalCliError('MiniMax H3 does not support ControlNet, masks, or LTX voice-identity references.', {
|
|
4527
|
+
code: 'INVALID_ARGUMENT',
|
|
4528
|
+
details: { model: options.model }
|
|
4529
|
+
});
|
|
4530
|
+
}
|
|
4531
|
+
if (isMiniMaxH3Video && (cliSet.steps || cliSet.guidance)) {
|
|
4532
|
+
fatalCliError('MiniMax H3 uses fixed sampling settings; omit --steps and --guidance.', {
|
|
4533
|
+
code: 'INVALID_ARGUMENT',
|
|
4534
|
+
details: { model: options.model, steps: options.steps, guidance: options.guidance }
|
|
4535
|
+
});
|
|
4536
|
+
}
|
|
4537
|
+
if (isHappyHorseVideo && options.apiGenerateAudio !== null) {
|
|
4538
|
+
fatalCliError('HappyHorse native audio is always on; omit --generate-audio/--no-generate-audio.', {
|
|
4539
|
+
code: 'INVALID_ARGUMENT',
|
|
4540
|
+
details: { model: options.model }
|
|
4541
|
+
});
|
|
4542
|
+
}
|
|
4422
4543
|
|
|
4423
4544
|
if (options.videoWorkflow === 't2v') {
|
|
4424
|
-
if (!isSeedanceVideo && (
|
|
4545
|
+
if (!isSeedanceVideo && (
|
|
4546
|
+
options.refImage || options.refImageEnd || options.refAudio || options.refVideo
|
|
4547
|
+
|| options.contextImages.length > 0 || options.refAudios.length > 0 || options.refVideos.length > 0
|
|
4548
|
+
)) {
|
|
4425
4549
|
fatalCliError('t2v does not accept reference image/audio/video.', {
|
|
4426
4550
|
code: 'INVALID_ARGUMENT'
|
|
4427
4551
|
});
|
|
@@ -4437,6 +4561,23 @@ if (options.video) {
|
|
|
4437
4561
|
if (options.refAudio || options.refVideo) {
|
|
4438
4562
|
fatalCliError('HappyHorse i2v does not accept reference audio/video.', { code: 'INVALID_ARGUMENT' });
|
|
4439
4563
|
}
|
|
4564
|
+
} else if (isMiniMaxH3Video) {
|
|
4565
|
+
const h3Mode = miniMaxH3ModeFromModelId(options.model);
|
|
4566
|
+
if (h3Mode === 'flf2v') {
|
|
4567
|
+
if (!options.refImage || !options.refImageEnd) {
|
|
4568
|
+
fatalCliError('MiniMax H3 flf2v requires both --ref and --ref-end.', { code: 'INVALID_ARGUMENT' });
|
|
4569
|
+
}
|
|
4570
|
+
} else {
|
|
4571
|
+
if (!options.refImage) {
|
|
4572
|
+
fatalCliError('MiniMax H3 i2v requires --ref (a single first-frame image).', { code: 'INVALID_ARGUMENT' });
|
|
4573
|
+
}
|
|
4574
|
+
if (options.refImageEnd) {
|
|
4575
|
+
fatalCliError('MiniMax H3 i2v accepts one first-frame image; use -m minimax-h3-flf2v for --ref plus --ref-end.', { code: 'INVALID_ARGUMENT' });
|
|
4576
|
+
}
|
|
4577
|
+
}
|
|
4578
|
+
if (options.contextImages.length > 0 || options.refAudio || options.refVideo || options.refAudios.length > 0 || options.refVideos.length > 0) {
|
|
4579
|
+
fatalCliError('MiniMax H3 i2v/flf2v accepts only --ref and optional --ref-end image anchors; use minimax-h3-r2v for loose image/video/audio references.', { code: 'INVALID_ARGUMENT' });
|
|
4580
|
+
}
|
|
4440
4581
|
} else {
|
|
4441
4582
|
if (!options.refImage && !options.refImageEnd) {
|
|
4442
4583
|
fatalCliError('i2v requires --ref and/or --ref-end.', { code: 'INVALID_ARGUMENT' });
|
|
@@ -4446,15 +4587,25 @@ if (options.video) {
|
|
|
4446
4587
|
}
|
|
4447
4588
|
}
|
|
4448
4589
|
} else if (options.videoWorkflow === 'r2v') {
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4590
|
+
if (isMiniMaxH3R2v) {
|
|
4591
|
+
const imageCount = (options.refImage ? 1 : 0) + options.contextImages.length;
|
|
4592
|
+
if (imageCount === 0) {
|
|
4593
|
+
fatalCliError('MiniMax H3 r2v needs at least one reference image via --ref or -c/--context.', { code: 'INVALID_ARGUMENT' });
|
|
4594
|
+
}
|
|
4595
|
+
if (options.refImageEnd) {
|
|
4596
|
+
fatalCliError('MiniMax H3 r2v has no end-frame anchor; use -c/--context for another loose image or minimax-h3-flf2v for first/last frames.', { code: 'INVALID_ARGUMENT' });
|
|
4597
|
+
}
|
|
4598
|
+
} else {
|
|
4599
|
+
// HappyHorse reference-to-video: 1-9 loose image references via -c/--context.
|
|
4600
|
+
if (!Array.isArray(options.contextImages) || options.contextImages.length === 0) {
|
|
4601
|
+
fatalCliError('HappyHorse r2v requires 1-9 reference images via -c/--context.', { code: 'INVALID_ARGUMENT' });
|
|
4602
|
+
}
|
|
4603
|
+
if (options.refImage || options.refImageEnd) {
|
|
4604
|
+
fatalCliError('HappyHorse r2v takes reference images via -c/--context, not --ref/--ref-end.', { code: 'INVALID_ARGUMENT' });
|
|
4605
|
+
}
|
|
4606
|
+
if (options.refAudio || options.refVideo || options.refAudios.length > 0 || options.refVideos.length > 0) {
|
|
4607
|
+
fatalCliError('HappyHorse r2v does not accept reference audio/video.', { code: 'INVALID_ARGUMENT' });
|
|
4608
|
+
}
|
|
4458
4609
|
}
|
|
4459
4610
|
} else if (options.videoWorkflow === 's2v') {
|
|
4460
4611
|
if (!options.refImage || !options.refAudio) {
|
|
@@ -4534,15 +4685,15 @@ if (options.video) {
|
|
|
4534
4685
|
}
|
|
4535
4686
|
// Non-Seedance video models do not understand multi-ref audio/video extras —
|
|
4536
4687
|
// they only support a single primary --ref-audio / --ref-video each.
|
|
4537
|
-
if (!isSeedanceVideo) {
|
|
4688
|
+
if (!isSeedanceVideo && !isMiniMaxH3R2v) {
|
|
4538
4689
|
if (Array.isArray(options.refAudios) && options.refAudios.length > 0) {
|
|
4539
|
-
fatalCliError('Multiple --ref-audio entries are only
|
|
4690
|
+
fatalCliError('Multiple --ref-audio entries are supported only for Seedance loose references and MiniMax H3 r2v.', {
|
|
4540
4691
|
code: 'INVALID_ARGUMENT',
|
|
4541
4692
|
details: { model: options.model, extras: options.refAudios },
|
|
4542
4693
|
});
|
|
4543
4694
|
}
|
|
4544
4695
|
if (Array.isArray(options.refVideos) && options.refVideos.length > 0) {
|
|
4545
|
-
fatalCliError('Multiple --ref-video entries are only
|
|
4696
|
+
fatalCliError('Multiple --ref-video entries are supported only for Seedance loose references and MiniMax H3 r2v.', {
|
|
4546
4697
|
code: 'INVALID_ARGUMENT',
|
|
4547
4698
|
details: { model: options.model, extras: options.refVideos },
|
|
4548
4699
|
});
|
|
@@ -4657,9 +4808,13 @@ if (options.video && (isSeedanceModel(options.model) || isHappyHorseModel(option
|
|
|
4657
4808
|
|
|
4658
4809
|
if (options.video && !options.frames) {
|
|
4659
4810
|
const durationLimits = videoDurationLimitsLikeWrapper(options.model);
|
|
4811
|
+
const requestedDuration = options.duration;
|
|
4660
4812
|
const clampedDuration = Math.max(durationLimits.min, Math.min(durationLimits.max, options.duration));
|
|
4661
4813
|
if (clampedDuration !== options.duration) {
|
|
4662
|
-
|
|
4814
|
+
// H3 reports its own adjustment below, after the frame grid decides the
|
|
4815
|
+
// duration actually delivered; announcing the clamp here would name a
|
|
4816
|
+
// duration H3 cannot render.
|
|
4817
|
+
if (!options.quiet && !isMiniMaxH3Model(options.model)) {
|
|
4663
4818
|
console.error(
|
|
4664
4819
|
`Adjusted video duration from ${options.duration}s to ${clampedDuration}s ` +
|
|
4665
4820
|
`(supported range for ${options.model}: ${durationLimits.min}-${durationLimits.max}s).`
|
|
@@ -4668,21 +4823,28 @@ if (options.video && !options.frames) {
|
|
|
4668
4823
|
options.duration = clampedDuration;
|
|
4669
4824
|
}
|
|
4670
4825
|
if (isMiniMaxH3Model(options.model)) {
|
|
4671
|
-
|
|
4672
|
-
options.
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4826
|
+
options.frames = miniMaxH3FramesForDuration(options.duration);
|
|
4827
|
+
options.fps = MINIMAX_H3_FRAME_GRID.fps;
|
|
4828
|
+
const deliveredDuration = options.frames / MINIMAX_H3_FRAME_GRID.fps;
|
|
4829
|
+
if (!options.quiet && Math.abs(deliveredDuration - requestedDuration) > 1e-6) {
|
|
4830
|
+
console.error(
|
|
4831
|
+
`Adjusted video duration from ${formatDurationSeconds(requestedDuration)}s to ` +
|
|
4832
|
+
`${formatDurationSeconds(deliveredDuration)}s (${options.frames} frames). ` +
|
|
4833
|
+
`MiniMax H3 renders ${MINIMAX_H3_FRAME_GRID.min} + n×${MINIMAX_H3_FRAME_GRID.step} frames at ` +
|
|
4834
|
+
`${MINIMAX_H3_FRAME_GRID.fps}fps, so ${options.model} delivers ` +
|
|
4835
|
+
`${formatDurationSeconds(durationLimits.min)}-${formatDurationSeconds(durationLimits.max)}s.`
|
|
4836
|
+
);
|
|
4837
|
+
}
|
|
4677
4838
|
}
|
|
4678
4839
|
} else if (options.video && isMiniMaxH3Model(options.model)) {
|
|
4679
|
-
|
|
4680
|
-
|
|
4840
|
+
const { min: minFrames, max: maxFrames, step: frameStep, fps: h3Fps } = MINIMAX_H3_FRAME_GRID;
|
|
4841
|
+
if (options.frames < minFrames || options.frames > maxFrames || (options.frames - minFrames) % frameStep !== 0) {
|
|
4842
|
+
fatalCliError(`MiniMax H3 frames must be ${minFrames} + n×${frameStep}, from ${minFrames} through ${maxFrames}.`, {
|
|
4681
4843
|
code: 'INVALID_ARGUMENT',
|
|
4682
|
-
details: { frames: options.frames, minimum:
|
|
4844
|
+
details: { frames: options.frames, minimum: minFrames, maximum: maxFrames, step: frameStep }
|
|
4683
4845
|
});
|
|
4684
4846
|
}
|
|
4685
|
-
options.fps =
|
|
4847
|
+
options.fps = h3Fps;
|
|
4686
4848
|
}
|
|
4687
4849
|
|
|
4688
4850
|
// Video dimensions:
|
|
@@ -7999,6 +8161,34 @@ function enforceHappyHorseReferenceCaps() {
|
|
|
7999
8161
|
}
|
|
8000
8162
|
}
|
|
8001
8163
|
|
|
8164
|
+
function enforceMiniMaxH3ReferenceCaps() {
|
|
8165
|
+
const { images, videos, audios } = effectiveSeedanceReferenceCounts();
|
|
8166
|
+
const total = images + videos + audios;
|
|
8167
|
+
const checks = [
|
|
8168
|
+
['images', images, MINIMAX_H3_REFERENCE_LIMITS.images],
|
|
8169
|
+
['videos', videos, MINIMAX_H3_REFERENCE_LIMITS.videos],
|
|
8170
|
+
['audios', audios, MINIMAX_H3_REFERENCE_LIMITS.audios]
|
|
8171
|
+
];
|
|
8172
|
+
for (const [kind, count, maximum] of checks) {
|
|
8173
|
+
if (count > maximum) {
|
|
8174
|
+
fatalCliError(`MiniMax H3 r2v supports at most ${maximum} reference ${kind} (got ${count}).`, {
|
|
8175
|
+
code: 'MINIMAX_H3_REFERENCE_LIMIT_EXCEEDED',
|
|
8176
|
+
details: { kind, count, maximum, limits: MINIMAX_H3_REFERENCE_LIMITS }
|
|
8177
|
+
});
|
|
8178
|
+
}
|
|
8179
|
+
}
|
|
8180
|
+
if (total > MINIMAX_H3_REFERENCE_LIMITS.assets) {
|
|
8181
|
+
fatalCliError(
|
|
8182
|
+
`MiniMax H3 r2v supports at most ${MINIMAX_H3_REFERENCE_LIMITS.assets} reference files in total `
|
|
8183
|
+
+ `(got ${total}: ${images} image, ${videos} video, ${audios} audio).`,
|
|
8184
|
+
{
|
|
8185
|
+
code: 'MINIMAX_H3_REFERENCE_LIMIT_EXCEEDED',
|
|
8186
|
+
details: { images, videos, audios, total, limits: MINIMAX_H3_REFERENCE_LIMITS }
|
|
8187
|
+
}
|
|
8188
|
+
);
|
|
8189
|
+
}
|
|
8190
|
+
}
|
|
8191
|
+
|
|
8002
8192
|
function resolveMultiAngleOutputConfig(outputPath, outputFormat) {
|
|
8003
8193
|
if (!outputPath) return null;
|
|
8004
8194
|
const ext = extname(outputPath);
|
|
@@ -9546,6 +9736,26 @@ function buildVideoEstimateParams({ tokenType, steps }) {
|
|
|
9546
9736
|
return params;
|
|
9547
9737
|
}
|
|
9548
9738
|
|
|
9739
|
+
function isMiniMaxH3ExtendedDurationEstimateError(err) {
|
|
9740
|
+
const actualDuration = options.frames
|
|
9741
|
+
? options.frames / options.fps
|
|
9742
|
+
: options.duration;
|
|
9743
|
+
return isMiniMaxH3Model(options.model)
|
|
9744
|
+
&& actualDuration > 10
|
|
9745
|
+
&& /duration must be between 1 and 10 seconds/i.test(String(err?.message || err || ''));
|
|
9746
|
+
}
|
|
9747
|
+
|
|
9748
|
+
function buildMiniMaxH3EstimateUnavailableError(cause) {
|
|
9749
|
+
const err = new Error(
|
|
9750
|
+
'MiniMax H3 generation supports clips through 15.08 seconds, but this client cannot pre-estimate clips over 10 seconds.'
|
|
9751
|
+
);
|
|
9752
|
+
err.code = 'VIDEO_COST_ESTIMATE_UNAVAILABLE';
|
|
9753
|
+
err.retryable = false;
|
|
9754
|
+
err.hint = 'Submit without --estimate-video-cost so the server can validate balance when the render starts, or estimate a clip of 10 seconds or less.';
|
|
9755
|
+
err.cause = cause;
|
|
9756
|
+
return err;
|
|
9757
|
+
}
|
|
9758
|
+
|
|
9549
9759
|
async function ensureSufficientVideoBalance(client, log) {
|
|
9550
9760
|
if (!options.video || options.estimateVideoCost) return;
|
|
9551
9761
|
// Sogni Unlimited bills covered video jobs to the subscription, so a low
|
|
@@ -9587,7 +9797,12 @@ async function ensureSufficientVideoBalance(client, log) {
|
|
|
9587
9797
|
estimate = await client.estimateVideoCost(buildVideoEstimateParams({ tokenType, steps }));
|
|
9588
9798
|
} catch (err) {
|
|
9589
9799
|
if (!options.quiet) {
|
|
9590
|
-
|
|
9800
|
+
if (isMiniMaxH3ExtendedDurationEstimateError(err)) {
|
|
9801
|
+
const estimateError = buildMiniMaxH3EstimateUnavailableError(err);
|
|
9802
|
+
log(`Note: ${estimateError.message} ${estimateError.hint}`);
|
|
9803
|
+
} else {
|
|
9804
|
+
log(`Warning: Could not estimate video cost (${err?.message || 'error'})`);
|
|
9805
|
+
}
|
|
9591
9806
|
}
|
|
9592
9807
|
return;
|
|
9593
9808
|
}
|
|
@@ -10302,7 +10517,15 @@ async function main() {
|
|
|
10302
10517
|
tokenType: options.tokenType || 'spark',
|
|
10303
10518
|
steps
|
|
10304
10519
|
});
|
|
10305
|
-
|
|
10520
|
+
let estimate;
|
|
10521
|
+
try {
|
|
10522
|
+
estimate = await client.estimateVideoCost(estimateParams);
|
|
10523
|
+
} catch (err) {
|
|
10524
|
+
if (isMiniMaxH3ExtendedDurationEstimateError(err)) {
|
|
10525
|
+
throw buildMiniMaxH3EstimateUnavailableError(err);
|
|
10526
|
+
}
|
|
10527
|
+
throw err;
|
|
10528
|
+
}
|
|
10306
10529
|
if (options.json) {
|
|
10307
10530
|
const duration = options.frames ? Math.max(1, Math.round((options.frames - 1) / options.fps)) : options.duration;
|
|
10308
10531
|
console.log(JSON.stringify({
|
|
@@ -10406,11 +10629,17 @@ async function main() {
|
|
|
10406
10629
|
if (options.refImage) log(`Reference image: ${options.refImage}`);
|
|
10407
10630
|
if (options.refImageEnd) log(`End frame: ${options.refImageEnd}`);
|
|
10408
10631
|
if (options.refAudio) log(`Reference audio: ${options.refAudio}`);
|
|
10632
|
+
for (const referenceAudio of options.refAudios) log(`Additional reference audio: ${referenceAudio}`);
|
|
10409
10633
|
if (options.referenceAudioIdentity) log(`Voice identity: ${options._voicePersonaResolvedName || options.referenceAudioIdentity}`);
|
|
10410
10634
|
if (options.refVideo) log(`Reference video: ${options.refVideo}`);
|
|
10635
|
+
for (const referenceVideo of options.refVideos) log(`Additional reference video: ${referenceVideo}`);
|
|
10636
|
+
if (options.videoWorkflow === 'r2v') {
|
|
10637
|
+
for (const contextImage of options.contextImages) log(`Loose reference image: ${contextImage}`);
|
|
10638
|
+
}
|
|
10411
10639
|
|
|
10412
10640
|
const isSeedanceVideo = isSeedanceModel(options.model);
|
|
10413
10641
|
const isHappyHorseVideo = isHappyHorseModel(options.model);
|
|
10642
|
+
const isMiniMaxH3R2v = isMiniMaxH3R2vModel(options.model);
|
|
10414
10643
|
// Vendor video models forward image references as HTTPS URL arrays (or
|
|
10415
10644
|
// Sogni-hosted uploads) instead of inline buffers; HappyHorse takes
|
|
10416
10645
|
// image-only references (i2v first_frame, r2v reference_image).
|
|
@@ -10425,6 +10654,9 @@ async function main() {
|
|
|
10425
10654
|
// HAPPYHORSE_REFERENCE_LIMITS (per-mode image-only caps).
|
|
10426
10655
|
enforceHappyHorseReferenceCaps();
|
|
10427
10656
|
}
|
|
10657
|
+
if (isMiniMaxH3R2v) {
|
|
10658
|
+
enforceMiniMaxH3ReferenceCaps();
|
|
10659
|
+
}
|
|
10428
10660
|
const seedanceReferenceImageUrls = [];
|
|
10429
10661
|
const seedanceReferenceVideoUrls = [];
|
|
10430
10662
|
const seedanceReferenceAudioUrls = [];
|
|
@@ -10540,9 +10772,25 @@ async function main() {
|
|
|
10540
10772
|
let audioBuffer = options.refAudio && !useRefAudioUrl ? await fetchMediaBuffer(options.refAudio) : undefined;
|
|
10541
10773
|
let videoBuffer = options.refVideo && !useRefVideoUrl ? await fetchMediaBuffer(options.refVideo) : undefined;
|
|
10542
10774
|
let maskBuffer = options.refMask ? await fetchMediaBuffer(options.refMask) : undefined;
|
|
10775
|
+
const contextImageBuffers = isMiniMaxH3R2v
|
|
10776
|
+
? await Promise.all(options.contextImages.map((reference) => fetchMediaBuffer(reference)))
|
|
10777
|
+
: [];
|
|
10778
|
+
let additionalAudioBuffers = isMiniMaxH3R2v
|
|
10779
|
+
? await Promise.all(options.refAudios.map((reference) => fetchMediaBuffer(reference)))
|
|
10780
|
+
: [];
|
|
10781
|
+
const additionalVideoBuffers = isMiniMaxH3R2v
|
|
10782
|
+
? await Promise.all(options.refVideos.map((reference) => fetchMediaBuffer(reference)))
|
|
10783
|
+
: [];
|
|
10543
10784
|
if (audioBuffer) {
|
|
10544
10785
|
audioBuffer = await prepareReferenceAudioForVideoBuffer(audioBuffer, options.refAudio);
|
|
10545
10786
|
}
|
|
10787
|
+
if (additionalAudioBuffers.length > 0) {
|
|
10788
|
+
additionalAudioBuffers = await Promise.all(
|
|
10789
|
+
additionalAudioBuffers.map((buffer, index) =>
|
|
10790
|
+
prepareReferenceAudioForVideoBuffer(buffer, options.refAudios[index])
|
|
10791
|
+
)
|
|
10792
|
+
);
|
|
10793
|
+
}
|
|
10546
10794
|
if (
|
|
10547
10795
|
videoBuffer
|
|
10548
10796
|
&& isSeedanceVideo
|
|
@@ -10698,6 +10946,9 @@ async function main() {
|
|
|
10698
10946
|
if (endImageBuffer) {
|
|
10699
10947
|
projectConfig.referenceImageEnd = endImageBuffer;
|
|
10700
10948
|
}
|
|
10949
|
+
if (contextImageBuffers.length > 0) {
|
|
10950
|
+
projectConfig.contextImages = contextImageBuffers;
|
|
10951
|
+
}
|
|
10701
10952
|
applyLtxTransitionLora(
|
|
10702
10953
|
projectConfig,
|
|
10703
10954
|
options.model,
|
|
@@ -10707,6 +10958,9 @@ async function main() {
|
|
|
10707
10958
|
if (audioBuffer) {
|
|
10708
10959
|
projectConfig.referenceAudio = audioBuffer;
|
|
10709
10960
|
}
|
|
10961
|
+
if (additionalAudioBuffers.length > 0) {
|
|
10962
|
+
projectConfig.referenceAudios = additionalAudioBuffers;
|
|
10963
|
+
}
|
|
10710
10964
|
if (options.audioStart !== null && !useRefAudioUrl) {
|
|
10711
10965
|
projectConfig.audioStart = options.audioStart;
|
|
10712
10966
|
}
|
|
@@ -10719,6 +10973,9 @@ async function main() {
|
|
|
10719
10973
|
if (videoBuffer) {
|
|
10720
10974
|
projectConfig.referenceVideo = videoBuffer;
|
|
10721
10975
|
}
|
|
10976
|
+
if (additionalVideoBuffers.length > 0) {
|
|
10977
|
+
projectConfig.referenceVideos = additionalVideoBuffers;
|
|
10978
|
+
}
|
|
10722
10979
|
if (seedanceReferenceImageUrls.length > 0) {
|
|
10723
10980
|
projectConfig.referenceImageUrls = seedanceReferenceImageUrls;
|
|
10724
10981
|
}
|
|
@@ -10734,21 +10991,25 @@ async function main() {
|
|
|
10734
10991
|
if (options.seed !== null && options.seed !== undefined) {
|
|
10735
10992
|
projectConfig.seed = options.seed;
|
|
10736
10993
|
}
|
|
10737
|
-
if (
|
|
10994
|
+
if (options.apiGenerateAudio !== null && isMiniMaxH3Model(options.model)) {
|
|
10995
|
+
projectConfig.generateAudio = options.apiGenerateAudio;
|
|
10996
|
+
}
|
|
10997
|
+
if (Number.isFinite(steps) && !isHappyHorseVideo && !isMiniMaxH3Model(options.model)) {
|
|
10738
10998
|
// HappyHorse routes through the vendor-job path and ignores `steps`,
|
|
10739
|
-
// mirroring Seedance (whose model defaults already omit them).
|
|
10999
|
+
// mirroring Seedance (whose model defaults already omit them). H3 has
|
|
11000
|
+
// fixed sampling parameters and should receive no overrides.
|
|
10740
11001
|
projectConfig.steps = steps;
|
|
10741
11002
|
}
|
|
10742
|
-
if (guidance !== null && guidance !== undefined) {
|
|
11003
|
+
if (guidance !== null && guidance !== undefined && !isMiniMaxH3Model(options.model)) {
|
|
10743
11004
|
projectConfig.guidance = guidance;
|
|
10744
11005
|
}
|
|
10745
|
-
if (modelDefaults?.sampler) {
|
|
11006
|
+
if (modelDefaults?.sampler && !isMiniMaxH3Model(options.model)) {
|
|
10746
11007
|
projectConfig.sampler = modelDefaults.sampler;
|
|
10747
11008
|
}
|
|
10748
|
-
if (modelDefaults?.scheduler) {
|
|
11009
|
+
if (modelDefaults?.scheduler && !isMiniMaxH3Model(options.model)) {
|
|
10749
11010
|
projectConfig.scheduler = modelDefaults.scheduler;
|
|
10750
11011
|
}
|
|
10751
|
-
if (modelDefaults?.shift !== null && modelDefaults?.shift !== undefined) {
|
|
11012
|
+
if (modelDefaults?.shift !== null && modelDefaults?.shift !== undefined && !isMiniMaxH3Model(options.model)) {
|
|
10752
11013
|
projectConfig.shift = modelDefaults.shift;
|
|
10753
11014
|
}
|
|
10754
11015
|
if (options.videoControlNetName && !isSeedanceModel(options.model)) {
|
|
@@ -11123,6 +11384,7 @@ async function main() {
|
|
|
11123
11384
|
if (options.audioStart !== null) renderInfo.audioStart = options.audioStart;
|
|
11124
11385
|
if (options.audioDuration !== null) renderInfo.audioDuration = options.audioDuration;
|
|
11125
11386
|
}
|
|
11387
|
+
if (options.refAudios.length > 0) renderInfo.refAudios = options.refAudios;
|
|
11126
11388
|
if (options.referenceAudioIdentity) {
|
|
11127
11389
|
renderInfo.referenceAudioIdentity = options.referenceAudioIdentity;
|
|
11128
11390
|
if (options._voicePersonaResolvedName || options.voicePersonaName) {
|
|
@@ -11133,6 +11395,10 @@ async function main() {
|
|
|
11133
11395
|
renderInfo.refVideo = options.refVideo;
|
|
11134
11396
|
if (options.videoStart !== null) renderInfo.videoStart = options.videoStart;
|
|
11135
11397
|
}
|
|
11398
|
+
if (options.refVideos.length > 0) renderInfo.refVideos = options.refVideos;
|
|
11399
|
+
if (options.apiGenerateAudio !== null && isMiniMaxH3Model(options.model)) {
|
|
11400
|
+
renderInfo.generateAudio = options.apiGenerateAudio;
|
|
11401
|
+
}
|
|
11136
11402
|
if (options.videoControlNetName && !isSeedanceModel(options.model)) {
|
|
11137
11403
|
renderInfo.controlNet = {
|
|
11138
11404
|
name: options.videoControlNetName,
|
|
@@ -11350,6 +11616,7 @@ async function main() {
|
|
|
11350
11616
|
if (options.audioStart !== null) output.audioStart = options.audioStart;
|
|
11351
11617
|
if (options.audioDuration !== null) output.audioDuration = options.audioDuration;
|
|
11352
11618
|
}
|
|
11619
|
+
if (options.refAudios.length > 0) output.refAudios = options.refAudios;
|
|
11353
11620
|
if (options.referenceAudioIdentity) {
|
|
11354
11621
|
output.referenceAudioIdentity = options.referenceAudioIdentity;
|
|
11355
11622
|
if (options._voicePersonaResolvedName || options.voicePersonaName) {
|
|
@@ -11360,6 +11627,10 @@ async function main() {
|
|
|
11360
11627
|
output.refVideo = options.refVideo;
|
|
11361
11628
|
if (options.videoStart !== null) output.videoStart = options.videoStart;
|
|
11362
11629
|
}
|
|
11630
|
+
if (options.refVideos.length > 0) output.refVideos = options.refVideos;
|
|
11631
|
+
if (options.apiGenerateAudio !== null && isMiniMaxH3Model(options.model)) {
|
|
11632
|
+
output.generateAudio = options.apiGenerateAudio;
|
|
11633
|
+
}
|
|
11363
11634
|
if (options.videoControlNetName && !isSeedanceModel(options.model)) {
|
|
11364
11635
|
output.controlNet = {
|
|
11365
11636
|
name: options.videoControlNetName,
|
package/update-check.mjs
CHANGED
|
@@ -292,8 +292,9 @@ export const AGENT_NOTICE_THROTTLE_MS = 24 * 60 * 60 * 1000;
|
|
|
292
292
|
|
|
293
293
|
export function formatAgentUpdateNotice({ currentVersion, latestVersion } = {}) {
|
|
294
294
|
return `[sogni-agent] Update available: ${currentVersion} -> ${latestVersion}. ` +
|
|
295
|
-
'Agent: after finishing the current task, let the user know a newer Sogni
|
|
295
|
+
'Agent: after finishing the current task, let the user know a newer Sogni CLI package exists ' +
|
|
296
296
|
'and offer to run `sogni-agent self-update` (then `sogni-agent --whats-new`). ' +
|
|
297
|
+
'That updates the global CLI only; copied personal skill bundles must be refreshed through their original setup flow and loaded in a new session. ' +
|
|
297
298
|
'If they decline, run `sogni-agent --snooze-update` to pause these reminders.';
|
|
298
299
|
}
|
|
299
300
|
|
|
@@ -472,6 +473,7 @@ export function runSelfUpdate({
|
|
|
472
473
|
return result.status;
|
|
473
474
|
}
|
|
474
475
|
clearState(statePath);
|
|
475
|
-
log('Updated. Run `sogni-agent --whats-new` to see what changed.');
|
|
476
|
+
log('Updated the global CLI. Run `sogni-agent --whats-new` to see what changed.');
|
|
477
|
+
log('Copied personal skill bundles are not refreshed by self-update; rerun their original setup flow and start a new agent session.');
|
|
476
478
|
return 0;
|
|
477
479
|
}
|
package/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const PACKAGE_VERSION = '3.
|
|
1
|
+
export const PACKAGE_VERSION = '3.26.1';
|