@sogni-ai/sogni-creative-agent-skill 3.64.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.
- package/.agents/skills/sogni-creative-agent-skill/SKILL.md +3 -1
- package/.agents/skills/sogni-creative-agent-skill/references/image-prompting.md +1 -1
- package/.agents/skills/sogni-creative-agent-skill/references/long-jobs-and-queues.md +8 -0
- package/.agents/skills/sogni-creative-agent-skill/references/models.md +15 -1
- package/.agents/skills/sogni-creative-agent-skill/references/personas-memory.md +13 -0
- package/.agents/skills/sogni-creative-agent-skill/references/video-prompting.md +8 -8
- package/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/CHANGELOG.md +7 -0
- package/README.md +5 -1
- package/SKILL.md +2 -3
- package/account-personas.mjs +50 -0
- package/desktop-extension/manifest.json +1 -1
- package/desktop-extension/server/tools.mjs +41 -2
- package/llm.txt +2 -0
- package/openclaw.plugin.json +1 -1
- package/package.json +7 -6
- package/plugin-skills/sogni-creative-agent/SKILL.md +2 -0
- package/references/image-prompting.md +1 -1
- package/references/long-jobs-and-queues.md +8 -0
- package/references/models.md +15 -1
- package/references/personas-memory.md +13 -0
- package/references/video-prompting.md +8 -8
- package/skill-package.json +2 -2
- package/skills/sogni-creative-agent/SKILL.md +2 -0
- package/sogni-agent.mjs +65 -6
- package/version.mjs +1 -1
|
@@ -3,7 +3,7 @@ name: sogni-creative-agent-skill
|
|
|
3
3
|
description: "Generate and edit images, create Pixal3D 3D models, remove backgrounds with BiRefNet, synthesize Qwen3-TTS speech, 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, build a playable world, apply a saved identity, or refine an earlier Sogni result."
|
|
4
4
|
license: MIT
|
|
5
5
|
metadata:
|
|
6
|
-
version: "3.
|
|
6
|
+
version: "3.65.0"
|
|
7
7
|
author: Sogni AI
|
|
8
8
|
hermes:
|
|
9
9
|
category: creative
|
|
@@ -248,3 +248,5 @@ and Music 3 section tags. Discover 3D with `--search-models pixal3d` or
|
|
|
248
248
|
Where a reference says `sogni-agent`, substitute `sogni-agent-hermes`.
|
|
249
249
|
|
|
250
250
|
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.
|
|
251
|
+
|
|
252
|
+
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.
|
|
@@ -63,7 +63,7 @@ Prompt-only families return the directly runnable prompt with no label,
|
|
|
63
63
|
Markdown fence, preamble, explanation, or render offer.
|
|
64
64
|
|
|
65
65
|
<!-- BEGIN GENERATED PROMPT GUIDE: image-models -->
|
|
66
|
-
<!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.25.
|
|
66
|
+
<!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.25.3; edit the rules there, not here. -->
|
|
67
67
|
|
|
68
68
|
## Per-model rules from Sogni's image prompt writer
|
|
69
69
|
|
|
@@ -114,3 +114,11 @@ then.
|
|
|
114
114
|
`--status`, `--result` and `--recent` need `@sogni-ai/sogni-client` 5.57.0 or
|
|
115
115
|
later, and `--wait` needs 5.58.0; an older installation says so and asks for a
|
|
116
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 |
|
|
@@ -1649,4 +1652,15 @@ Dimensions default to 1024×1024: multiples of 16, at most 3840 per edge,
|
|
|
1649
1652
|
3:1 maximum aspect ratio, 655,360–8,294,400 pixels. Above 3,686,400 pixels is
|
|
1650
1653
|
experimental. Transparency is integrated but clean cutout edges failed the
|
|
1651
1654
|
initial Flare canaries; inspect native output against a contrasting background.
|
|
1652
|
-
|
|
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
|
+
```
|
|
@@ -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.25.
|
|
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.25.
|
|
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
|
|
|
@@ -973,7 +973,7 @@ the exact waveform-conditioned lip-sync input. Remote audio URLs and additional
|
|
|
973
973
|
audio references keep their existing handling.
|
|
974
974
|
|
|
975
975
|
<!-- BEGIN GENERATED PROMPT GUIDE: minimax-h3 -->
|
|
976
|
-
<!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.25.
|
|
976
|
+
<!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.25.3; edit the rules there, not here. -->
|
|
977
977
|
|
|
978
978
|
### Sogni's prompt rules: minimax-h3
|
|
979
979
|
|
|
@@ -1191,7 +1191,7 @@ A low tracking shot races alongside a teal 1960s convertible down a sunlit coast
|
|
|
1191
1191
|
```
|
|
1192
1192
|
|
|
1193
1193
|
<!-- BEGIN GENERATED PROMPT GUIDE: seedance-2.5 -->
|
|
1194
|
-
<!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.25.
|
|
1194
|
+
<!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.25.3; edit the rules there, not here. -->
|
|
1195
1195
|
|
|
1196
1196
|
### Sogni's prompt rules: seedance-2.5
|
|
1197
1197
|
|
|
@@ -1265,7 +1265,7 @@ TARGET CAPABILITIES: Seedance 2.5 uses the same director-style prompt grammar an
|
|
|
1265
1265
|
<!-- END GENERATED PROMPT GUIDE: seedance-2.5 -->
|
|
1266
1266
|
|
|
1267
1267
|
<!-- BEGIN GENERATED PROMPT GUIDE: seedance-2.0 -->
|
|
1268
|
-
<!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.25.
|
|
1268
|
+
<!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.25.3; edit the rules there, not here. -->
|
|
1269
1269
|
|
|
1270
1270
|
### Sogni's prompt rules: seedance-2.0
|
|
1271
1271
|
|
|
@@ -1374,7 +1374,7 @@ writer uses close this section.
|
|
|
1374
1374
|
motion timing, camera path, framing, and background.
|
|
1375
1375
|
|
|
1376
1376
|
<!-- BEGIN GENERATED PROMPT GUIDE: wan-2.2 -->
|
|
1377
|
-
<!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.25.
|
|
1377
|
+
<!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.25.3; edit the rules there, not here. -->
|
|
1378
1378
|
|
|
1379
1379
|
### Sogni's prompt rules: wan-2.2
|
|
1380
1380
|
|
|
@@ -1464,7 +1464,7 @@ The rules Sogni's own prompt writer uses close this section.
|
|
|
1464
1464
|
- Prompts may run to 20,000 characters.
|
|
1465
1465
|
|
|
1466
1466
|
<!-- BEGIN GENERATED PROMPT GUIDE: wan-3 -->
|
|
1467
|
-
<!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.25.
|
|
1467
|
+
<!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.25.3; edit the rules there, not here. -->
|
|
1468
1468
|
|
|
1469
1469
|
### Sogni's prompt rules: wan-3
|
|
1470
1470
|
|
|
@@ -1519,7 +1519,7 @@ audio that is always on. What it renders well and the reference limits are in
|
|
|
1519
1519
|
[models.md § HappyHorse 1.1](./models.md#happyhorse-11-prompting-tips).
|
|
1520
1520
|
|
|
1521
1521
|
<!-- BEGIN GENERATED PROMPT GUIDE: happyhorse-1.1 -->
|
|
1522
|
-
<!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.25.
|
|
1522
|
+
<!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.25.3; edit the rules there, not here. -->
|
|
1523
1523
|
|
|
1524
1524
|
### Sogni's prompt rules: happyhorse-1.1
|
|
1525
1525
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sogni-creative-agent",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.65.0",
|
|
4
4
|
"description": "Sogni Creative Agent: image, 3D, speech, video, and music generation via Sogni AI's decentralized GPU network. Supports personas, persistent memories, style transfer, and multi-step creative workflows.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Sogni AI",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [3.65.0] - 2026-11-05
|
|
2
|
+
|
|
3
|
+
- Keep `test:all` offline and require an explicit environment opt-in for paid integration tests. Release checks never enable real GPU jobs automatically.
|
|
4
|
+
- Add explicit `--priority` for covered Fast renders on paid Unlimited, with 1.5× daily and monthly fair-use consumption. The default stays ordinary Fast.
|
|
5
|
+
- List account Personas with `--persona-list-account` and copy a selected one into the local library with `--persona-import-account`. Imports retain original photos, character sheets, audio voice recordings and descriptions; existing local Personas are preserved.
|
|
6
|
+
- Desktop tools now forward Fast/Relaxed choices, Priority and GPT Image 2.6 GIF, complexity and annotation controls. Model references and prompt guides match the current SDK chain.
|
|
7
|
+
|
|
1
8
|
## [3.64.0] - 2026-11-05
|
|
2
9
|
|
|
3
10
|
- Render on Relaxed from the CLI: `--network fast|relaxed` picks the Supernet for one run, and `defaultNetwork` now applies to renders. Before this, both only changed the connection and every job still ran on Fast. If you already set `defaultNetwork: "relaxed"`, renders now go to Relaxed: models with no Relaxed workers are refused with a hint rather than moved to Fast, and vendor models stay on Fast. Renders on Relaxed wait at least 30 minutes by default. Fast fair-use refusals (4087, 4089) now explain how to reach Relaxed, and hints for these refusals also show without `--json`.
|
package/README.md
CHANGED
|
@@ -1084,6 +1084,10 @@ Actual throughput varies with demand, available Supernet capacity, and fair-use
|
|
|
1084
1084
|
- **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.
|
|
1085
1085
|
- **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.
|
|
1086
1086
|
|
|
1087
|
+
### Priority Fast
|
|
1088
|
+
|
|
1089
|
+
`--priority` explicitly selects earlier Fast queue placement for a covered worker render on paid Unlimited or Unlimited Pro, behind Premium Spark. Daily and monthly fair-use consumption is 1.5×. It sets subscription billing and never falls back to token payment. Vendor models, Relaxed, hosted chat and hosted workflows are excluded. Existing render defaults stay the same.
|
|
1090
|
+
|
|
1087
1091
|
### Subscription billing errors
|
|
1088
1092
|
|
|
1089
1093
|
When a generation cannot bill to the subscription, the CLI surfaces a structured error (`--json` includes `errorCode`, `errorCategory`, and a `hint`):
|
|
@@ -1146,7 +1150,7 @@ Run the unit test suite (works without any Sogni credentials or private repos):
|
|
|
1146
1150
|
npm test
|
|
1147
1151
|
```
|
|
1148
1152
|
|
|
1149
|
-
Paid integration tests
|
|
1153
|
+
Paid integration tests require a separately authorized, bounded live run: explicitly set `SOGNI_INTEGRATION=1` when running `npm run test:integration` (requires a Sogni API key and submits real GPU jobs). Ordinary tests, `test:all`, CI and release checks stay offline.
|
|
1150
1154
|
|
|
1151
1155
|
Architecture notes, the private-runtime sync workflow, code-placement policy, and the release process live in [`CONTRIBUTING.md`](./CONTRIBUTING.md).
|
|
1152
1156
|
|
package/SKILL.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: sogni-creative-agent-skill
|
|
3
3
|
description: "CLI and agent skill for personal LoRAs, image, video, and music generation using Sogni AI's decentralized GPU network. Supports Pixal3D single- and multi-view image-to-GLB, BiRefNet background removal, Qwen3-TTS speech/voice cloning/design, MiniMax Music 3, SAM 3 object selection, promptless RTX VSR image upscaling through 16K, promptless FlashVSR video upscaling to 1080p/1440p, one-click image-folder loop reels, personas (people with saved photos and voices), persistent memories, custom personality, style transfer, angle synthesis, MiniMax H3/H3 Balanced/LightX2V Turbo/FastH3 Turbo (including audio-to-video from an uploaded track)/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\", \"build a playable world\", \"apply a style\", or \"generate me as a superhero\"."
|
|
4
4
|
metadata:
|
|
5
|
-
version: "3.
|
|
5
|
+
version: "3.65.0"
|
|
6
6
|
homepage: https://sogni.ai
|
|
7
7
|
openclaw:
|
|
8
8
|
emoji: "🎨"
|
|
@@ -25,7 +25,7 @@ metadata:
|
|
|
25
25
|
|
|
26
26
|
# Sogni Image, Video & Music Generation
|
|
27
27
|
|
|
28
|
-
Generate **images, videos, and music** using Sogni AI's decentralized GPU network through the `sogni-agent` CLI. For local and hosted MCP connection choices and availability, read [Connecting with MCP](./README.md#connecting-with-mcp).
|
|
28
|
+
Generate **images, videos, and music** using Sogni AI's decentralized GPU network through the `sogni-agent` CLI. Choose Fast/Relaxed with `--network`; use `--priority` only after explaining its 1.5× fair-use tradeoff and the user opts in ([network guide](./references/long-jobs-and-queues.md#fast-relaxed-and-priority)). For local and hosted MCP connection choices and availability, read [Connecting with MCP](./README.md#connecting-with-mcp).
|
|
29
29
|
|
|
30
30
|
> **Deep-dive references:** this file holds the rules you must always follow plus the everyday commands. Detailed guides live in [`references/`](./references/) — read the matching file *before* acting on those tasks (table at the end of this file). If the `references/` directory is not present in your install, run `sogni-agent --help` for the full flag reference or fetch the guides from `https://raw.githubusercontent.com/Sogni-AI/sogni-creative-agent-skill/main/references/`.
|
|
31
31
|
>
|
|
@@ -148,7 +148,6 @@ SOGNI_SKILL_USE_SDK_TRANSPORT=1 sogni-agent --durable-chat "Create a launch camp
|
|
|
148
148
|
```
|
|
149
149
|
|
|
150
150
|
Hosted modes require `SOGNI_API_KEY`. Local file references are uploaded to Sogni media storage and forwarded as retrievable URLs — **use direct CLI mode for private media that must not leave the local machine.**
|
|
151
|
-
|
|
152
151
|
## Core Commands (direct-to-SDK)
|
|
153
152
|
|
|
154
153
|
```bash
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { randomUUID } from 'node:crypto';
|
|
2
|
+
import { existsSync, mkdirSync, rmSync, writeFileSync } from 'node:fs';
|
|
3
|
+
import { join } from 'node:path';
|
|
4
|
+
|
|
5
|
+
const EXTENSIONS = {
|
|
6
|
+
'image/jpeg': '.jpg', 'image/png': '.png', 'image/webp': '.webp',
|
|
7
|
+
'audio/wav': '.wav', 'audio/x-wav': '.wav', 'audio/mpeg': '.mp3',
|
|
8
|
+
'audio/webm': '.webm', 'audio/ogg': '.ogg', 'audio/mp4': '.m4a',
|
|
9
|
+
'video/mp4': '.mp4', 'video/webm': '.webm',
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
/** Explicit snapshot import: originals come from the authenticated content
|
|
13
|
+
* route, never expiring preview URLs. Existing local personas are untouched. */
|
|
14
|
+
export async function importAccountPersona({ id, requestJson, requestBytes, directory, existingPersonas = [] }) {
|
|
15
|
+
const envelope = await requestJson(`/v1/personas/${encodeURIComponent(id)}`);
|
|
16
|
+
const character = envelope.data;
|
|
17
|
+
if (!character?.id || typeof character.name !== 'string' || !character.name.trim()) throw new Error('Sogni returned an incomplete persona.');
|
|
18
|
+
if (existingPersonas.some((persona) => persona.name.toLowerCase() === character.name.toLowerCase())) {
|
|
19
|
+
throw new Error(`A local persona named "${character.name}" already exists. Import did not replace it.`);
|
|
20
|
+
}
|
|
21
|
+
const slug = `account-${randomUUID()}`;
|
|
22
|
+
const folder = join(directory, slug);
|
|
23
|
+
mkdirSync(folder, { recursive: true });
|
|
24
|
+
try {
|
|
25
|
+
const references = [];
|
|
26
|
+
for (const reference of character.references ?? []) {
|
|
27
|
+
const content = await requestBytes(`/v1/personas/${encodeURIComponent(character.id)}/references/${encodeURIComponent(reference.id)}/content`);
|
|
28
|
+
// Neither a display name nor a remote asset id becomes a filesystem path.
|
|
29
|
+
const path = join(folder, `reference-${references.length + 1}${EXTENSIONS[reference.contentType] ?? '.bin'}`);
|
|
30
|
+
writeFileSync(path, content, { flag: 'wx', mode: 0o600 });
|
|
31
|
+
references.push({ id: reference.id, role: reference.role, name: reference.name, contentType: reference.contentType, path });
|
|
32
|
+
}
|
|
33
|
+
const images = references.filter((reference) => reference.contentType?.startsWith('image/') && reference.role !== 'thumbnail');
|
|
34
|
+
const identity = images.find((reference) => reference.id === character.identityReferenceId) ?? images[0];
|
|
35
|
+
const photoPaths = identity ? [identity, ...images.filter((reference) => reference !== identity)].map((reference) => reference.path) : [];
|
|
36
|
+
const voice = references.find((reference) => reference.role === 'voice' && reference.contentType?.startsWith('audio/'));
|
|
37
|
+
return {
|
|
38
|
+
id: randomUUID(), name: character.name, slug, relationship: character.relationship || 'friend',
|
|
39
|
+
description: [character.description, character.appearance, character.attire].filter(Boolean).join('\n'),
|
|
40
|
+
tags: character.tags ?? [], voice: character.voiceDescription || null,
|
|
41
|
+
photoPath: identity?.path ?? null, photoPaths, voiceClipPath: voice?.path ?? null,
|
|
42
|
+
voiceTranscript: character.voiceTranscript || '', references,
|
|
43
|
+
accountPersonaId: character.id, accountPersonaRevision: character.revision,
|
|
44
|
+
createdAt: Date.now(), updatedAt: Date.now(),
|
|
45
|
+
};
|
|
46
|
+
} catch (error) {
|
|
47
|
+
if (existsSync(folder)) rmSync(folder, { recursive: true });
|
|
48
|
+
throw error;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"manifest_version": "0.3",
|
|
3
3
|
"name": "sogni-creative-agent",
|
|
4
4
|
"display_name": "Sogni Creative Agent",
|
|
5
|
-
"version": "3.
|
|
5
|
+
"version": "3.65.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",
|
|
@@ -39,6 +39,15 @@ function required(input, field, hint) {
|
|
|
39
39
|
|
|
40
40
|
const str = (description) => ({ type: 'string', description });
|
|
41
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
|
+
}
|
|
42
51
|
|
|
43
52
|
// Chat clients (Claude Desktop etc.) never expose chat-attached files to this
|
|
44
53
|
// server's filesystem; without this warning the model wastes turns discovering
|
|
@@ -63,6 +72,13 @@ export const TOOLS = [
|
|
|
63
72
|
type: 'object',
|
|
64
73
|
properties: {
|
|
65
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'),
|
|
66
82
|
output_path: str('Absolute file path to save the image (optional)'),
|
|
67
83
|
quality: { type: 'string', enum: ['fast', 'hq', 'pro'], description: 'Quality preset' },
|
|
68
84
|
model: str('Model id (optional; overrides quality preset)'),
|
|
@@ -79,6 +95,13 @@ export const TOOLS = [
|
|
|
79
95
|
buildArgs(input) {
|
|
80
96
|
const prompt = required(input, 'prompt');
|
|
81
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);
|
|
82
105
|
push(args, '-o', input.output_path);
|
|
83
106
|
push(args, '-Q', input.quality);
|
|
84
107
|
push(args, '-m', input.model);
|
|
@@ -117,6 +140,9 @@ export const TOOLS = [
|
|
|
117
140
|
type: 'object',
|
|
118
141
|
properties: {
|
|
119
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' },
|
|
120
146
|
output_path: str('Absolute .mp4 path to save (optional)'),
|
|
121
147
|
model: str('Video model id (optional)'),
|
|
122
148
|
workflow: { type: 'string', enum: ['t2v', 'i2v', 'r2v', 's2v', 'ia2v', 'a2v', 'v2v', 'animate-move', 'animate-replace'] },
|
|
@@ -161,6 +187,9 @@ export const TOOLS = [
|
|
|
161
187
|
const finalize = input.seedance_finalize;
|
|
162
188
|
const prompt = finalize ? input.prompt : required(input, 'prompt');
|
|
163
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');
|
|
164
193
|
push(args, '-o', input.output_path);
|
|
165
194
|
push(args, '-m', input.model);
|
|
166
195
|
push(args, '--workflow', input.workflow);
|
|
@@ -230,6 +259,7 @@ export const TOOLS = [
|
|
|
230
259
|
type: 'object',
|
|
231
260
|
properties: {
|
|
232
261
|
prompt: str('Style/mood description; include tempo and key, e.g. "warm acoustic ballad, 92 BPM, A minor"'),
|
|
262
|
+
...RENDER_OPTIONS,
|
|
233
263
|
output_path: str('Absolute audio file path to save (optional)'),
|
|
234
264
|
lyrics: str('Song lyrics (optional). Music 3: plain section tags on their own lines ([Verse], [Chorus]), no modifiers inside brackets'),
|
|
235
265
|
duration: num('Seconds. Music 3 (default): 10-300, default 60. ACE-Step turbo/sft: 10-600, default 30'),
|
|
@@ -248,6 +278,7 @@ export const TOOLS = [
|
|
|
248
278
|
buildArgs(input) {
|
|
249
279
|
const prompt = required(input, 'prompt');
|
|
250
280
|
const args = [...GEN_BASE, '--music'];
|
|
281
|
+
pushRenderOptions(args, input);
|
|
251
282
|
push(args, '-o', input.output_path);
|
|
252
283
|
push(args, '--music-model', input.music_model);
|
|
253
284
|
push(args, '--lyrics', input.lyrics);
|
|
@@ -367,11 +398,13 @@ export const TOOLS = [
|
|
|
367
398
|
name: 'manage_personas',
|
|
368
399
|
description:
|
|
369
400
|
'Manage saved personas (named people with reference photos and optional voice clips). ' +
|
|
370
|
-
'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,
|
|
371
402
|
inputSchema: {
|
|
372
403
|
type: 'object',
|
|
373
404
|
properties: {
|
|
374
|
-
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'),
|
|
375
408
|
name: str('Persona name (add/remove/resolve)'),
|
|
376
409
|
ref: str('Reference photo path or URL (add)'),
|
|
377
410
|
relationship: { type: 'string', enum: ['self', 'partner', 'child', 'friend', 'pet'] },
|
|
@@ -383,6 +416,12 @@ export const TOOLS = [
|
|
|
383
416
|
buildArgs(input) {
|
|
384
417
|
const action = required(input, 'action');
|
|
385
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'))];
|
|
386
425
|
const name = required(input, 'name');
|
|
387
426
|
if (action === 'remove') return ['--no-update-check', '--persona-remove', String(name)];
|
|
388
427
|
if (action === 'resolve') return ['--json', '--no-update-check', '--persona-resolve', String(name)];
|
package/llm.txt
CHANGED
|
@@ -257,3 +257,5 @@ Sogni-AI/sogni-creative-agent-skill
|
|
|
257
257
|
hosted API, models, personas, video editing)
|
|
258
258
|
- `openclaw.plugin.json` — OpenClaw plugin manifest and config schema
|
|
259
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.
|
package/openclaw.plugin.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "sogni-creative-agent-skill",
|
|
3
3
|
"name": "Sogni Creative Agent Skill — Image, Video & Music Generation",
|
|
4
4
|
"description": "Agent skill and CLI for Sogni AI image, video, and music generation.",
|
|
5
|
-
"version": "3.
|
|
5
|
+
"version": "3.65.0",
|
|
6
6
|
"skills": [
|
|
7
7
|
"."
|
|
8
8
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sogni-ai/sogni-creative-agent-skill",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.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",
|
|
@@ -24,8 +24,8 @@
|
|
|
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
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 &&
|
|
28
|
-
"test:all": "npm
|
|
27
|
+
"test:integration": "npm run check:creative-agent-runtime && node scripts/isolated-temp.mjs --test test/*.integration.mjs",
|
|
28
|
+
"test:all": "npm test",
|
|
29
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
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",
|
|
@@ -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.25.
|
|
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.
|
|
114
|
+
"@sogni-ai/sogni-client": "5.76.0",
|
|
114
115
|
"undici@7": "7.30.1"
|
|
115
116
|
},
|
|
116
117
|
"openclaw": {
|
|
@@ -152,3 +152,5 @@ Lessons: once per session, before the first render, read `~/.config/sogni/lesson
|
|
|
152
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).
|
|
153
153
|
|
|
154
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.
|
|
@@ -63,7 +63,7 @@ Prompt-only families return the directly runnable prompt with no label,
|
|
|
63
63
|
Markdown fence, preamble, explanation, or render offer.
|
|
64
64
|
|
|
65
65
|
<!-- BEGIN GENERATED PROMPT GUIDE: image-models -->
|
|
66
|
-
<!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.25.
|
|
66
|
+
<!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.25.3; edit the rules there, not here. -->
|
|
67
67
|
|
|
68
68
|
## Per-model rules from Sogni's image prompt writer
|
|
69
69
|
|
|
@@ -114,3 +114,11 @@ then.
|
|
|
114
114
|
`--status`, `--result` and `--recent` need `@sogni-ai/sogni-client` 5.57.0 or
|
|
115
115
|
later, and `--wait` needs 5.58.0; an older installation says so and asks for a
|
|
116
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
|
+
```
|
package/references/models.md
CHANGED
|
@@ -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 |
|
|
@@ -1649,4 +1652,15 @@ Dimensions default to 1024×1024: multiples of 16, at most 3840 per edge,
|
|
|
1649
1652
|
3:1 maximum aspect ratio, 655,360–8,294,400 pixels. Above 3,686,400 pixels is
|
|
1650
1653
|
experimental. Transparency is integrated but clean cutout edges failed the
|
|
1651
1654
|
initial Flare canaries; inspect native output against a contrasting background.
|
|
1652
|
-
|
|
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
|
+
```
|
|
@@ -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.25.
|
|
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.25.
|
|
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
|
|
|
@@ -973,7 +973,7 @@ the exact waveform-conditioned lip-sync input. Remote audio URLs and additional
|
|
|
973
973
|
audio references keep their existing handling.
|
|
974
974
|
|
|
975
975
|
<!-- BEGIN GENERATED PROMPT GUIDE: minimax-h3 -->
|
|
976
|
-
<!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.25.
|
|
976
|
+
<!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.25.3; edit the rules there, not here. -->
|
|
977
977
|
|
|
978
978
|
### Sogni's prompt rules: minimax-h3
|
|
979
979
|
|
|
@@ -1191,7 +1191,7 @@ A low tracking shot races alongside a teal 1960s convertible down a sunlit coast
|
|
|
1191
1191
|
```
|
|
1192
1192
|
|
|
1193
1193
|
<!-- BEGIN GENERATED PROMPT GUIDE: seedance-2.5 -->
|
|
1194
|
-
<!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.25.
|
|
1194
|
+
<!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.25.3; edit the rules there, not here. -->
|
|
1195
1195
|
|
|
1196
1196
|
### Sogni's prompt rules: seedance-2.5
|
|
1197
1197
|
|
|
@@ -1265,7 +1265,7 @@ TARGET CAPABILITIES: Seedance 2.5 uses the same director-style prompt grammar an
|
|
|
1265
1265
|
<!-- END GENERATED PROMPT GUIDE: seedance-2.5 -->
|
|
1266
1266
|
|
|
1267
1267
|
<!-- BEGIN GENERATED PROMPT GUIDE: seedance-2.0 -->
|
|
1268
|
-
<!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.25.
|
|
1268
|
+
<!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.25.3; edit the rules there, not here. -->
|
|
1269
1269
|
|
|
1270
1270
|
### Sogni's prompt rules: seedance-2.0
|
|
1271
1271
|
|
|
@@ -1374,7 +1374,7 @@ writer uses close this section.
|
|
|
1374
1374
|
motion timing, camera path, framing, and background.
|
|
1375
1375
|
|
|
1376
1376
|
<!-- BEGIN GENERATED PROMPT GUIDE: wan-2.2 -->
|
|
1377
|
-
<!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.25.
|
|
1377
|
+
<!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.25.3; edit the rules there, not here. -->
|
|
1378
1378
|
|
|
1379
1379
|
### Sogni's prompt rules: wan-2.2
|
|
1380
1380
|
|
|
@@ -1464,7 +1464,7 @@ The rules Sogni's own prompt writer uses close this section.
|
|
|
1464
1464
|
- Prompts may run to 20,000 characters.
|
|
1465
1465
|
|
|
1466
1466
|
<!-- BEGIN GENERATED PROMPT GUIDE: wan-3 -->
|
|
1467
|
-
<!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.25.
|
|
1467
|
+
<!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.25.3; edit the rules there, not here. -->
|
|
1468
1468
|
|
|
1469
1469
|
### Sogni's prompt rules: wan-3
|
|
1470
1470
|
|
|
@@ -1519,7 +1519,7 @@ audio that is always on. What it renders well and the reference limits are in
|
|
|
1519
1519
|
[models.md § HappyHorse 1.1](./models.md#happyhorse-11-prompting-tips).
|
|
1520
1520
|
|
|
1521
1521
|
<!-- BEGIN GENERATED PROMPT GUIDE: happyhorse-1.1 -->
|
|
1522
|
-
<!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.25.
|
|
1522
|
+
<!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.25.3; edit the rules there, not here. -->
|
|
1523
1523
|
|
|
1524
1524
|
### Sogni's prompt rules: happyhorse-1.1
|
|
1525
1525
|
|
package/skill-package.json
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
"private": true,
|
|
4
4
|
"type": "module",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@sogni-ai/sogni-intelligence-client": "4.25.
|
|
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.
|
|
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.
|
package/sogni-agent.mjs
CHANGED
|
@@ -16,6 +16,7 @@ import { readFileSync, writeFileSync, existsSync, mkdirSync, mkdtempSync, statSy
|
|
|
16
16
|
import { join, dirname, basename, extname, sep, resolve } from 'path';
|
|
17
17
|
import { homedir, tmpdir } from 'os';
|
|
18
18
|
import sharp from 'sharp';
|
|
19
|
+
import { importAccountPersona } from './account-personas.mjs';
|
|
19
20
|
import { getEnv, hasEnv } from './env.mjs';
|
|
20
21
|
import { claimSogniAppIdSlot, getOrCreateSogniAppId } from './sogni-app-id.mjs';
|
|
21
22
|
import { PACKAGE_VERSION } from './version.mjs';
|
|
@@ -189,6 +190,10 @@ function subscriptionBillingFallback(code) {
|
|
|
189
190
|
if (!SUBSCRIPTION_BILLING_ERROR_CODES.has(key)) return null;
|
|
190
191
|
switch (key) {
|
|
191
192
|
case '4078':
|
|
193
|
+
if (options.priorityMode) return {
|
|
194
|
+
retryable: false,
|
|
195
|
+
hint: 'The server could not admit this Priority Fast generation. Submit again without --priority for standard Fast, or choose --network relaxed.',
|
|
196
|
+
};
|
|
192
197
|
// Vendor model the subscription never covers, or no verified entitlement.
|
|
193
198
|
return {
|
|
194
199
|
retryable: false,
|
|
@@ -2385,6 +2390,7 @@ function withBillingMode(config, attributionOptions = {}) {
|
|
|
2385
2390
|
...(!options.video && !options.upscaleVideo && !options.music && !options.speech && !options.imageTo3d && options.embedPromptMetadata !== undefined
|
|
2386
2391
|
? { embedPromptMetadata: options.embedPromptMetadata } : {}),
|
|
2387
2392
|
...(options.billingMode ? { billingMode: options.billingMode } : {}),
|
|
2393
|
+
...(options.priorityMode ? { priorityMode: true, billingMode: 'subscription' } : {}),
|
|
2388
2394
|
network: projectNetwork(config.modelId),
|
|
2389
2395
|
attribution: nextSemanticWorkloadAttribution(attributionOptions),
|
|
2390
2396
|
};
|
|
@@ -3831,6 +3837,7 @@ const options = {
|
|
|
3831
3837
|
tokenType: null,
|
|
3832
3838
|
billingMode: null, // auto|subscription|tokens — omitted by default so the server decides coverage
|
|
3833
3839
|
network: null, // fast|relaxed; defaults to the configured network, then fast
|
|
3840
|
+
priorityMode: false, // explicit per-run Unlimited Fast queue opt-in
|
|
3834
3841
|
steps: null,
|
|
3835
3842
|
guidance: null,
|
|
3836
3843
|
outputFormat: null,
|
|
@@ -3986,6 +3993,7 @@ const options = {
|
|
|
3986
3993
|
personaTags: null,
|
|
3987
3994
|
personaVoice: null,
|
|
3988
3995
|
personaVoiceClip: null,
|
|
3996
|
+
personaAccountAfter: null,
|
|
3989
3997
|
personaPhoto: null, // alias for --ref when used with --persona-add
|
|
3990
3998
|
apiChat: false,
|
|
3991
3999
|
durableChat: false,
|
|
@@ -4215,6 +4223,8 @@ for (let i = 0; i < args.length; i++) {
|
|
|
4215
4223
|
});
|
|
4216
4224
|
}
|
|
4217
4225
|
options.network = raw;
|
|
4226
|
+
} else if (arg === '--priority') {
|
|
4227
|
+
options.priorityMode = true;
|
|
4218
4228
|
} else if (arg === '--steps') {
|
|
4219
4229
|
const raw = requireFlagValue(args, i, arg);
|
|
4220
4230
|
i++;
|
|
@@ -5146,6 +5156,13 @@ for (let i = 0; i < args.length; i++) {
|
|
|
5146
5156
|
} else if (arg === '--persona-add') {
|
|
5147
5157
|
options.personaAction = 'add';
|
|
5148
5158
|
options.personaName = requireFlagValue(args, i, arg); i++;
|
|
5159
|
+
} else if (arg === '--persona-account-after') {
|
|
5160
|
+
options.personaAccountAfter = requireFlagValue(args, i, arg); i++;
|
|
5161
|
+
} else if (arg === '--persona-list-account') {
|
|
5162
|
+
options.personaAction = 'list-account';
|
|
5163
|
+
} else if (arg === '--persona-import-account') {
|
|
5164
|
+
options.personaAction = 'import-account';
|
|
5165
|
+
options.personaName = requireFlagValue(args, i, arg); i++;
|
|
5149
5166
|
} else if (arg === '--persona-list') {
|
|
5150
5167
|
options.personaAction = 'list';
|
|
5151
5168
|
} else if (arg === '--persona-remove' || arg === '--persona-delete') {
|
|
@@ -5509,6 +5526,7 @@ General:
|
|
|
5509
5526
|
--billing-mode <mode> Billing: auto|subscription|tokens (default: server decides; "subscription"
|
|
5510
5527
|
requires Sogni Unlimited coverage, "tokens" opts out of it)
|
|
5511
5528
|
--network <n> Render on this Supernet: fast|relaxed (default: configured defaultNetwork, else fast).
|
|
5529
|
+
--priority Opt in to Priority Fast on paid Unlimited: earlier queue placement, 1.5x fair-use consumption. Worker models only.
|
|
5512
5530
|
Relaxed queues can take hours; pair long renders with --detach
|
|
5513
5531
|
--balance, --balances Show account, plan, and SPARK/SOGNI balances and exit
|
|
5514
5532
|
--list-models [query] List live Supernet media models; optionally filter by query
|
|
@@ -5579,7 +5597,10 @@ Personality (custom agent instructions):
|
|
|
5579
5597
|
|
|
5580
5598
|
Personas (named people with reference photos):
|
|
5581
5599
|
--persona-add <name> Add a persona (combine with --ref, --relationship, --description, --voice-clip)
|
|
5582
|
-
--persona-list List
|
|
5600
|
+
--persona-list List local personas
|
|
5601
|
+
--persona-list-account List one page of Personas saved in your Sogni account
|
|
5602
|
+
--persona-account-after <cursor> Read the next account Persona page
|
|
5603
|
+
--persona-import-account <id> Copy an account Persona and its original references into the local library (never overwrites)
|
|
5583
5604
|
--persona-remove <name> Remove a persona and its files
|
|
5584
5605
|
--persona-resolve <name> Show persona details and file paths
|
|
5585
5606
|
--persona <name> Generate using a persona's reference photo (image context, video ref frame)
|
|
@@ -7002,19 +7023,26 @@ if (apiWorkflowStartAction && apiWorkflowTemplate === 'generated_keyframe_video'
|
|
|
7002
7023
|
if (apiWorkflowStartAction && apiWorkflowTemplate === 'storyboard_video' && !options.prompt && !apiWorkflowStartHasExternalInput) {
|
|
7003
7024
|
fatalCliError('--api-workflow storyboard-video preset requires a prompt or --workflow-input JSON.', { code: 'INVALID_ARGUMENT' });
|
|
7004
7025
|
}
|
|
7005
|
-
if (options.network) {
|
|
7026
|
+
if (options.network || options.priorityMode) {
|
|
7027
|
+
const flag = options.priorityMode ? '--priority' : '--network';
|
|
7006
7028
|
const unrouted = [
|
|
7007
7029
|
['--api-chat, which runs on hosted Fast', options.apiChat],
|
|
7008
7030
|
['hosted workflows, which run on hosted Fast', options.apiWorkflowAction],
|
|
7009
7031
|
['--list-models or --search-models (use --model-network)', liveModelUtilityAction]
|
|
7010
7032
|
].find(([, applies]) => applies);
|
|
7011
7033
|
if (unrouted) {
|
|
7012
|
-
fatalCliError(
|
|
7034
|
+
fatalCliError(`${flag} cannot be combined with ${unrouted[0]}.`, {
|
|
7013
7035
|
code: 'INVALID_ARGUMENT',
|
|
7014
|
-
details: { flag
|
|
7036
|
+
details: { flag, conflictsWith: unrouted[0] }
|
|
7015
7037
|
});
|
|
7016
7038
|
}
|
|
7017
7039
|
}
|
|
7040
|
+
if (options.priorityMode && (projectNetwork(options.model) !== 'fast'
|
|
7041
|
+
|| requiresSparkOnlyToken(options.model) || options.billingMode === 'tokens' || options.tokenType === 'sogni')) {
|
|
7042
|
+
fatalCliError('--priority requires a Sogni worker model on Fast paid with Unlimited. Use --network fast, Spark and subscription billing, or omit --priority.', {
|
|
7043
|
+
code: 'INVALID_ARGUMENT', details: { flag: '--priority' }
|
|
7044
|
+
});
|
|
7045
|
+
}
|
|
7018
7046
|
// Relaxed queues run far longer than Fast, so its renders get at least the wait a
|
|
7019
7047
|
// queued video gets, unless the caller or the config chose one. Timing out leaves
|
|
7020
7048
|
// the project running; --result <id> --wait collects it.
|
|
@@ -11182,6 +11210,7 @@ function applyPersonaAndVoiceReferences() {
|
|
|
11182
11210
|
options.referenceAudioIdentity = voicePersona.voiceClipPath;
|
|
11183
11211
|
cliSet.referenceAudioIdentity = true;
|
|
11184
11212
|
}
|
|
11213
|
+
if (!options.voiceTranscript && voicePersona.voiceTranscript) options.voiceTranscript = voicePersona.voiceTranscript;
|
|
11185
11214
|
options._voicePersonaResolvedName = voicePersona.name;
|
|
11186
11215
|
}
|
|
11187
11216
|
|
|
@@ -11201,8 +11230,12 @@ function applyPersonaAndVoiceReferences() {
|
|
|
11201
11230
|
if (!options.refImage) {
|
|
11202
11231
|
options.refImage = persona.photoPath;
|
|
11203
11232
|
}
|
|
11233
|
+
if (persona.photoPaths?.length > 1 && (options.videoWorkflow === 'r2v' || inferVideoWorkflowFromModel(options.model) === 'r2v')) {
|
|
11234
|
+
options.contextImages.push(...persona.photoPaths.slice(1));
|
|
11235
|
+
}
|
|
11204
11236
|
} else {
|
|
11205
|
-
options.contextImages.push(persona.photoPath);
|
|
11237
|
+
options.contextImages.push(...(persona.photoPaths ?? [persona.photoPath]));
|
|
11238
|
+
|
|
11206
11239
|
}
|
|
11207
11240
|
}
|
|
11208
11241
|
|
|
@@ -13034,6 +13067,7 @@ function sourceReelChildArgs(baseArgs, outputPath, prompt, plan, duration) {
|
|
|
13034
13067
|
];
|
|
13035
13068
|
if (options.tokenType) args.push('--token-type', options.tokenType);
|
|
13036
13069
|
if (options.network) args.push('--network', options.network);
|
|
13070
|
+
if (options.priorityMode) args.push('--priority');
|
|
13037
13071
|
if (options.steps !== null && options.steps !== undefined) args.push('--steps', String(options.steps));
|
|
13038
13072
|
if (options.guidance !== null && options.guidance !== undefined) args.push('--guidance', String(options.guidance));
|
|
13039
13073
|
if (options.noFilter) args.push('--no-filter');
|
|
@@ -14321,6 +14355,7 @@ async function buildVideoEstimateParams({ tokenType, steps }) {
|
|
|
14321
14355
|
numberOfMedia: options.count,
|
|
14322
14356
|
tokenType,
|
|
14323
14357
|
network: projectNetwork(options.model),
|
|
14358
|
+
...(options.priorityMode ? { priorityMode: true, billingMode: 'subscription' } : {}),
|
|
14324
14359
|
...(Number.isFinite(steps) && steps > 0 ? { steps } : {}),
|
|
14325
14360
|
...(options.frames ? { frames: options.frames } : { duration: options.duration }),
|
|
14326
14361
|
...(referenceImageCount !== undefined ? { referenceImageCount } : {}),
|
|
@@ -14718,7 +14753,31 @@ async function main() {
|
|
|
14718
14753
|
// Persona commands (non-generate)
|
|
14719
14754
|
if (options.personaAction && options.personaAction !== 'generate') {
|
|
14720
14755
|
const jsonOut = options.json || JSON_ERROR_MODE;
|
|
14721
|
-
if (options.personaAction
|
|
14756
|
+
if (['list-account', 'import-account'].includes(options.personaAction)) {
|
|
14757
|
+
const apiKey = requireApiKeyCredentials(loadCredentials(), 'Account Personas');
|
|
14758
|
+
const requestJson = (path) => fetchApiJson(path, { apiKey });
|
|
14759
|
+
if (options.personaAction === 'list-account') {
|
|
14760
|
+
const payload = await requestJson('/v1/personas' + (options.personaAccountAfter ? '?after=' + encodeURIComponent(options.personaAccountAfter) : ''));
|
|
14761
|
+
if (jsonOut) console.log(JSON.stringify({ success: true, type: 'persona-list-account', ...payload.data }));
|
|
14762
|
+
else {
|
|
14763
|
+
for (const persona of payload.data.items ?? []) console.log(`${persona.name} (${persona.id})`);
|
|
14764
|
+
if (payload.data.nextCursor) console.log(`Next page: --persona-list-account --persona-account-after ${JSON.stringify(payload.data.nextCursor)}`);
|
|
14765
|
+
}
|
|
14766
|
+
} else {
|
|
14767
|
+
const persona = await importAccountPersona({
|
|
14768
|
+
id: options.personaName, directory: PERSONAS_DIR, existingPersonas: loadPersonas(), requestJson,
|
|
14769
|
+
requestBytes: async (path) => {
|
|
14770
|
+
const url = await buildSafeApiUrl(path);
|
|
14771
|
+
const response = await fetch(url, { headers: apiRequestHeaders(apiKey), redirect: 'error', signal: AbortSignal.timeout(DEFAULT_HTTP_TIMEOUT_MS) });
|
|
14772
|
+
if (!response.ok) throw new Error(`Could not download an original persona reference (HTTP ${response.status}).`);
|
|
14773
|
+
return Buffer.from(await response.arrayBuffer());
|
|
14774
|
+
},
|
|
14775
|
+
});
|
|
14776
|
+
savePersonasIndex([...loadPersonas(), persona]);
|
|
14777
|
+
if (jsonOut) console.log(JSON.stringify({ success: true, type: 'persona-import-account', persona }));
|
|
14778
|
+
else console.log(`Imported ${persona.name} with ${persona.references.length} original references. Use --persona ${JSON.stringify(persona.name)} to generate.`);
|
|
14779
|
+
}
|
|
14780
|
+
} else if (options.personaAction === 'list') {
|
|
14722
14781
|
const personas = loadPersonas();
|
|
14723
14782
|
if (jsonOut) {
|
|
14724
14783
|
console.log(JSON.stringify({ success: true, type: 'persona-list', personas, timestamp: new Date().toISOString() }));
|
package/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const PACKAGE_VERSION = '3.
|
|
1
|
+
export const PACKAGE_VERSION = '3.65.0';
|