@sogni-ai/sogni-creative-agent-skill 3.17.1 → 3.17.2

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sogni-creative-agent",
3
- "version": "3.17.1",
3
+ "version": "3.17.2",
4
4
  "description": "Sogni Creative Agent: image, 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",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sogni-creative-agent",
3
- "version": "3.17.1",
3
+ "version": "3.17.2",
4
4
  "description": "Create images, generative video, music, and polished image-folder loops with Sogni AI.",
5
5
  "author": {
6
6
  "name": "Sogni AI",
package/CHANGELOG.md CHANGED
@@ -1,3 +1,19 @@
1
+ ## [3.17.2](https://github.com/Sogni-AI/sogni-creative-agent-skill/compare/v3.17.1...v3.17.2) (2026-07-26)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **billing:** clarify unlimited settlement and LTX sizing ([d836b49](https://github.com/Sogni-AI/sogni-creative-agent-skill/commit/d836b490bccda5c9e8166b2bb3d928708d2fbae4))
7
+
8
+ ## Unreleased
9
+
10
+ ### Fixed
11
+
12
+ * **billing:** clarify that `tokenType: "spark"` is a denomination, not proof of a Spark debit; Unlimited
13
+ coverage is determined by `paymentModel: "subscription"` or explicit subscription-billing success.
14
+ * **video:** use an already-compatible local LTX/10Eros reference as the implicit i2v canvas, avoiding
15
+ misleading intermediate dimension adjustments and no-op resize messages.
16
+
1
17
  ## [3.17.1](https://github.com/Sogni-AI/sogni-creative-agent-skill/compare/v3.17.0...v3.17.1) (2026-07-26)
2
18
 
3
19
 
package/README.md CHANGED
@@ -777,6 +777,8 @@ App Store and Google Play prices may differ from web pricing due to platform fee
777
777
 
778
778
  By default the CLI sends no `billingMode`/coverage hint; the server decides coverage from the account's verified entitlement and the resolved model, and a subscription claim is never honored without a server-verified entitlement. `--billing-mode` makes the choice explicit when you need it: `subscription` requires Unlimited coverage (the job fails instead of spending tokens), `tokens` opts out of coverage and bills Spark/SOGNI, and `auto` states the default server behavior explicitly.
779
779
 
780
+ Do not use `tokenType: "spark"` by itself to determine that Spark paid for a render. `tokenType` is also the quote/accounting denomination for covered jobs. The server's separate `paymentModel` is authoritative: `subscription` means it skipped the artist Spark/SOGNI debit, while `paid_spark`, `free_spark`, and `sogni` identify token-funded paths. Some client result summaries do not expose `paymentModel`; in that case the payment source is unknown from that result alone. A request that completes successfully with `--billing-mode subscription` was covered—if coverage is unavailable, the server returns `4078` or `4080` instead of silently spending Spark.
781
+
780
782
  With an active subscription, the CLI also skips its client-side "insufficient SPARK" pre-flight for covered video renders — a low token balance no longer blocks jobs the plan pays for. Vendor models and `--billing-mode tokens` keep the pre-flight, and the server remains authoritative either way.
781
783
 
782
784
  ### Free-trial usage limits
package/SKILL.md CHANGED
@@ -2,7 +2,7 @@
2
2
  name: sogni-creative-agent-skill
3
3
  description: "Sogni Creative Agent Skill: agent skill and CLI for image, video, and music generation using Sogni AI's decentralized GPU network. Supports one-click image-folder loop reels, personas (named people with saved reference photos and voice clips), persistent memories, custom personality, style transfer, angle synthesis, 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\", \"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.17.1"
5
+ version: "3.17.2"
6
6
  homepage: https://sogni.ai
7
7
  openclaw:
8
8
  emoji: "🎨"
@@ -275,6 +275,8 @@ Do not collect payment details, quote a custom price, or simulate a purchase in
275
275
 
276
276
  On a **Sogni Unlimited** subscription, Sogni-hosted (Supernet) image, video, and music generation is covered by the plan under a fair-use policy instead of spending Spark or SOGNI. Plans: Unlimited ($20/mo, $199/yr) and Unlimited Pro ($50/mo, $498/yr), with a one-per-account 3-day free trial. External-vendor models — **GPT Image 2**, **Seedance 2.0 / Mini / Fast**, and **HappyHorse 1.1** — are never covered and always require Premium Spark, even on an active subscription. Selecting SOGNI opts a job out of coverage. The server decides coverage from the verified entitlement and resolved model; never tell the user a vendor model is "free on Unlimited."
277
277
 
278
+ **Do not infer a Spark charge from `tokenType: "spark"`.** `tokenType` is the quote/accounting denomination and may remain `spark` on a covered Unlimited job. Billing is decided separately by the server's `paymentModel`: `subscription` means the artist Spark/SOGNI debit was skipped; `paid_spark`, `free_spark`, or `sogni` means token billing. If a result does not expose `paymentModel`, treat the payment source as unknown rather than warning that Spark was spent. Check the structured subscription state or transaction history when available. A successful request made with `--billing-mode subscription` is covered: if the server cannot use Unlimited, it rejects the request with `4078` or `4080` instead of silently falling back to Spark.
279
+
278
280
  Unlimited is fair-use, not unmetered: per-UTC-day concurrency ceilings step down as completed renders climb (and reset at UTC midnight), and once a plan's fast-lane allowance is exceeded, further jobs run best-effort in a lower-priority standard queue until capacity resets. Describe this as **fair use** / a **standard (throttled) queue** — never as "relaxed."
279
281
 
280
282
  When a generation cannot bill to the subscription, the CLI returns a structured error (`errorCategory: "subscription_billing"`). Respond by the `errorCode`, and **do not** collect payment details or simulate a purchase:
@@ -324,7 +326,7 @@ Failure (single JSON object on stdout, exit code 1; progress/warnings on stderr)
324
326
 
325
327
  ## Cost
326
328
 
327
- Uses Spark tokens from the user's Sogni account. 512x512 images are most cost-efficient. `-n` is safety-capped at 16 outputs per call (`SOGNI_MAX_COUNT` raises it deliberately). Seedance, HappyHorse, and GPT Image 2 are vendor models requiring Premium Spark eligibility.
329
+ Eligible Sogni-hosted renders use Unlimited coverage when active; otherwise renders use the selected Spark or SOGNI token path. 512x512 images are most cost-efficient. `-n` is safety-capped at 16 outputs per call (`SOGNI_MAX_COUNT` raises it deliberately). Seedance, HappyHorse, and GPT Image 2 are vendor models requiring Premium Spark eligibility.
328
330
 
329
331
  ## Troubleshooting
330
332
 
@@ -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.17.1",
5
+ "version": "3.17.2",
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/llm.txt CHANGED
@@ -117,7 +117,13 @@ HappyHorse 1.1 (`happyhorse-1.1-t2v`, `happyhorse-1.1-i2v`,
117
117
  `happyhorse-1.1-r2v`) — are never covered and always need Premium Spark;
118
118
  selecting SOGNI opts a job out of coverage. The server decides
119
119
  coverage from the verified entitlement + resolved model; the CLI never asserts
120
- coverage. Fair-use throttling lowers per-UTC-day concurrency as completed renders
120
+ coverage. Never infer a Spark charge from `tokenType: "spark"`: that field is
121
+ the quote/accounting denomination and can remain `spark` on a covered job.
122
+ `paymentModel: "subscription"` is the authoritative indication that the artist
123
+ debit was skipped. If `paymentModel` is absent, call the payment source unknown
124
+ instead of claiming Spark was spent. A successful `--billing-mode subscription`
125
+ request is covered; unavailable coverage fails with 4078 or 4080 rather than
126
+ silently falling back to Spark. Fair-use throttling lowers per-UTC-day concurrency as completed renders
121
127
  climb (resets UTC midnight) and demotes over-allowance jobs to a lower-priority
122
128
  standard queue — describe this as fair use / standard queue, never "relaxed".
123
129
  Subscription-billing failures use `errorCategory: "subscription_billing"` with
@@ -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.17.1",
5
+ "version": "3.17.2",
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.17.1",
3
+ "version": "3.17.2",
4
4
  "description": "Sogni Creative Agent Skill: agent skill and CLI for Sogni AI image, video, and music generation.",
5
5
  "type": "module",
6
6
  "main": "sogni-agent.mjs",
package/sogni-agent.mjs CHANGED
@@ -401,6 +401,11 @@ function defaultsFromModelTier(card) {
401
401
  if (Number.isFinite(card?.width?.min)) defaults.minDimension = card.width.min;
402
402
  if (Number.isFinite(card?.width?.max)) defaults.maxDimension = card.width.max;
403
403
  if (Number.isFinite(card?.width?.step)) defaults.dimensionMultiple = card.width.step;
404
+ const defaultSize = String(card?.defaultSize || '').match(/^(\d+)x(\d+)$/i);
405
+ if (defaultSize) {
406
+ defaults.defaultWidth = Number(defaultSize[1]);
407
+ defaults.defaultHeight = Number(defaultSize[2]);
408
+ }
404
409
  return defaults;
405
410
  }
406
411
 
@@ -4027,6 +4032,14 @@ if (options.music) {
4027
4032
  } else if (options.video) {
4028
4033
  options.model = options.model || selectDefaultVideoModel(options.videoWorkflow, options, openclawConfig) || 'wan_v2.2-14b-fp8_i2v_lightx2v';
4029
4034
  options.model = resolveVideoModelAlias(options.model, options.videoWorkflow);
4035
+ try {
4036
+ await loadLiveModelDefaults(options.model);
4037
+ } catch (error) {
4038
+ fatalCliError(error?.message || 'Could not load the live Sogni model catalog.', {
4039
+ code: error?.code || 'MODEL_CATALOG_UNAVAILABLE',
4040
+ hint: error?.hint
4041
+ });
4042
+ }
4030
4043
  const videoModelDefaults = getModelDefaults(options.model, openclawConfig);
4031
4044
  // Fall back to skill-local defaults for models the intel registry does not
4032
4045
  // carry (e.g. HappyHorse), so they get a sensible 16:9 default instead of the
@@ -4524,6 +4537,44 @@ if (options.video) {
4524
4537
  maxDimension: Math.min(baseVideoDimensionRules.maxDimension, WRAPPER_MAX_REF_VIDEO_DIMENSION)
4525
4538
  }
4526
4539
  : baseVideoDimensionRules;
4540
+
4541
+ // An implicit LTX i2v canvas follows an already-compatible local reference
4542
+ // directly. Resolve this before normalizing the model's landscape default so
4543
+ // the CLI does not print an intermediate adjustment that will immediately be
4544
+ // discarded in favor of the reference aspect.
4545
+ const hasRequestedVideoCanvas =
4546
+ cliSet.width ||
4547
+ cliSet.height ||
4548
+ cliSet.targetResolution ||
4549
+ widthFromConfig ||
4550
+ heightFromConfig ||
4551
+ widthFromPrompt ||
4552
+ heightFromPrompt ||
4553
+ targetResolutionFromPrompt;
4554
+ if (
4555
+ isLtx2Model(options.model) &&
4556
+ options.videoWorkflow === 'i2v' &&
4557
+ !hasRequestedVideoCanvas
4558
+ ) {
4559
+ const implicitRefPath = options.refImage || options.refImageEnd;
4560
+ if (implicitRefPath && !isHttpUrl(implicitRefPath) && existsSync(implicitRefPath)) {
4561
+ const implicitRefBuffer = readFileSync(implicitRefPath);
4562
+ const implicitRefDims = getImageDimensionsFromBuffer(implicitRefBuffer);
4563
+ if (implicitRefDims?.width && implicitRefDims?.height) {
4564
+ const sourceCanvas = computeSourceAspectCanvas(
4565
+ implicitRefDims.width,
4566
+ implicitRefDims.height,
4567
+ videoDimensionRules
4568
+ );
4569
+ options.width = sourceCanvas.width;
4570
+ options.height = sourceCanvas.height;
4571
+ options._ltxReferencePassthrough =
4572
+ sourceCanvas.width === implicitRefDims.width &&
4573
+ sourceCanvas.height === implicitRefDims.height;
4574
+ }
4575
+ }
4576
+ }
4577
+
4527
4578
  if (!Number.isFinite(options.width) || options.width <= 0 || !Number.isFinite(options.height) || options.height <= 0) {
4528
4579
  fatalCliError('Video width/height must be positive numbers.', {
4529
4580
  code: 'INVALID_ARGUMENT',
@@ -4572,6 +4623,7 @@ if (options.video) {
4572
4623
  const buffer = readFileSync(ref.path);
4573
4624
  const dims = getImageDimensionsFromBuffer(buffer);
4574
4625
  if (!dims?.width || !dims?.height) continue;
4626
+
4575
4627
  localRefDims.set(ref.key, dims);
4576
4628
 
4577
4629
  const predicted = predictSharpInsideResizeDims(dims.width, dims.height, options.width, options.height);
@@ -9939,7 +9991,11 @@ async function main() {
9939
9991
  return;
9940
9992
  }
9941
9993
 
9942
- await loadLiveModelDefaults(options.model);
9994
+ // Video catalog data is loaded before model-aware dimension planning.
9995
+ // Other media types retain the connected-stage lookup used previously.
9996
+ if (!options.video) {
9997
+ await loadLiveModelDefaults(options.model);
9998
+ }
9943
9999
  await ensureSufficientVideoBalance(client, log);
9944
10000
 
9945
10001
  if (options.estimateVideoCost) {
@@ -10327,8 +10383,13 @@ async function main() {
10327
10383
  if (options.outputFormat) {
10328
10384
  projectConfig.outputFormat = options.outputFormat;
10329
10385
  }
10386
+ // Skip the wrapper's generic resize only for the proven no-op case: an
10387
+ // implicit LTX canvas already equals the compatible local reference.
10388
+ // Explicit canvases and incompatible references retain wrapper handling.
10330
10389
  if (options.autoResizeVideoAssets !== null) {
10331
10390
  projectConfig.autoResizeVideoAssets = options.autoResizeVideoAssets;
10391
+ } else if (options._ltxReferencePassthrough) {
10392
+ projectConfig.autoResizeVideoAssets = false;
10332
10393
  }
10333
10394
 
10334
10395
  if (options.frames) {
package/version.mjs CHANGED
@@ -1 +1 @@
1
- export const PACKAGE_VERSION = '3.17.1';
1
+ export const PACKAGE_VERSION = '3.17.2';