@sogni-ai/sogni-creative-agent-skill 3.41.0 → 3.43.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.
@@ -3,7 +3,7 @@ name: sogni-creative-agent-skill
3
3
  description: "Generate and edit images, upscale images, create video and music, animate image folders into seamless reels, and manage reusable personas with Sogni AI. Use when a Hermes user asks to draw, render, upscale, edit or restyle an image, animate an image, make a video, create music or lyrics, build a media workflow, apply a saved identity, or refine an earlier Sogni result."
4
4
  license: MIT
5
5
  metadata:
6
- version: "3.41.0"
6
+ version: "3.43.0"
7
7
  author: Sogni AI
8
8
  hermes:
9
9
  category: creative
@@ -87,10 +87,12 @@ becomes 1080 or 1440 (default 1440; 1080 when the source is below 720p) while
87
87
  the aspect ratio, every frame, the exact frame rate, and the original audio are
88
88
  kept; nothing is trimmed, cropped, restyled, or interpolated. Sources must be
89
89
  at most 768px on the short edge and about 1344x768 pixels overall (768x1344 in
90
- portrait), 1-362 frames (about 15 seconds), 1-60 fps,
90
+ portrait), 1-60 fps,
91
91
  SDR with square pixels, and 100 MB or less; 1440p needs a source short edge of
92
92
  at least 720px and 1080p at least 540px. 4K is not available. The direct CLI
93
- reads the exact frame count and rate with a local ffprobe.
93
+ reads the exact frame count and rate with a local ffprobe. The server sets the
94
+ maximum clip length; do not quote a fixed limit. Relay a server rejection if
95
+ the source is too long, without trimming it or switching to a generative tool.
94
96
 
95
97
  For Krea 2 Turbo, hosted/chat planning may use the creative-agent selector
96
98
  `krea-2-turbo`; direct CLI `-m` uses the worker model ID
@@ -202,6 +202,85 @@ supplies no words, author one concise line that realizes that request. If there
202
202
  is no vocal intent, do not invent speech. Use a compound ID such as `(S1,S2)`
203
203
  only when already-numbered speakers vocalize together.
204
204
 
205
+ ### Writing the body the way the Base model reads it
206
+
207
+ Audited 2026-09-10 against MiniMax's `VIDEO_PROMPT_WRITING_GUIDE_base_en.md`
208
+ (the guide the h3-prompt-writing skill wraps) and the LightX2V rewriter that
209
+ was trained on the same rewrite policy. The open-weights H3-Base checkpoint
210
+ reads the prompt directly with no hosted Context-IR rewrite in front of it, so
211
+ every sentence is model input. Everything below is what the official examples
212
+ do and never deviate from:
213
+
214
+ - **Open `[Shot 1]` with the medium and look as concrete facts** (`Live-action,
215
+ cinematic`, `2D-animated`, `3D CG`, `claymation`, `watercolor`, `vintage
216
+ film`) plus the initial composition. In frame-anchored modes derive the look
217
+ from the picture. Genre, mood, audience, and intent labels (`horror`, `eerie`,
218
+ `adult`, `tense`, `jump scare`) are not visible and never appear in an
219
+ official example; write the light, surfaces, distances, movements, and sounds
220
+ that produce them.
221
+ - **Every sentence is a depiction.** The guide's rule is that every detail must
222
+ correspond to something visible or audible. Never write notes to the model
223
+ (`preserve believable anatomy`, `keep the foley prominent`, `hard cut, no
224
+ morph or dissolve`, `hold six frames only`, `this anchor is excluded from the
225
+ presentation`) and never shout in capitals.
226
+ - **State exclusions as positive facts.** There is no negative field and the
227
+ contract has no negation grammar, so `no people, faces or words` names the
228
+ things it tries to remove. Write `the hall is empty and still`, `the walls are
229
+ bare`, `the air is clear and sharply lit`. Keep a user-supplied exclusion only
230
+ when it cannot be stated positively, phrased once. `non_diegetic_music: N/A`
231
+ is the reliable way to keep score out even when the rest of the structure is
232
+ loose.
233
+ - **Clock times exist only on cut markers.** `[Shot 2] At 00:03.500, the camera
234
+ cuts to …` is the only place a time appears. Inside a shot, order events with
235
+ words (`early in the shot`, `as the doors part`, `toward the end`). In-shot
236
+ ranges such as `From 00:02.000 to 00:04.000` are not H3 syntax; the shaper now
237
+ flags them.
238
+ - **Camera moves use the official vocabulary** as natural prose: `Zoom In/Out`,
239
+ `Push In/Pull Out`, `Pan Left/Right`, `Truck Left/Right`, `Tilt Up/Down`,
240
+ `Pedestal Up/Down`, `Arc Shot`, `Tracking Shot`, `Static Shot`, `Shake
241
+ Slightly/Strongly`, `POV`, `Roll Clockwise/Counterclockwise`, with `with
242
+ small/large amplitude` and `at slow/fast speed` only when they matter. One
243
+ primary move per shot. First-person coverage is a `POV shot`; `handheld` reads
244
+ as camera shake, so write it only when shake is wanted.
245
+ - **Frame-anchored modes describe the path, not the pictures.** The model sees
246
+ every attached picture; describing one back at length, or adding objects,
247
+ text, fluids, or figures that are not in it, produces crossfades and invented
248
+ props. I2VA: first-frame anchor → action onset → continuous development →
249
+ result or reaction. FL2VA: first-frame state → observable intermediate
250
+ changes → progressively narrowing differences → last-frame state, in **one
251
+ continuous shot** unless the user explicitly asks for cuts; begin `in the
252
+ position and framing established by Picture 1`, carry the identity anchors
253
+ that must stay fixed into the motion sentences, and end by settling `into the
254
+ pose, spacing, and composition established by Picture 2 at the end of the
255
+ shot`. L2VA: plausible preceding state → explicit action and transition path →
256
+ gradual convergence in the final shot → last-frame landing on `<Picture 1>`.
257
+ Exact composition matching applies only at a picture's assigned timestamp.
258
+ - **Bind every vocal line to its speaker in the same sentence:**
259
+ `The young woman with a quiet, breathy voice (S1) says: <d>[English] I get
260
+ off at the next station.</d>` and `The two children (S1,S2) shout together,
261
+ <d>[English] Wait for us!</d>`.
262
+ - **Length.** Official bodies run roughly 150–450 words; Ref2VA
263
+ `detailed_description` targets 350–500. Long is fine when every sentence is a
264
+ visible or audible event.
265
+
266
+ ### Worked example — first frame → last frame
267
+
268
+ ```text
269
+ User ask (two uploaded stills): "the elevator doors open onto the laundry and we walk in"
270
+
271
+ sogni-agent -q --video -m minimax-h3-flf2v-balanced --ref ./elevator.png --ref-end ./laundry.png --duration 8 -w 1344 -h 768 -o ./press-b.mp4 "<prompt below>"
272
+ ```
273
+
274
+ ```text
275
+ How the reference pictures align with the target video — Picture 1 (from Shot 1) aligns with the 0.00-second mark of the target video; Picture 2 (from Shot 1) aligns with the 8.00-second mark of the target video.
276
+
277
+ integrated_multimodal_description: [Shot 1] Live-action, cinematic, a POV shot at standing eye level begins in the position and framing established by Picture 1, facing the closed brass elevator doors from inside the small wood-panelled vestibule with its dark red velvet panels, marble floor and crystal ceiling lamp. Early in the shot the lamp flickers twice and the floor shudders as the car settles. The brass doors slide apart with a slow steady motion, and bright white fluorescent light from beyond spills across the marble floor and the brass door frame. Through the widening gap the long white-tiled laundry hall comes into view: the raised tiled walkway with steel rails, the row of round steel washing-machine doors along the left wall, and the open steel service door with its amber wall lamp at the far right. The camera pushes in with large amplitude at slow speed through the open doorway, the brass frame sliding out of the picture on both sides as the tiled floor takes over the foreground and the red brake lever comes into view at the near left. Toward the end the differences narrow as the camera glides forward and settles into the composition, spacing and lighting established by Picture 2 at the end of the shot, with the machines still, the grey curtains hanging straight and the hall empty and quiet.
278
+
279
+ overall_soundscape: A low electrical hum from the crystal lamp, a muffled cable groan and a soft mechanical shudder as the car settles, then the smooth metallic slide of the brass doors parting. Beyond the doors an even ventilation hum and the buzz of fluorescent tubes grow louder over slow footsteps that move from marble onto tile.
280
+
281
+ non_diegetic_music: N/A
282
+ ```
283
+
205
284
  ### Worked example — text-to-video
