@wix/ditto-codegen-public 1.0.446 → 1.0.448

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 +27 -2
  2. package/package.json +2 -2
package/dist/out.js CHANGED
@@ -10583,6 +10583,7 @@ var require_experiments = __commonJS({
10583
10583
  "use strict";
10584
10584
  Object.defineProperty(exports2, "__esModule", { value: true });
10585
10585
  exports2.FILTERED_JOB_POLLING = void 0;
10586
+ exports2.getExperimentVariant = getExperimentVariant;
10586
10587
  exports2.isExperimentEnabled = isExperimentEnabled;
10587
10588
  var logger_12 = require_logger();
10588
10589
  exports2.FILTERED_JOB_POLLING = "codegenFilteredJobPolling";
@@ -10606,8 +10607,12 @@ var require_experiments = __commonJS({
10606
10607
  }
10607
10608
  return parsedExperiments;
10608
10609
  }
10610
+ function getExperimentVariant(specName) {
10611
+ return getExperiments()[specName] ?? "A";
10612
+ }
10609
10613
  function isExperimentEnabled(specName) {
10610
- return getExperiments()[specName] === "true";
10614
+ const variant = getExperimentVariant(specName);
10615
+ return variant === "true" || variant !== "A" && variant !== "false";
10611
10616
  }
10612
10617
  }
10613
10618
  });
@@ -14829,6 +14834,22 @@ var require_system_prompts = __commonJS({
14829
14834
  }
14830
14835
  });
14831
14836
 
14837
+ // ../codegen-common-logic/dist/rules/brik-import.js
14838
+ var require_brik_import = __commonJS({
14839
+ "../codegen-common-logic/dist/rules/brik-import.js"(exports2) {
14840
+ "use strict";
14841
+ Object.defineProperty(exports2, "__esModule", { value: true });
14842
+ exports2.BRIK_IMPORT_RULES = void 0;
14843
+ exports2.BRIK_IMPORT_RULES = `# Brik Tool Import Rules
14844
+
14845
+ If \`.wix/agentInput/brikMeta.json\` exists AND its \`brikMeta\` object has \`promptVariant\` set to \`skill-v1\`, this job is a Brik tool import: you MUST invoke the \`wix-brik\` skill FIRST and follow it exactly. It owns the import itself - scaffolding the Editor React Component, running the deterministic import script over \`.wix/agentInput/brikImport.json\`, splicing the tool's creative code, then installing dependencies and building plus generating the manifest. Do NOT derive the component's public surface yourself and do NOT re-tune the manifest.
14846
+
14847
+ The skill does NOT replace step 5 of the workflow: its \`npx wix build\` transpiles without typechecking. Once its DONE WHEN checks pass, still delegate to the \`codegen-validator\` subagent as usual, and fix whatever it reports in your spliced code only - never in the script-written surface.
14848
+
14849
+ If \`promptVariant\` is any other value, it is the legacy import pipeline's payload: ignore this rule and follow the job's own instructions.`;
14850
+ }
14851
+ });
14852
+
14832
14853
  // ../codegen-common-logic/dist/rules/site-data-layer.js
14833
14854
  var require_site_data_layer = __commonJS({
14834
14855
  "../codegen-common-logic/dist/rules/site-data-layer.js"(exports2) {
@@ -14906,6 +14927,7 @@ var require_rules = __commonJS({
14906
14927
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p)) __createBinding2(exports3, m, p);
14907
14928
  };
14908
14929
  Object.defineProperty(exports2, "__esModule", { value: true });
14930
+ __exportStar2(require_brik_import(), exports2);
14909
14931
  __exportStar2(require_site_data_layer(), exports2);
14910
14932
  __exportStar2(require_stores_catalog_version(), exports2);
14911
14933
  __exportStar2(require_vertical_installation(), exports2);
@@ -15112,7 +15134,10 @@ var require_dist8 = __commonJS({
15112
15134
  var codegen_common_logic_1 = require_dist7();
15113
15135
  exports2.studio2CodegenConfig = {
15114
15136
  environmentIdentity: codegen_common_logic_1.SITE_ENVIRONMENT_IDENTITY,
15115
- codegenRules: codegen_common_logic_1.SITE_CODEGEN_RULES,
15137
+ codegenRules: [
15138
+ ...codegen_common_logic_1.SITE_CODEGEN_RULES,
15139
+ { filename: "brik-import-rules.md", content: codegen_common_logic_1.BRIK_IMPORT_RULES }
15140
+ ],
15116
15141
  askRules: [],
15117
15142
  gitConflictsRules: [],
15118
15143
  decisionCheckers: [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/ditto-codegen-public",
3
- "version": "1.0.446",
3
+ "version": "1.0.448",
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": "396e594dc6f3868e3d0e2565a2c21c2cc605e56126c0dc9854748a2e"
32
+ "falconPackageHash": "27a8a85411a67b2d98ba3e552e82b0f0f61ba567f528937c10504117"
33
33
  }