@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.
- package/.agents/skills/sogni-creative-agent-skill/SKILL.md +14 -2
- package/.agents/skills/sogni-creative-agent-skill/references/hosted-api.md +72 -1
- package/.agents/skills/sogni-creative-agent-skill/references/models.md +19 -0
- package/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/CHANGELOG.md +29 -0
- package/README.md +3 -2
- package/SKILL.md +24 -3
- package/desktop-extension/manifest.json +1 -1
- package/generated/creative-agent-runtime.mjs +132 -3
- package/openclaw.plugin.json +1 -1
- package/package.json +3 -3
- package/plugin-skills/sogni-creative-agent/SKILL.md +8 -0
- package/references/hosted-api.md +72 -1
- package/references/interactive-worlds.md +72 -0
- package/references/models.md +19 -0
- package/skill-package.json +1 -1
- package/skills/README.md +1 -1
- package/skills/video_editing.md +4 -1
- package/sogni-agent.mjs +366 -36
- package/version.mjs +1 -1
|
@@ -25,6 +25,14 @@ Do not run the default `npx setup-sogni-agent-skill` from an installed plugin un
|
|
|
25
25
|
|
|
26
26
|
## Quick examples
|
|
27
27
|
|
|
28
|
+
Preserve the requested stage: answer capability questions, deliver drafts for
|
|
29
|
+
writing/review requests, and create only a still for storyboard-image requests.
|
|
30
|
+
Continue an explicitly requested images-to-video sequence through its remaining
|
|
31
|
+
stages unless the user requested a review pause. Preserve exact prompts, source
|
|
32
|
+
choices, counts, and model choices; repeat shared requirements in every variation.
|
|
33
|
+
Do not repeat a successful stage or automatically add `--no-filter` after failure.
|
|
34
|
+
Honor requests to wait for user input; model-specific policies still apply.
|
|
35
|
+
|
|
28
36
|
- Image: `sogni-agent "a cat on the moon, cinematic"`
|
|
29
37
|
- Image edit: `sogni-agent -c <path> "make it night, add fireflies"`
|
|
30
38
|
- Video (image-to-video): `sogni-agent --video --ref <path> "gentle camera pan"` (defaults to `wan_v2.2-14b-fp8_i2v_lightx2v`)
|
package/references/hosted-api.md
CHANGED
|
@@ -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
|
|
@@ -55,6 +55,30 @@ its exact bytes and its hash. Never re-save, re-crop or screenshot it, and never
|
|
|
55
55
|
substitute a frame extracted from a video for it — a mask traced against one
|
|
56
56
|
copy will not fit another.
|
|
57
57
|
|
|
58
|
+
### Where the character goes in the shot
|
|
59
|
+
|
|
60
|
+
**Do not put the character front, centre, large and looking at the camera.**
|
|
61
|
+
This is the easiest mistake to make and the hardest to undo, because it is
|
|
62
|
+
usually written once into a shared identity block and then inherited by every
|
|
63
|
+
scene in the world. One build asked for "this single mascot visibly present and
|
|
64
|
+
full-bodied, around one third of the picture height" and then added "stands
|
|
65
|
+
center foreground" to each scene on top of it. Twenty-odd scenes came back as
|
|
66
|
+
the same portrait with different wallpaper. Mark: "NEVER PLACE the main
|
|
67
|
+
character front and center looking at the viewer in every scene ... the main
|
|
68
|
+
character should move in depth and position and not take up so much of the
|
|
69
|
+
screen and not always be looking at the viewer."
|
|
70
|
+
|
|
71
|
+
Compose around the *place* and let the character be in it: off to one side,
|
|
72
|
+
well back in depth, small against the scale, seen from the back or three-
|
|
73
|
+
quarters, occupied with something, entering or leaving. Vary it scene to scene.
|
|
74
|
+
A large camera-facing foreground pose is a choice to make once, for the scene
|
|
75
|
+
where it is the point — never the default.
|
|
76
|
+
|
|
77
|
+
Identity and framing are separate instructions, and only the framing should
|
|
78
|
+
move. Keep every clause about fur, glasses, nose, horn and proportions exactly
|
|
79
|
+
as it is; a character whose placement varies is still the same character, and
|
|
80
|
+
loosening the identity to get variety costs the thing the world is built on.
|
|
81
|
+
|
|
58
82
|
### Keeping a character
|
|
59
83
|
|
|
60
84
|
A name is not an identity lock. `krea2_identity_edit_sogni_v0_3_alpha` takes
|
|
@@ -102,6 +126,54 @@ Four SAM 3 failures worth knowing before you spend anything:
|
|
|
102
126
|
|
|
103
127
|
### Crossings between scenes
|
|
104
128
|
|
|
129
|
+
**Describe a journey, never a transformation.** This is the single biggest
|
|
130
|
+
quality lever on a crossing and it is easy to get wrong. Write "the cabin drops
|
|
131
|
+
down the cable, cloud tearing past the windows, until the platform slides into
|
|
132
|
+
frame" and you get travel. Write "the cloud thins into rainforest mist" or "the
|
|
133
|
+
street gives way to the hill" and you get a dissolve — the model reads
|
|
134
|
+
*becomes*, *gives way to*, *opens out into* as an instruction to blend, and no
|
|
135
|
+
amount of "no crossfade" elsewhere in the prompt will override a concrete
|
|
136
|
+
instruction to morph.
|
|
137
|
+
|
|
138
|
+
The tell that a crossing is about to fail is that the journey is *impossible*:
|
|
139
|
+
into a telescope barrel, into a phone earpiece, into a jukebox cabinet, through
|
|
140
|
+
a mirror, into a slot in a rack. With no space to move through, blending is all
|
|
141
|
+
the model has left. Give it real geography instead — go *around* rather than
|
|
142
|
+
*through*. A telescope crossing works if the camera climbs the barrel and keeps
|
|
143
|
+
going up through actual cloud to the observatory; it dissolves if it goes in at
|
|
144
|
+
the eyepiece.
|
|
145
|
+
|
|
146
|
+
The reliable trick for a crossing that really is a portal — under a basket lid,
|
|
147
|
+
into a diving bell — is to let the object physically swallow the lens. The lid
|
|
148
|
+
swings down across frame, it is dark for a beat, and the camera comes out the
|
|
149
|
+
other side. That is occlusion, which is travel, and it never reads as a fade.
|
|
150
|
+
|
|
151
|
+
Distance matters as much as wording. A crossing is about five seconds; asking
|
|
152
|
+
for rainforest canopy to open ocean to Manhattan in that time makes the model
|
|
153
|
+
stall and go to mush even when every verb is a travel verb. Cut the geography
|
|
154
|
+
until the move is one continuous gesture.
|
|
155
|
+
|
|
156
|
+
**No frame-statistics metric can detect a fade. Look at the clip.** This is
|
|
157
|
+
worth stating flatly because two plausible metrics were tried and both inverted:
|
|
158
|
+
|
|
159
|
+
- *Edge energy at the midpoint against the ends.* Reads as a softness detector,
|
|
160
|
+
but fast camera travel with objects whipping past the lens produces real
|
|
161
|
+
motion blur, which drops edge energy exactly as a dissolve does.
|
|
162
|
+
- *Correlating the middle against both ends and taking the lower.* Reads as a
|
|
163
|
+
superimposition detector, but two scenes that simply look alike — two rainy
|
|
164
|
+
streets — correlate highly with nothing blended, and a deliberate dark
|
|
165
|
+
occlusion beat correlates with neither end while being exactly right.
|
|
166
|
+
|
|
167
|
+
Combining them does not help, because the occlusion the crossing wants — a lid
|
|
168
|
+
swinging over the lens, a bell going down into dark water, a turn into an
|
|
169
|
+
unlit stairwell — is, in frame statistics, indistinguishable from mush: a
|
|
170
|
+
middle that resembles neither end and carries little detail. Both rewrites
|
|
171
|
+
measured *worse* than the transformations they replaced and both were plainly
|
|
172
|
+
better on screen. Extract a strip of eight frames across the whole clip and
|
|
173
|
+
look at it. One picture smeared or blocked is travel; two pictures
|
|
174
|
+
superimposed is a fade. That judgement takes seconds and is the only one that
|
|
175
|
+
has been right.
|
|
176
|
+
|
|
105
177
|
Anchor first *and* last frame on the exact retained stills. That is what makes a
|
|
106
178
|
journey feel continuous instead of like a cut: the clip opens on the frame the
|
|
107
179
|
visitor was already looking at and lands on the one they are about to explore.
|
package/references/models.md
CHANGED
|
@@ -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`.
|
package/skill-package.json
CHANGED
package/skills/README.md
CHANGED
|
@@ -23,7 +23,7 @@ Available to every per-skill consumer. Sogni-hosted chat loads all capabilities
|
|
|
23
23
|
| [`image_generation`](./image_generation.md) | `generate_image` |
|
|
24
24
|
| [`image_editing`](./image_editing.md) | `edit_image`, `upscale_image`, `restore_photo`, `apply_style`, `change_angle`, `refine_result` |
|
|
25
25
|
| [`video_generation`](./video_generation.md) | `generate_video` |
|
|
26
|
-
| [`video_editing`](./video_editing.md) | `animate_photo`, `sound_to_video`, `video_to_video`, `stitch_video`, `orbit_video`, `dance_montage`, `extend_video`, `replace_video_segment`, `overlay_video`, `add_subtitles` |
|
|
26
|
+
| [`video_editing`](./video_editing.md) | `animate_photo`, `sound_to_video`, `video_to_video`, `upscale_video`, `stitch_video`, `orbit_video`, `dance_montage`, `extend_video`, `replace_video_segment`, `overlay_video`, `add_subtitles` |
|
|
27
27
|
| [`music_generation`](./music_generation.md) | `generate_music` |
|
|
28
28
|
| [`media_analysis`](./media_analysis.md) | `analyze_image`, `analyze_video`, `extract_metadata` |
|
|
29
29
|
| [`persona_management`](./persona_management.md) | `resolve_personas`, `manage_memory` |
|
package/skills/video_editing.md
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: video_editing
|
|
3
|
-
description: Source-conditioned video flows: animate a photo, audio-driven motion, video style transfer, Seedance/HappyHorse/MiniMax H3 references, stitching, orbits, dance-montage compositions, segment extend/replace, and pure-ffmpeg post-production (overlay, subtitles).
|
|
3
|
+
description: Source-conditioned video flows: animate a photo, audio-driven motion, video style transfer, promptless FlashVSR video upscaling, Seedance/HappyHorse/MiniMax H3 references, stitching, orbits, dance-montage compositions, segment extend/replace, and pure-ffmpeg post-production (overlay, subtitles).
|
|
4
4
|
always_loaded: false
|
|
5
5
|
tool_names:
|
|
6
6
|
- animate_photo
|
|
7
7
|
- sound_to_video
|
|
8
8
|
- video_to_video
|
|
9
|
+
- upscale_video
|
|
9
10
|
- stitch_video
|
|
10
11
|
- orbit_video
|
|
11
12
|
- dance_montage
|
|
@@ -24,6 +25,7 @@ Convert a still image, audio track, or existing clip into video, plus Seedance a
|
|
|
24
25
|
- `animate_photo` — photo-to-video animation with LTX/WAN/Seedance/HappyHorse/MiniMax H3 i2v and first/last-frame routing.
|
|
25
26
|
- `sound_to_video` — audio-synced video generation.
|
|
26
27
|
- `video_to_video` — video style transfer with ControlNet.
|
|
28
|
+
- `upscale_video` — promptless FlashVSR upscale of one uploaded or generated video to 1080p or 1440p, keeping every frame, the frame rate, the aspect ratio, and the audio.
|
|
27
29
|
- `stitch_video` — concatenate previously rendered clips.
|
|
28
30
|
- `orbit_video` — 360° orbit composition with optional dialogue.
|
|
29
31
|
- `dance_montage` — beat-synced dance-style composition over uploaded photos.
|
|
@@ -36,6 +38,7 @@ Convert a still image, audio track, or existing clip into video, plus Seedance a
|
|
|
36
38
|
|
|
37
39
|
- Per-clip retry and the batch progress contract are sacred — never collapse a multi-clip render down to a single waterfall call.
|
|
38
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.
|
|
39
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.
|
|
40
43
|
- Keep per-clip prompt arrays and source/end image arrays when clips need different assets, durations, audio windows, or other per-output settings.
|
|
41
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.
|