@sogni-ai/sogni-creative-agent-skill 3.42.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.
- package/.agents/skills/sogni-creative-agent-skill/SKILL.md +1 -1
- package/.agents/skills/sogni-creative-agent-skill/references/video-prompting.md +82 -2
- package/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/CHANGELOG.md +12 -0
- package/SKILL.md +1 -1
- package/desktop-extension/manifest.json +1 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +3 -3
- package/references/video-prompting.md +82 -2
- package/skill-package.json +1 -1
- package/sogni-agent.mjs +18 -2
- package/version.mjs +1 -1
|
@@ -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.
|
|
6
|
+
version: "3.43.0"
|
|
7
7
|
author: Sogni AI
|
|
8
8
|
hermes:
|
|
9
9
|
category: creative
|
|
@@ -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
|
|
362
|
-
|
|
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.
|
|
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",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
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
|
+
|
|
1
13
|
## [3.42.0](https://github.com/Sogni-AI/sogni-creative-agent-skill/compare/v3.41.0...v3.42.0) (2026-09-10)
|
|
2
14
|
|
|
3
15
|
### Features
|
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.
|
|
5
|
+
version: "3.43.0"
|
|
6
6
|
homepage: https://sogni.ai
|
|
7
7
|
openclaw:
|
|
8
8
|
emoji: "🎨"
|
|
@@ -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.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",
|
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.43.0",
|
|
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.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",
|
|
@@ -98,13 +98,13 @@
|
|
|
98
98
|
"sogni-agent.mjs"
|
|
99
99
|
],
|
|
100
100
|
"dependencies": {
|
|
101
|
-
"@sogni-ai/sogni-intelligence-client": "3.29.
|
|
101
|
+
"@sogni-ai/sogni-intelligence-client": "3.29.2",
|
|
102
102
|
"execa": "^10.0.1",
|
|
103
103
|
"json5": "^2.2.3",
|
|
104
104
|
"sharp": "0.35.4"
|
|
105
105
|
},
|
|
106
106
|
"overrides": {
|
|
107
|
-
"@sogni-ai/sogni-client": "5.
|
|
107
|
+
"@sogni-ai/sogni-client": "5.40.0"
|
|
108
108
|
},
|
|
109
109
|
"openclaw": {
|
|
110
110
|
"extensions": [
|
|
@@ -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
|
|
362
|
-
|
|
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
|
|
package/skill-package.json
CHANGED
package/sogni-agent.mjs
CHANGED
|
@@ -1369,8 +1369,11 @@ 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
|
|
1373
|
-
// explain an unsupported clip before any
|
|
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;
|
|
@@ -1517,12 +1520,25 @@ async function probeVideoUpscaleSource(buffer, sourceLabel) {
|
|
|
1517
1520
|
return { width, height, frames, fps, sizeBytes: buffer.length };
|
|
1518
1521
|
}
|
|
1519
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
|
+
|
|
1520
1528
|
function annotateVideoUpscaleError(error) {
|
|
1521
1529
|
const message = String(error?.message || error?.originalError?.message || '');
|
|
1522
1530
|
if (error && typeof error === 'object' && message.includes(FLASHVSR_UNAVAILABLE_MESSAGE)) {
|
|
1523
1531
|
if (!error.code || error.code === 'PROJECT_ERROR') error.code = 'MODEL_UNAVAILABLE';
|
|
1524
1532
|
error.hint = 'FlashVSR upscaling workers are not online yet, so nothing was charged. Try again later.';
|
|
1525
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
|
+
}
|
|
1526
1542
|
return error;
|
|
1527
1543
|
}
|
|
1528
1544
|
|
package/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const PACKAGE_VERSION = '3.
|
|
1
|
+
export const PACKAGE_VERSION = '3.43.0';
|