makefx 1.6.0 → 1.6.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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/makefx.mjs +20 -8
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -61,4 +61,4 @@ IDs, or runs. Retired commands and aliases are not redirected.
61
61
 
62
62
  Run `makefx --help` or `makefx <noun> --help` for current options.
63
63
 
64
- Version: 1.6.0
64
+ Version: 1.6.2
package/makefx.mjs CHANGED
@@ -656,17 +656,17 @@ function getGenerationBlockerPresentation(code, serverMessage, provider) {
656
656
  if (!isGenerationBlockerCode(code)) return null;
657
657
  if (code === "SUBSCRIPTION_REQUIRED") return {
658
658
  code,
659
- message: "A BYOK Platform subscription is required before generation can start.",
659
+ message: "A Make Effects Platform subscription is required before generation can start.",
660
660
  retryable: false,
661
661
  actionLabel: "View billing",
662
662
  actionPath: "/profile#billing",
663
- remediation: "Start or restore the BYOK Platform subscription at https://makefx.app/profile#billing, then try again."
663
+ remediation: "Start or restore the Make Effects Platform subscription at https://makefx.app/profile#billing, then try again."
664
664
  };
665
665
  if (code === "MANAGED_AI_UNAVAILABLE") return {
666
666
  code,
667
- message: "Managed AI is coming soon and cannot be selected for customer generation.",
667
+ message: "Managed generation is coming soon and cannot be selected yet.",
668
668
  retryable: false,
669
- remediation: "Choose a BYOK model after connecting its provider key. Managed AI is not available yet."
669
+ remediation: "Connect your provider account and choose a supported model. Managed generation is not available yet."
670
670
  };
671
671
  const resolvedProvider = provider ?? inferGenerationBlockerProvider(serverMessage);
672
672
  const providerLabel = resolvedProvider ? PROVIDER_LABELS[resolvedProvider] : "provider";
@@ -4437,6 +4437,16 @@ var import_websocket = /* @__PURE__ */ __toESM(require_websocket(), 1);
4437
4437
  require_websocket_server();
4438
4438
  var wrapper_default = import_websocket.default;
4439
4439
  //#endregion
4440
+ //#region src/cli/version.ts
4441
+ var CLI_VERSION = "1.6.2+1c90176554ef";
4442
+ var CLI_VERSION_HEADER = "X-MakeFX-CLI-Version";
4443
+ function cliVersionHeaders() {
4444
+ return {
4445
+ [CLI_VERSION_HEADER]: CLI_VERSION,
4446
+ "User-Agent": `makefx/${CLI_VERSION}`
4447
+ };
4448
+ }
4449
+ //#endregion
4440
4450
  //#region src/cli/lib/websocket-client.ts
4441
4451
  /**
4442
4452
  * WebSocket Client for CLI
@@ -4523,7 +4533,10 @@ var WebSocketClient = class WebSocketClient {
4523
4533
  return new Promise((resolve, reject) => {
4524
4534
  const protocol = this.baseUrl.startsWith("https") ? "wss" : "ws";
4525
4535
  const url = `${protocol}://${this.baseUrl.replace(/^https?:\/\//, "")}/api/spaces/${this.spaceId}/ws`;
4526
- const wsOptions = { headers: { "Authorization": `Bearer ${this.accessToken}` } };
4536
+ const wsOptions = { headers: {
4537
+ "Authorization": `Bearer ${this.accessToken}`,
4538
+ ...cliVersionHeaders()
4539
+ } };
4527
4540
  if (this.env === "local" && protocol === "wss") wsOptions.agent = new https.Agent({ rejectUnauthorized: false });
4528
4541
  else if (this.env === "local" && protocol === "ws") wsOptions.agent = new http.Agent();
4529
4542
  this.ws = new wrapper_default(url, wsOptions);
@@ -7054,7 +7067,6 @@ async function preflightLocalSeedanceReferences(options, deps, state) {
7054
7067
  if (videoBytes >= 50 * 1024 * 1024) throw new Error("Seedance reference videos must total under 50 MB");
7055
7068
  const hasCompleteVideoDurations = inspections.video.every((item) => item.durationMs !== void 0);
7056
7069
  if (inspections.video.length > 0 && hasCompleteVideoDurations && (videoDurationMs < 2e3 || videoDurationMs > 15e3)) throw new Error("Seedance reference videos must total 2 to 15 seconds");
7057
- if (inspections.audio.reduce((total, item) => total + (item.durationMs ?? 0), 0) > 15e3) throw new Error("Seedance reference audio must total at most 15 seconds");
7058
7070
  }
7059
7071
  async function resolveReferenceVariantIds(refs, ctx, deps, variants = [], mediaKind = CLI_GENERATION_MEDIA_KIND, assets = [], expectedReferenceMediaKind) {
7060
7072
  const variantIds = [];
@@ -7574,7 +7586,8 @@ async function executeRegenerate(mediaKind, parsed, deps = defaultDeps$11, audio
7574
7586
  headers: {
7575
7587
  Authorization: `Bearer ${config.token.accessToken}`,
7576
7588
  Accept: "application/json",
7577
- "Content-Type": "application/json"
7589
+ "Content-Type": "application/json",
7590
+ ...cliVersionHeaders()
7578
7591
  },
7579
7592
  body: JSON.stringify(body)
7580
7593
  });
@@ -11556,7 +11569,6 @@ compact variant refs, each optionally suffixed :derived, :refined, or :forked
11556
11569
  };
11557
11570
  //#endregion
11558
11571
  //#region src/cli/index.ts
11559
- var CLI_VERSION = "1.6.0+e2eab203b853";
11560
11572
  function printHelp() {
11561
11573
  console.log(TOP_LEVEL_HELP);
11562
11574
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "makefx",
3
- "version": "1.6.0",
3
+ "version": "1.6.2",
4
4
  "description": "Command-line interface for AI-assisted game asset production with Make Effects.",
5
5
  "license": "MIT",
6
6
  "type": "module",