@sogni-ai/sogni-creative-agent-skill 3.26.1 → 3.28.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/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/CHANGELOG.md +38 -0
- package/README.md +26 -19
- package/SKILL.md +22 -16
- package/desktop-extension/manifest.json +1 -1
- package/llm.txt +9 -6
- package/openclaw.plugin.json +1 -1
- package/package.json +3 -3
- package/references/hosted-api.md +7 -5
- package/references/models.md +189 -100
- package/references/video-prompting.md +175 -216
- package/skill-package.json +1 -1
- package/sogni-agent.mjs +116 -16
- package/sogni-app-id.mjs +4 -4
- package/version.mjs +1 -1
package/sogni-agent.mjs
CHANGED
|
@@ -133,7 +133,7 @@ const KNOWN_MODEL_CATALOG_TAGS = new Set([
|
|
|
133
133
|
const SUBSCRIPTION_BILLING_ERROR_CODES = new Set(['4078', '4079', '4080', '4081']);
|
|
134
134
|
const APP_ID_LIMIT_ERROR_CODE = '4061';
|
|
135
135
|
const APP_ID_LIMIT_HINT =
|
|
136
|
-
'This CLI
|
|
136
|
+
'This CLI persists and reuses one installation app ID. Keep ~/.config/sogni/app-id between sessions; for ephemeral/container homes, set one stable SOGNI_APP_ID or persist SOGNI_APP_ID_PATH. If the address is already blocked, preserve the stable ID and wait before retrying.';
|
|
137
137
|
|
|
138
138
|
function subscriptionBillingFallback(code) {
|
|
139
139
|
if (code === undefined || code === null) return null;
|
|
@@ -656,7 +656,22 @@ function buildCliErrorPayload({ message, code, details, hint, prompt }) {
|
|
|
656
656
|
return payload;
|
|
657
657
|
}
|
|
658
658
|
|
|
659
|
+
function unwrapGenericProjectError(error) {
|
|
660
|
+
let current = error;
|
|
661
|
+
const seen = new Set();
|
|
662
|
+
while (current && typeof current === 'object' && !seen.has(current)) {
|
|
663
|
+
seen.add(current);
|
|
664
|
+
const message = typeof current.message === 'string' ? current.message.trim() : '';
|
|
665
|
+
if (message !== 'Project creation failed') break;
|
|
666
|
+
const next = current.originalError || current.cause;
|
|
667
|
+
if (!next) break;
|
|
668
|
+
current = next;
|
|
669
|
+
}
|
|
670
|
+
return current;
|
|
671
|
+
}
|
|
672
|
+
|
|
659
673
|
function cliErrorMessage(error) {
|
|
674
|
+
error = unwrapGenericProjectError(error);
|
|
660
675
|
if (typeof error === 'string') return error;
|
|
661
676
|
if (error instanceof Error) return error.message || String(error);
|
|
662
677
|
if (error && typeof error === 'object') {
|
|
@@ -716,6 +731,7 @@ function classifyHappyHorseCliError(error, rawMessage) {
|
|
|
716
731
|
}
|
|
717
732
|
|
|
718
733
|
function classifyCliError(error, context = {}) {
|
|
734
|
+
error = unwrapGenericProjectError(error);
|
|
719
735
|
const rawMessage = cliErrorMessage(error);
|
|
720
736
|
|
|
721
737
|
// Client-side CLI rejections are the plain `{ message, code }` shape built by
|
|
@@ -1874,6 +1890,13 @@ const MINIMAX_H3_MODEL_MODES = new Map([
|
|
|
1874
1890
|
['minimax-h3-fl2va-fp8_flf2v_turbo', 'flf2v']
|
|
1875
1891
|
]);
|
|
1876
1892
|
const MINIMAX_H3_MODEL_IDS = new Set(MINIMAX_H3_MODEL_MODES.keys());
|
|
1893
|
+
const MINIMAX_H3_TURBO_MODEL_IDS = new Set([
|
|
1894
|
+
'minimax-h3-fl2va-fp8_t2v_turbo',
|
|
1895
|
+
'minimax-h3-fl2va-fp8_i2v_turbo',
|
|
1896
|
+
'minimax-h3-fl2va-fp8_flf2v_turbo'
|
|
1897
|
+
]);
|
|
1898
|
+
const MINIMAX_H3_TURBO_SAMPLERS = Object.freeze(['euler', 'er_sde', 'sa_solver']);
|
|
1899
|
+
const MINIMAX_H3_TURBO_SAMPLER_SET = new Set(MINIMAX_H3_TURBO_SAMPLERS);
|
|
1877
1900
|
const MINIMAX_H3_R2V_MODEL_ID = 'minimax-h3-ref2va-fp8_r2v';
|
|
1878
1901
|
const MINIMAX_H3_REFERENCE_LIMITS = Object.freeze({
|
|
1879
1902
|
images: 9,
|
|
@@ -1938,6 +1961,29 @@ function resolveSkillVideoModelAlias(modelId, workflow = null, hasEndFrame = fal
|
|
|
1938
1961
|
if (normalized === 'minimax-h3-i2v') return 'minimax-h3-fl2va-fp8_i2v';
|
|
1939
1962
|
if (normalized === 'minimax-h3-flf2v') return 'minimax-h3-fl2va-fp8_flf2v';
|
|
1940
1963
|
if (normalized === 'minimax-h3-r2v') return MINIMAX_H3_R2V_MODEL_ID;
|
|
1964
|
+
if (normalized === 'minimax-h3-turbo' && workflow) {
|
|
1965
|
+
if (workflow === 'r2v') {
|
|
1966
|
+
fatalCliError('MiniMax H3 Turbo does not support r2v; use minimax-h3-r2v for Ref2VA.', {
|
|
1967
|
+
code: 'INVALID_ARGUMENT',
|
|
1968
|
+
details: { workflow, model: normalized }
|
|
1969
|
+
});
|
|
1970
|
+
}
|
|
1971
|
+
if (workflow === 'i2v') {
|
|
1972
|
+
return hasEndFrame
|
|
1973
|
+
? 'minimax-h3-fl2va-fp8_flf2v_turbo'
|
|
1974
|
+
: 'minimax-h3-fl2va-fp8_i2v_turbo';
|
|
1975
|
+
}
|
|
1976
|
+
return 'minimax-h3-fl2va-fp8_t2v_turbo';
|
|
1977
|
+
}
|
|
1978
|
+
if (normalized === 'minimax-h3-t2v-turbo') {
|
|
1979
|
+
return 'minimax-h3-fl2va-fp8_t2v_turbo';
|
|
1980
|
+
}
|
|
1981
|
+
if (normalized === 'minimax-h3-i2v-turbo') {
|
|
1982
|
+
return 'minimax-h3-fl2va-fp8_i2v_turbo';
|
|
1983
|
+
}
|
|
1984
|
+
if (normalized === 'minimax-h3-flf2v-turbo') {
|
|
1985
|
+
return 'minimax-h3-fl2va-fp8_flf2v_turbo';
|
|
1986
|
+
}
|
|
1941
1987
|
return normalized === '10eros' || normalized === 'ltx23-eros'
|
|
1942
1988
|
? LTX23_10EROS_MODEL_ID
|
|
1943
1989
|
: modelId;
|
|
@@ -1947,6 +1993,10 @@ function isMiniMaxH3Model(modelId) {
|
|
|
1947
1993
|
return MINIMAX_H3_MODEL_IDS.has(String(modelId || '').trim().toLowerCase());
|
|
1948
1994
|
}
|
|
1949
1995
|
|
|
1996
|
+
function isMiniMaxH3TurboModel(modelId) {
|
|
1997
|
+
return MINIMAX_H3_TURBO_MODEL_IDS.has(String(modelId || '').trim().toLowerCase());
|
|
1998
|
+
}
|
|
1999
|
+
|
|
1950
2000
|
function isMiniMaxH3R2vModel(modelId) {
|
|
1951
2001
|
return String(modelId || '').trim().toLowerCase() === MINIMAX_H3_R2V_MODEL_ID;
|
|
1952
2002
|
}
|
|
@@ -1958,15 +2008,31 @@ function isMiniMaxH3ModelSelectionLocal(modelId) {
|
|
|
1958
2008
|
|| normalized === 'minimax-h3-i2v'
|
|
1959
2009
|
|| normalized === 'minimax-h3-flf2v'
|
|
1960
2010
|
|| normalized === 'minimax-h3-r2v'
|
|
2011
|
+
|| normalized === 'minimax-h3-turbo'
|
|
2012
|
+
|| normalized === 'minimax-h3-t2v-turbo'
|
|
2013
|
+
|| normalized === 'minimax-h3-i2v-turbo'
|
|
2014
|
+
|| normalized === 'minimax-h3-flf2v-turbo'
|
|
1961
2015
|
|| isMiniMaxH3Model(normalized);
|
|
1962
2016
|
}
|
|
1963
2017
|
|
|
2018
|
+
function isMiniMaxH3TurboModelSelectionLocal(modelId) {
|
|
2019
|
+
const normalized = String(modelId || '').trim().toLowerCase();
|
|
2020
|
+
return normalized === 'minimax-h3-turbo'
|
|
2021
|
+
|| normalized === 'minimax-h3-t2v-turbo'
|
|
2022
|
+
|| normalized === 'minimax-h3-i2v-turbo'
|
|
2023
|
+
|| normalized === 'minimax-h3-flf2v-turbo'
|
|
2024
|
+
|| isMiniMaxH3TurboModel(normalized);
|
|
2025
|
+
}
|
|
2026
|
+
|
|
1964
2027
|
function miniMaxH3ModeFromModelId(modelId) {
|
|
1965
2028
|
const normalized = String(modelId || '').trim().toLowerCase();
|
|
1966
2029
|
if (normalized === 'minimax-h3-t2v') return 't2v';
|
|
1967
2030
|
if (normalized === 'minimax-h3-i2v') return 'i2v';
|
|
1968
2031
|
if (normalized === 'minimax-h3-flf2v') return 'flf2v';
|
|
1969
2032
|
if (normalized === 'minimax-h3-r2v') return 'r2v';
|
|
2033
|
+
if (normalized === 'minimax-h3-t2v-turbo') return 't2v';
|
|
2034
|
+
if (normalized === 'minimax-h3-i2v-turbo') return 'i2v';
|
|
2035
|
+
if (normalized === 'minimax-h3-flf2v-turbo') return 'flf2v';
|
|
1970
2036
|
return MINIMAX_H3_MODEL_MODES.get(normalized) || null;
|
|
1971
2037
|
}
|
|
1972
2038
|
|
|
@@ -3332,7 +3398,7 @@ Image Options:
|
|
|
3332
3398
|
--angle-strength <n> LoRA strength for multiple_angles (default: 0.9)
|
|
3333
3399
|
--angle-description <text> Optional subject description
|
|
3334
3400
|
--output-format <f> Image output format: png|jpg (webp for gpt-image-2)
|
|
3335
|
-
--sampler <name> Sampler (
|
|
3401
|
+
--sampler <name> Sampler (images/music; H3 Turbo video: euler|er_sde|sa_solver)
|
|
3336
3402
|
--scheduler <name> Scheduler (model-dependent)
|
|
3337
3403
|
--lora <id> Image LoRA id (repeatable; order is significant)
|
|
3338
3404
|
--loras <ids> Comma-separated LoRA ids
|
|
@@ -3391,13 +3457,15 @@ Video Options:
|
|
|
3391
3457
|
direct-gen for Seedance. On LTX/WAN: single primary for animate/v2v.
|
|
3392
3458
|
--generate-audio, --no-generate-audio Keep or strip MiniMax H3's generated audio track
|
|
3393
3459
|
|
|
3394
|
-
Seedance Reference Modes (mutually exclusive on seedance2 / seedance2-mini / seedance2-fast):
|
|
3460
|
+
Seedance Reference Modes (mutually exclusive on seedance2 / seedance2-mini / seedance2-fast / seedance2-5):
|
|
3395
3461
|
- DEDICATED FRAME MODE: --ref (first frame) and/or --ref-end (last frame).
|
|
3396
3462
|
Best when you want canonical first/last frame anchoring; max 2 images.
|
|
3397
3463
|
- LOOSE REFERENCE MODE: -c/--context image refs plus optional --ref-audio /
|
|
3398
3464
|
--ref-video extras. Anchor frame intent in the prompt with @Image1, @Image2,
|
|
3399
3465
|
@Video1, @Audio1 etc. (e.g. "Use @Image1 as the opening shot reference").
|
|
3400
|
-
Up to 9 image / 3 video / 3 audio / 12 total references per video request
|
|
3466
|
+
Up to 9 image / 3 video / 3 audio / 12 total references per video request
|
|
3467
|
+
on the 2.0 family; seedance2-5 raises the caps to 30 image / 10 video /
|
|
3468
|
+
10 audio / 30 total.
|
|
3401
3469
|
Combining --ref/--ref-end with -c/--context on Seedance is rejected client-side.
|
|
3402
3470
|
All three modalities pull caps from the canonical
|
|
3403
3471
|
@sogni-ai/sogni-protocol seedance-reference-limits catalog.
|
|
@@ -3561,12 +3629,17 @@ Music Models:
|
|
|
3561
3629
|
ace_step_1.5_turbo Legacy direct music generation
|
|
3562
3630
|
ace_step_1.5_sft Legacy lyric-focused music generation
|
|
3563
3631
|
|
|
3564
|
-
Seedance
|
|
3565
|
-
seedance2
|
|
3632
|
+
Seedance Video Model Selectors:
|
|
3633
|
+
seedance2 Seedance 2.0 text-to-video, 4-15s, native audio, HTTPS multimodal refs
|
|
3566
3634
|
seedance2-mini Lower-cost 720p-capped text-to-video
|
|
3567
3635
|
seedance2-fast Legacy fast 720p-capped text-to-video
|
|
3568
3636
|
seedance2-ia2v Image+audio-to-video
|
|
3569
3637
|
seedance2-v2v Video-to-video without ControlNet
|
|
3638
|
+
seedance2-5 Seedance 2.5 text-to-video (alias seedance2-5-t2v): 4-30s single clips,
|
|
3639
|
+
480p/720p only (no 1080p/4K), native audio, first/last frame via
|
|
3640
|
+
--ref/--ref-end, up to 30 image / 10 video / 10 audio refs (30 total)
|
|
3641
|
+
seedance2-5-ia2v Seedance 2.5 image+audio-to-video
|
|
3642
|
+
seedance2-5-v2v Seedance 2.5 video-to-video, editing, and extension, no ControlNet
|
|
3570
3643
|
|
|
3571
3644
|
HappyHorse 1.1 Video Model Selectors (3-15s, fixed 24fps, native audio, 720P/1080P):
|
|
3572
3645
|
happyhorse-1.1-t2v Text-to-video (also accepts the bare "happyhorse" alias)
|
|
@@ -3574,15 +3647,24 @@ HappyHorse 1.1 Video Model Selectors (3-15s, fixed 24fps, native audio, 720P/108
|
|
|
3574
3647
|
happyhorse-1.1-r2v Reference-to-video from 1-9 reference images (-c/--context)
|
|
3575
3648
|
|
|
3576
3649
|
MiniMax H3 Video Model Selectors (fixed 24fps, native 32kHz stereo audio + dialogue,
|
|
3577
|
-
frames 124+n*17 = 5.17-15.08s, sizes /32 up to 1,032,192px
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
Prompting". No negative prompt field:
|
|
3650
|
+
frames 124+n*17 = 5.17-15.08s, sizes /32 up to 1,032,192px. FL2VA/Turbo and
|
|
3651
|
+
image-only R2V need 32GB-class workers; video-conditioned R2V needs above 40GB.
|
|
3652
|
+
Prompts use MiniMax's exact ordered-field contracts and [Shot N] notation; see
|
|
3653
|
+
references/video-prompting.md "MiniMax H3 Prompting". No negative prompt field:
|
|
3654
|
+
state negatives in the structured prompt.):
|
|
3581
3655
|
minimax-h3 Text-to-video (also accepts minimax-h3-t2v); --ref/--ref-end pick i2v/flf2v
|
|
3582
3656
|
minimax-h3-i2v Image-to-video from a single first-frame image (--ref)
|
|
3583
3657
|
minimax-h3-flf2v First-frame -> last-frame transition (--ref plus --ref-end)
|
|
3584
3658
|
minimax-h3-r2v Multi-reference video: --ref/-c images, repeatable --ref-video/--ref-audio
|
|
3585
|
-
(9 images / 3 videos / 3 audios / 12 files total)
|
|
3659
|
+
(9 images / 3 videos / 3 audios / 12 files total; requires an image or video)
|
|
3660
|
+
minimax-h3-turbo 4-step Turbo; --ref/--ref-end select i2v/flf2v
|
|
3661
|
+
minimax-h3-t2v-turbo 4-step Turbo text-to-video
|
|
3662
|
+
minimax-h3-i2v-turbo 4-step Turbo image-to-video (--ref)
|
|
3663
|
+
minimax-h3-flf2v-turbo 4-step Turbo first-frame -> last-frame (--ref plus --ref-end)
|
|
3664
|
+
(Turbo has no r2v/Ref2VA variant)
|
|
3665
|
+
H3 Turbo sampler override --sampler euler|er_sde|sa_solver
|
|
3666
|
+
(Socket default: er_sde; CLI omits unless set)
|
|
3667
|
+
(scheduler remains fixed to simple)
|
|
3586
3668
|
|
|
3587
3669
|
WAN 2.2 Video Models:
|
|
3588
3670
|
wan_v2.2-14b-fp8_t2v_lightx2v Text-to-video (fast)
|
|
@@ -4049,8 +4131,23 @@ if (options.video && options.loras.length > 0) {
|
|
|
4049
4131
|
}
|
|
4050
4132
|
}
|
|
4051
4133
|
|
|
4052
|
-
if (options.video &&
|
|
4053
|
-
fatalCliError('--
|
|
4134
|
+
if (options.video && options.scheduler) {
|
|
4135
|
+
fatalCliError('--scheduler is an image-only option.', { code: 'INVALID_ARGUMENT' });
|
|
4136
|
+
}
|
|
4137
|
+
|
|
4138
|
+
if (options.video && options.sampler) {
|
|
4139
|
+
if (!isMiniMaxH3TurboModelSelectionLocal(options.model)) {
|
|
4140
|
+
fatalCliError('--sampler is supported for video only with MiniMax H3 Turbo.', {
|
|
4141
|
+
code: 'INVALID_ARGUMENT',
|
|
4142
|
+
details: { model: options.model }
|
|
4143
|
+
});
|
|
4144
|
+
}
|
|
4145
|
+
if (!MINIMAX_H3_TURBO_SAMPLER_SET.has(options.sampler)) {
|
|
4146
|
+
fatalCliError(`MiniMax H3 Turbo --sampler must be one of: ${MINIMAX_H3_TURBO_SAMPLERS.join(', ')}.`, {
|
|
4147
|
+
code: 'INVALID_ARGUMENT',
|
|
4148
|
+
details: { model: options.model, sampler: options.sampler, allowed: MINIMAX_H3_TURBO_SAMPLERS }
|
|
4149
|
+
});
|
|
4150
|
+
}
|
|
4054
4151
|
}
|
|
4055
4152
|
|
|
4056
4153
|
applyPersonaAndVoiceReferences();
|
|
@@ -4589,8 +4686,9 @@ if (options.video) {
|
|
|
4589
4686
|
} else if (options.videoWorkflow === 'r2v') {
|
|
4590
4687
|
if (isMiniMaxH3R2v) {
|
|
4591
4688
|
const imageCount = (options.refImage ? 1 : 0) + options.contextImages.length;
|
|
4592
|
-
|
|
4593
|
-
|
|
4689
|
+
const videoCount = (options.refVideo ? 1 : 0) + options.refVideos.length;
|
|
4690
|
+
if (imageCount === 0 && videoCount === 0) {
|
|
4691
|
+
fatalCliError('MiniMax H3 r2v needs at least one visual reference via --ref, -c/--context, or --ref-video; audio-only input is invalid.', { code: 'INVALID_ARGUMENT' });
|
|
4594
4692
|
}
|
|
4595
4693
|
if (options.refImageEnd) {
|
|
4596
4694
|
fatalCliError('MiniMax H3 r2v has no end-frame anchor; use -c/--context for another loose image or minimax-h3-flf2v for first/last frames.', { code: 'INVALID_ARGUMENT' });
|
|
@@ -11003,7 +11101,9 @@ async function main() {
|
|
|
11003
11101
|
if (guidance !== null && guidance !== undefined && !isMiniMaxH3Model(options.model)) {
|
|
11004
11102
|
projectConfig.guidance = guidance;
|
|
11005
11103
|
}
|
|
11006
|
-
if (
|
|
11104
|
+
if (cliSet.sampler && isMiniMaxH3TurboModel(options.model)) {
|
|
11105
|
+
projectConfig.sampler = options.sampler;
|
|
11106
|
+
} else if (modelDefaults?.sampler && !isMiniMaxH3Model(options.model)) {
|
|
11007
11107
|
projectConfig.sampler = modelDefaults.sampler;
|
|
11008
11108
|
}
|
|
11009
11109
|
if (modelDefaults?.scheduler && !isMiniMaxH3Model(options.model)) {
|
package/sogni-app-id.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Persistent Sogni application identity.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
4
|
+
* Repeatedly registering distinct app IDs can exhaust the service allowance.
|
|
5
|
+
* An app ID therefore represents an installation, not a process or request.
|
|
6
|
+
* Keep it outside credentials so rotating an API key does not rotate the
|
|
7
|
+
* installation identity.
|
|
8
8
|
*
|
|
9
9
|
* A single shared app ID is not enough once several agent harnesses (Claude
|
|
10
10
|
* Code, Codex, OpenCode, hermes, ...) drive this CLI concurrently: the socket
|
package/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const PACKAGE_VERSION = '3.
|
|
1
|
+
export const PACKAGE_VERSION = '3.28.0';
|