@sogni-ai/sogni-creative-agent-skill 3.40.0 → 3.41.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.40.0"
6
+ version: "3.41.0"
7
7
  author: Sogni AI
8
8
  hermes:
9
9
  category: creative
@@ -53,13 +53,22 @@ a command fails because the CLI is missing.
53
53
  run `sogni-agent-hermes --json --list-media` instead of guessing filenames.
54
54
  - Honor an explicitly requested model. Otherwise use the CLI defaults and
55
55
  consult [models.md](references/models.md) only when model selection matters.
56
+ - Answer capability questions without generating. Stop at text for a writing or
57
+ review request and at a still for a storyboard-image request. Continue through
58
+ a requested images-to-video sequence unless the user requested a review pause.
59
+ - Preserve exact prompts, source choices, counts, and the latest duration. Each
60
+ variation needs all its own lettering, visual, dialogue, and loop requirements.
61
+ Continue from successful stages instead of rendering them again.
56
62
  - Plan multi-step work in Hermes, then invoke the focused CLI command. Use the
57
63
  hosted workflow API only when its durable orchestration or replay behavior is
58
64
  useful.
59
65
  - Parse `--json` output when subsequent steps need exact job IDs, paths, URLs,
60
66
  costs, or error fields.
61
67
  - Return the final local path and the important render settings. On failure,
62
- preserve the CLI's error and actionable recovery hint.
68
+ preserve the CLI's error and actionable recovery hint. Do not automatically
69
+ add `--no-filter` or retry a rejection. Optional filter changes need the user's
70
+ explicit choice and cannot override a model's policy. Honor hosted requests
71
+ to wait for user input.
63
72
 
64
73
  ## Common commands
65
74
 
@@ -71,6 +80,9 @@ sogni-agent-hermes -c ./source.png -o ./edited.png "make it night; add fireflies
71
80
  # Promptless RTX VSR upscale
72
81
  sogni-agent-hermes --upscale ./source.png -o ./upscaled.png
73
82
 
83
+ # Promptless FlashVSR video upscale to 1440p (or --upscale-resolution 1080)
84
+ sogni-agent-hermes --upscale-video ./clip.mp4 -o ./clip-1440p.mp4
85
+
74
86
  # Generate or animate video
75
87
  sogni-agent-hermes --video -o ./video.mp4 "a paper dragon takes flight"
76
88
  sogni-agent-hermes --video --ref ./start.png -o ./animated.mp4 "slow camera push-in"
@@ -48,6 +48,53 @@ The direct-to-SDK flags remain the right call for explicit one-shot generation
48
48
  when you already know the exact model, dimensions, and prompt — use them
49
49
  whenever latency or cost rules out an LLM round-trip.
50
50
 
51
+ ## Preserve the requested work
52
+
53
+ - A model/capability question is an answer, not permission to render. A script
54
+ or storyboard-review request ends at the draft; a storyboard-image request
55
+ ends at the still. The `storyboard-video` preset creates a full video, so use
56
+ it only when that is the requested deliverable.
57
+ - When the user requests images, animation, and stitching together, finish those
58
+ stages in order unless they ask to review or select an intermediate result.
59
+ Treat returned artifacts as evidence of completion; do not resubmit a
60
+ successful stage because the assistant's summary omitted its tool call.
61
+ - Preserve exact image prompts, visible lettering, chosen models, source
62
+ selection, aspect ratio, and the latest requested duration. New tasks do not
63
+ inherit settings from unrelated previous renders. A pure size increase uses
64
+ `upscale_image` for images and `upscale_video` for videos; editing requires
65
+ an actual source reference.
66
+ - Separate image variations need `numberOfVariations` and a complete Dynamic
67
+ Prompt branch per output. Repeat shared text, branding, dialogue, and loop
68
+ motion in every affected branch. A single storyboard sheet instead needs all
69
+ requested scenes in order, with complete visual/action, camera, transition,
70
+ dialogue, and sound instructions. Preserve supplied titles and layout. In
71
+ “six 9:16 frames,” six is the count and 9:16 is the frame shape.
72
+ - Preserve reference order and bind the correct uploaded or generated asset.
73
+ An original image can be a prior generated result; it is not necessarily an
74
+ upload. For a loop ending on the original still, bind that original as the
75
+ final reference. Distinguish loose audio guidance from synchronized audio.
76
+ - Check the chosen model's duration and reference limits. A long video may fit
77
+ one native clip or require segments and stitching; do not silently shorten it
78
+ or replace an explicit model. For segmented storyboards, assign each clip its
79
+ own time window and scene beats while preserving locked music and timing.
80
+ - Let the hosted runtime repair malformed calls before dispatch. A correction
81
+ round does not authorize a second successful render. If a result says to wait
82
+ for the user or all outputs failed, surface that result and stop.
83
+ - Optional content-filter changes require the user's explicit choice. In hosted
84
+ chat, a supported settings tool must report success before retrying; declined
85
+ or unavailable confirmation leaves the setting unchanged. In direct CLI mode,
86
+ do not add `--no-filter` on your own. The setting cannot change GPT Image's
87
+ mandatory policy or resolve an unknown rejection. Attribute a rejection to a
88
+ provider only when the returned error supports that attribution.
89
+ When explicitly requested, `--no-filter` is forwarded on new durable workflow
90
+ starts as well as hosted chat. Resuming a workflow retains its original
91
+ preference; passing the flag on a resume does not change it.
92
+
93
+ These are also instructions for the calling agent when it authors direct CLI
94
+ commands or workflow JSON. The public runtime exposes local helpers and shared
95
+ contracts; the full hosted planner, call repair, and confirmation behavior run
96
+ on the server. Updating this skill does not deploy those server components.
97
+
51
98
  ## --api-chat (`POST /v1/chat/completions`)