206
285
 
207
286
  ```text
@@ -358,8 +437,9 @@ How the reference pictures align with the target video — Picture 1 (from Shot
358
437
  ```
359
438
 
360
439
  `N` is the index of the actual final shot (`Shot 1` for the usual single-shot
361
- transition), and `S.SS` is the effective duration to exactly two decimal places
362
- — `10.13` for 243 frames at 24 fps (243 ÷ 24 = 10.125, rounded up).
440
+ transition; FL2VA favours one continuous shot and cuts only when the user asks),
441
+ and `S.SS` is the effective duration to exactly two decimal places — `10.13` for
442
+ 243 frames at 24 fps (243 ÷ 24 = 10.125, rounded up).
363
443
 
364
444
  ### MiniMax H3 reference-to-video (r2v)
365
445
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sogni-creative-agent",
3
- "version": "3.41.0",
3
+ "version": "3.43.0",
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",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sogni-creative-agent",
3
- "version": "3.41.0",
3
+ "version": "3.43.0",
4
4
  "description": "Create images, generative video, music, and polished image-folder loops with Sogni AI.",
5
5
  "author": {
6
6
  "name": "Sogni AI",
package/CHANGELOG.md CHANGED
@@ -1,3 +1,28 @@
1
+ ## [3.43.0](https://github.com/Sogni-AI/sogni-creative-agent-skill/compare/v3.42.0...v3.43.0) (2026-09-10)
2
+
3
+ ### Features
4
+
5
+ * Teach MiniMax H3 prompt writing from MiniMax's official Base guide: `[Shot 1]` opens with the picture's own look rather than a genre label, every sentence depicts something seen or heard, exclusions are positive facts, clock times live only on cut markers, first-to-last-frame prompts describe the path between the pictures in one continuous shot, and each vocal line binds to its speaker. Adds a first-to-last-frame worked example.
6
+ * The bundled creative-agent runtime (1.60.0) applies the same rules and flags in-shot clock times when it writes MiniMax H3 prompts.
7
+
8
+ ### Bug Fixes
9
+
10
+ * `--upscale-video` relays the server's own refusal when a source is too long, with a hint to trim or split the clip, for direct and wrapped SDK errors.
11
+ * Align the public runtime with Intelligence Client 3.29.2 and Sogni Client 5.40.0.
12
+
13
+ ## [3.42.0](https://github.com/Sogni-AI/sogni-creative-agent-skill/compare/v3.41.0...v3.42.0) (2026-09-10)
14
+
15
+ ### Features
16
+
17
+ * Add a Goose host launcher and document skill and MCP extension installation.
18
+ * Publish `sogni-agent-mcp` as a standalone command that uses the CLI bundled in the same npm package, with a global-install fallback for desktop extension bundles.
19
+
20
+ ### Bug Fixes
21
+
22
+ * Include the shared attribution and version modules in the standalone Claude Desktop bundle, with a startup check that runs outside the repository.
23
+ * Align the public runtime dependencies with Intelligence Client 3.29.1 and Sogni Client 5.39.1.
24
+ * Let the server decide FlashVSR's maximum clip length, preserving the exact source timing and relaying any length rejection to the user.
25
+
1
26
  ## [3.41.0](https://github.com/Sogni-AI/sogni-creative-agent-skill/compare/v3.40.1...v3.41.0) (2026-09-10)
2
27
 
3
28
  ### Features
package/README.md CHANGED
@@ -15,12 +15,13 @@
15
15
 
16
16
  ---
17
17
 
18
- **Sogni Creative Agent Skill** plugs into the agent runtime you already use — Claude Code, [OpenClaw](https://github.com/OpenClaw/OpenClaw), [Hermes Agent](https://hermes-agent.nousresearch.com/), [Manus AI](https://manus.im), and others — and gives it production-quality image, video, and music generation through a single CLI: `sogni-agent`.
18
+ **Sogni Creative Agent Skill** plugs into the agent runtime you already use — Claude Code, [goose](https://goose-docs.ai/), [OpenClaw](https://github.com/OpenClaw/OpenClaw), [Hermes Agent](https://hermes-agent.nousresearch.com/), [Manus AI](https://manus.im), and others — and gives it production-quality image, video, and music generation through a single CLI: `sogni-agent`.
19
19
 
20
- It ships three ways:
20
+ It ships four ways:
21
21
 
22
22
  - a standalone Node.js CLI (`sogni-agent`)
23
23
  - a skill source that any [`SKILL.md`](./SKILL.md)-aware agent can load
24
+ - a local MCP stdio server (`sogni-agent-mcp`) for goose, Claude Desktop, Codex, and other MCP clients
24
25
  - a published [OpenClaw](https://github.com/OpenClaw/OpenClaw) plugin
25
26
 
26
27
  With this skill, an agent can:
@@ -46,6 +47,7 @@ With this skill, an agent can:
46
47
  - [Claude Code plugin](#claude-code-plugin)
47
48
  - [OpenAI Codex CLI](#openai-codex-cli)
48
49
  - [Hermes Agent](#hermes-agent)
50
+ - [goose](#goose)
49
51
  - [OpenClaw plugin](#openclaw-plugin)
50
52
  - [ChatGPT (Custom GPT)](#chatgpt-custom-gpt)
51
53
  - [Manus / other SKILL.md frameworks](#manus--other-skillmd-frameworks)
@@ -209,6 +211,28 @@ npx setup-sogni-agent-skill --only=hermes
209
211
  Start Hermes once before running the installer so `~/.hermes/` exists. If the
210
212
  selected local runtime is not detected, setup exits before installing anything.
211
213
 
214
+ ### goose
215
+
216
+ [goose](https://goose-docs.ai/) supports both Agent Skills and MCP extensions. Pick one integration per installation so goose does not receive duplicate Sogni instructions and tools.
217
+
218
+ To install the skill globally:
219
+
220
+ ```bash
221
+ npx skills add Sogni-AI/sogni-creative-agent-skill --global --agent goose --skill sogni-creative-agent-skill --yes
222
+ npm install -g @sogni-ai/sogni-creative-agent-skill@latest
223
+ sogni-agent-goose doctor
224
+ ```
225
+
226
+ The skill is discovered from goose's global skill directories and uses the `sogni-agent-goose` launcher for host attribution.
227
+
228
+ To run the MCP extension directly instead:
229
+
230
+ ```bash
231
+ goose session --with-extension "npx -y --package @sogni-ai/sogni-creative-agent-skill@latest sogni-agent-mcp"
232
+ ```
233
+
234
+ The same command can be added permanently from `goose configure` as a Command-line Extension. Once the public listing is accepted, it can also be installed from the [goose Extensions directory](https://goose-docs.ai/extensions/). The MCP package is self-contained; it reads `SOGNI_API_KEY` from the extension environment or the existing `~/.config/sogni/credentials` file.
235
+
212
236
  ### OpenClaw plugin
213
237
 
214
238
  The skill is published on ClawHub, so the simplest install is:
@@ -278,12 +302,13 @@ The package installs one launcher shim per host alongside `sogni-agent`. Each sh
278
302
  | Host | Command | Reported framework |
279
303
  | --- | --- | --- |
280
304
  | Hermes | `sogni-agent-hermes` | `hermes-agent` |
305
+ | goose | `sogni-agent-goose` | `goose` |
281
306
  | OpenAI Codex CLI | `sogni-agent-codex` | `codex` |
282
307
  | Claude Code | `sogni-agent-claude-code` | `claude-code` |
283
308
  | OpenClaw | `sogni-agent` | `openclaw` (detected from `OPENCLAW_PLUGIN_CONFIG`) |
284
309
  | Anything else | `sogni-agent` | `unknown` |
285
310
 
286
- 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`.
311
+ The Claude Code and Codex plugin surfaces already pin their launcher, and OpenClaw is detected automatically. Goose and Hermes skill installs should use their matching launchers 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`.
287
312
 
288
313
  ### Verify your install
289
314
 
package/SKILL.md CHANGED
@@ -2,7 +2,7 @@
2
2
  name: sogni-creative-agent-skill
3
3
  description: "Sogni Creative Agent Skill: agent skill and CLI for image, video, and music generation using Sogni AI's decentralized GPU network. Supports promptless RTX VSR image upscaling through 16K, promptless FlashVSR video upscaling to 1080p/1440p, 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/H3 Balanced/LightX2V Turbo/FastH3 Turbo/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\", \"upscale an image\", \"upscale a video\", \"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.41.0"
5
+ version: "3.43.0"
6
6
  homepage: https://sogni.ai
7
7
  openclaw:
8
8
  emoji: "🎨"
@@ -40,7 +40,9 @@ npm install -g @sogni-ai/sogni-creative-agent-skill@latest
40
40
  sogni-agent --version
41
41
  ```
42
42
 
43
- Then configure the agent/runtime to use this `SKILL.md` and invoke the `sogni-agent` CLI. The one-command alternative `npx setup-sogni-agent-skill` auto-detects Claude Code, Codex CLI, and Hermes (it does not configure OpenClaw).
43
+ Then configure the agent/runtime to use this `SKILL.md` and invoke the `sogni-agent` CLI. The one-command alternative `npx setup-sogni-agent-skill` auto-detects Claude Code, Codex CLI, and Hermes (it does not configure Goose or OpenClaw).
44
+
45
+ For Goose, install this skill with `npx skills add Sogni-AI/sogni-creative-agent-skill --global --agent goose --skill sogni-creative-agent-skill --yes`, install the CLI above, then run `sogni-agent-goose doctor --json`. The [README](./README.md#goose) also covers the MCP extension.
44
46
 
45
47
  After any install or upgrade, verify with:
46
48
 
@@ -59,6 +61,7 @@ Always invoke the globally installed `sogni-agent` command. Do not call `node {{
59
61
  | Host | Command |
60
62
  | --- | --- |
61
63
  | Hermes | `sogni-agent-hermes` |
64
+ | Goose | `sogni-agent-goose` |
62
65
  | Codex CLI | `sogni-agent-codex` |
63
66
  | Claude Code | `sogni-agent-claude-code` |
64
67
  | OpenClaw | `sogni-agent` (detected automatically from `OPENCLAW_PLUGIN_CONFIG`) |
@@ -315,7 +318,7 @@ sogni-agent doctor --json
315
318
  ### Upscaling vs. generative editing
316
319
 
317
320
  - For a pure resolution increase that must preserve the source composition, use `--upscale` in direct CLI mode or `upscale_image` on hosted tool surfaces. RTX VSR is deterministic and promptless: never invent a prompt, and never route this request through `restore_photo`, `refine_result`, or `edit_image`.
318
- - For a pure resolution increase of an existing video (upscale, sharpen, HD/1080p/1440p/2K copy), use `--upscale-video` in direct CLI mode or `upscale_video` on hosted tool surfaces. FlashVSR is promptless and keeps every frame, the frame rate, the aspect ratio, and the audio. Never route it through `video_to_video` or `generate_video` unless the user names a generative model such as Seedance for a re-render. Output is 1080p or 1440p only — say so if the user asks for 4K. Sources must be ≤768px on the short edge (1440p needs ≥720px, 1080p ≥540px) and at most about 1344×768 pixels (768×1344 portrait), ≤362 frames (~15 s), 1–60 fps, and ≤100 MB.
321
+ - For a pure resolution increase of an existing video (upscale, sharpen, HD/1080p/1440p/2K copy), use `--upscale-video` in direct CLI mode or `upscale_video` on hosted tool surfaces. FlashVSR is promptless and keeps every frame, the frame rate, the aspect ratio, and the audio. Never route it through `video_to_video` or `generate_video` unless the user names a generative model such as Seedance for a re-render. Output is 1080p or 1440p only — say so if the user asks for 4K. Sources must be ≤768px on the short edge (1440p needs ≥720px, 1080p ≥540px) and at most about 1344×768 pixels (768×1344 portrait), 1–60 fps, and ≤100 MB. The server sets the maximum clip length; relay its error if a source is too long, without quoting a fixed limit.
319
322
  - `--upscale-scale` accepts 2, 3, or 4; `--target-longest-edge` overrides it. The CLI derives an aspect-preserving target box and aligns both edges to the worker's 8-pixel step. Both output edges must remain within 512–15360px. Targets above 7680px use JPG so 16K results remain practical to transfer and display. If a scale would make the short edge smaller than 512px, the CLI reports the minimum valid `--target-longest-edge` instead of stretching the image; aspect ratios that cannot fit the box are rejected.
320
323
 
321
324
  ### Segmentation and 3D reconstruction
package/attribution.mjs CHANGED
@@ -12,6 +12,9 @@ const FRAMEWORK_ALIASES = new Map([
12
12
  ['claude-ai', 'claude-desktop'],
13
13
  ['hermes', 'hermes-agent'],
14
14
  ['hermes-agent', 'hermes-agent'],
15
+ ['goose', 'goose'],
16
+ ['goose-cli', 'goose'],
17
+ ['goose-desktop', 'goose'],
15
18
  ['openclaw', 'openclaw'],
16
19
  ['clawdbot', 'openclaw'],
17
20
  ]);
@@ -1,7 +1,8 @@
1
- # Sogni Creative Agent — Claude Desktop extension
1
+ # Sogni Creative Agent — MCP extension
2
2
 
3
- A dependency-free MCP stdio server that wraps the globally installed
4
- `sogni-agent` CLI. `manifest.json` follows the MCPB spec (v0.3).
3
+ A dependency-free MCP stdio server that wraps the `sogni-agent` CLI bundled in
4
+ the same npm package, with global-install fallback for standalone MCPB installs.
5
+ `manifest.json` follows the MCPB spec (v0.3).
5
6
 
6
7
  ## Layout
7
8
 
@@ -46,6 +47,10 @@ The text block always keeps the full-resolution URL / saved path. Set
46
47
 
47
48
  npm run build:mcpb # → dist/sogni-creative-agent.mcpb
48
49
 
50
+ The bundle preserves `desktop-extension/server/` and includes the shared
51
+ attribution and version modules. Its root manifest points to that nested
52
+ server so every relative import resolves after a standalone install.
53
+
49
54
  ## Install paths
50
55
 
51
56
  1. `npx setup-sogni-agent-skill` writes a `claude_desktop_config.json` entry
@@ -55,9 +60,13 @@ The text block always keeps the full-resolution URL / saved path. Set
55
60
  3. OpenAI Codex uses the same server:
56
61
  `codex mcp add sogni-creative-agent -- node <abs path to server/index.mjs>`
57
62
  (the Codex CLI and IDE extension read `~/.codex/config.toml`).
63
+ 4. goose can launch the published server directly:
64
+ `goose session --with-extension "npx -y --package @sogni-ai/sogni-creative-agent-skill@latest sogni-agent-mcp"`.
58
65
 
59
- The server needs the CLI installed globally (`npm i -g @sogni-ai/sogni-creative-agent-skill`);
60
- when missing, every tool returns a hint to run `npx setup-sogni-agent-skill`.
66
+ The packaged `sogni-agent-mcp` command runs the CLI bundled beside it. MCPB
67
+ installs do not contain that sibling CLI, so they fall back to the global
68
+ installation (`npm i -g @sogni-ai/sogni-creative-agent-skill`); when missing,
69
+ every tool returns a setup hint.
61
70
 
62
71
  ## Testing
63
72
 
@@ -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.41.0",
5
+ "version": "3.43.0",
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",
File without changes
@@ -5,8 +5,10 @@
5
5
  import { existsSync, readdirSync } from 'node:fs';
6
6
  import { homedir } from 'node:os';
7
7
  import { delimiter, dirname, join } from 'node:path';
8
+ import { fileURLToPath } from 'node:url';
8
9
 
9
10
  const PKG_REL = join('@sogni-ai', 'sogni-creative-agent-skill');
11
+ const BUNDLED_AGENT_PATH = fileURLToPath(new URL('../../sogni-agent.mjs', import.meta.url));
10
12
 
11
13
  // System-wide npm global roots. Injectable (`roots`) so tests on machines that
12
14
  // really have the skill installed globally can sandbox resolution.
@@ -30,17 +32,23 @@ function nvmCandidates(home) {
30
32
  .map((v) => join(base, v, 'lib', 'node_modules', PKG_REL, 'sogni-agent.mjs'));
31
33
  }
32
34
 
33
- export function resolveAgentPath({ env = process.env, home = homedir(), roots = DEFAULT_GLOBAL_ROOTS } = {}) {
35
+ export function resolveAgentPath({
36
+ env = process.env,
37
+ home = homedir(),
38
+ roots = DEFAULT_GLOBAL_ROOTS,
39
+ bundledAgentPath = BUNDLED_AGENT_PATH,
40
+ } = {}) {
34
41
  if (env.SOGNI_AGENT_PATH) {
35
42
  return existsSync(env.SOGNI_AGENT_PATH) ? env.SOGNI_AGENT_PATH : null;
36
43
  }
37
44
  const candidates = [
45
+ bundledAgentPath,
38
46
  ...roots.map((root) => join(root, PKG_REL, 'sogni-agent.mjs')),
39
47
  join(home, '.npm-global', 'lib', 'node_modules', PKG_REL, 'sogni-agent.mjs'),
40
48
  ...(env.APPDATA ? [join(env.APPDATA, 'npm', 'node_modules', PKG_REL, 'sogni-agent.mjs')] : []),
41
49
  ...nvmCandidates(home),
42
50
  ];
43
- return candidates.find((p) => existsSync(p)) ?? null;
51
+ return candidates.find((p) => p && existsSync(p)) ?? null;
44
52
  }
45
53
 
46
54
  export function resolveFfmpegPath({ env = process.env } = {}) {
@@ -2453,7 +2453,7 @@ const PROMPT_CONTRACTS = [
2453
2453
  "contractId": "upscale_video_v1",
2454
2454
  "version": "1.0.0",
2455
2455
  "toolName": "upscale_video",
2456
- "baseDescription": "upscale_video performs promptless, deterministic FlashVSR super-resolution of exactly one\nuploaded or generated video. Use it when the user asks to upscale, enlarge, sharpen, or increase\nthe resolution of an existing video, or wants a 1080p, 1440p, 2K, or HD copy of it. The output\nkeeps every source frame, the exact frame rate, the full aspect ratio, and the original audio.\n\nDo not invent a prompt and do not route a pure video upscale through video_to_video,\ngenerate_video, extend_video, or replace_video_segment; those tools re-render or edit content.\nUse video_to_video only when the user explicitly names a generative model such as Seedance for\nthe re-render. Do not use upscale_image for videos.\n\nOmit sourceVideoIndex to use the latest generated video, falling back to the most recent upload.\nUse zero-based non-negative indices for generated videos; -1 selects the first uploaded video\nand -2 the second. targetResolution is the output short edge: omit it for 1440p (or 1080p when\nthe source is too small for 1440p), and set 1080 when the user asks for 1080p or Full HD.\nThe output is at most twice the source size, so 1440p needs a source short edge of 720-768px\nand 1080p needs 540-768px. Sources must also be at most about 1344x768 pixels (768x1344 in\nportrait), 362 frames (about 15 seconds), 1-60 fps, and 100 MB. If the tool reports the source\nis outside these limits, explain the limit to the user instead of switching to a generative\nvideo tool. It cannot produce 4K or any size above 1440p: when the user asks for one, say so and\noffer 1440p instead of silently delivering less.",
2456
+ "baseDescription": "upscale_video performs promptless, deterministic FlashVSR super-resolution of exactly one\nuploaded or generated video. Use it when the user asks to upscale, enlarge, sharpen, or increase\nthe resolution of an existing video, or wants a 1080p, 1440p, 2K, or HD copy of it. The output\nkeeps every source frame, the exact frame rate, the full aspect ratio, and the original audio.\n\nDo not invent a prompt and do not route a pure video upscale through video_to_video,\ngenerate_video, extend_video, or replace_video_segment; those tools re-render or edit content.\nUse video_to_video only when the user explicitly names a generative model such as Seedance for\nthe re-render. Do not use upscale_image for videos.\n\nOmit sourceVideoIndex to use the latest generated video, falling back to the most recent upload.\nUse zero-based non-negative indices for generated videos; -1 selects the first uploaded video\nand -2 the second. targetResolution is the output short edge: omit it for 1440p (or 1080p when\nthe source is too small for 1440p), and set 1080 when the user asks for 1080p or Full HD.\nThe output is at most twice the source size, so 1440p needs a source short edge of 720-768px\nand 1080p needs 540-768px. Sources must also be at most about 1344x768 pixels (768x1344 in\nportrait), 1-60 fps, and 100 MB. The server sets the maximum clip length and rejects a source\nthat is too long; never quote a length limit yourself. If the tool reports that the source is too\nlong or outside these limits, relay that error to the user instead of switching to a generative\nvideo tool. It cannot produce 4K or any size above 1440p: when the user asks for one, say so and\noffer 1440p instead of silently delivering less.",
2457
2457
  "parameterDocs": {
2458
2458
  "sourceVideoIndex": "Omit for the latest generated video, then the most recent upload. Generated videos are zero-based; -1/-2 select uploaded videos.",
2459
2459
  "targetResolution": "Output short edge in pixels: 1440 or 1080. Omit for the default (1440, or 1080 for sources under 720px); set 1080 when the user asks for 1080p or Full HD."
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+ process.env.SOGNI_AGENT_FRAMEWORK = 'goose';
3
+ process.env.SOGNI_AGENT_SURFACE = 'personal_skill';
4
+ await import('../sogni-agent.mjs');
package/llm.txt CHANGED
@@ -1,7 +1,7 @@
1
1
  # sogni-creative-agent-skill
2
2
 
3
3
  Agent skill and CLI for Sogni AI image, video, and music generation. Works as
4
- a skill source for Claude Code, OpenAI Codex CLI, Hermes Agent, OpenClaw,
4
+ a skill source for Claude Code, OpenAI Codex CLI, Goose, Hermes Agent, OpenClaw,
5
5
  Manus AI, and other SKILL.md-aware agent runtimes.
6
6
 
7
7
  ## Install (pick the integration that matches your environment)
@@ -38,6 +38,14 @@ npx setup-sogni-agent-skill --only=hermes
38
38
  hermes skills install skills-sh/sogni-ai/sogni-creative-agent-skill/sogni-creative-agent-skill
39
39
  npm install -g @sogni-ai/sogni-creative-agent-skill@latest
40
40
 
41
+ # Goose Agent Skill (install the skill plus the globally available CLI)
42
+ npx skills add Sogni-AI/sogni-creative-agent-skill --global --agent goose --skill sogni-creative-agent-skill --yes
43
+ npm install -g @sogni-ai/sogni-creative-agent-skill@latest
44
+
45
+ # Goose MCP extension (temporary session; configure the same command permanently
46
+ # through `goose configure`, or install it from the public Extensions directory)
47
+ goose session --with-extension "npx -y --package @sogni-ai/sogni-creative-agent-skill@latest sogni-agent-mcp"
48
+
41
49
  # OpenClaw plugin (the npm package is scoped — use the npm: source prefix)
42
50
  openclaw plugins install npm:@sogni-ai/sogni-creative-agent-skill
43
51
 
@@ -72,6 +80,7 @@ the host that ran it. Use the shim matching your runtime wherever these docs say
72
80
 
73
81
  ```bash
74
82
  sogni-agent-hermes # Hermes Agent
83
+ sogni-agent-goose # Goose
75
84
  sogni-agent-codex # OpenAI Codex CLI
76
85
  sogni-agent-claude-code # Claude Code
77
86
  sogni-agent # OpenClaw (auto-detected) and everything else
@@ -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.41.0",
5
+ "version": "3.43.0",
6
6
  "skills": [
7
7
  "."
8
8
  ],
package/package.json CHANGED
@@ -1,14 +1,16 @@
1
1
  {
2
2
  "name": "@sogni-ai/sogni-creative-agent-skill",
3
- "version": "3.41.0",
3
+ "version": "3.43.0",
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",
7
7
  "bin": {
8
8
  "sogni-agent": "sogni-agent.mjs",
9
+ "sogni-agent-mcp": "desktop-extension/server/index.mjs",
9
10
  "sogni-agent-codex": "host-launchers/codex.mjs",
10
11
  "sogni-agent-claude-code": "host-launchers/claude-code.mjs",
11
- "sogni-agent-hermes": "host-launchers/hermes.mjs"
12
+ "sogni-agent-hermes": "host-launchers/hermes.mjs",
13
+ "sogni-agent-goose": "host-launchers/goose.mjs"
12
14
  },
13
15
  "scripts": {
14
16
  "openclaw:sync": "node scripts/sync-openclaw-plugin.mjs",
@@ -24,7 +26,7 @@
24
26
  "test:all": "npm run test && npm run test:integration",
25
27
  "test:coverage": "npm run check:creative-agent-runtime && node --test --experimental-test-coverage --test-coverage-include=sogni-agent.mjs --test-coverage-lines=50 --test-coverage-branches=35 --test-coverage-functions=50 test/sogni-agent.test.mjs",
26
28
  "test:coverage:full": "npm run check:creative-agent-runtime && node --test --experimental-test-coverage --test-coverage-include=sogni-agent.mjs --test-coverage-lines=50 --test-coverage-branches=35 --test-coverage-functions=50 test/*.test.mjs test/*.integration.mjs",
27
- "build:mcpb": "npx -y @anthropic-ai/mcpb pack desktop-extension dist/sogni-creative-agent.mcpb",
29
+ "build:mcpb": "node scripts/build-mcpb.mjs",
28
30
  "prepack": "npm run check:version-sync && npm run check:creative-agent-source:strict && SOGNI_REQUIRE_RUNTIME_SYNC=1 npm run check:creative-agent-runtime",
29
31
  "version": "npm run sync:version",
30
32
  "prepare": "husky",
@@ -74,6 +76,7 @@
74
76
  "llm.txt",
75
77
  "skill-package.json",
76
78
  "host-launchers/",
79
+ "scripts/build-mcpb.mjs",
77
80
  "scripts/sync-version.mjs",
78
81
  "scripts/sync-hermes-skill.mjs",
79
82
  "scripts/check-version-sync.mjs",
@@ -95,13 +98,13 @@
95
98
  "sogni-agent.mjs"
96
99
  ],
97
100
  "dependencies": {
98
- "@sogni-ai/sogni-intelligence-client": "3.29.0",
101
+ "@sogni-ai/sogni-intelligence-client": "3.29.2",
99
102
  "execa": "^10.0.1",
100
103
  "json5": "^2.2.3",
101
104
  "sharp": "0.35.4"
102
105
  },
103
106
  "overrides": {
104
- "@sogni-ai/sogni-client": "5.38.0"
107
+ "@sogni-ai/sogni-client": "5.40.0"
105
108
  },
106
109
  "openclaw": {
107
110
  "extensions": [
@@ -87,10 +87,12 @@ becomes 1080 or 1440 (default 1440; 1080 when the source is below 720p) while
87
87
  the aspect ratio, every frame, the exact frame rate, and the original audio are
88
88
  kept; nothing is trimmed, cropped, restyled, or interpolated. Sources must be
89
89
  at most 768px on the short edge and about 1344x768 pixels overall (768x1344 in
90
- portrait), 1-362 frames (about 15 seconds), 1-60 fps,
90
+ portrait), 1-60 fps,
91
91
  SDR with square pixels, and 100 MB or less; 1440p needs a source short edge of
92
92
  at least 720px and 1080p at least 540px. 4K is not available. The direct CLI
93
- reads the exact frame count and rate with a local ffprobe.
93
+ reads the exact frame count and rate with a local ffprobe. The server sets the
94
+ maximum clip length; do not quote a fixed limit. Relay a server rejection if
95
+ the source is too long, without trimming it or switching to a generative tool.
94
96
 
95
97
  For Krea 2 Turbo, hosted/chat planning may use the creative-agent selector
96
98
  `krea-2-turbo`; direct CLI `-m` uses the worker model ID
@@ -202,6 +202,85 @@ supplies no words, author one concise line that realizes that request. If there
202
202
  is no vocal intent, do not invent speech. Use a compound ID such as `(S1,S2)`
203
203
  only when already-numbered speakers vocalize together.
204
204
 
205
+ ### Writing the body the way the Base model reads it
206
+
207
+ Audited 2026-09-10 against MiniMax's `VIDEO_PROMPT_WRITING_GUIDE_base_en.md`
208
+ (the guide the h3-prompt-writing skill wraps) and the LightX2V rewriter that
209
+ was trained on the same rewrite policy. The open-weights H3-Base checkpoint
210
+ reads the prompt directly with no hosted Context-IR rewrite in front of it, so
211
+ every sentence is model input. Everything below is what the official examples
212
+ do and never deviate from:
213
+
214
+ - **Open `[Shot 1]` with the medium and look as concrete facts** (`Live-action,
215
+ cinematic`, `2D-animated`, `3D CG`, `claymation`, `watercolor`, `vintage
216
+ film`) plus the initial composition. In frame-anchored modes derive the look
217
+ from the picture. Genre, mood, audience, and intent labels (`horror`, `eerie`,
218
+ `adult`, `tense`, `jump scare`) are not visible and never appear in an
219
+ official example; write the light, surfaces, distances, movements, and sounds
220
+ that produce them.
221
+ - **Every sentence is a depiction.** The guide's rule is that every detail must
222
+ correspond to something visible or audible. Never write notes to the model
223
+ (`preserve believable anatomy`, `keep the foley prominent`, `hard cut, no
224
+ morph or dissolve`, `hold six frames only`, `this anchor is excluded from the
225
+ presentation`) and never shout in capitals.
226
+ - **State exclusions as positive facts.** There is no negative field and the
227
+ contract has no negation grammar, so `no people, faces or words` names the
228
+ things it tries to remove. Write `the hall is empty and still`, `the walls are
229
+ bare`, `the air is clear and sharply lit`. Keep a user-supplied exclusion only
230
+ when it cannot be stated positively, phrased once. `non_diegetic_music: N/A`
231
+ is the reliable way to keep score out even when the rest of the structure is
232
+ loose.
233
+ - **Clock times exist only on cut markers.** `[Shot 2] At 00:03.500, the camera
234
+ cuts to …` is the only place a time appears. Inside a shot, order events with
235
+ words (`early in the shot`, `as the doors part`, `toward the end`). In-shot
236
+ ranges such as `From 00:02.000 to 00:04.000` are not H3 syntax; the shaper now
237
+ flags them.
238
+ - **Camera moves use the official vocabulary** as natural prose: `Zoom In/Out`,
239
+ `Push In/Pull Out`, `Pan Left/Right`, `Truck Left/Right`, `Tilt Up/Down`,
240
+ `Pedestal Up/Down`, `Arc Shot`, `Tracking Shot`, `Static Shot`, `Shake
241
+ Slightly/Strongly`, `POV`, `Roll Clockwise/Counterclockwise`, with `with
242
+ small/large amplitude` and `at slow/fast speed` only when they matter. One
243
+ primary move per shot. First-person coverage is a `POV shot`; `handheld` reads
244
+ as camera shake, so write it only when shake is wanted.
245
+ - **Frame-anchored modes describe the path, not the pictures.** The model sees
246
+ every attached picture; describing one back at length, or adding objects,
247
+ text, fluids, or figures that are not in it, produces crossfades and invented
248
+ props. I2VA: first-frame anchor → action onset → continuous development →
249
+ result or reaction. FL2VA: first-frame state → observable intermediate
250
+ changes → progressively narrowing differences → last-frame state, in **one
251
+ continuous shot** unless the user explicitly asks for cuts; begin `in the
252
+ position and framing established by Picture 1`, carry the identity anchors
253
+ that must stay fixed into the motion sentences, and end by settling `into the
254
+ pose, spacing, and composition established by Picture 2 at the end of the
255
+ shot`. L2VA: plausible preceding state → explicit action and transition path →
256
+ gradual convergence in the final shot → last-frame landing on `<Picture 1>`.
257
+ Exact composition matching applies only at a picture's assigned timestamp.
258
+ - **Bind every vocal line to its speaker in the same sentence:**
259
+ `The young woman with a quiet, breathy voice (S1) says: <d>[English] I get
260
+ off at the next station.</d>` and `The two children (S1,S2) shout together,
261
+ <d>[English] Wait for us!</d>`.
262
+ - **Length.** Official bodies run roughly 150–450 words; Ref2VA
263
+ `detailed_description` targets 350–500. Long is fine when every sentence is a
264
+ visible or audible event.
265
+
266
+ ### Worked example — first frame → last frame
267
+
268
+ ```text
269
+ User ask (two uploaded stills): "the elevator doors open onto the laundry and we walk in"
270
+
271
+ sogni-agent -q --video -m minimax-h3-flf2v-balanced --ref ./elevator.png --ref-end ./laundry.png --duration 8 -w 1344 -h 768 -o ./press-b.mp4 "<prompt below>"
272
+ ```
273
+
274
+ ```text
275
+ How the reference pictures align with the target video — Picture 1 (from Shot 1) aligns with the 0.00-second mark of the target video; Picture 2 (from Shot 1) aligns with the 8.00-second mark of the target video.
276
+
277
+ integrated_multimodal_description: [Shot 1] Live-action, cinematic, a POV shot at standing eye level begins in the position and framing established by Picture 1, facing the closed brass elevator doors from inside the small wood-panelled vestibule with its dark red velvet panels, marble floor and crystal ceiling lamp. Early in the shot the lamp flickers twice and the floor shudders as the car settles. The brass doors slide apart with a slow steady motion, and bright white fluorescent light from beyond spills across the marble floor and the brass door frame. Through the widening gap the long white-tiled laundry hall comes into view: the raised tiled walkway with steel rails, the row of round steel washing-machine doors along the left wall, and the open steel service door with its amber wall lamp at the far right. The camera pushes in with large amplitude at slow speed through the open doorway, the brass frame sliding out of the picture on both sides as the tiled floor takes over the foreground and the red brake lever comes into view at the near left. Toward the end the differences narrow as the camera glides forward and settles into the composition, spacing and lighting established by Picture 2 at the end of the shot, with the machines still, the grey curtains hanging straight and the hall empty and quiet.
278
+
279
+ overall_soundscape: A low electrical hum from the crystal lamp, a muffled cable groan and a soft mechanical shudder as the car settles, then the smooth metallic slide of the brass doors parting. Beyond the doors an even ventilation hum and the buzz of fluorescent tubes grow louder over slow footsteps that move from marble onto tile.
280
+
281
+ non_diegetic_music: N/A
282
+ ```
283
+
205
284
  ### Worked example — text-to-video
206
285
 
207
286
  ```text
@@ -358,8 +437,9 @@ How the reference pictures align with the target video — Picture 1 (from Shot
358
437
  ```
359
438
 
360
439
  `N` is the index of the actual final shot (`Shot 1` for the usual single-shot
361
- transition), and `S.SS` is the effective duration to exactly two decimal places
362
- — `10.13` for 243 frames at 24 fps (243 ÷ 24 = 10.125, rounded up).
440
+ transition; FL2VA favours one continuous shot and cuts only when the user asks),
441
+ and `S.SS` is the effective duration to exactly two decimal places — `10.13` for
442
+ 243 frames at 24 fps (243 ÷ 24 = 10.125, rounded up).
363
443
 
364
444
  ### MiniMax H3 reference-to-video (r2v)
365
445
 
@@ -0,0 +1,44 @@
1
+ #!/usr/bin/env node
2
+ import { cpSync, mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs';
3
+ import { tmpdir } from 'node:os';
4
+ import { dirname, join, resolve } from 'node:path';
5
+ import { spawnSync } from 'node:child_process';
6
+ import { fileURLToPath } from 'node:url';
7
+
8
+ const ROOT = dirname(dirname(fileURLToPath(import.meta.url)));
9
+
10
+ // Preserve the source layout so the MCP server's shared relative imports stay
11
+ // inside the standalone extension, without including the full CLI or SDK.
12
+ export function stageMcpb(destination) {
13
+ mkdirSync(destination, { recursive: true });
14
+ cpSync(join(ROOT, 'desktop-extension'), join(destination, 'desktop-extension'), {
15
+ recursive: true,
16
+ filter: (source) => !['node_modules', 'package-lock.json', '.DS_Store'].includes(source.split(/[\\/]/).at(-1)),
17
+ });
18
+ for (const file of ['attribution.mjs', 'version.mjs', 'LICENSE']) {
19
+ cpSync(join(ROOT, file), join(destination, file));
20
+ }
21
+ const manifest = JSON.parse(readFileSync(join(ROOT, 'desktop-extension', 'manifest.json'), 'utf8'));
22
+ manifest.server.entry_point = 'desktop-extension/server/index.mjs';
23
+ manifest.server.mcp_config.args = ['${__dirname}/desktop-extension/server/index.mjs'];
24
+ writeFileSync(join(destination, 'manifest.json'), `${JSON.stringify(manifest, null, 2)}\n`);
25
+ return manifest;
26
+ }
27
+
28
+ if (process.argv[1] && resolve(process.argv[1]) === fileURLToPath(import.meta.url)) {
29
+ const staging = mkdtempSync(join(tmpdir(), 'sogni-mcpb-'));
30
+ try {
31
+ stageMcpb(staging);
32
+ const output = join(ROOT, 'dist', 'sogni-creative-agent.mcpb');
33
+ mkdirSync(dirname(output), { recursive: true });
34
+ const result = spawnSync(
35
+ process.platform === 'win32' ? 'npx.cmd' : 'npx',
36
+ ['-y', '@anthropic-ai/mcpb', 'pack', staging, output],
37
+ { stdio: 'inherit', shell: process.platform === 'win32' },
38
+ );
39
+ if (result.error) throw result.error;
40
+ process.exitCode = result.status ?? 1;
41
+ } finally {
42
+ rmSync(staging, { recursive: true, force: true });
43
+ }
44
+ }
@@ -3,7 +3,7 @@
3
3
  "private": true,
4
4
  "type": "module",
5
5
  "dependencies": {
6
- "@sogni-ai/sogni-intelligence-client": "3.29.0",
6
+ "@sogni-ai/sogni-intelligence-client": "3.29.2",
7
7
  "execa": "^10.0.1",
8
8
  "json5": "^2.2.3",
9
9
  "sharp": "0.35.4"
@@ -38,7 +38,7 @@ Convert a still image, audio track, or existing clip into video, plus Seedance a
38
38
 
39
39
  - Per-clip retry and the batch progress contract are sacred — never collapse a multi-clip render down to a single waterfall call.
40
40
  - `animate_photo` errors with `all_failed` must surface to the user; do not auto-retry from inside the chat loop.
41
- - Use `upscale_video` when the user only wants a sharper, higher-resolution copy of an existing video. Pick the source with `sourceVideoIndex` (generated results are 0-based; -1 is the first upload) and optionally `targetResolution` 1080 or 1440 (default 1440, or 1080 for sources under 720p). It cannot produce 4K. Sources must be ≤768px on the short edge and at most about 1344×768 pixels (768×1344 portrait), ≤362 frames (~15 s), 1-60 fps, and ≤100 MB. Never invent a prompt or substitute `video_to_video`/`generate_video` unless the user names a generative model such as Seedance for a re-render.
41
+ - Use `upscale_video` when the user only wants a sharper, higher-resolution copy of an existing video. Pick the source with `sourceVideoIndex` (generated results are 0-based; -1 is the first upload) and optionally `targetResolution` 1080 or 1440 (default 1440, or 1080 for sources under 720p). It cannot produce 4K. Sources must be ≤768px on the short edge and at most about 1344×768 pixels (768×1344 portrait), 1-60 fps, and ≤100 MB. The server sets the maximum clip length; relay its error if a source is too long, without quoting a fixed limit. Never invent a prompt or substitute `video_to_video`/`generate_video` unless the user names a generative model such as Seedance for a re-render.
42
42
  - 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.
43
43
  - Keep per-clip prompt arrays and source/end image arrays when clips need different assets, durations, audio windows, or other per-output settings.
44
44
  - 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.
package/sogni-agent.mjs CHANGED
@@ -1369,16 +1369,17 @@ function resolveRtxVsrDimensions(sourceWidth, sourceHeight, { scale = 2, targetL
1369
1369
  }
1370
1370
 
1371
1371
  // Promptless FlashVSR video upscaling (--upscale-video). The server probes the
1372
- // uploaded source and stays authoritative; these public limits let the CLI
1373
- // explain an unsupported clip before any upload.
1372
+ // uploaded source and stays authoritative; these public geometry, frame-rate
1373
+ // and file-size limits let the CLI explain an unsupported clip before any
1374
+ // upload. There is deliberately no frame-count or duration limit here: the
1375
+ // server's admission check alone sets the maximum clip length and refuses a
1376
+ // source that is too long (see annotateVideoUpscaleError).
1374
1377
  const FLASHVSR_MODEL_ID = 'flashvsr_v1.1_tiny_long_bf16';
1375
1378
  const VIDEO_UPSCALE_RESOLUTIONS = [1080, 1440];
1376
1379
  const VIDEO_UPSCALE_DEFAULT_RESOLUTION = 1440;
1377
1380
  const VIDEO_UPSCALE_MAX_SOURCE_SHORT_EDGE = 768;
1378
1381
  // Source area counted in 64-pixel blocks: about 1344x768, or 768x1344 in portrait.
1379
1382
  const VIDEO_UPSCALE_MAX_SOURCE_BLOCK_PIXELS = 1344 * 768;
1380
- const VIDEO_UPSCALE_MAX_FRAMES = 362;
1381
- const VIDEO_UPSCALE_MAX_DURATION_SECONDS = 362 / 24;
1382
1383
  const VIDEO_UPSCALE_MIN_FPS = 1;
1383
1384
  const VIDEO_UPSCALE_MAX_FPS = 60;
1384
1385
  const VIDEO_UPSCALE_MAX_BYTES = 100 * 1024 * 1024;
@@ -1505,12 +1506,7 @@ async function probeVideoUpscaleSource(buffer, sourceLabel) {
1505
1506
  details: { fps }
1506
1507
  });
1507
1508
  }
1508
- if (frames > VIDEO_UPSCALE_MAX_FRAMES || frames / fps > VIDEO_UPSCALE_MAX_DURATION_SECONDS + 0.001) {
1509
- fatalCliError(
1510
- `This video is ${frames} frames (${(frames / fps).toFixed(2)} s); video upscaling accepts up to ${VIDEO_UPSCALE_MAX_FRAMES} frames and about 15 seconds.`,
1511
- { code: 'INVALID_UPSCALE_SOURCE', details: { frames, fps } }
1512
- );
1513
- }
1509
+ // The server owns the maximum clip length; submit the exact source count.
1514
1510
  const rotated = Array.isArray(stream?.side_data_list)
1515
1511
  && stream.side_data_list.some((item) => Number(item?.rotation || 0) % 360 !== 0);
1516
1512
  if (!['1:1', 'N/A', undefined].includes(stream?.sample_aspect_ratio) || rotated) {
@@ -1524,12 +1520,25 @@ async function probeVideoUpscaleSource(buffer, sourceLabel) {
1524
1520
  return { width, height, frames, fps, sizeBytes: buffer.length };
1525
1521
  }
1526
1522
 
1523
+ // The server's own refusal of a source longer than it accepts. Only the server
1524
+ // knows the current maximum, so the CLI relays its sentence rather than
1525
+ // restating a limit.
1526
+ const VIDEO_UPSCALE_TOO_LONG_PATTERN = /This video is too long to upscale\b.*$/s;
1527
+
1527
1528
  function annotateVideoUpscaleError(error) {
1528
1529
  const message = String(error?.message || error?.originalError?.message || '');
1529
1530
  if (error && typeof error === 'object' && message.includes(FLASHVSR_UNAVAILABLE_MESSAGE)) {
1530
1531
  if (!error.code || error.code === 'PROJECT_ERROR') error.code = 'MODEL_UNAVAILABLE';
1531
1532
  error.hint = 'FlashVSR upscaling workers are not online yet, so nothing was charged. Try again later.';
1532
1533
  }
1534
+ const tooLong = [error?.message, error?.originalError?.message]
1535
+ .map((text) => String(text || '').match(VIDEO_UPSCALE_TOO_LONG_PATTERN)?.[0].trim())
1536
+ .find(Boolean);
1537
+ if (error && typeof error === 'object' && tooLong) {
1538
+ error.message = tooLong;
1539
+ if (!error.code || error.code === 'PROJECT_ERROR') error.code = 'INVALID_UPSCALE_SOURCE';
1540
+ error.hint = 'Trim the video, or split it into shorter clips and upscale each one.';
1541
+ }
1533
1542
  return error;
1534
1543
  }
1535
1544
 
package/version.mjs CHANGED
@@ -1 +1 @@
1
- export const PACKAGE_VERSION = '3.41.0';
1
+ export const PACKAGE_VERSION = '3.43.0';