@wix/ditto-codegen-public 1.0.396 → 1.0.397

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 (2) hide show
  1. package/dist/out.js +13 -4
  2. package/package.json +2 -2
package/dist/out.js CHANGED
@@ -10737,8 +10737,9 @@ var require_environment = __commonJS({
10737
10737
  "../codegen-types/dist/types/environment.js"(exports2) {
10738
10738
  "use strict";
10739
10739
  Object.defineProperty(exports2, "__esModule", { value: true });
10740
- exports2.CODEGEN_ENVIRONMENT_HEADER = void 0;
10740
+ exports2.CODEGEN_CHARGING_MODE_HEADER = exports2.CODEGEN_ENVIRONMENT_HEADER = void 0;
10741
10741
  exports2.CODEGEN_ENVIRONMENT_HEADER = "x-codegen-environment";
10742
+ exports2.CODEGEN_CHARGING_MODE_HEADER = "x-codegen-charging-mode";
10742
10743
  }
10743
10744
  });
10744
10745
 
@@ -11744,7 +11745,8 @@ var require_dist5 = __commonJS({
11744
11745
  askRules: [],
11745
11746
  gitConflictsRules: [],
11746
11747
  decisionCheckers: [],
11747
- plugins: []
11748
+ plugins: [],
11749
+ chargingMode: "app"
11748
11750
  };
11749
11751
  }
11750
11752
  });
@@ -14077,7 +14079,8 @@ var require_dist8 = __commonJS({
14077
14079
  askRules: [],
14078
14080
  gitConflictsRules: [],
14079
14081
  decisionCheckers: [],
14080
- plugins: [codegen_checkpoint_plugin_1.checkpointPluginFactory]
14082
+ plugins: [codegen_checkpoint_plugin_1.checkpointPluginFactory],
14083
+ chargingMode: "app"
14081
14084
  };
14082
14085
  }
14083
14086
  });
@@ -14428,7 +14431,8 @@ var require_dist10 = __commonJS({
14428
14431
  askRules: [],
14429
14432
  gitConflictsRules: [],
14430
14433
  decisionCheckers: [],
14431
- plugins: [codegen_feature_vibe_plugin_1.featureVibePluginFactory]
14434
+ plugins: [codegen_feature_vibe_plugin_1.featureVibePluginFactory],
14435
+ chargingMode: "app"
14432
14436
  };
14433
14437
  }
14434
14438
  });
@@ -14774,11 +14778,16 @@ var require_config = __commonJS({
14774
14778
  ];
14775
14779
  function getProviderConfig() {
14776
14780
  const environment = process.env.CODEGEN_ENVIRONMENT;
14781
+ const chargingMode = (0, environments_12.getCodegenEnvironmentConfig)().chargingMode ?? "app";
14777
14782
  const headers = {
14778
14783
  // Tell the proxy which environment this request belongs to so it can
14779
14784
  // select the matching upstream API key. Forwarded verbatim — the proxy
14780
14785
  // owns validation and the default.
14781
14786
  ...environment ? { [ditto_codegen_types_12.CODEGEN_ENVIRONMENT_HEADER]: environment } : {},
14787
+ // How the request is billed; the proxy resolves auth accordingly.
14788
+ [ditto_codegen_types_12.CODEGEN_CHARGING_MODE_HEADER]: chargingMode,
14789
+ // The user's Wix token — needed to resolve the account (credits mode) and
14790
+ // authorize the project.
14782
14791
  ...currentAccessToken ? { Authorization: `Bearer ${currentAccessToken}` } : {}
14783
14792
  };
14784
14793
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/ditto-codegen-public",
3
- "version": "1.0.396",
3
+ "version": "1.0.397",
4
4
  "description": "AI-powered Wix CLI app generator - standalone executable",
5
5
  "scripts": {
6
6
  "build": "node build.mjs",
@@ -29,5 +29,5 @@
29
29
  "esbuild": "^0.27.2",
30
30
  "vitest": "^4.0.16"
31
31
  },
32
- "falconPackageHash": "2f0586c4d53630355c7e9241bff1ad2835812ac4cdcbd3367c622614"
32
+ "falconPackageHash": "3684f6224ad8e1cf1c5eb60a17727f8448f1f7cc0d79dcefc42157f6"
33
33
  }