52
99
 
53
100
  Text-first natural-language workflows through Sogni API's OpenAI-compatible
@@ -66,12 +113,18 @@ Tune with `--api-tools creative-agent|creative-tools|none`,
66
113
  `--thinking` / `--no-thinking` (forwarded as
67
114
  `chat_template_kwargs.enable_thinking`; hosted Qwen may normalize thinking
68
115
  server-side, so do not rely on `--no-thinking` as a hard suppression switch).
116
+ The default output budget is 4,096 tokens for hosted chat (including durable
117
+ chat) and storyboard planning. Keep enough room for every requested scene and
118
+ complete tool arguments; `--max-tokens` overrides that budget.
119
+ HTTP chat and storyboard-planning requests allow up to two minutes for a full
120
+ response by default; `SOGNI_HTTP_TIMEOUT_MS` overrides this timeout. Other HTTP
121
+ requests keep their existing timeouts.
69
122
 
70
123
  ### Hosted tool surfaces (`sogni_tools`)
71
124
 
72
125
  - `creative-tools` — the public API default when `sogni_tools` is omitted or
73
126
  true. Generation/editing tools (`generate_image`, `generate_video`,
74
- `generate_music`, `edit_image`, `upscale_image`, `apply_style`, `restore_photo`,
127
+ `generate_music`, `generate_speech`, `edit_image`, `upscale_image`, `upscale_video`, `apply_style`, `restore_photo`,
75
128
  `refine_result`, `animate_photo`, `change_angle`, `video_to_video`,
76
129
  `stitch_video`, `orbit_video`, `dance_montage`, `sound_to_video`,
77
130
  `extend_video`, `replace_video_segment`, `overlay_video`, `add_subtitles`),
@@ -95,6 +148,14 @@ either `scale: 2|3|4` or `targetLongestEdge`. Use `7680` for 8K or `15360` for
95
148
  16K. The promptless NVIDIA RTX VSR path preserves the source aspect ratio,
96
149
  aligns both output edges to 8px, and returns JPG when the target exceeds 8K.
97
150
 
151
+ For a pure resolution increase of a video, call `upscale_video` with
152
+ `sourceVideoIndex` (generated results are 0-based; -1 is the first upload) and
153
+ an optional `targetResolution` of 1080 or 1440. The promptless FlashVSR path
154
+ keeps every frame, the frame rate, the aspect ratio, and the audio; the server
155
+ reads the source metadata itself, so the model never supplies frames or fps.
156
+ It cannot produce 4K, and it is not a substitute for `video_to_video` when the
157
+ user asks a generative model such as Seedance to re-render the clip.
158
+
98
159
  ## --durable-chat (`POST /v1/chat/runs`)
99
160
 
100
161
  Long-running, LLM-in-the-loop turns persisted as chat-run records instead of a
@@ -106,6 +167,16 @@ deltas plus de-duplicated per-job progress / ETA / result lines from hosted
106
167
  run events. The SDK exposes `sogni.chat.runs.{create, get, cancel,
107
168
  streamEvents}`.
108
169
 
170
+ Durable chat runs the full creative agent with server-side tool execution.
171
+ Use `--api-chat` for `--api-tools creative-tools|none` or
172
+ `--no-api-tool-execution`; durable mode rejects those options before starting a
173
+ run rather than silently ignoring them. Completed assistant snapshots reconcile
174
+ with streamed text so each message appears once, including multi-round turns.
175
+
176
+ Review returned storyboard titles, visible text, and timings against the request
177
+ before rendering. Hosted draft generation can paraphrase supplied scene titles;
178
+ correct the draft first when exact wording matters.
179
+
109
180
  ## --api-workflow (`POST /v1/creative-agent/workflows`)
110
181
 
111
182
  Durable, async workflow records with event streaming and cancellation. The
@@ -73,6 +73,25 @@ fits the result inside the requested box without cropping or stretching. Both
73
73
  16K; targets above 7680px return JPG. If a scale leaves the short edge below
74
74
  512px, use the minimum target longest edge reported by the CLI/tool.
75
75
 
