@sogni-ai/sogni-creative-agent-skill 3.58.0 → 3.58.1
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 +5 -3
- package/.agents/skills/sogni-creative-agent-skill/references/models.md +8 -4
- package/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/CHANGELOG.md +6 -0
- package/README.md +1 -1
- package/SKILL.md +2 -2
- package/desktop-extension/manifest.json +1 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +3 -3
- package/plugin-skills/sogni-creative-agent/SKILL.md +2 -2
- package/references/models.md +8 -4
- package/skill-package.json +2 -2
- package/skills/video_generation.md +2 -2
- package/sogni-agent.mjs +32 -4
- 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, apply a saved identity, or refine an earlier Sogni result."
|
|
4
4
|
license: MIT
|
|
5
5
|
metadata:
|
|
6
|
-
version: "3.58.
|
|
6
|
+
version: "3.58.1"
|
|
7
7
|
author: Sogni AI
|
|
8
8
|
hermes:
|
|
9
9
|
category: creative
|
|
@@ -122,8 +122,10 @@ Seedance 2.5 supports 4–30s at 480p/720p/1080p, including edit/extend,
|
|
|
122
122
|
with optional `--output-format mov` and `--return-last-frame`. Seedance 2.5
|
|
123
123
|
Uncensored (`seedance2-5-uncensored`) has the same limits and Seedance 2.0 Mini
|
|
124
124
|
Uncensored (`seedance2-mini-uncensored`) has Seedance 2.0 Mini's; use them only
|
|
125
|
-
when asked
|
|
126
|
-
|
|
125
|
+
when asked. On error 4103, show the returned `consentUrl` and
|
|
126
|
+
`consentInstructions`: sign in with the same account as the agent/API key,
|
|
127
|
+
accept the shared agreement, then return and retry the original request.
|
|
128
|
+
Never accept for the user or retry while acceptance is pending. FastH3 Two-Stage
|
|
127
129
|
delivers 720p/1080p/2K through its own model selector. FastH3 audio-to-video
|
|
128
130
|
(`minimax-h3-fasth3-ia2v-turbo`, `-flfa2v-turbo`, `-a2v-turbo`) drives H3 with an
|
|
129
131
|
uploaded `--ref-audio` track and keeps it as the soundtrack. Repeatable
|
|
@@ -694,9 +694,11 @@ comes at a premium rate above Seedance 2.5; quote a render with
|
|
|
694
694
|
- **Likeness and consent agreement**: each account must accept a one-time
|
|
695
695
|
likeness and consent agreement in a Sogni app (web or chat) before its first
|
|
696
696
|
render. Until then every job fails with error `4103`; the CLI reports it as a
|
|
697
|
-
non-retryable `PERMISSION_REQUIRED` error
|
|
698
|
-
|
|
699
|
-
|
|
697
|
+
non-retryable `PERMISSION_REQUIRED` error with `consentUrl` and
|
|
698
|
+
`consentInstructions`. Show the clickable link, sign in with the same account
|
|
699
|
+
as the agent/API key, accept there, then return and retry the original request.
|
|
700
|
+
Never accept for the user or retry while acceptance is pending.
|
|
701
|
+
Price estimates still work beforehand.
|
|
700
702
|
- **Not yet released**: where Sogni has not released the model yet, jobs and
|
|
701
703
|
price estimates fail with error `4104`, reported as a non-retryable
|
|
702
704
|
`MODEL_UNAVAILABLE` error whose message names the models to use instead.
|
|
@@ -723,7 +725,9 @@ Seedance 2.0 Mini; quote a render with `--estimate-video-cost`.
|
|
|
723
725
|
consent agreement of Seedance 2.5 Uncensored; an account that accepted it in a
|
|
724
726
|
Sogni app can use both. Until then every job fails with error `4103`, which
|
|
725
727
|
the CLI reports as a non-retryable `PERMISSION_REQUIRED` error naming Seedance
|
|
726
|
-
2.0 Mini Uncensored.
|
|
728
|
+
2.0 Mini Uncensored. Show the returned clickable `consentUrl` and
|
|
729
|
+
`consentInstructions`, including the account and return guidance. Never accept
|
|
730
|
+
for the user or retry while acceptance is pending.
|
|
727
731
|
- **Not yet released**: where Sogni has not released the model yet, jobs and
|
|
728
732
|
price estimates fail with error `4104`, reported as a non-retryable
|
|
729
733
|
`MODEL_UNAVAILABLE` error whose message names the models to use instead.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sogni-creative-agent",
|
|
3
|
-
"version": "3.58.
|
|
3
|
+
"version": "3.58.1",
|
|
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,9 @@
|
|
|
1
|
+
## [3.58.1] - 2026-10-19
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* When a model needs its one-time account agreement, show a direct review link, the Sogni account to use, and instructions for returning to the original request after accepting. Update the intelligence client to 4.16.1 for these recovery details.
|
|
6
|
+
|
|
1
7
|
## [3.58.0] - 2026-10-18
|
|
2
8
|
|
|
3
9
|
### Added
|
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ It ships four ways:
|
|
|
26
26
|
|
|
27
27
|
With this skill, an agent can:
|
|
28
28
|
|
|
29
|
-
- generate with MOSS-Image SFT from captions, tags, or JSON layouts (`-m moss_image_sft_int8_convrot`), or the 8-step preset (`-m moss_image_sft_dmd8_int8_convrot`); both accept compatible Personal LoRAs. See the [model recipes](./references/models.md).
|
|
29
|
+
- generate with MOSS-Image SFT from captions, tags, or JSON layouts (`-m moss_image_sft_int8_convrot`), or the 8-step preset (`-m moss_image_sft_dmd8_int8_convrot`); both accept compatible Personal LoRAs. Optional `--moss-rope-scale-x` and `--moss-rope-scale-y` adjust spatial composition (0–100; neutral 1) while preserving output dimensions. See the [model recipes](./references/models.md).
|
|
30
30
|
|
|
31
31
|
- generate images from prompts and edit/restyle existing images
|
|
32
32
|
- select an object in an original image and return its SAM 3 mask (`--segment`; see the [object selection guide](references/object-selection.md))
|
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 (named people with saved reference photos and voice clips), persistent memories, custom personality, style transfer, angle synthesis, MiniMax H3/H3 Balanced/LightX2V Turbo/FastH3 Turbo (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\", \"apply a style\", or \"generate me as a superhero\"."
|
|
4
4
|
metadata:
|
|
5
|
-
version: "3.58.
|
|
5
|
+
version: "3.58.1"
|
|
6
6
|
homepage: https://sogni.ai
|
|
7
7
|
openclaw:
|
|
8
8
|
emoji: "🎨"
|
|
@@ -399,7 +399,7 @@ When the requested image is meant to **repeat edge to edge without visible joins
|
|
|
399
399
|
|
|
400
400
|
### Model selection
|
|
401
401
|
|
|
402
|
-
Prefer `-Q` presets and automatic workflow routing. When a specific model is needed (GPT Image 2 text rendering, Seedance / HappyHorse / Wan 3 / Wan 3.0 Enhanced / MiniMax H3 native audio and dialogue, WAN 2.2 lip-sync, LTX dialogue), **read [`references/models.md`](./references/models.md)** for the catalog, recommended selectors, and sizing/divisibility rules. Seedance 2.5 Uncensored (`-m seedance2-5-uncensored`, also "Seedance Uncensored" or "Seedance Spicy") has every Seedance 2.5 mode and limit; use it only when the user asks for it.
|
|
402
|
+
Prefer `-Q` presets and automatic workflow routing. When a specific model is needed (GPT Image 2 text rendering, Seedance / HappyHorse / Wan 3 / Wan 3.0 Enhanced / MiniMax H3 native audio and dialogue, WAN 2.2 lip-sync, LTX dialogue), **read [`references/models.md`](./references/models.md)** for the catalog, recommended selectors, and sizing/divisibility rules. Seedance 2.5 Uncensored (`-m seedance2-5-uncensored`, also "Seedance Uncensored" or "Seedance Spicy") has every Seedance 2.5 mode and limit; use it only when the user asks for it. On error 4103, show the returned `consentUrl` as a clickable link and include `consentInstructions`, with the account to use and how to return to the original request after manual acceptance. Never accept for the user or retry while acceptance is pending.
|
|
403
403
|
|
|
404
404
|
`ltx23-eros` is an explicit-only uncensored LTX-2.3 image-to-video selector. Never choose it merely because a prompt appears sexual or another model rejects a request. Use it only when the user explicitly asks for 10Eros/the uncensored model and explicitly permits disabling the content filter. It requires an input image, `--no-filter`, and a 30GB+ worker; the CLI pins its required 9 steps, guidance 1, `euler_ancestral` sampler, and `manual_sigmas` scheduler.
|
|
405
405
|
|
|
@@ -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.58.
|
|
5
|
+
"version": "3.58.1",
|
|
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",
|
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.58.
|
|
5
|
+
"version": "3.58.1",
|
|
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.58.
|
|
3
|
+
"version": "3.58.1",
|
|
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",
|
|
@@ -102,13 +102,13 @@
|
|
|
102
102
|
"media-utilities.mjs"
|
|
103
103
|
],
|
|
104
104
|
"dependencies": {
|
|
105
|
-
"@sogni-ai/sogni-intelligence-client": "4.
|
|
105
|
+
"@sogni-ai/sogni-intelligence-client": "4.16.1",
|
|
106
106
|
"execa": "^10.0.1",
|
|
107
107
|
"json5": "^2.2.3",
|
|
108
108
|
"sharp": "0.35.5"
|
|
109
109
|
},
|
|
110
110
|
"overrides": {
|
|
111
|
-
"@sogni-ai/sogni-client": "5.
|
|
111
|
+
"@sogni-ai/sogni-client": "5.66.0"
|
|
112
112
|
},
|
|
113
113
|
"openclaw": {
|
|
114
114
|
"extensions": [
|
|
@@ -42,8 +42,8 @@ Honor requests to wait for user input; model-specific policies still apply.
|
|
|
42
42
|
- Upscale a finished video: `sogni-agent --upscale-video ./clip.mp4 --upscale-resolution 1080 -o ./clip-1080p.mp4` (promptless FlashVSR; also supports 1440p)
|
|
43
43
|
- MiniMax H3 reference-to-video: `sogni-agent --video -m minimax-h3-r2v --ref <identity> -c <wardrobe> --ref-video <motion> --ref-audio <voice> "<Picture 1> controls identity; <Picture 2> controls wardrobe; <Video 1> controls motion; <Audio 1> controls voice."`
|
|
44
44
|
- Alibaba Wan 3 unified video: `sogni-agent --video -m wan3 --target-resolution 1080 --duration 8 "a presenter says 'Welcome' in a detailed studio"`
|
|
45
|
-
- Seedance 2.5 Uncensored, only when asked: `sogni-agent --video -m seedance2-5-uncensored --target-resolution 1080 --duration 8 "a slow dolly through a neon street at night"` (same limits as Seedance 2.5; error 4103
|
|
46
|
-
- Seedance 2.0 Mini Uncensored, only when asked: `sogni-agent --video -m seedance2-mini-uncensored --target-resolution 720 --duration 8 "a slow dolly through a neon street at night"` (same limits as Seedance 2.0 Mini; shares the
|
|
45
|
+
- Seedance 2.5 Uncensored, only when asked: `sogni-agent --video -m seedance2-5-uncensored --target-resolution 1080 --duration 8 "a slow dolly through a neon street at night"` (same limits as Seedance 2.5; on error 4103 show the returned `consentUrl` and `consentInstructions`, use the same account as the agent/API key, and return to retry after manual acceptance)
|
|
46
|
+
- Seedance 2.0 Mini Uncensored, only when asked: `sogni-agent --video -m seedance2-mini-uncensored --target-resolution 720 --duration 8 "a slow dolly through a neon street at night"` (same limits as Seedance 2.0 Mini; shares the agreement; on error 4103 show `consentUrl` and `consentInstructions`, including the account and return guidance; never accept or retry for the user)
|
|
47
47
|
- Wan 3.0 Enhanced through MuleRouter: `sogni-agent --video -m wan3-enhanced --target-resolution 1080 --smart-duration --wan3-ratio adaptive "a presenter says 'Welcome' in a detailed studio"`
|
|
48
48
|
- One-click image-folder loop: `/sogni-creative-agent:loop-maker ./images`
|
|
49
49
|
- One-click image-folder loop in Codex: `$sogni-creative-agent:loop-maker ./images`
|
package/references/models.md
CHANGED
|
@@ -694,9 +694,11 @@ comes at a premium rate above Seedance 2.5; quote a render with
|
|
|
694
694
|
- **Likeness and consent agreement**: each account must accept a one-time
|
|
695
695
|
likeness and consent agreement in a Sogni app (web or chat) before its first
|
|
696
696
|
render. Until then every job fails with error `4103`; the CLI reports it as a
|
|
697
|
-
non-retryable `PERMISSION_REQUIRED` error
|
|
698
|
-
|
|
699
|
-
|
|
697
|
+
non-retryable `PERMISSION_REQUIRED` error with `consentUrl` and
|
|
698
|
+
`consentInstructions`. Show the clickable link, sign in with the same account
|
|
699
|
+
as the agent/API key, accept there, then return and retry the original request.
|
|
700
|
+
Never accept for the user or retry while acceptance is pending.
|
|
701
|
+
Price estimates still work beforehand.
|
|
700
702
|
- **Not yet released**: where Sogni has not released the model yet, jobs and
|
|
701
703
|
price estimates fail with error `4104`, reported as a non-retryable
|
|
702
704
|
`MODEL_UNAVAILABLE` error whose message names the models to use instead.
|
|
@@ -723,7 +725,9 @@ Seedance 2.0 Mini; quote a render with `--estimate-video-cost`.
|
|
|
723
725
|
consent agreement of Seedance 2.5 Uncensored; an account that accepted it in a
|
|
724
726
|
Sogni app can use both. Until then every job fails with error `4103`, which
|
|
725
727
|
the CLI reports as a non-retryable `PERMISSION_REQUIRED` error naming Seedance
|
|
726
|
-
2.0 Mini Uncensored.
|
|
728
|
+
2.0 Mini Uncensored. Show the returned clickable `consentUrl` and
|
|
729
|
+
`consentInstructions`, including the account and return guidance. Never accept
|
|
730
|
+
for the user or retry while acceptance is pending.
|
|
727
731
|
- **Not yet released**: where Sogni has not released the model yet, jobs and
|
|
728
732
|
price estimates fail with error `4104`, reported as a non-retryable
|
|
729
733
|
`MODEL_UNAVAILABLE` error whose message names the models to use instead.
|
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.
|
|
6
|
+
"@sogni-ai/sogni-intelligence-client": "4.16.1",
|
|
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.66.0"
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -20,8 +20,8 @@ Text-to-video synthesis with LTX-2.3, WAN 2.2, Wan 3, Wan 3.0 Enhanced, Seedance
|
|
|
20
20
|
- For prompt-only variants with the same model, duration, dimensions, and references, use one Dynamic Prompt branch with `numberOfVariations`/`-n` instead of serial video calls.
|
|
21
21
|
- HappyHorse 1.1 is a Premium Spark vendor path: t2v is prompt-only, i2v uses one first-frame image, and r2v uses 1-9 image references. It accepts no reference audio or video.
|
|
22
22
|
- Wan 3 (`wan3.0-video`) is a Premium Spark unified vendor path: 2-30 s at fixed 30 fps with native audio and 480P/720P/1080P output. Use either first/last-frame anchors or a loose set capped at 10 images, 5 videos, 5 audios, and 20 files total; never combine the two reference modes.
|
|
23
|
-
- Seedance 2.5 Uncensored (`seedance2-5-uncensored`, also "Seedance Uncensored"/"Seedance Spicy") has every Seedance 2.5 mode and limit under its own model id; use it only when the user asks for it. Each account first accepts a one-time likeness and consent agreement in the Sogni app; error 4103
|
|
24
|
-
- Seedance 2.0 Mini Uncensored (`seedance2-mini-uncensored`, also "Seedance Mini Uncensored"/"Uncensored Seedance Mini" in any word order) has every Seedance 2.0 Mini mode and limit under its own model id; use it only when the user asks for it. It shares the Seedance 2.5 Uncensored likeness and consent agreement; error 4103
|
|
23
|
+
- Seedance 2.5 Uncensored (`seedance2-5-uncensored`, also "Seedance Uncensored"/"Seedance Spicy") has every Seedance 2.5 mode and limit under its own model id; use it only when the user asks for it. Each account first accepts a one-time likeness and consent agreement in the Sogni app; on error 4103, show the returned `consentUrl` and `consentInstructions`, use the same account as the agent/API key, then return and retry after manual acceptance.
|
|
24
|
+
- Seedance 2.0 Mini Uncensored (`seedance2-mini-uncensored`, also "Seedance Mini Uncensored"/"Uncensored Seedance Mini" in any word order) has every Seedance 2.0 Mini mode and limit under its own model id; use it only when the user asks for it. It shares the Seedance 2.5 Uncensored likeness and consent agreement; on error 4103, show the returned `consentUrl` and `consentInstructions`, including the account and return guidance. Never accept for the user or retry while acceptance is pending.
|
|
25
25
|
- Wan 3.0 Enhanced (`wan3.0-spicy-video`, MuleRouter provider ID `w3.0-video`, aliases `wan3-enhanced`/`wan3-spicy`) supports fixed or smart 2-30 s at 30 fps, native audio, prompt expansion, 480P/720P/1080P, and adaptive/fixed ratios. Use either first/last-frame anchors or up to 10 image, 5 video, and 5 audio loose references; never mix the modes. It has no document/web context, watermark, negative prompt, source-video edit, or extend mode.
|
|
26
26
|
- MiniMax H3 t2v uses `minimax-h3-t2v`; H3 r2v must be selected explicitly as `minimax-h3-r2v` and accepts up to 9 images, 3 videos, and 3 audio clips, capped at 12 files with at least one image. Address references with per-type `<Picture 1>` / `<Video 1>` / `<Audio 1>` tags and assign each one a role.
|
|
27
27
|
- MiniMax H3 keyframes on `generate_video` are Reference to Video only (`minimax-h3-r2v` and its turbo, balanced, and two-stage forms): `keyframes=[{imageIndex, atSeconds}]` (up to 8, strictly inside the clip, `imageIndex` indexed like `endImageIndex`) pins extra images at chosen times. Keyframes are not references: never put them in `referenceImageIndices` or count them toward the reference limits, and R2V still needs its own image or video reference. The prompt names each keyframe `<Picture N>`, numbered in time order after the reference pictures, and describes it at its time. Text-to-video never takes keyframes.
|
package/sogni-agent.mjs
CHANGED
|
@@ -689,6 +689,7 @@ function buildCliErrorPayload({ message, code, details, hint, prompt }) {
|
|
|
689
689
|
prompt: prompt ?? null
|
|
690
690
|
};
|
|
691
691
|
if (classified.metadata) payload.metadata = classified.metadata;
|
|
692
|
+
if (classified.metadata?.consentInstructions && !hint) payload.hint = classified.metadata.consentInstructions;
|
|
692
693
|
if (classified.technicalError && classified.technicalError !== payload.error) {
|
|
693
694
|
payload.technicalError = classified.technicalError;
|
|
694
695
|
}
|
|
@@ -811,7 +812,7 @@ function classifyCliError(error, context = {}) {
|
|
|
811
812
|
// consent agreement in the Sogni app. The message names the refused model. It
|
|
812
813
|
// must win over the Seedance failure matchers below, never be retried, and
|
|
813
814
|
// never be accepted by the CLI.
|
|
814
|
-
const consentPayload = modelConsentRequiredPayloadFromError(error);
|
|
815
|
+
const consentPayload = modelConsentRequiredPayloadFromError(error, context.accountUsername);
|
|
815
816
|
if (consentPayload) {
|
|
816
817
|
return {
|
|
817
818
|
error_type: 'PERMISSION_REQUIRED',
|
|
@@ -946,6 +947,7 @@ function addCanonicalErrorFields(payload, error, context = {}) {
|
|
|
946
947
|
payload.errorCategory = classified.category;
|
|
947
948
|
payload.retryable = classified.retryable;
|
|
948
949
|
if (classified.metadata) payload.metadata = classified.metadata;
|
|
950
|
+
if (classified.metadata?.consentInstructions && !payload.hint) payload.hint = classified.metadata.consentInstructions;
|
|
949
951
|
if (classified.technicalError && classified.technicalError !== classified.message) {
|
|
950
952
|
payload.technicalError = classified.technicalError;
|
|
951
953
|
}
|
|
@@ -975,6 +977,7 @@ function printHumanError(error, context = {}) {
|
|
|
975
977
|
console.error(`Details: ${classified.technicalError}`);
|
|
976
978
|
}
|
|
977
979
|
const hint = error?.hint
|
|
980
|
+
|| classified?.metadata?.consentInstructions
|
|
978
981
|
|| (classified?.category === 'insufficient_credits' ? SPARK_PACKS_PURCHASE_HINT : null);
|
|
979
982
|
if (hint) console.error(`Hint: ${hint}`);
|
|
980
983
|
}
|
|
@@ -1981,6 +1984,19 @@ function isGptImage2ModelSelection(modelId) {
|
|
|
1981
1984
|
}
|
|
1982
1985
|
|
|
1983
1986
|
function imageOptionsFromCli() {
|
|
1987
|
+
const rope = {};
|
|
1988
|
+
for (const name of ['mossRopeScaleX', 'mossRopeScaleY']) {
|
|
1989
|
+
const value = options[name];
|
|
1990
|
+
if (value === undefined) continue;
|
|
1991
|
+
if (getSharedModelDefaults(options.model)?.family !== 'moss-image') {
|
|
1992
|
+
fatalCliError(`${name} is only supported by MOSS-Image.`);
|
|
1993
|
+
}
|
|
1994
|
+
if (!Number.isFinite(value) || value < 0 || value > 100) {
|
|
1995
|
+
fatalCliError(`${name} must be a finite number between 0 and 100.`);
|
|
1996
|
+
}
|
|
1997
|
+
if (value !== 1) rope[name] = value;
|
|
1998
|
+
}
|
|
1999
|
+
if (Object.keys(rope).length) return rope;
|
|
1984
2000
|
if (!isGptImage2ModelSelection(options.model)) return {};
|
|
1985
2001
|
return {
|
|
1986
2002
|
...getGptImageRequestOptions({
|
|
@@ -3895,6 +3911,10 @@ for (let i = 0; i < args.length; i++) {
|
|
|
3895
3911
|
i++;
|
|
3896
3912
|
options.guidance = parseNumberValue(raw, arg);
|
|
3897
3913
|
cliSet.guidance = true;
|
|
3914
|
+
} else if (arg === '--moss-rope-scale-x' || arg === '--moss-rope-scale-y') {
|
|
3915
|
+
const raw = requireFlagValue(args, i, arg);
|
|
3916
|
+
i++;
|
|
3917
|
+
options[arg.endsWith('-x') ? 'mossRopeScaleX' : 'mossRopeScaleY'] = parseNumberValue(raw, arg);
|
|
3898
3918
|
} else if (arg === '--return-last-frame') {
|
|
3899
3919
|
options.returnLastFrame = true;
|
|
3900
3920
|
} else if (arg === '--no-prompt-metadata') {
|
|
@@ -5144,6 +5164,8 @@ General:
|
|
|
5144
5164
|
(default 24, max 168); fetch one with --result
|
|
5145
5165
|
--steps <num> Override steps (model-dependent)
|
|
5146
5166
|
--guidance <num> Override guidance (model-dependent)
|
|
5167
|
+
--moss-rope-scale-x <num> MOSS horizontal composition scale (0–100; neutral 1)
|
|
5168
|
+
--moss-rope-scale-y <num> MOSS vertical composition scale (0–100; neutral 1)
|
|
5147
5169
|
--token-type <type> Token type: spark|sogni|auto (default: spark, auto retries with alternate)
|
|
5148
5170
|
--billing-mode <mode> Billing: auto|subscription|tokens (default: server decides; "subscription"
|
|
5149
5171
|
requires Sogni Unlimited coverage, "tokens" opts out of it)
|
|
@@ -16316,6 +16338,12 @@ async function main() {
|
|
|
16316
16338
|
}
|
|
16317
16339
|
enrichAppIdLimitError(error);
|
|
16318
16340
|
|
|
16341
|
+
const errorContext = { modelId: options.model };
|
|
16342
|
+
if (modelConsentRequiredPayloadFromError(error) && client?.isConnected?.()) {
|
|
16343
|
+
// Cached authenticated identity, not another network preflight. The browser
|
|
16344
|
+
// may be signed in to a different account from the CLI's API key.
|
|
16345
|
+
try { errorContext.accountUsername = (await client.getAccountInfo())?.username; } catch { /* preserve the original refusal */ }
|
|
16346
|
+
}
|
|
16319
16347
|
exitCode = 1;
|
|
16320
16348
|
const shouldJson = options.json || IS_OPENCLAW_INVOCATION;
|
|
16321
16349
|
if (shouldJson) {
|
|
@@ -16323,7 +16351,7 @@ async function main() {
|
|
|
16323
16351
|
success: false,
|
|
16324
16352
|
error: error.message,
|
|
16325
16353
|
prompt: options.prompt ?? null
|
|
16326
|
-
}, error,
|
|
16354
|
+
}, error, errorContext);
|
|
16327
16355
|
if (error.code) payload.errorCode = error.code;
|
|
16328
16356
|
if (error.details) payload.errorDetails = error.details;
|
|
16329
16357
|
// Don't let a stale per-error hint overwrite the canonical
|
|
@@ -16361,10 +16389,10 @@ async function main() {
|
|
|
16361
16389
|
if (IS_OPENCLAW_INVOCATION) payload.openclaw = true;
|
|
16362
16390
|
console.log(JSON.stringify(payload));
|
|
16363
16391
|
if (!options.json) {
|
|
16364
|
-
printHumanError(error,
|
|
16392
|
+
printHumanError(error, errorContext);
|
|
16365
16393
|
}
|
|
16366
16394
|
} else {
|
|
16367
|
-
printHumanError(error,
|
|
16395
|
+
printHumanError(error, errorContext);
|
|
16368
16396
|
}
|
|
16369
16397
|
} finally {
|
|
16370
16398
|
try {
|
package/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const PACKAGE_VERSION = '3.58.
|
|
1
|
+
export const PACKAGE_VERSION = '3.58.1';
|