@sogni-ai/sogni-creative-agent-skill 3.63.0 → 3.65.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.
@@ -8,7 +8,7 @@ import { readFileSync } from 'node:fs';
8
8
  import { createInterface } from 'node:readline';
9
9
  import { dirname, join } from 'node:path';
10
10
  import { fileURLToPath } from 'node:url';
11
- import { TOOLS, getTool } from './tools.mjs';
11
+ import { TOOLS, getTool, hardKillTimeoutMs } from './tools.mjs';
12
12
  import { buildChildEnv, resolveAgentPath, resolveFfmpegPath } from './resolve.mjs';
13
13
  import { collectInlineImages } from './inline-images.mjs';
14
14
  import { runImportMedia } from './import-media.mjs';
@@ -20,12 +20,6 @@ import {
20
20
 
21
21
  const HERE = dirname(fileURLToPath(import.meta.url));
22
22
  const PROTOCOL_FALLBACK = '2025-06-18';
23
- const MIN_HARD_KILL_MS = 15 * 60 * 1000;
24
- const HARD_KILL_GRACE_MS = 60 * 1000;
25
- const DEFAULT_TOOL_TIMEOUT_SECONDS = {
26
- generate_video: 1800,
27
- generate_music: 600,
28
- };
29
23
  const PROGRESS_INTERVAL_MS = 10_000;
30
24
  const MAX_RESULT_CHARS = 20_000;
31
25
 
@@ -67,17 +61,6 @@ function textResult(text, isError = false) {
67
61
  return { content: [{ type: 'text', text }], isError };
68
62
  }
69
63
 
70
- function hardKillTimeoutMs(toolName, input) {
71
- const explicitTimeoutSeconds = Number(input?.timeout_seconds);
72
- const timeoutSeconds = Number.isFinite(explicitTimeoutSeconds) && explicitTimeoutSeconds > 0
73
- ? explicitTimeoutSeconds
74
- : DEFAULT_TOOL_TIMEOUT_SECONDS[toolName];
75
- if (!timeoutSeconds) return MIN_HARD_KILL_MS;
76
- // Let the CLI's own timeout run first so it can await the normal Sogni
77
- // project cancellation protocol before this process-level safety valve.
78
- return Math.max(MIN_HARD_KILL_MS, (timeoutSeconds * 1000) + HARD_KILL_GRACE_MS);
79
- }
80
-
81
64
  // Tools marked local in the registry run inside this process and must work
82
65
  // even when the sogni-agent CLI is not installed yet.
83
66
  const LOCAL_HANDLERS = { import_media: runImportMedia };
@@ -5,6 +5,26 @@
5
5
 
6
6
  const GEN_BASE = ['--json', '-q', '--no-update-check'];
7
7
 
8
+ // Past the CLI's longest default wait (30 minutes, for any render on Relaxed), so
9
+ // the CLI can report the project id before this process-level safety valve fires.
10
+ const MIN_HARD_KILL_MS = 31 * 60 * 1000;
11
+ const HARD_KILL_GRACE_MS = 60 * 1000;
12
+ const DEFAULT_TOOL_TIMEOUT_SECONDS = {
13
+ generate_video: 1800,
14
+ generate_music: 600,
15
+ };
16
+
17
+ export function hardKillTimeoutMs(toolName, input) {
18
+ const explicitTimeoutSeconds = Number(input?.timeout_seconds);
19
+ const timeoutSeconds = Number.isFinite(explicitTimeoutSeconds) && explicitTimeoutSeconds > 0
20
+ ? explicitTimeoutSeconds
21
+ : DEFAULT_TOOL_TIMEOUT_SECONDS[toolName];
22
+ if (!timeoutSeconds) return MIN_HARD_KILL_MS;
23
+ // Let the CLI's own timeout run first so it can await the normal Sogni
24
+ // project cancellation protocol before this process-level safety valve.
25
+ return Math.max(MIN_HARD_KILL_MS, (timeoutSeconds * 1000) + HARD_KILL_GRACE_MS);
26
+ }
27
+
8
28
  function push(args, flag, value) {
9
29
  if (value !== undefined && value !== null && value !== '') args.push(flag, String(value));
10
30
  }
@@ -19,6 +39,15 @@ function required(input, field, hint) {
19
39
 
20
40
  const str = (description) => ({ type: 'string', description });
21
41
  const num = (description) => ({ type: 'number', description });
42
+ const RENDER_OPTIONS = {
43
+ network: { type: 'string', enum: ['fast', 'relaxed'], description: 'Supernet for this render; omit to keep the configured default' },
44
+ priority: { type: 'boolean', description: 'Only when the user chooses Priority: paid Unlimited Fast worker generations consume fair-use capacity at 1.5x for earlier queue placement' },
45
+ };
46
+
47
+ function pushRenderOptions(args, input) {
48
+ push(args, '--network', input.network);
49
+ if (input.priority === true) args.push('--priority');
50
+ }
22
51
 
23
52
  // Chat clients (Claude Desktop etc.) never expose chat-attached files to this
24
53
  // server's filesystem; without this warning the model wastes turns discovering
@@ -43,6 +72,13 @@ export const TOOLS = [
43
72
  type: 'object',
44
73
  properties: {
45
74
  prompt: str('What to generate'),
75
+ ...RENDER_OPTIONS,
76
+ output_format: { type: 'string', enum: ['png', 'jpg', 'webp', 'gif'], description: 'GIF requires GPT Image 2.6' },
77
+ image_quality: { type: 'string', enum: ['low', 'medium', 'high', 'xhigh', 'max'] },
78
+ image_complexity: { type: 'string', enum: ['low', 'medium', 'high'], description: 'GPT Image 2.6 planning effort' },
79
+ image_frame_count: num('GPT Image 2.6 GIF frames, 2-16; default 9'),
80
+ image_frame_duration_ms: num('GIF frame duration, 20-2000 milliseconds; default 200'),
81
+ image_markup_url: str('Transparent annotation PNG for a GPT Image 2.6 still edit, aligned to the first context image'),
46
82
  output_path: str('Absolute file path to save the image (optional)'),
47
83
  quality: { type: 'string', enum: ['fast', 'hq', 'pro'], description: 'Quality preset' },
48
84
  model: str('Model id (optional; overrides quality preset)'),
@@ -59,6 +95,13 @@ export const TOOLS = [
59
95
  buildArgs(input) {
60
96
  const prompt = required(input, 'prompt');
61
97
  const args = [...GEN_BASE];
98
+ pushRenderOptions(args, input);
99
+ push(args, '--output-format', input.output_format);
100
+ push(args, '--image-quality', input.image_quality);
101
+ push(args, '--image-complexity', input.image_complexity);
102
+ push(args, '--image-frame-count', input.image_frame_count);
103
+ push(args, '--image-frame-duration-ms', input.image_frame_duration_ms);
104
+ push(args, '--image-markup-url', input.image_markup_url);
62
105
  push(args, '-o', input.output_path);
63
106
  push(args, '-Q', input.quality);
64
107
  push(args, '-m', input.model);
@@ -97,6 +140,9 @@ export const TOOLS = [
97
140
  type: 'object',
98
141
  properties: {
99
142
  prompt: str('The prompt, in the chosen model\'s own grammar (see the tool description): what is seen and heard'),
143
+ ...RENDER_OPTIONS,
144
+ output_format: { type: 'string', enum: ['mp4', 'mov'] },
145
+ return_last_frame: { type: 'boolean', description: 'Export the last frame for a supported video model' },
100
146
  output_path: str('Absolute .mp4 path to save (optional)'),
101
147
  model: str('Video model id (optional)'),
102
148
  workflow: { type: 'string', enum: ['t2v', 'i2v', 'r2v', 's2v', 'ia2v', 'a2v', 'v2v', 'animate-move', 'animate-replace'] },
@@ -141,6 +187,9 @@ export const TOOLS = [
141
187
  const finalize = input.seedance_finalize;
142
188
  const prompt = finalize ? input.prompt : required(input, 'prompt');
143
189
  const args = [...GEN_BASE, '--video'];
190
+ pushRenderOptions(args, input);
191
+ push(args, '--output-format', input.output_format);
192
+ if (input.return_last_frame === true) args.push('--return-last-frame');
144
193
  push(args, '-o', input.output_path);
145
194
  push(args, '-m', input.model);
146
195
  push(args, '--workflow', input.workflow);
@@ -210,6 +259,7 @@ export const TOOLS = [
210
259
  type: 'object',
211
260
  properties: {
212
261
  prompt: str('Style/mood description; include tempo and key, e.g. "warm acoustic ballad, 92 BPM, A minor"'),
262
+ ...RENDER_OPTIONS,
213
263
  output_path: str('Absolute audio file path to save (optional)'),
214
264
  lyrics: str('Song lyrics (optional). Music 3: plain section tags on their own lines ([Verse], [Chorus]), no modifiers inside brackets'),
215
265
  duration: num('Seconds. Music 3 (default): 10-300, default 60. ACE-Step turbo/sft: 10-600, default 30'),
@@ -228,6 +278,7 @@ export const TOOLS = [
228
278
  buildArgs(input) {
229
279
  const prompt = required(input, 'prompt');
230
280
  const args = [...GEN_BASE, '--music'];
281
+ pushRenderOptions(args, input);
231
282
  push(args, '-o', input.output_path);
232
283
  push(args, '--music-model', input.music_model);
233
284
  push(args, '--lyrics', input.lyrics);
@@ -347,11 +398,13 @@ export const TOOLS = [
347
398
  name: 'manage_personas',
348
399
  description:
349
400
  'Manage saved personas (named people with reference photos and optional voice clips). ' +
350
- 'Actions: list, add (needs name + ref photo), remove, resolve (show details). ' + CHAT_ATTACHMENT_NOTE,
401
+ 'Actions: list, add (needs name + ref photo), remove, resolve (show details), list_account, import_account (explicitly copy a saved account Persona and original references into the local library; never replaces a local name). ' + CHAT_ATTACHMENT_NOTE,
351
402
  inputSchema: {
352
403
  type: 'object',
353
404
  properties: {
354
- action: { type: 'string', enum: ['list', 'add', 'remove', 'resolve'] },
405
+ action: { type: 'string', enum: ['list', 'add', 'remove', 'resolve', 'list_account', 'import_account'] },
406
+ account_persona_id: str('Saved account Persona id, from list_account (import_account)'),
407
+ after: str('Next-page cursor returned by list_account'),
355
408
  name: str('Persona name (add/remove/resolve)'),
356
409
  ref: str('Reference photo path or URL (add)'),
357
410
  relationship: { type: 'string', enum: ['self', 'partner', 'child', 'friend', 'pet'] },
@@ -363,6 +416,12 @@ export const TOOLS = [
363
416
  buildArgs(input) {
364
417
  const action = required(input, 'action');
365
418
  if (action === 'list') return ['--json', '--no-update-check', '--persona-list'];
419
+ if (action === 'list_account') {
420
+ const args = ['--json', '--no-update-check', '--persona-list-account'];
421
+ push(args, '--persona-account-after', input.after);
422
+ return args;
423
+ }
424
+ if (action === 'import_account') return ['--json', '--no-update-check', '--persona-import-account', String(required(input, 'account_persona_id'))];
366
425
  const name = required(input, 'name');
367
426
  if (action === 'remove') return ['--no-update-check', '--persona-remove', String(name)];
368
427
  if (action === 'resolve') return ['--json', '--no-update-check', '--persona-resolve', String(name)];
package/llm.txt CHANGED
@@ -4,6 +4,16 @@ Agent skill and CLI for Sogni AI image, video, and music generation. Works as
4
4
  a skill source for Claude Code, OpenAI Codex CLI, Goose, Hermes Agent, OpenClaw,
5
5
  Manus AI, and other SKILL.md-aware agent runtimes.
6
6
 
7
+ Seedance draft mode is opt-in: explain when a 480p preview helps, quote the
8
+ draft, direct-final, and combined costs, ask the user's preference, and wait
9
+ before adding a paid draft. Drafts are an extra charge, not credit toward the
10
+ final. A later higher-quality/final request means finalize an approved unchanged
11
+ draft or render revised content directly at final resolution; another draft
12
+ requires renewed consent. Read `references/models.md` § Seedance 2.5.
13
+ After a failed or unusable 720p/1080p attempt, suggest testing the revision in
14
+ 480p draft mode before another expensive attempt; get consent before switching.
15
+ 480p drafts are roughly 5.5 times cheaper than 1080p; compare actual estimates.
16
+
7
17
  Current capabilities and limits: read `references/models.md` before answering
8
18
  model-selection questions. Seedance 2.5 supports 1080p with
9
19
  `--video -m seedance2-5 --target-resolution 1080`, 4–30s clips, MOV export,
@@ -229,7 +239,10 @@ unpublished scheduling mechanics or availability windows, and never call the pla
229
239
  Subscription-billing failures use `errorCategory: "subscription_billing"` with
230
240
  `errorCode` 4078 (vendor/no-entitlement -> use Premium Spark or reconnect), 4079
231
241
  (queue cap -> wait), 4080 (renewal retry, access paused -> pay with Spark/SOGNI,
232
- do NOT auto-retry the covered job), or 4081 (higher plan -> upgrade to Pro). Paid
242
+ do NOT auto-retry the covered job), 4081 (higher plan -> upgrade to Pro), or 4087
243
+ and 4089 (Fast capacity used up for the day or month -> offer `--network relaxed`,
244
+ Premium Spark with `--billing-mode tokens`, or waiting for the reset; do NOT retry
245
+ on Fast). Paid
233
246
  cancellation keeps access until period end; cancelling during the trial ends
234
247
  access immediately.
235
248
 
@@ -244,3 +257,5 @@ Sogni-AI/sogni-creative-agent-skill
244
257
  hosted API, models, personas, video editing)
245
258
  - `openclaw.plugin.json` — OpenClaw plugin manifest and config schema
246
259
  - `sogni-agent.mjs` — CLI used by the skill (`sogni-agent --help` is canonical)
260
+
261
+ Priority Fast: direct renders support explicit --priority on paid Unlimited worker jobs. Explain 1.5x daily/monthly fair-use consumption and obtain the user’s choice first. --network fast|relaxed chooses the worker pool. Hosted modes do not accept these flags. GPT Image 2.6 GIFs, planning complexity and annotation PNGs are documented in references/models.md.
@@ -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.63.0",
5
+ "version": "3.65.0",
6
6
  "skills": [
7
7
  "."
8
8
  ],
@@ -54,7 +54,7 @@
54
54
  "type": "string",
55
55
  "enum": ["fast", "relaxed"],
56
56
  "default": "fast",
57
- "description": "Default Sogni network for the client."
57
+ "description": "Default Sogni network for renders. Vendor models stay on Fast. --network overrides it for one run."
58
58
  },
59
59
  "defaultTokenType": {
60
60
  "type": "string",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sogni-ai/sogni-creative-agent-skill",
3
- "version": "3.63.0",
3
+ "version": "3.65.0",
4
4
  "description": "Sogni Creative Agent Skill: agent skill and CLI for Sogni AI image, 3D, speech, video, and music generation.",
5
5
  "type": "module",
6
6
  "main": "sogni-agent.mjs",
@@ -23,11 +23,11 @@
23
23
  "check:creative-agent-runtime": "node scripts/check-creative-agent-runtime.mjs",
24
24
  "sync:prompt-guides": "node scripts/sync-prompt-guides.mjs && npm run sync:hermes-skill",
25
25
  "check:prompt-guides": "node scripts/check-prompt-guides.mjs",
26
- "test": "npm run check:creative-agent-runtime && npm run check:prompt-guides && node --test test/*.test.mjs",
27
- "test:integration": "npm run check:creative-agent-runtime && SOGNI_INTEGRATION=1 node --test test/*.integration.mjs",
28
- "test:all": "npm run test && npm run test:integration",
29
- "test:coverage": "npm run check:creative-agent-runtime && node --test --experimental-test-coverage --test-coverage-include=sogni-agent.mjs --test-coverage-lines=50 --test-coverage-branches=35 --test-coverage-functions=50 test/sogni-agent.test.mjs",
30
- "test:coverage:full": "npm run check:creative-agent-runtime && node --test --experimental-test-coverage --test-coverage-include=sogni-agent.mjs --test-coverage-lines=50 --test-coverage-branches=35 --test-coverage-functions=50 test/*.test.mjs test/*.integration.mjs",
26
+ "test": "npm run check:creative-agent-runtime && npm run check:prompt-guides && node scripts/isolated-temp.mjs --test test/*.test.mjs",
27
+ "test:integration": "npm run check:creative-agent-runtime && node scripts/isolated-temp.mjs --test test/*.integration.mjs",
28
+ "test:all": "npm test",
29
+ "test:coverage": "npm run check:creative-agent-runtime && node scripts/isolated-temp.mjs --test --experimental-test-coverage --test-coverage-include=sogni-agent.mjs --test-coverage-lines=50 --test-coverage-branches=35 --test-coverage-functions=50 test/sogni-agent.test.mjs",
30
+ "test:coverage:full": "npm run check:creative-agent-runtime && node scripts/isolated-temp.mjs --test --experimental-test-coverage --test-coverage-include=sogni-agent.mjs --test-coverage-lines=50 --test-coverage-branches=35 --test-coverage-functions=50 test/*.test.mjs test/*.integration.mjs",
31
31
  "build:mcpb": "node scripts/build-mcpb.mjs",
32
32
  "publish:clawhub": "node scripts/publish-clawhub.mjs",
33
33
  "check:clawhub": "node scripts/publish-clawhub.mjs --check",
@@ -101,16 +101,17 @@
101
101
  "generated/creative-agent-runtime.mjs",
102
102
  "sogni-agent.mjs",
103
103
  "sam-segmentation.mjs",
104
- "media-utilities.mjs"
104
+ "media-utilities.mjs",
105
+ "account-personas.mjs"
105
106
  ],
106
107
  "dependencies": {
107
- "@sogni-ai/sogni-intelligence-client": "4.23.0",
108
+ "@sogni-ai/sogni-intelligence-client": "4.25.3",
108
109
  "execa": "^10.0.1",
109
110
  "json5": "^2.2.3",
110
111
  "sharp": "0.35.5"
111
112
  },
112
113
  "overrides": {
113
- "@sogni-ai/sogni-client": "5.74.0",
114
+ "@sogni-ai/sogni-client": "5.76.0",
114
115
  "undici@7": "7.30.1"
115
116
  },
116
117
  "openclaw": {
@@ -14,6 +14,11 @@ preserves normal CLI behavior while attributing the request to Claude Code.
14
14
 
15
15
  ## Setup
16
16
 
17
+ This plugin runs the local CLI. For local versus hosted MCP setup and hosted
18
+ availability, read [the MCP guide](https://docs.sogni.ai/agents/mcp/).
19
+ A hosted connection does not install this plugin or access its local files,
20
+ personas or memories.
21
+
17
22
  1. Install the CLI (one-time): `npm install -g @sogni-ai/sogni-creative-agent-skill@latest`.
18
23
  2. Provide your Sogni API key (get one at https://dashboard.sogni.ai/api-key): either set `SOGNI_API_KEY` in the environment, or save it to `~/.config/sogni/credentials` as `SOGNI_API_KEY=<your-key>`.
19
24
  3. Verify with `sogni-agent doctor --json` and confirm `"success": true` before reporting the install as working. Run `doctor` only after an install or upgrade, or when a command fails, never as a preflight before generating: generation commands check the key, ffmpeg and balance themselves.
@@ -34,6 +39,21 @@ stages unless the user requested a review pause. Preserve exact prompts, source
34
39
  choices, counts, and model choices; repeat shared requirements in every variation.
35
40
  Do not repeat a successful stage or automatically add `--no-filter` after failure.
36
41
  Honor requests to wait for user input; model-specific policies still apply.
42
+
43
+ **Seedance draft mode is opt-in.** Before adding a paid 480p draft, explain
44
+ that it can test motion, composition, or lighting before committing to 1080p;
45
+ quote the actual draft, direct-final, and combined cost, then ask which the user
46
+ prefers and wait. Draft cost is extra, not credit toward the final; video-input
47
+ drafts can be costly. If a 720p/1080p attempt fails or produces an unusable take,
48
+ suggest testing the revision in 480p draft mode before another expensive attempt:
49
+ roughly 5.5 times cheaper than 1080p, with actual estimates for the comparison.
50
+ Get consent before switching. An explicit draft request or agreed draft plan supplies
51
+ consent within its scope. A later higher-quality/final request supersedes that
52
+ plan: finalize an approved unchanged draft, or render revised content directly
53
+ at the requested final resolution. Another draft needs renewed consent. Read
54
+ [the Seedance 2.5 draft guide](../../references/models.md#seedance-25) before
55
+ using `--seedance-draft` or `--seedance-finalize`.
56
+
37
57
  `-o` replaces an existing file, so give each new render its own filename. Unless
38
58
  the user asks, never write over their source files or an earlier render, or
39
59
  remove their media, personas or memories.
@@ -132,3 +152,5 @@ Lessons: once per session, before the first render, read `~/.config/sogni/lesson
132
152
  The complete skill spec — every workflow, model default, persona schema, memory schema, and prompt-engineering note — lives at `../../SKILL.md` relative to this file, with deep-dive guides under `../../references/`. Resolve those paths from this installed `SKILL.md`, not from the user's working directory. Read them when the user's request needs detail beyond the quick examples above (e.g. choosing between video workflows, configuring persona references, planning a multi-step composition).
133
153
 
134
154
  Personal LoRA imports and library management: read [Personal LoRAs](../../references/personal-loras.md) for account-bound discovery, asynchronous import status, consent, compatible models, and rendering with owned adapters.
155
+
156
+ Use `--network fast|relaxed` for a direct render. Use `--priority` only after the user opts in to earlier Fast queue placement at 1.5× fair-use consumption on paid Unlimited. Worker models only; hosted chat and hosted workflows do not accept it. See the long-jobs-and-queues reference for details.
@@ -14,6 +14,27 @@ the operation (`generate` or `edit`). If either is missing, ask for it. If the
14
14
  exact pair is not registered, report that limitation;
15
15
  never substitute another destination model's prompt contract.
16
16
 
17
+ ## GPT Image 2.6 GIFs and annotations
18
+
19
+ Select `gpt-image-2.6-sunburst` or `gpt-image-2.6-flare` explicitly. For a GIF,
20
+ describe the action and return to the starting pose, then use `--output-format gif`,
21
+ `--image-frame-count 9`, and `--image-frame-duration-ms 200`. Nine frames at 200 ms
22
+ give a 1.8-second animation. GIFs accept text only: no context image, mask, markup,
23
+ transparent background, or compression setting. Frames must be 2–16; each edge
24
+ is a multiple of 16, and width × height × frames must not exceed 8,294,400.
25
+
26
+ ```bash
27
+ sogni-agent -m gpt-image-2.6-flare --output-format gif --width 320 --height 320 --image-quality medium --image-complexity high --image-frame-count 9 --image-frame-duration-ms 200 "A monkey lifts a lantern, blinks, and lowers it to its exact starting pose. Locked camera, seamless loop."
28
+ ```
29
+
30
+ `--image-complexity low|medium|high` controls planning separately from rendering
31
+ quality. For annotation-guided still edits, use `--image-markup-url` with a
32
+ separate transparent PNG matching the first `--context` image after orientation.
33
+ Describe the requested edit in the prompt. Do not combine an annotation with a mask.
34
+ Use a concrete size and quality when comparing prices. GIF quotes reserve an output
35
+ budget and settle downward to confirmed provider usage when lower. Limits checked
36
+ November 4, 2026 PT; the live API enforces 16 frames despite the guide's higher limit.
37
+
17
38
  ## Output contracts by family
18
39
 
19
40
  | Target family | Native prompt shape | Output envelope |
@@ -42,7 +63,7 @@ Prompt-only families return the directly runnable prompt with no label,
42
63
  Markdown fence, preamble, explanation, or render offer.
43
64
 
44
65
  <!-- BEGIN GENERATED PROMPT GUIDE: image-models -->
45
- <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.23.0; edit the rules there, not here. -->
66
+ <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.25.3; edit the rules there, not here. -->
46
67
 
47
68
  ## Per-model rules from Sogni's image prompt writer
48
69
 
@@ -5,6 +5,26 @@ going when the CLI stops waiting, when its connection drops, and when no agent
5
5
  is connected at all. These commands follow a project by id instead of holding a
6
6
  connection open for its whole life.
7
7
 
8
+ ## Rendering on Relaxed
9
+
10
+ `--network relaxed` (or `defaultNetwork: "relaxed"` in the plugin config) sends a
11
+ render to the Relaxed Supernet. It is included in Sogni Unlimited, including while
12
+ Fast is paused at the plan's fair-use capacity. Relaxed has far fewer workers, so a
13
+ video can wait for hours. Anything unfinished 24 hours after you submit it is
14
+ cancelled, and a project no online worker can run is cancelled much sooner. Always
15
+ submit Relaxed video with `--detach` and collect it with `--result <id> --wait`.
16
+
17
+ `sogni-agent --list-models --model-network relaxed` shows what runs there for
18
+ Unlimited members; a job paid with Spark or SOGNI, or from a trial, can still be
19
+ refused for a listed model. To stay on Fast once its capacity is used up, pay with
20
+ Premium Spark using `--billing-mode tokens`.
21
+
22
+ A plain render on Relaxed waits at least 30 minutes before the CLI stops waiting,
23
+ and stopping leaves the project running. `--source-reel` waits the same time for
24
+ each clip and fails if one takes longer. To run a reel there, pick a model that runs
25
+ on Relaxed and pass a long `-t`, for example
26
+ `--reel-model minimax-h3-fastvideo-int8_i2v_turbo -t 14400`.
27
+
8
28
  ## Commands
9
29
 
10
30
  ```bash
@@ -94,3 +114,11 @@ then.
94
114
  `--status`, `--result` and `--recent` need `@sogni-ai/sogni-client` 5.57.0 or
95
115
  later, and `--wait` needs 5.58.0; an older installation says so and asks for a
96
116
  skill update.
117
+
118
+ ## Fast, Relaxed and Priority
119
+
120
+ `--network fast|relaxed` selects the worker network for a render. `--priority` is a per-run opt-in for paid Unlimited or Unlimited Pro on Fast: earlier queue placement behind Premium Spark, with daily and monthly fair-use consumption at 1.5×. Explain that tradeoff and use it only when requested. It applies to covered worker models, excluding third-party vendor models, Relaxed, token billing, hosted chat and hosted workflows. It does not make the GPU faster. If refused, show the error and let the user choose standard Fast or Relaxed. Never retry or spend Premium Spark automatically.
121
+
122
+ ```bash
123
+ sogni-agent --priority --network fast --video -m minimax-h3-fasth3-t2v-turbo --duration 5 -o ./priority.mp4 "A paper bird flies across a sunlit courtyard"
124
+ ```
@@ -26,6 +26,7 @@ answering "which model should I use for X". For everyday generation prefer
26
26
  - Recommended model selectors by need
27
27
  - Video sizing & aspect ratios
28
28
  - GPT Image 2.5 controls (as of 2026-09)
29
+ - GPT Image 2.6 GIFs and annotations (as of 2026-11)
29
30
 
30
31
  ## Live model discovery
31
32
 
@@ -85,6 +86,8 @@ dimensions. "high quality" / "best quality" / "pro" → `-Q pro`; quick drafts
85
86
  | `gpt-image-2` | Variable | OpenAI GPT Image 2 text-to-image and edit, strong prompt and text rendering |
86
87
  | `gpt-image-2.5-sunburst` | Variable | GPT Image 2.5 Sunburst; explicit selection, edits, masks and transparency; the best edit when the user has Premium Spark or asks for top quality |
87
88
  | `gpt-image-2.5-flare` | Variable | GPT Image 2.5 Flare; explicit selection, edits, masks and transparency |
89
+ | `gpt-image-2.6-sunburst` | Variable | Explicit GPT Image 2.6 generation, edits, GIFs and annotation-guided still edits |
90
+ | `gpt-image-2.6-flare` | Variable | Explicit GPT Image 2.6 generation, edits, GIFs and annotation-guided still edits |
88
91
  | `seedream-5-0-pro-uncensored` | Slow (~35-95s) | Seedream 5.0 Pro Uncensored: text-to-image and edits from 1-10 context images; only when asked for; needs the Seedance Uncensored likeness agreement |
89
92
  | `flux1-schnell-fp8` | Very fast | Quick iterations |
90
93
  | `qwen_image_2512_fp8` | Medium (~30s) | High quality |
@@ -752,8 +755,28 @@ no negative prompt and no ControlNet.
752
755
  fail asynchronously after inferring the task.
753
756
  - **Audio-only reference**: unlike 2.0, Seedance 2.5 accepts standalone audio as
754
757
  its only loose reference.
755
- - **Draft mode** (Seedance 2.5 and 2.5 Uncensored): iterate at 480p, then render
756
- the take you keep at 1080p. `--seedance-draft` renders a 480p draft at the
758
+ - **Draft mode is opt-in** (Seedance 2.5 and 2.5 Uncensored). Before adding a
759
+ paid draft, explain the choice and ask the user's preference; wait for their
760
+ answer. A 480p preview can help judge uncertain motion, composition, lighting,
761
+ or prompt adherence before paying for 1080p, especially when rejected takes
762
+ would otherwise be full-resolution renders. It does not guarantee a better
763
+ result or lower total cost. If a 720p/1080p attempt fails or produces an unusable
764
+ take, suggest testing the revision in 480p draft mode before spending on another
765
+ high-resolution attempt. A 480p draft is roughly 5.5 times cheaper than 1080p;
766
+ compare actual estimates for the same inputs rather than guaranteeing that ratio.
767
+ Explain the recovery plan and get consent before switching; failure does not
768
+ authorize paid drafts or repeated high-resolution retries. Estimate the draft, direct final, and
769
+ combined draft-plus-final cost with `--estimate-video-cost`, keeping the model,
770
+ duration, aspect ratio, audio, and references matched to the planned job.
771
+ Video-input estimates can be conservative when source metadata is unavailable.
772
+ Label them as estimates, not actual charges or flat pricing.
773
+ Each draft is an extra charge, not credit toward the final; video-input drafts
774
+ use video-input pricing and must not be described as inherently cheap.
775
+ An explicit draft request or agreed draft plan supplies consent within its
776
+ scope; approval of one draft does not authorize an unbounded series of drafts.
777
+ If the user already requested final quality, render it directly without adding
778
+ a draft. If final resolution is unclear, ask whether they prefer 720p or 1080p.
779
+ `--seedance-draft` renders a 480p draft at the
757
780
  480p price; any normal Seedance 2.5 input works, and the size must be 480p
758
781
  (the CLI picks it when you give none). An ordinary 480p render cannot be
759
782
  finalized later. Only a job submitted as a draft can. `--seedance-finalize
@@ -764,6 +787,12 @@ no negative prompt and no ControlNet.
764
787
  again at 1080p for the draft's length, at the video-input rate when the draft
765
788
  had a video input. Judge the draft before finalizing: the final is the same
766
789
  video, not a new take.
790
+ A higher-quality/final request after a draft supersedes draft-first iteration:
791
+ finalize the approved draft only if its content is to stay unchanged. A change
792
+ to lighting, prompt, media, duration, or audio cannot be applied by finalizing;
793
+ render the revision directly at the requested final resolution. Another paid
794
+ draft requires renewed consent after explaining its additional cost. A request
795
+ for a 480p deliverable alone does not authorize a draft-plus-final workflow.
767
796
 
768
797
  The bundled CLI and pinned SDKs recognize `seedance-2-5` and transport typed
769
798
  tasks; see `package.json` for the current dependency versions. The direct CLI
@@ -1623,4 +1652,15 @@ Dimensions default to 1024×1024: multiples of 16, at most 3840 per edge,
1623
1652
  3:1 maximum aspect ratio, 655,360–8,294,400 pixels. Above 3,686,400 pixels is
1624
1653
  experimental. Transparency is integrated but clean cutout edges failed the
1625
1654
  initial Flare canaries; inspect native output against a contrasting background.
1626
- These source changes still require the coordinated package release and server rollout.
1655
+
1656
+
1657
+ ## GPT Image 2.6 GIFs and annotations (as of 2026-11)
1658
+
1659
+ Select `-m gpt-image-2.6-sunburst` or `-m gpt-image-2.6-flare`; existing image defaults stay the same. Both support the 2.5 still-image controls above, plus `--image-complexity low|medium|high`. Use `--output-format gif` for an animation, `--image-frame-count 2..16` (default 9), and `--image-frame-duration-ms 20..2000` (default 200). Describe the motion in the prompt. GIF sizing depends on the frame count; let the CLI fit a supported sheet and quote the actual settings.
1660
+
1661
+ For a still-image edit, supply the original as the first `-c` reference and its aligned transparent annotation PNG URL with `--image-markup-url`. The marks guide the changes and are separate from an alpha mask. The CLI accepts a prepared annotation image; it has no drawing canvas.
1662
+
1663
+ ```bash
1664
+ sogni-agent -m gpt-image-2.6-flare --output-format gif --image-frame-count 9 --image-frame-duration-ms 200 -o ./wave.gif "A small robot waves, seamless loop"
1665
+ sogni-agent -m gpt-image-2.6-sunburst -c original.jpg --image-markup-url https://example.com/annotation.png -o ./edited.png "Replace the circled chair with a red armchair"
1666
+ ```
@@ -70,6 +70,13 @@ CLI defaults are 512×512 images, count 1, spark tokens, prompt-hash seeds):
70
70
  Notes:
71
71
 
72
72
  - Seed strategies: `prompt-hash` (deterministic) or `random`.
73
+ - `defaultNetwork` sets the Supernet every local render uses; `--network` overrides
74
+ it for one run. With `relaxed`, a model with no Relaxed workers is refused rather
75
+ than moved to Fast (`sogni-agent --list-models --model-network relaxed` lists what
76
+ runs there), except vendor models, which stay on Fast. Hosted chat and hosted
77
+ workflows always run on Fast. Without a timeout setting, renders on Relaxed wait at
78
+ least 30 minutes; a `default*TimeoutSec` value in this config replaces that, so
79
+ raise any short one you have set.
73
80
  - `defaultEditModel` pins one model for every `-c` edit that names no `-m`.
74
81
  Leave it unset to keep the CLI's choice: `krea2_identity_edit_v1_2` for one
75
82
  or two context images, `flux3_image_klein_sd_int8_convrot` for three to ten.
@@ -9,6 +9,19 @@ multi-persona scenes, or style transformations of a referenced individual.
9
9
  Personas enable identity-preserving generation across sessions. Stored at
10
10
  `~/.config/sogni/personas/`.
11
11
 
12
+ ### Personas saved in your Sogni account
13
+
14
+ The Web and Chat share account Personas. The CLI keeps its local library and offers an explicit snapshot import; it never syncs or replaces local Personas automatically.
15
+
16
+ ```bash
17
+ sogni-agent --persona-list-account --json
18
+ sogni-agent --persona-list-account --persona-account-after "<nextCursor>" --json
19
+ sogni-agent --persona-import-account "<persona-id>" --json
20
+ sogni-agent --persona "Alice" -o ./portrait.png "Alice in a sunlit courtyard"
21
+ ```
22
+
23
+ Listing reads one page and returns `nextCursor`. Import copies the selected Persona’s original reference files through the authenticated API, including saved photos, character sheets and audio voice recordings. It also saves the description, appearance, attire, voice description and transcript. A matching local name is refused without replacing anything. The imported snapshot keeps working locally; later account edits require an explicit new import after you resolve the name conflict. The first identity photo anchors a frame-guided video; image edits and explicit reference-to-video runs can use its other saved images. All downloaded reference paths appear in the imported Persona JSON. A voice supplied only as a video is retained as a file, but must be extracted as audio before using it as a local voice clip.
24
+
12
25
  ### Managing Personas
13
26
 
14
27
  ```bash
@@ -124,7 +124,7 @@ LTX-2.5 text-to-video, one shot, so one sentence: "A medium shot frames a woman
124
124
  ```
125
125
 
126
126
  <!-- BEGIN GENERATED PROMPT GUIDE: ltx-2.5 -->
127
- <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.23.0; edit the rules there, not here. -->
127
+ <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.25.3; edit the rules there, not here. -->
128
128
 
129
129
  ### Sogni's prompt rules: ltx-2.5
130
130
 
@@ -179,7 +179,7 @@ Preserve requested visual style and production value without adding new objects,
179
179
  <!-- END GENERATED PROMPT GUIDE: ltx-2.5 -->
180
180
 
181
181
  <!-- BEGIN GENERATED PROMPT GUIDE: ltx-2.3 -->
182
- <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.23.0; edit the rules there, not here. -->
182
+ <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.25.3; edit the rules there, not here. -->
183
183
 
184
184
  ### Sogni's prompt rules: ltx-2.3
185
185
 
@@ -823,6 +823,15 @@ guarantees pixel-exact preservation or exact choreography. `video continuation`
823
823
  still needs an actual continuation workflow. Use I2VA, L2VA, or FL2VA when an
824
824
  endpoint must be locked.
825
825
 
826
+ **Inspect identity throughout motion transfer.** In a 2026-11-03 fifteen-second
827
+ Balanced photo-plus-video canary, the output switched to the source video's
828
+ performer midway through the shot even without reference-token compression.
829
+ Completing the requested duration and retaining the replacement in the first
830
+ and last frames did not establish quality. Inspect at least 24 native frames
831
+ across the whole take and both sides of every identity switch or cut. When
832
+ testing compression, include a matched uncompressed control before assigning
833
+ the defect to compression; one seed does not establish equivalence.
834
+
826
835
  For voice references, bind the voice to the speaking subject by reusing that
827
836
  subject's `(Sx)` in `subject_definitions`; do not put the speaker ID in
828
837
  `retention_analysis`. A timbre/rhythm/emotion/delivery reference must not import
@@ -964,7 +973,7 @@ the exact waveform-conditioned lip-sync input. Remote audio URLs and additional
964
973
  audio references keep their existing handling.
965
974
 
966
975
  <!-- BEGIN GENERATED PROMPT GUIDE: minimax-h3 -->
967
- <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.23.0; edit the rules there, not here. -->
976
+ <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.25.3; edit the rules there, not here. -->
968
977
 
969
978
  ### Sogni's prompt rules: minimax-h3
970
979
 
@@ -1182,7 +1191,7 @@ A low tracking shot races alongside a teal 1960s convertible down a sunlit coast
1182
1191
  ```
1183
1192
 
1184
1193
  <!-- BEGIN GENERATED PROMPT GUIDE: seedance-2.5 -->
1185
- <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.23.0; edit the rules there, not here. -->
1194
+ <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.25.3; edit the rules there, not here. -->
1186
1195
 
1187
1196
  ### Sogni's prompt rules: seedance-2.5
1188
1197
 
@@ -1256,7 +1265,7 @@ TARGET CAPABILITIES: Seedance 2.5 uses the same director-style prompt grammar an
1256
1265
  <!-- END GENERATED PROMPT GUIDE: seedance-2.5 -->
1257
1266
 
1258
1267
  <!-- BEGIN GENERATED PROMPT GUIDE: seedance-2.0 -->
1259
- <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.23.0; edit the rules there, not here. -->
1268
+ <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.25.3; edit the rules there, not here. -->
1260
1269
 
1261
1270
  ### Sogni's prompt rules: seedance-2.0
1262
1271
 
@@ -1365,7 +1374,7 @@ writer uses close this section.
1365
1374
  motion timing, camera path, framing, and background.
1366
1375
 
1367
1376
  <!-- BEGIN GENERATED PROMPT GUIDE: wan-2.2 -->
1368
- <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.23.0; edit the rules there, not here. -->
1377
+ <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.25.3; edit the rules there, not here. -->
1369
1378
 
1370
1379
  ### Sogni's prompt rules: wan-2.2
1371
1380
 
@@ -1455,7 +1464,7 @@ The rules Sogni's own prompt writer uses close this section.
1455
1464
  - Prompts may run to 20,000 characters.
1456
1465
 
1457
1466
  <!-- BEGIN GENERATED PROMPT GUIDE: wan-3 -->
1458
- <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.23.0; edit the rules there, not here. -->
1467
+ <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.25.3; edit the rules there, not here. -->
1459
1468
 
1460
1469
  ### Sogni's prompt rules: wan-3
1461
1470
 
@@ -1510,7 +1519,7 @@ audio that is always on. What it renders well and the reference limits are in
1510
1519
  [models.md § HappyHorse 1.1](./models.md#happyhorse-11-prompting-tips).
1511
1520
 
1512
1521
  <!-- BEGIN GENERATED PROMPT GUIDE: happyhorse-1.1 -->
1513
- <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.23.0; edit the rules there, not here. -->
1522
+ <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.25.3; edit the rules there, not here. -->
1514
1523
 
1515
1524
  ### Sogni's prompt rules: happyhorse-1.1
1516
1525
 
@@ -3,12 +3,12 @@
3
3
  "private": true,
4
4
  "type": "module",
5
5
  "dependencies": {
6
- "@sogni-ai/sogni-intelligence-client": "4.23.0",
6
+ "@sogni-ai/sogni-intelligence-client": "4.25.3",
7
7
  "execa": "^10.0.1",
8
8
  "json5": "^2.2.3",
9
9
  "sharp": "0.35.5"
10
10
  },
11
11
  "overrides": {
12
- "@sogni-ai/sogni-client": "5.74.0"
12
+ "@sogni-ai/sogni-client": "5.76.0"
13
13
  }
14
14
  }
@@ -9,3 +9,5 @@ This is the Codex plugin surface. Wherever the referenced skill says
9
9
  `sogni-agent` or `sogni-agent-claude-code`, invoke `sogni-agent-codex`.
10
10
 
11
11
  Read `../../plugin-skills/sogni-creative-agent/SKILL.md` relative to this installed file completely and follow it. Resolve every subsequent plugin path from the plugin root two directories above this file, never from the user's working directory.
12
+
13
+ Use `--network fast|relaxed` for a direct render. Use `--priority` only after the user opts in to earlier Fast queue placement at 1.5× fair-use consumption on paid Unlimited. Worker models only; hosted chat and hosted workflows do not accept it. See the long-jobs-and-queues reference for details.