76
+ ### Video upscaling
77
+
78
+ | Model | Kind | Use Case |
79
+ |-------|------|----------|
80
+ | `flashvsr_v1.1_tiny_long_bf16` | Video job | Promptless FlashVSR v1.1 upscale of one finished video to 1080p or 1440p |
81
+
82
+ FlashVSR is not a generation model. Invoke it with
83
+ `sogni-agent --upscale-video <path|url>` (optionally
84
+ `--upscale-resolution 1080|1440`), or use the hosted `upscale_video` tool with
85
+ `sourceVideoIndex` and an optional `targetResolution`. The output short edge
86
+ becomes 1080 or 1440 (default 1440; 1080 when the source is below 720p) while
87
+ the aspect ratio, every frame, the exact frame rate, and the original audio are
88
+ kept; nothing is trimmed, cropped, restyled, or interpolated. Sources must be
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,
91
+ SDR with square pixels, and 100 MB or less; 1440p needs a source short edge of
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.
94
+
76
95
  For Krea 2 Turbo, hosted/chat planning may use the creative-agent selector
77
96
  `krea-2-turbo`; direct CLI `-m` uses the worker model ID
78
97
  `krea2_turbo_fp8_scaled`.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sogni-creative-agent",
3
- "version": "3.40.0",
3
+ "version": "3.41.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.40.0",
3
+ "version": "3.41.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,32 @@
1
+ ## [3.41.0](https://github.com/Sogni-AI/sogni-creative-agent-skill/compare/v3.40.1...v3.41.0) (2026-09-10)
2
+
3
+ ### Features
4
+
5
+ * Add `--upscale-video <path|url>` with `--upscale-resolution 1080|1440` for promptless FlashVSR v1.1 video upscaling. The CLI reads the source's exact size, frame count and frame rate with local ffprobe, checks the public limits (short edge up to 768px and area up to about 1344x768, 1-362 frames and about 15 seconds, 1-60 fps, SDR with square pixels, 100 MB), and saves the MP4 with the original audio. Prompts, more than one output, timing or size overrides, and other media are rejected.
6
+ * Route pure video upscales to `--upscale-video` or the hosted `upscale_video` tool rather than `video_to_video`, and carry the `upscale_video` contracts in the public runtime.
7
+
8
+ ### Bug Fixes
9
+
10
+ * Align the public runtime dependencies with Intelligence Client 3.29.0 and Sogni Client 5.38.0.
11
+
12
+ ## [3.40.1](https://github.com/Sogni-AI/sogni-creative-agent-skill/compare/v3.40.0...v3.40.1) (2026-09-10)
13
+
14
+ ### Bug Fixes
15
+
16
+ * Align the public runtime dependencies with Intelligence Client 3.28.4 and Sogni Client 5.36.3, including the fix that keeps storyboard aspect ratios separate from panel counts.
17
+ * Forward explicit content-filter preferences when starting durable workflows through either HTTP or SDK transport; resumed runs retain their original preference.
18
+ * Preserve structured SDK failures across project creation and job/project events, retaining actionable error messages and codes.
19
+ * Give hosted chat, durable chat, and storyboard planning a 4,096-token default output budget so larger scene descriptions and tool arguments have room to complete. Explicit `--max-tokens` values still take precedence.
20
+ * Allow two minutes for HTTP chat and storyboard-planning responses, preventing larger tool calls from hitting the former 30-second timeout. Explicit HTTP timeout overrides remain supported.
21
+ * Reconcile durable-chat completion snapshots with streamed deltas so complete drafts appear once, while retaining completion-only messages and later rounds.
22
+ * Reject unsupported durable-chat tool restrictions before starting a run; direct callers to `--api-chat` for restricted tools or planning without execution.
23
+
24
+ ### Documentation
25
+
26
+ * Align the root, Codex/Claude plugin, and Hermes skill guidance with tested Chat workflows: requested stage boundaries, exact prompts and output counts, complete variation prompts, ordered references, model-specific durations, and continuing from completed stages.
27
+ * Clarify user-confirmed recovery after generation failures, document the speech tool in the hosted surface, and distinguish local skill updates from server-side planner and repair behavior.
28
+ * Keep trial-access guidance current: cancelling a trial prevents the first charge while preserving trial access until its original end date.
29
+
1
30
  # [3.40.0](https://github.com/Sogni-AI/sogni-creative-agent-skill/compare/v3.39.1...v3.40.0) (2026-09-09)
2
31
 
3
32
 
package/README.md CHANGED
@@ -644,6 +644,7 @@ Prefer `-Q fast|hq|pro` for images and automatic workflow routing for video. Pas
644
644
  | Highest-quality images | `qwen_image_2512_fp8` (or `-Q pro`) |
645
645
  | Image editing | `qwen_image_edit_2511_fp8_lightning` |
646
646
  | Deterministic image upscaling through 16K | `rtx_vsr_pro` via `--upscale` |
647
+ | Promptless video upscaling to 1080p/1440p | `flashvsr_v1.1_tiny_long_bf16` via `--upscale-video` |
647
648
  | Dark Beast Krea 2 images | `dark_beast_krea2_fp8` |
648
649
  | Identity-preserving Krea image edits | `krea2_identity_edit_v1_2` |
