@sogni-ai/sogni-creative-agent-skill 3.26.1 → 3.27.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/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 now 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. App IDs already registered from this address remain counted until 00:00 UTC, so wait for the next UTC reset once if the address is already blocked.';
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
@@ -1938,6 +1954,29 @@ function resolveSkillVideoModelAlias(modelId, workflow = null, hasEndFrame = fal
1938
1954
  if (normalized === 'minimax-h3-i2v') return 'minimax-h3-fl2va-fp8_i2v';
1939
1955
  if (normalized === 'minimax-h3-flf2v') return 'minimax-h3-fl2va-fp8_flf2v';
1940
1956
  if (normalized === 'minimax-h3-r2v') return MINIMAX_H3_R2V_MODEL_ID;
1957
+ if (normalized === 'minimax-h3-turbo' && workflow) {
1958
+ if (workflow === 'r2v') {
1959
+ fatalCliError('MiniMax H3 Turbo does not support r2v; use minimax-h3-r2v for Ref2VA.', {
1960
+ code: 'INVALID_ARGUMENT',
1961
+ details: { workflow, model: normalized }
1962
+ });
1963
+ }
1964
+ if (workflow === 'i2v') {
1965
+ return hasEndFrame
1966
+ ? 'minimax-h3-fl2va-fp8_flf2v_turbo'
1967
+ : 'minimax-h3-fl2va-fp8_i2v_turbo';
1968
+ }
1969
+ return 'minimax-h3-fl2va-fp8_t2v_turbo';
1970
+ }
1971
+ if (normalized === 'minimax-h3-t2v-turbo') {
1972
+ return 'minimax-h3-fl2va-fp8_t2v_turbo';
1973
+ }
1974
+ if (normalized === 'minimax-h3-i2v-turbo') {
1975
+ return 'minimax-h3-fl2va-fp8_i2v_turbo';
1976
+ }
1977
+ if (normalized === 'minimax-h3-flf2v-turbo') {
1978
+ return 'minimax-h3-fl2va-fp8_flf2v_turbo';
1979
+ }
1941
1980
  return normalized === '10eros' || normalized === 'ltx23-eros'
1942
1981
  ? LTX23_10EROS_MODEL_ID
1943
1982
  : modelId;
@@ -1958,6 +1997,10 @@ function isMiniMaxH3ModelSelectionLocal(modelId) {
1958
1997
  || normalized === 'minimax-h3-i2v'
1959
1998
  || normalized === 'minimax-h3-flf2v'
1960
1999
  || normalized === 'minimax-h3-r2v'
2000
+ || normalized === 'minimax-h3-turbo'
2001
+ || normalized === 'minimax-h3-t2v-turbo'
2002
+ || normalized === 'minimax-h3-i2v-turbo'
2003
+ || normalized === 'minimax-h3-flf2v-turbo'
1961
2004
  || isMiniMaxH3Model(normalized);
1962
2005
  }
1963
2006
 
@@ -1967,6 +2010,9 @@ function miniMaxH3ModeFromModelId(modelId) {
1967
2010
  if (normalized === 'minimax-h3-i2v') return 'i2v';
1968
2011
  if (normalized === 'minimax-h3-flf2v') return 'flf2v';
1969
2012
  if (normalized === 'minimax-h3-r2v') return 'r2v';
2013
+ if (normalized === 'minimax-h3-t2v-turbo') return 't2v';
2014
+ if (normalized === 'minimax-h3-i2v-turbo') return 'i2v';
2015
+ if (normalized === 'minimax-h3-flf2v-turbo') return 'flf2v';
1970
2016
  return MINIMAX_H3_MODEL_MODES.get(normalized) || null;
1971
2017
  }
1972
2018
 
@@ -3574,15 +3620,21 @@ HappyHorse 1.1 Video Model Selectors (3-15s, fixed 24fps, native audio, 720P/108
3574
3620
  happyhorse-1.1-r2v Reference-to-video from 1-9 reference images (-c/--context)
3575
3621
 
3576
3622
  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, 32GB-class workers.
3578
- Prompt is natural cinematic prose — a timed shot list ("[0-2 seconds] ...") plus
3579
- explicit audio direction; see references/video-prompting.md "MiniMax H3
3580
- Prompting". No negative prompt field: state negatives in the prompt text.):
3623
+ frames 124+n*17 = 5.17-15.08s, sizes /32 up to 1,032,192px. FL2VA/Turbo and
3624
+ image-only R2V need 32GB-class workers; video-conditioned R2V needs above 40GB.
3625
+ Prompts use MiniMax's exact ordered-field contracts and [Shot N] notation; see
3626
+ references/video-prompting.md "MiniMax H3 Prompting". No negative prompt field:
3627
+ state negatives in the structured prompt.):
3581
3628
  minimax-h3 Text-to-video (also accepts minimax-h3-t2v); --ref/--ref-end pick i2v/flf2v
3582
3629
  minimax-h3-i2v Image-to-video from a single first-frame image (--ref)
3583
3630
  minimax-h3-flf2v First-frame -> last-frame transition (--ref plus --ref-end)
3584
3631
  minimax-h3-r2v Multi-reference video: --ref/-c images, repeatable --ref-video/--ref-audio
3585
- (9 images / 3 videos / 3 audios / 12 files total)
3632
+ (9 images / 3 videos / 3 audios / 12 files total; requires an image or video)
3633
+ minimax-h3-turbo 4-step Turbo; --ref/--ref-end select i2v/flf2v
3634
+ minimax-h3-t2v-turbo 4-step Turbo text-to-video
3635
+ minimax-h3-i2v-turbo 4-step Turbo image-to-video (--ref)
3636
+ minimax-h3-flf2v-turbo 4-step Turbo first-frame -> last-frame (--ref plus --ref-end)
3637
+ (Turbo has no r2v/Ref2VA variant)
3586
3638
 
3587
3639
  WAN 2.2 Video Models:
3588
3640
  wan_v2.2-14b-fp8_t2v_lightx2v Text-to-video (fast)
@@ -4589,8 +4641,9 @@ if (options.video) {
4589
4641
  } else if (options.videoWorkflow === 'r2v') {
4590
4642
  if (isMiniMaxH3R2v) {
4591
4643
  const imageCount = (options.refImage ? 1 : 0) + options.contextImages.length;
4592
- if (imageCount === 0) {
4593
- fatalCliError('MiniMax H3 r2v needs at least one reference image via --ref or -c/--context.', { code: 'INVALID_ARGUMENT' });
4644
+ const videoCount = (options.refVideo ? 1 : 0) + options.refVideos.length;
4645
+ if (imageCount === 0 && videoCount === 0) {
4646
+ 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
4647
  }
4595
4648
  if (options.refImageEnd) {
4596
4649
  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' });
package/sogni-app-id.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * Persistent Sogni application identity.
3
3
  *
4
- * Sogni limits how many distinct app IDs may connect from one address each
5
- * UTC day. An app ID therefore represents an installation, not a process or
6
- * request. Keep it outside credentials so rotating an API key does not rotate
7
- * the installation identity.
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.26.1';
1
+ export const PACKAGE_VERSION = '3.27.0';