makefx 1.6.0 → 1.6.1

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 -7
  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.1
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.1+00259d259e65";
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);
@@ -7574,7 +7587,8 @@ async function executeRegenerate(mediaKind, parsed, deps = defaultDeps$11, audio
7574
7587
  headers: {
7575
7588
  Authorization: `Bearer ${config.token.accessToken}`,
7576
7589
  Accept: "application/json",
7577
- "Content-Type": "application/json"
7590
+ "Content-Type": "application/json",
7591
+ ...cliVersionHeaders()
7578
7592
  },
7579
7593
  body: JSON.stringify(body)
7580
7594
  });
@@ -11556,7 +11570,6 @@ compact variant refs, each optionally suffixed :derived, :refined, or :forked
11556
11570
  };
11557
11571
  //#endregion
11558
11572
  //#region src/cli/index.ts
11559
- var CLI_VERSION = "1.6.0+e2eab203b853";
11560
11573
  function printHelp() {
11561
11574
  console.log(TOP_LEVEL_HELP);
11562
11575
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "makefx",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "Command-line interface for AI-assisted game asset production with Make Effects.",
5
5
  "license": "MIT",
6
6
  "type": "module",