@wix/ditto-codegen-public 1.0.392 → 1.0.394

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 +29 -2
  2. package/package.json +2 -2
package/dist/out.js CHANGED
@@ -13942,6 +13942,21 @@ For any persistent-data need (CMS collections, tables, schemas, data models):
13942
13942
  }
13943
13943
  });
13944
13944
 
13945
+ // ../codegen-common-logic/dist/studio-2-site-ui-rules.js
13946
+ var require_studio_2_site_ui_rules = __commonJS({
13947
+ "../codegen-common-logic/dist/studio-2-site-ui-rules.js"(exports2) {
13948
+ "use strict";
13949
+ Object.defineProperty(exports2, "__esModule", { value: true });
13950
+ exports2.STUDIO_2_SITE_UI_RULES = void 0;
13951
+ exports2.STUDIO_2_SITE_UI_RULES = `# Studio 2 Site UI Rules
13952
+
13953
+ In the **Studio 2** environment, all site UI MUST be built as **Editor React Components** (\`extensionType: EDITOR_REACT_COMPONENT\`).
13954
+
13955
+ - **Never create a Custom Element / site widget** (\`extensionType: CUSTOM_ELEMENT\`, \`CUSTOM_ELEMENT_WIDGET\`).
13956
+ - The word "widget" does **not** mean Custom Element here \u2014 implement it as an Editor React Component. When invoking the \`wix-app\` skill, explicitly pin the extension type so it isn't inferred from "widget".`;
13957
+ }
13958
+ });
13959
+
13945
13960
  // ../codegen-common-logic/dist/index.js
13946
13961
  var require_dist7 = __commonJS({
13947
13962
  "../codegen-common-logic/dist/index.js"(exports2) {
@@ -13983,6 +13998,7 @@ var require_dist7 = __commonJS({
13983
13998
  __exportStar2(require_availableSdks(), exports2);
13984
13999
  __exportStar2(require_system_prompts(), exports2);
13985
14000
  __exportStar2(require_site_data_layer_rules(), exports2);
14001
+ __exportStar2(require_studio_2_site_ui_rules(), exports2);
13986
14002
  }
13987
14003
  });
13988
14004
 
@@ -13996,7 +14012,8 @@ var require_dist8 = __commonJS({
13996
14012
  var codegen_common_logic_1 = require_dist7();
13997
14013
  exports2.studio2CodegenConfig = {
13998
14014
  codegenRules: [
13999
- { filename: "site-data-layer-rules.md", content: codegen_common_logic_1.SITE_DATA_LAYER_RULES }
14015
+ { filename: "site-data-layer-rules.md", content: codegen_common_logic_1.SITE_DATA_LAYER_RULES },
14016
+ { filename: "studio-2-site-ui-rules.md", content: codegen_common_logic_1.STUDIO_2_SITE_UI_RULES }
14000
14017
  ],
14001
14018
  askRules: [],
14002
14019
  gitConflictsRules: [],
@@ -22249,7 +22266,17 @@ var alwaysOnLoop = async () => {
22249
22266
  continue;
22250
22267
  }
22251
22268
  const job = jobs[0];
22252
- logger_1.logger.info("Job details", { job });
22269
+ const redactAgentData = (payload) => payload?.agentData ? { ...payload, agentData: Object.keys(payload.agentData) } : payload;
22270
+ logger_1.logger.info("Job details", {
22271
+ job: {
22272
+ ...job,
22273
+ tasks: job.tasks?.map((task) => ({
22274
+ ...task,
22275
+ input: redactAgentData(task.input),
22276
+ payload: redactAgentData(task.payload)
22277
+ }))
22278
+ }
22279
+ });
22253
22280
  if (!job.id) {
22254
22281
  throw new ditto_codegen_types_1.MissingJobIdError();
22255
22282
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/ditto-codegen-public",
3
- "version": "1.0.392",
3
+ "version": "1.0.394",
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": "21cc8ff8d30c29e8c863a93537348123a515d8b91e3688664ccb0e14"
32
+ "falconPackageHash": "26a77c59b7f13a6f2daa3ae9b58ac2c048cca57504e16dc5e6e8da3e"
33
33
  }