@genex-ai/cli-demo 1.35.2-dev.749 → 1.35.3-dev.751

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.
@@ -7,7 +7,7 @@ import {
7
7
  isRenderMode,
8
8
  sceneSummary,
9
9
  sheetOf
10
- } from "./chunk-FYHYZYBC.js";
10
+ } from "./chunk-2SCXGPZY.js";
11
11
  import {
12
12
  getCliVersion
13
13
  } from "./chunk-K4EHXOZK.js";
@@ -357,7 +357,7 @@ function shortDate(iso) {
357
357
  return d.toLocaleDateString("en-US", { month: "short", day: "numeric" });
358
358
  }
359
359
  function formatInsufficientCredits(body) {
360
- const message = body.message ?? `this generation costs ${body.price ?? "?"} credits; your balance is ${body.balance ?? 0}.`;
360
+ const message = body.message ?? (body.price === void 0 && typeof body.requiredCredits === "number" ? `this call reserves up to ${body.requiredCredits} credits; ${body.spendableCredits ?? 0} are spendable.` : `this generation costs ${body.price ?? "?"} credits; your balance is ${body.balance ?? 0}.`);
361
361
  const lines = [`${c.red("\u2717")} Out of credits \u2014 ${lowerFirst(message)}`];
362
362
  if (body.refillAt && body.refillTo) {
363
363
  lines.push(` Credits refill to ${body.refillTo} on ${shortDate(body.refillAt)}.`);