649
650
  | Uncensored identity-preserving Krea edits | `dark_beast_krea2_identity_edit_v1_2` |
@@ -903,7 +904,7 @@ With an active subscription, the CLI also skips its client-side "insufficient SP
903
904
 
904
905
  ### Free-trial access
905
906
 
906
- Trials include evaluation limits on generation volume, media size, and API access. Full plan limits apply once the trial converts to paid. Cancelling during the trial ends Unlimited access immediately and prevents the first charge.
907
+ Trials include evaluation limits on generation volume, media size, and API access. Full plan limits apply once the trial converts to paid. Cancelling during the trial prevents the first charge and keeps trial access, with the same trial limits, until the original trial end date.
907
908
 
908
909
  ### Fair-use scheduling
909
910
 
@@ -918,7 +919,7 @@ Actual throughput varies with demand, available Supernet capacity, and fair-use
918
919
 
919
920
  - **Active / trialing:** covered renders run normally.
920
921
  - **Cancellation (paid):** Unlimited access continues until the end of the period already paid for; it simply does not renew.
921
- - **Cancellation (during trial):** access ends immediately and no charge is made.
922
+ - **Cancellation (during trial):** no charge is made, and trial access continues until the original trial end date. Cancelling does not extend the trial or make the account eligible for another one.
922
923
  - **Grace / payment retry:** if a renewal payment fails, the provider retries it and **Unlimited access is paused** during the retry window — covered renders are declined with a renewal-retry error, and access resumes automatically once payment succeeds. You can keep rendering with Spark or SOGNI in the meantime.
923
924
  - **Refunds:** mid-term refunds are not offered by default; App Store / Google Play purchases follow the store's refund process, and Stripe (web) refunds are handled by Sogni support.
924
925
 
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 promptless RTX VSR image upscaling through 16K, 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\", \"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 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.40.0"
5
+ version: "3.41.0"
6
6
  homepage: https://sogni.ai
7
7
  openclaw:
8
8
  emoji: "🎨"
@@ -117,6 +117,15 @@ sogni-agent -o /tmp/cat.png "a cat wearing a hat" # ✗ avoid — user can't
117
117
 
118
118
  ## Recommended path: you plan, Sogni executes
119
119
 
120
+ Preserve the requested deliverable: capability questions need an answer, a
121
+ writing/review request stops at the draft, and a storyboard-image request stops
122
+ at the still. Continue through images, animation, and stitching when the user
123
+ requested that full sequence; pause only at their requested review points.
124
+ Keep exact prompts, model choices, source references, output counts, and the
125
+ latest duration. Each variation needs its own complete prompt, including every
126
+ shared lettering, visual, dialogue, or loop requirement. Once a stage succeeds,
127
+ continue to the next requested stage instead of generating it again.
128
+
120
129
  You (the calling LLM) are almost always more capable than Sogni's hosted planning model, so **do the planning and tool selection yourself** and let the hosted endpoints do what only the server can — run on the GPU network, persist assets/manifests, orchestrate durable multi-step runs with replay, and apply structured-contract repair. Don't flatten a rich request into a single natural-language string and hand planning back to a weaker model. Match the mode to the work:
121
130
 
122
131
  - **One-shot generation** → direct-to-SDK flags (the Core Commands below). You already know the tool, model, and prompt — just run it. No LLM round-trip, lowest latency/cost.
@@ -125,6 +134,11 @@ You (the calling LLM) are almost always more capable than Sogni's hosted plannin
125
134
 
126
135
  **Read [`references/hosted-api.md`](./references/hosted-api.md) first** for the full hosted contract (tool surfaces, durable workflows, templates, replays, Seedance reference modes, media-reference uploads, cost controls).
127
136
 
