@sogni-ai/sogni-creative-agent-skill 3.73.2 → 3.73.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/skills/sogni-creative-agent-skill/SKILL.md +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/CHANGELOG.md +5 -0
- package/README.md +3 -0
- package/SKILL.md +1 -1
- package/desktop-extension/manifest.json +1 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
- package/sogni-agent.mjs +100 -0
- 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.73.
|
|
6
|
+
version: "3.73.3"
|
|
7
7
|
author: Sogni AI
|
|
8
8
|
hermes:
|
|
9
9
|
category: creative
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sogni-creative-agent",
|
|
3
|
-
"version": "3.73.
|
|
3
|
+
"version": "3.73.3",
|
|
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,8 @@
|
|
|
1
|
+
## [3.73.3] - 2026-11-23
|
|
2
|
+
|
|
3
|
+
- Hosts can allocate storage before saving completed renders. If a result will not fit, the CLI preserves saved files and gives commands to collect the existing render after making room.
|
|
4
|
+
- Optional result-download limits count decoded bytes across batches and retries. Without a configured limit or host grant protocol, downloads keep their existing behavior.
|
|
5
|
+
|
|
1
6
|
## [3.73.2] - 2026-11-22
|
|
2
7
|
|
|
3
8
|
- If another connection takes over while a render is running, the CLI reports error 4015 immediately and prints `sogni-agent --result <project-id> --wait` for each affected project. You can collect the original render without submitting or paying for it again.
|
package/README.md
CHANGED
|
@@ -455,6 +455,9 @@ Defaults live under `~/.config/sogni/` for credentials, last-render metadata, pe
|
|
|
455
455
|
| `FFMPEG_PATH` | Custom `ffmpeg` binary |
|
|
456
456
|
| `FFPROBE_PATH` | Custom `ffprobe` binary |
|
|
457
457
|
| `SOGNI_MEDIA_DOWNLOAD_MAX_BYTES` | Largest download from one media URL (default: 536870912, 512 MiB); local files have no limit |
|
|
458
|
+
| `SOGNI_RESULT_DOWNLOAD_MAX_BYTES` | Optional total decoded-byte budget for result downloads in one CLI invocation. Unset keeps existing behavior. Counts all result files and retries, including discarded retry bytes; zero permits no result bytes. A refusal preserves existing output files, removes the current partial download, and reports `RESULT_DOWNLOAD_LIMIT` with collection commands. Hosts should reserve this many bytes before launching the CLI and account for retained files before releasing the reservation. This is not a quota for local media processing or other file writes |
|
|
459
|
+
|
|
460
|
+
Hosts that share storage across simultaneous writers can pass `--result-download-budget-stdio` instead of reserving the whole byte limit upfront. Before each result chunk is written, stderr emits one `SOGNI_DOWNLOAD_BUDGET_V1 {"id":1,"bytes":65536}` line. The host must atomically reserve those bytes and answer on stdin with `{"id":1,"allowed":true}` followed by a newline, or deny with `allowed:false`. Requests are serialized; each needs the matching ID and a boolean answer within 30 seconds. Denial reports `RESULT_DOWNLOAD_STORAGE_FULL`; a missing or malformed reply reports `RESULT_DOWNLOAD_BUDGET_UNAVAILABLE`. Both preserve existing outputs and include result-collection commands. The host must keep granted reservations until the CLI exits, account for retained files, then release them. The environment byte limit still applies. Without the flag, the CLI neither reads this protocol nor emits its request lines. Old CLI versions reject the flag, so a host cannot silently lose enforcement by running an older version.
|
|
458
461
|
|
|
459
462
|
---
|
|
460
463
|
|
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 and RelayVSR video upscaling up to 2160p, 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.73.
|
|
5
|
+
version: "3.73.3"
|
|
6
6
|
homepage: https://sogni.ai
|
|
7
7
|
openclaw:
|
|
8
8
|
emoji: "🎨"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"manifest_version": "0.3",
|
|
3
3
|
"name": "sogni-creative-agent",
|
|
4
4
|
"display_name": "Sogni Creative Agent",
|
|
5
|
-
"version": "3.73.
|
|
5
|
+
"version": "3.73.3",
|
|
6
6
|
"description": "Generate images, video, music, and speech, and upscale images and video, on Sogni AI's decentralized GPU network — with personas, memories, and safe video editing tools.",
|
|
7
7
|
"author": { "name": "Sogni AI", "url": "https://sogni.ai" },
|
|
8
8
|
"homepage": "https://sogni.ai",
|
package/openclaw.plugin.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "sogni-creative-agent-skill",
|
|
3
3
|
"name": "Sogni Creative Agent Skill — Image, Video & Music Generation",
|
|
4
4
|
"description": "Agent skill and CLI for Sogni AI image, video, and music generation.",
|
|
5
|
-
"version": "3.73.
|
|
5
|
+
"version": "3.73.3",
|
|
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.73.
|
|
3
|
+
"version": "3.73.3",
|
|
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",
|
package/sogni-agent.mjs
CHANGED
|
@@ -14,6 +14,7 @@ import { createRequire } from 'module';
|
|
|
14
14
|
import { readFileSync, writeFileSync, existsSync, mkdirSync, mkdtempSync, statSync, readdirSync, realpathSync, lstatSync, unlinkSync, rmdirSync, rmSync, renameSync, openSync, readSync, writeSync, closeSync } from 'fs';
|
|
15
15
|
import { join, dirname, basename, extname, sep, resolve } from 'path';
|
|
16
16
|
import { homedir, tmpdir } from 'os';
|
|
17
|
+
import { createInterface } from 'node:readline';
|
|
17
18
|
import sharp from 'sharp';
|
|
18
19
|
import { importAccountPersona } from './account-personas.mjs';
|
|
19
20
|
import { getEnv, hasEnv } from './env.mjs';
|
|
@@ -1019,6 +1020,9 @@ function classifyCliError(error, context = {}) {
|
|
|
1019
1020
|
}
|
|
1020
1021
|
|
|
1021
1022
|
// The render finished; only its download failed, and `--result` (details.resultCommands) fetches it later.
|
|
1023
|
+
if (['RESULT_DOWNLOAD_LIMIT', 'RESULT_DOWNLOAD_STORAGE_FULL', 'RESULT_DOWNLOAD_BUDGET_UNAVAILABLE'].includes(error?.code)) {
|
|
1024
|
+
return { error_type: 'RESOURCE_LIMIT', category: 'resource_limit', message: rawMessage, retryable: false };
|
|
1025
|
+
}
|
|
1022
1026
|
if (error?.code === 'RESULT_DOWNLOAD_FAILED') {
|
|
1023
1027
|
return { error_type: 'PROVIDER_TIMEOUT', category: 'timeout', message: rawMessage, retryable: true };
|
|
1024
1028
|
}
|
|
@@ -4308,6 +4312,7 @@ const args = process.argv.slice(2);
|
|
|
4308
4312
|
const options = {
|
|
4309
4313
|
prompt: null,
|
|
4310
4314
|
output: null,
|
|
4315
|
+
resultDownloadBudgetStdio: false,
|
|
4311
4316
|
model: null, // Will be set based on type
|
|
4312
4317
|
width: 512,
|
|
4313
4318
|
height: 512,
|
|
@@ -4664,6 +4669,8 @@ for (let i = 0; i < args.length; i++) {
|
|
|
4664
4669
|
i++;
|
|
4665
4670
|
options.output = expandHomePath(raw);
|
|
4666
4671
|
cliSet.output = true;
|
|
4672
|
+
} else if (arg === '--result-download-budget-stdio') {
|
|
4673
|
+
options.resultDownloadBudgetStdio = true;
|
|
4667
4674
|
} else if (arg === '-m' || arg === '--model') {
|
|
4668
4675
|
const raw = requireFlagValue(args, i, arg);
|
|
4669
4676
|
i++;
|
|
@@ -6033,6 +6040,7 @@ General:
|
|
|
6033
6040
|
holds the project is not counted. The project is NOT cancelled; fetch it
|
|
6034
6041
|
later with --result
|
|
6035
6042
|
--cancel-on-timeout Cancel the project when --timeout runs out (the pre-3.53 behavior)
|
|
6043
|
+
--result-download-budget-stdio Host integration: require a storage grant over stdin before each result chunk
|
|
6036
6044
|
--detach, --no-wait Submit, print the project id, and exit without waiting. The project keeps
|
|
6037
6045
|
running; follow it with --result <projectId> --wait
|
|
6038
6046
|
--status <projectId> Show a project's state and, while queued, why it is waiting
|
|
@@ -12949,6 +12957,16 @@ async function downloadUrlToFile(url, filePath, { projectId = null, retryOutput
|
|
|
12949
12957
|
saved = true;
|
|
12950
12958
|
return;
|
|
12951
12959
|
}
|
|
12960
|
+
} catch (error) {
|
|
12961
|
+
if (['RESULT_DOWNLOAD_LIMIT', 'RESULT_DOWNLOAD_STORAGE_FULL', 'RESULT_DOWNLOAD_BUDGET_UNAVAILABLE'].includes(error?.code)) {
|
|
12962
|
+
const command = projectId ? `${resultCommandFor(projectId)}${retryOutput ? ` -o ${shellWord(retryOutput)}` : ''}` : null;
|
|
12963
|
+
error.details = {
|
|
12964
|
+
...error.details,
|
|
12965
|
+
projectIds: projectId ? [projectId] : [],
|
|
12966
|
+
resultCommands: command ? [command] : [],
|
|
12967
|
+
};
|
|
12968
|
+
}
|
|
12969
|
+
throw error;
|
|
12952
12970
|
} finally {
|
|
12953
12971
|
if (!saved) {
|
|
12954
12972
|
try { rmSync(tempPath, { force: true }); } catch { /* best effort */ }
|
|
@@ -12976,6 +12994,79 @@ async function downloadUrlToFile(url, filePath, { projectId = null, retryOutput
|
|
|
12976
12994
|
throw err;
|
|
12977
12995
|
}
|
|
12978
12996
|
|
|
12997
|
+
// One CLI invocation owns this optional budget across all result files and
|
|
12998
|
+
// retries. Bytes are charged before writes, including bytes a retry discards,
|
|
12999
|
+
// so a host can reserve this upper bound without inspecting download timing.
|
|
13000
|
+
let activeResultDownloadBudget;
|
|
13001
|
+
function resultDownloadBudget() {
|
|
13002
|
+
if (activeResultDownloadBudget) return activeResultDownloadBudget;
|
|
13003
|
+
const raw = getEnv('SOGNI_RESULT_DOWNLOAD_MAX_BYTES', { trim: true });
|
|
13004
|
+
const maxBytes = raw ? Number(raw) : Infinity;
|
|
13005
|
+
if (raw && (!Number.isSafeInteger(maxBytes) || maxBytes < 0)) {
|
|
13006
|
+
const error = new Error('SOGNI_RESULT_DOWNLOAD_MAX_BYTES must be a non-negative safe integer byte count.');
|
|
13007
|
+
error.code = 'INVALID_ARGUMENT';
|
|
13008
|
+
throw error;
|
|
13009
|
+
}
|
|
13010
|
+
activeResultDownloadBudget = { maxBytes, writtenBytes: 0, pending: Promise.resolve(), sequence: 0, reader: null, lines: null };
|
|
13011
|
+
return activeResultDownloadBudget;
|
|
13012
|
+
}
|
|
13013
|
+
|
|
13014
|
+
function checkResultDownloadBudget(bytes, consume = false) {
|
|
13015
|
+
const budget = resultDownloadBudget();
|
|
13016
|
+
if (bytes > budget.maxBytes - budget.writtenBytes) {
|
|
13017
|
+
const error = new Error(`Result downloads exceed this invocation's ${budget.maxBytes}-byte budget.`);
|
|
13018
|
+
error.code = 'RESULT_DOWNLOAD_LIMIT';
|
|
13019
|
+
error.hint = 'Do not render it again. Free storage or raise the host download budget, then collect the existing render with --result.';
|
|
13020
|
+
error.details = { maxBytes: budget.maxBytes, bytesWritten: budget.writtenBytes };
|
|
13021
|
+
throw error;
|
|
13022
|
+
}
|
|
13023
|
+
if (consume) budget.writtenBytes += bytes;
|
|
13024
|
+
}
|
|
13025
|
+
|
|
13026
|
+
function resultDownloadGrantError(code) {
|
|
13027
|
+
const error = new Error(code === 'RESULT_DOWNLOAD_STORAGE_FULL'
|
|
13028
|
+
? 'The host could not reserve storage for this result download.'
|
|
13029
|
+
: 'The host did not provide a valid storage grant for this result download.');
|
|
13030
|
+
error.code = code;
|
|
13031
|
+
error.hint = 'Do not render it again. Check available storage and the host connection, then collect the existing render with --result.';
|
|
13032
|
+
return error;
|
|
13033
|
+
}
|
|
13034
|
+
|
|
13035
|
+
// The opt-in host protocol serializes requests, including if future callers
|
|
13036
|
+
// download several files at once. No bytes are written until the matching
|
|
13037
|
+
// grant arrives. An older CLI refuses the flag instead of ignoring a host's
|
|
13038
|
+
// reservation requirement. Default invocations never read stdin or emit it.
|
|
13039
|
+
function reserveResultDownloadBytes(bytes) {
|
|
13040
|
+
const budget = resultDownloadBudget();
|
|
13041
|
+
const work = budget.pending.then(async () => {
|
|
13042
|
+
checkResultDownloadBudget(bytes);
|
|
13043
|
+
if (options.resultDownloadBudgetStdio) {
|
|
13044
|
+
if (!budget.reader) {
|
|
13045
|
+
budget.reader = createInterface({ input: process.stdin, crlfDelay: Infinity, terminal: false });
|
|
13046
|
+
budget.lines = budget.reader[Symbol.asyncIterator]();
|
|
13047
|
+
}
|
|
13048
|
+
const id = ++budget.sequence;
|
|
13049
|
+
let timer;
|
|
13050
|
+
try {
|
|
13051
|
+
const line = budget.lines.next();
|
|
13052
|
+
const deadline = new Promise((_resolve, reject) => {
|
|
13053
|
+
timer = setTimeout(() => reject(resultDownloadGrantError('RESULT_DOWNLOAD_BUDGET_UNAVAILABLE')), 30_000);
|
|
13054
|
+
});
|
|
13055
|
+
process.stderr.write(`SOGNI_DOWNLOAD_BUDGET_V1 ${JSON.stringify({ id, bytes })}\n`);
|
|
13056
|
+
const answer = await Promise.race([line, deadline]);
|
|
13057
|
+
if (answer.done || answer.value.length > 512) throw resultDownloadGrantError('RESULT_DOWNLOAD_BUDGET_UNAVAILABLE');
|
|
13058
|
+
let grant;
|
|
13059
|
+
try { grant = JSON.parse(answer.value); } catch { throw resultDownloadGrantError('RESULT_DOWNLOAD_BUDGET_UNAVAILABLE'); }
|
|
13060
|
+
if (grant?.id !== id || typeof grant.allowed !== 'boolean') throw resultDownloadGrantError('RESULT_DOWNLOAD_BUDGET_UNAVAILABLE');
|
|
13061
|
+
if (!grant.allowed) throw resultDownloadGrantError('RESULT_DOWNLOAD_STORAGE_FULL');
|
|
13062
|
+
} finally { clearTimeout(timer); }
|
|
13063
|
+
}
|
|
13064
|
+
checkResultDownloadBudget(bytes, true);
|
|
13065
|
+
});
|
|
13066
|
+
budget.pending = work;
|
|
13067
|
+
return work;
|
|
13068
|
+
}
|
|
13069
|
+
|
|
12979
13070
|
/** One GET into tempPath: fresh, or appended from state.received with a Range request. */
|
|
12980
13071
|
async function downloadResultAttempt(url, tempPath, state, { stallMs, filePath, label }) {
|
|
12981
13072
|
const controller = new AbortController();
|
|
@@ -13033,6 +13124,7 @@ async function downloadResultAttempt(url, tempPath, state, { stallMs, filePath,
|
|
|
13033
13124
|
throw err;
|
|
13034
13125
|
}
|
|
13035
13126
|
|
|
13127
|
+
if (state.total !== null) checkResultDownloadBudget(Math.max(0, state.total - state.received));
|
|
13036
13128
|
if (response.body) {
|
|
13037
13129
|
const reader = response.body.getReader();
|
|
13038
13130
|
for (;;) {
|
|
@@ -13043,6 +13135,7 @@ async function downloadResultAttempt(url, tempPath, state, { stallMs, filePath,
|
|
|
13043
13135
|
throw retryableDownloadError(silentFor ? `stalled with no data for ${formatDownloadDuration(silentFor)}` : downloadConnectionReason(error), error);
|
|
13044
13136
|
}
|
|
13045
13137
|
if (chunk.done) break;
|
|
13138
|
+
await reserveResultDownloadBytes(chunk.value.length);
|
|
13046
13139
|
for (let offset = 0; offset < chunk.value.length;) {
|
|
13047
13140
|
offset += writeSync(fd, chunk.value, offset, chunk.value.length - offset);
|
|
13048
13141
|
}
|
|
@@ -16010,6 +16103,7 @@ async function main() {
|
|
|
16010
16103
|
let client = null;
|
|
16011
16104
|
|
|
16012
16105
|
try {
|
|
16106
|
+
resultDownloadBudget();
|
|
16013
16107
|
if (options.video && isWan3ModelLocal(options.model)) {
|
|
16014
16108
|
await prepareWan3ReferenceMediaPlan();
|
|
16015
16109
|
}
|
|
@@ -18418,6 +18512,12 @@ async function main() {
|
|
|
18418
18512
|
printHumanError(error, errorContext);
|
|
18419
18513
|
}
|
|
18420
18514
|
} finally {
|
|
18515
|
+
if (activeResultDownloadBudget?.reader) {
|
|
18516
|
+
activeResultDownloadBudget.reader.close();
|
|
18517
|
+
activeResultDownloadBudget.reader = null;
|
|
18518
|
+
activeResultDownloadBudget.lines = null;
|
|
18519
|
+
process.stdin.pause();
|
|
18520
|
+
}
|
|
18421
18521
|
try {
|
|
18422
18522
|
if (client?.isConnected?.()) {
|
|
18423
18523
|
await Promise.race([
|
package/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const PACKAGE_VERSION = '3.73.
|
|
1
|
+
export const PACKAGE_VERSION = '3.73.3';
|