137
+ On a failed generation, preserve the returned error and recovery hint. Do not
138
+ automatically add `--no-filter` or retry a rejected request. An optional filter
139
+ change needs the user's explicit choice and does not override a model's own
140
+ policy. If the hosted run waits for user input, surface that request and stop.
141
+
128
142
  ```bash
129
143
  # One-shot: you pick the tool, the server just executes (see Core Commands below)
130
144
  sogni-agent -q -Q hq -o ./poster.png "Turn the product photo into a launch poster"
@@ -159,6 +173,10 @@ sogni-agent -q --upscale /path/to/input.jpg --target-longest-edge 4096 -o ./upsc
159
173
  sogni-agent -q --upscale /path/to/input.jpg --target-longest-edge 7680 -o ./upscaled-8k.png
160
174
  sogni-agent -q --upscale /path/to/input.jpg --target-longest-edge 15360 -o ./upscaled-16k.jpg
161
175
 
176
+ # FlashVSR video upscale (promptless; 1440p by default, 1080p below 720p sources; keeps every frame, fps, audio)
177
+ sogni-agent -q --upscale-video /path/to/clip.mp4 -o ./clip-1440p.mp4
178
+ sogni-agent -q --upscale-video /path/to/clip.mp4 --upscale-resolution 1080 -o ./clip-1080p.mp4
179
+
162
180
  # Photobooth (face transfer — new portrait from a face photo)
163
181
  sogni-agent -q --photobooth --ref /path/to/face.jpg -o ./stylized.png "80s fashion portrait"
164
182
 
@@ -260,6 +278,8 @@ sogni-agent doctor --json
260
278
  | `--upscale <path\|url>` | Promptless deterministic RTX VSR upscale | - |
261
279
  | `--upscale-scale 2\|3\|4` | Upscale factor when no explicit target is supplied | 2 |
262
280
  | `--target-longest-edge <px>` | RTX VSR target longest edge, preserving aspect ratio | 512–15360 box |
281
+ | `--upscale-video <path\|url>` | Promptless FlashVSR video upscale (needs local ffprobe) | - |
282
+ | `--upscale-resolution 1080\|1440` | FlashVSR output short edge | 1440 (1080 below 720p) |
263
283
  | `-m <id>` | Explicit model | `z_image_turbo_bf16` |
264
284
  | `-w` / `-h` | Width / height | 512×512 |
265
285
  | `-n <num>` | Output count (`{a\|b\|c}` prompt variations cycle); capped at 16, raise with `SOGNI_MAX_COUNT` | 1 |
@@ -295,6 +315,7 @@ sogni-agent doctor --json
295
315
  ### Upscaling vs. generative editing
296
316
 
297
317
  - 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.
298
319
  - `--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.
299
320
 
300
321
  ### Segmentation and 3D reconstruction
@@ -401,7 +422,7 @@ When a generation cannot bill to the subscription, the CLI returns a structured
401
422
  - **`4080` — Renewal payment is being retried; access is paused.** Tell the user Unlimited resumes automatically once the renewal succeeds and that they can render now with Spark or SOGNI (`--token-type spark` / `sogni`). **Never auto-retry the covered job in a loop** — it will keep failing until billing recovers.
402
423
  - **`4081` — Higher plan required.** Suggest upgrading to Unlimited Pro.
403
424
 
404
- Cancelling a paid subscription keeps access until the end of the paid period; cancelling during the trial ends access immediately. Manage billing where it was purchased (Stripe portal for web, App Store / Google Play settings for mobile) — the CLI does not change plans.
425
+ Cancelling a paid subscription keeps access until the end of the paid period; cancelling during the trial prevents the first charge and keeps trial access until the original trial end. Manage billing where it was purchased (Stripe portal for web, App Store / Google Play settings for mobile) — the CLI does not change plans.
405
426
 
406
427
  ### Suggest next steps after a render
407
428
 
@@ -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.40.0",
5
+ "version": "3.41.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",
@@ -34,6 +34,7 @@ const GATING_POLICIES = [
34
34
  "generate_video",
35
35
  "sound_to_video",
36
36
  "video_to_video",
37
+ "upscale_video",
37
38
  "generate_music",
38
39
  "generate_speech",
39
40
  "extend_video",
@@ -69,6 +70,7 @@ const GATING_POLICIES = [
69
70
  "generate_video",
70
71
  "sound_to_video",
71
72
  "video_to_video",
73
+ "upscale_video",
72
74
  "generate_music",
73
75
  "generate_speech",
74
76
  "extend_video",
@@ -103,6 +105,7 @@ const GATING_POLICIES = [
103
105
  "generate_video",
104
106
  "sound_to_video",
105
107
  "video_to_video",
108
+ "upscale_video",
106
109
  "generate_music",
107
110
  "generate_speech",
108
111
  "extend_video",
@@ -138,6 +141,7 @@ const GATING_POLICIES = [
138
141
  "generate_video",
139
142
  "sound_to_video",
140
143
  "video_to_video",
144
+ "upscale_video",
141
145
  "generate_music",
142
146
  "generate_speech",
143
147
  "extend_video",
@@ -316,6 +320,31 @@ const GATING_POLICIES = [
316
320
  },
317
321
  "rationale": "The planner identified uploaded-video stitching. Use stitch_video with the uploaded clips instead of rendering a fresh clip."
318
322
  },
323
+ {
324
+ "policyId": "UPLOADED_BASE_VIDEO_UPSCALE",
325
+ "version": "1.0.0",
326
+ "trigger": {
327
+ "allOf": [
328
+ "has_uploaded_video",
329
+ "video_modification:upscale"
330
+ ],
331
+ "sources": {
332
+ "has_uploaded_video": "session_state",
333
+ "video_modification:upscale": "planner"
334
+ }
335
+ },
336
+ "effect": {
337
+ "forbid": [
338
+ "generate_video",
339
+ "animate_photo",
340
+ "video_to_video"
341
+ ],
342
+ "require": [
343
+ "upscale_video"
344
+ ]
345
+ },
346
+ "rationale": "The planner identified a pure resolution upscale of the uploaded video. Use the promptless upscale_video tool; do not re-render the clip with a generative model."
347
+ },
319
348
  {
320
349
  "policyId": "HAS_PERSONA_AND_REQUESTS_VIDEO",
321
350
  "version": "1.0.0",
@@ -494,6 +523,15 @@ const REPAIR_RECIPES = [
494
523
  "maxRetries": 0,
495
524
  "repairNoteTemplate": "I need more details before I can run {{toolName}}. {{missingDetail}}"
496
525
  },
526
+ {
527
+ "recipeId": "upscale_video.user_input_incomplete",
528
+ "version": "1.0.0",
529
+ "toolName": "upscale_video",
530
+ "errorCode": "USER_INPUT_INCOMPLETE",
531
+ "mode": "stopAndAsk",
532
+ "maxRetries": 0,
533
+ "repairNoteTemplate": "I need more details before I can run {{toolName}}. {{missingDetail}}"
534
+ },
497
535
  {
498
536
  "recipeId": "generate_music.user_input_incomplete",
499
537
  "version": "1.0.0",
@@ -674,6 +712,15 @@ const REPAIR_RECIPES = [
674
712
  "maxRetries": 0,
675
713
  "repairNoteTemplate": "You have hit the credit limit for this turn. Buy Spark Packs to continue: https://docs.sogni.ai/pricing/#spark-packs"
676
714
  },
715
+ {
716
+ "recipeId": "upscale_video.cost_limit_exceeded",
717
+ "version": "1.0.0",
718
+ "toolName": "upscale_video",
719
+ "errorCode": "COST_LIMIT_EXCEEDED",
720
+ "mode": "stopAndAsk",
721
+ "maxRetries": 0,
722
+ "repairNoteTemplate": "You have hit the credit limit for this turn. Buy Spark Packs to continue: https://docs.sogni.ai/pricing/#spark-packs"
723
+ },
677
724
  {
678
725
  "recipeId": "generate_music.cost_limit_exceeded",
679
726
  "version": "1.0.0",
@@ -854,6 +901,15 @@ const REPAIR_RECIPES = [
854
901
  "maxRetries": 0,
855
902
  "repairNoteTemplate": "I cannot find the asset that {{toolName}} needs. {{message}} Which uploaded or generated asset did you want?"
856
903
  },
904
+ {
905
+ "recipeId": "upscale_video.asset_not_found",
906
+ "version": "1.0.0",
907
+ "toolName": "upscale_video",
908
+ "errorCode": "ASSET_NOT_FOUND",
909
+ "mode": "stopAndAsk",
910
+ "maxRetries": 0,
911
+ "repairNoteTemplate": "I cannot find the asset that {{toolName}} needs. {{message}} Which uploaded or generated asset did you want?"
912
+ },
857
913
  {
858
914
  "recipeId": "generate_music.asset_not_found",
859
915
  "version": "1.0.0",
@@ -1061,6 +1117,15 @@ const REPAIR_RECIPES = [
1061
1117
  "maxRetries": 0,
1062
1118
  "repairNoteTemplate": "{{toolName}} could not run: {{message}}"
1063
1119
  },
1120
+ {
1121
+ "recipeId": "upscale_video.workflow_validation_failed",
1122
+ "version": "1.0.0",
1123
+ "toolName": "upscale_video",
1124
+ "errorCode": "WORKFLOW_VALIDATION_FAILED",
1125
+ "mode": "stopAndAsk",
1126
+ "maxRetries": 0,
1127
+ "repairNoteTemplate": "{{toolName}} could not run: {{message}}"
1128
+ },
1064
1129
  {
1065
1130
  "recipeId": "generate_music.workflow_validation_failed",
1066
1131
  "version": "1.0.0",
@@ -1241,6 +1306,15 @@ const REPAIR_RECIPES = [
1241
1306
  "maxRetries": 0,
1242
1307
  "repairNoteTemplate": "{{toolName}} rejected the arguments: {{message}}"
1243
1308
  },
1309
+ {
1310
+ "recipeId": "upscale_video.parameter_invalid",
1311
+ "version": "1.0.0",
1312
+ "toolName": "upscale_video",
1313
+ "errorCode": "PARAMETER_INVALID",
1314
+ "mode": "stopAndAsk",
1315
+ "maxRetries": 0,
1316
+ "repairNoteTemplate": "{{toolName}} rejected the arguments: {{message}}"
1317
+ },
1244
1318
  {
1245
1319
  "recipeId": "generate_music.parameter_invalid",
1246
1320
  "version": "1.0.0",
@@ -1394,6 +1468,15 @@ const REPAIR_RECIPES = [
1394
1468
  "maxRetries": 0,
1395
1469
  "repairNoteTemplate": "The {{toolName}} worker failed. {{message}} Want me to try again or change the request?"
1396
1470
  },
1471
+ {
1472
+ "recipeId": "upscale_video.gpu_worker_failed",
1473
+ "version": "1.0.0",
1474
+ "toolName": "upscale_video",
1475
+ "errorCode": "GPU_WORKER_FAILED",
1476
+ "mode": "stopAndAsk",
1477
+ "maxRetries": 0,
1478
+ "repairNoteTemplate": "The {{toolName}} worker failed. {{message}} Want me to try again or change the request?"
1479
+ },
1397
1480
  {
1398
1481
  "recipeId": "generate_music.gpu_worker_failed",
1399
1482
  "version": "1.0.0",
@@ -1574,6 +1657,15 @@ const REPAIR_RECIPES = [
1574
1657
  "maxRetries": 0,
1575
1658
  "repairNoteTemplate": "The model {{toolName}} wanted is offline. {{message}} Pick a different model or try again later."
1576
1659
  },
1660
+ {
1661
+ "recipeId": "upscale_video.model_unavailable",
1662
+ "version": "1.0.0",
1663
+ "toolName": "upscale_video",
1664
+ "errorCode": "MODEL_UNAVAILABLE",
1665
+ "mode": "stopAndAsk",
1666
+ "maxRetries": 0,
1667
+ "repairNoteTemplate": "The model {{toolName}} wanted is offline. {{message}} Pick a different model or try again later."
1668
+ },
1577
1669
  {
1578
1670
  "recipeId": "generate_music.model_unavailable",
1579
1671
  "version": "1.0.0",
@@ -1754,6 +1846,15 @@ const REPAIR_RECIPES = [
1754
1846
  "maxRetries": 0,
1755
1847
  "repairNoteTemplate": "{{toolName}} needs permission you have not granted yet. {{message}}"
1756
1848
  },
1849
+ {
1850
+ "recipeId": "upscale_video.permission_required",
1851
+ "version": "1.0.0",
1852
+ "toolName": "upscale_video",
1853
+ "errorCode": "PERMISSION_REQUIRED",
1854
+ "mode": "stopAndAsk",
1855
+ "maxRetries": 0,
1856
+ "repairNoteTemplate": "{{toolName}} needs permission you have not granted yet. {{message}}"
1857
+ },
1757
1858
  {
1758
1859
  "recipeId": "generate_music.permission_required",
1759
1860
  "version": "1.0.0",
@@ -2044,6 +2145,15 @@ const REPAIR_RECIPES = [
2044
2145
  "maxRetries": 0,
2045
2146
  "repairNoteTemplate": "{{toolName}} timed out. {{message}} Want me to retry, or simplify the request?"
2046
2147
  },
2148
+ {
2149
+ "recipeId": "upscale_video.provider_timeout",
2150
+ "version": "1.0.0",
2151
+ "toolName": "upscale_video",
2152
+ "errorCode": "PROVIDER_TIMEOUT",
2153
+ "mode": "stopAndAsk",
2154
+ "maxRetries": 0,
2155
+ "repairNoteTemplate": "{{toolName}} timed out. {{message}} Want me to retry, or simplify the request?"
2156
+ },
2047
2157
  {
2048
2158
  "recipeId": "generate_music.provider_timeout",
2049
2159
  "version": "1.0.0",
@@ -2224,6 +2334,15 @@ const REPAIR_RECIPES = [
2224
2334
  "maxRetries": 0,
2225
2335
  "repairNoteTemplate": "The {{toolName}} run was cancelled by the user. I will stop here unless you ask me to try again."
2226
2336
  },
2337
+ {
2338
+ "recipeId": "upscale_video.user_cancelled",
2339
+ "version": "1.0.0",
2340
+ "toolName": "upscale_video",
2341
+ "errorCode": "USER_CANCELLED",
2342
+ "mode": "stopAndAsk",
2343
+ "maxRetries": 0,
2344
+ "repairNoteTemplate": "The {{toolName}} run was cancelled by the user. I will stop here unless you ask me to try again."
2345
+ },
2227
2346
  {
2228
2347
  "recipeId": "generate_music.user_cancelled",
2229
2348
  "version": "1.0.0",
@@ -2330,6 +2449,16 @@ const PROMPT_CONTRACTS = [
2330
2449
  "targetLongestEdge": "Explicit output longest edge in pixels, 512-15360. Use 7680 for 8K or 15360 for the 16K maximum. It must be larger than the source, and large enough that the other 8px-aligned edge remains at least 512px; aspect ratio is preserved."
2331
2450
  }
2332
2451
  },
2452
+ {
2453
+ "contractId": "upscale_video_v1",
2454
+ "version": "1.0.0",
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.",
2457
+ "parameterDocs": {
2458
+ "sourceVideoIndex": "Omit for the latest generated video, then the most recent upload. Generated videos are zero-based; -1/-2 select uploaded videos.",
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."
2460
+ }
2461
+ },
2333
2462
  {
2334
2463
  "contractId": "apply_style_v1",
2335
2464
  "version": "1.0.0",
@@ -2423,13 +2552,13 @@ const PROMPT_CONTRACTS = [
2423
2552
  },
2424
2553
  {
2425
2554
  "contractId": "video_to_video_v1",
2426
- "version": "1.0.0",
2555
+ "version": "1.1.0",
2427
2556
  "toolName": "video_to_video",
2428
- "baseDescription": "video_to_video transforms an uploaded video. Use for uploaded-video restyling, enhancement,\nupscaling/remastering, motion transfer from video to image, subject replacement, edge/pose/\ndepth-guided restyle, or explicit Seedance V2V transforms. Wan 3 is not a V2V model;\nits video inputs are loose references for new generation through generate_video.\n\nThis tool requires an uploaded video source. Do not use it for generated video indices. For\ngenerated or uploaded partial edits use replace_video_segment; for appended time use\nextend_video; for logos/text overlays use overlay_video; for stitching use stitch_video.\n\nChoose controlMode by intent. Use detailer for quality-only enhancement without restyling.\nUse seedance-v2v only when the user asks to transform/enhance/remaster an uploaded video\nwith Seedance, including uploaded-video upscale/remaster requests. For detailer,\ndescribe the original scene plus quality terms, not new content.\nUse outpaint to extend/expand the frame or change aspect ratio (positional, mask-free); set\noutpaintPosition and optionally outpaintAspectRatio. Use inpaint to regenerate a region\nwhile preserving the rest. If the user supplied a mask, set maskImageIndex; otherwise\nomit maskImageIndex so execution derives one from the source video and prompt.",
2557
+ "baseDescription": "video_to_video transforms an uploaded video. Use for uploaded-video restyling, generative\nenhancement or remastering, motion transfer from video to image, subject replacement, edge/pose/\ndepth-guided restyle, or explicit Seedance V2V transforms. Wan 3 is not a V2V model;\nits video inputs are loose references for new generation through generate_video.\nFor a pure resolution upscale (a sharper 1080p, 1440p, 2K, or HD copy of the same video),\nuse upscale_video instead; it is promptless and keeps every frame, the frame rate, and the audio.\n\nThis tool requires an uploaded video source. Do not use it for generated video indices. For\ngenerated or uploaded partial edits use replace_video_segment; for appended time use\nextend_video; for logos/text overlays use overlay_video; for stitching use stitch_video.\n\nChoose controlMode by intent. Use detailer for generative detail enhancement without restyling\nwhen the user wants the content re-rendered rather than only more resolution.\nUse seedance-v2v only when the user asks to transform/enhance/remaster an uploaded video\nwith Seedance, including uploaded-video upscale/remaster requests that name Seedance. For detailer,\ndescribe the original scene plus quality terms, not new content.\nUse outpaint to extend/expand the frame or change aspect ratio (positional, mask-free); set\noutpaintPosition and optionally outpaintAspectRatio. Use inpaint to regenerate a region\nwhile preserving the rest. If the user supplied a mask, set maskImageIndex; otherwise\nomit maskImageIndex so execution derives one from the source video and prompt.",
2429
2558
  "parameterDocs": {
2430
2559
  "prompt": "Describe the target appearance in present tense. For detailer, describe the original content plus quality qualifiers only. For outpaint, describe what fills the new area; for inpaint, describe only the masked region.",
2431
2560
  "videoSourceIndex": "Uploaded video index. Omit when there is one uploaded video; use 0 for first uploaded video or -1 if using negative upload notation.",
2432
- "controlMode": "Pick from intent: detailer for enhance, seedance-v2v for explicit Seedance V2V, canny/depth for video-only control restyles, pose for motion transfer onto a reference-image subject, animate-move/replace for WAN Animate, outpaint to extend/expand the canvas, inpaint to regenerate a masked region.",
2561
+ "controlMode": "Pick from intent: detailer for generative enhancement, seedance-v2v for explicit Seedance V2V, canny/depth for video-only control restyles, pose for motion transfer onto a reference-image subject, animate-move/replace for WAN Animate, outpaint to extend/expand the canvas, inpaint to regenerate a masked region.",
2433
2562
  "sourceImageIndex": "Required for animate-move, animate-replace, and pose when more than one image is available; the sole reference image may be auto-selected. LTX pose always needs a reference image. Ignored by canny, depth, detailer, outpaint, and inpaint.",
2434
2563
  "outpaintPosition": "outpaint only. Where the original frame sits in the expanded canvas (center/top/bottom/left/right); determines grow direction. Default center.",
2435
2564
  "outpaintAspectRatio": "outpaint only, optional. Target aspect ratio (e.g. 16:9) for the expanded canvas; the canvas only grows, never crops. Set only when the user names a target shape/orientation.",
@@ -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.40.0",
5
+ "version": "3.41.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.40.0",
3
+ "version": "3.41.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",
@@ -95,13 +95,13 @@
95
95
  "sogni-agent.mjs"
96
96
  ],
97
97
  "dependencies": {
98
- "@sogni-ai/sogni-intelligence-client": "3.28.1",
98
+ "@sogni-ai/sogni-intelligence-client": "3.29.0",
99
99
  "execa": "^10.0.1",
100
100
  "json5": "^2.2.3",
101
101
  "sharp": "0.35.4"
102
102
  },
103
103
  "overrides": {
104
- "@sogni-ai/sogni-client": "5.36.1"
104
+ "@sogni-ai/sogni-client": "5.38.0"
105
105
  },
106
106
  "openclaw": {
107
107
  "extensions": [