@wix/ditto-codegen-public 1.0.470 → 1.0.472

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 +20 -1
  2. package/package.json +2 -2
package/dist/out.js CHANGED
@@ -14249,6 +14249,22 @@ If \`promptVariant\` is any other value, it is the legacy import pipeline's payl
14249
14249
  }
14250
14250
  });
14251
14251
 
14252
+ // ../codegen-common-logic/dist/rules/code-edits-scope.js
14253
+ var require_code_edits_scope = __commonJS({
14254
+ "../codegen-common-logic/dist/rules/code-edits-scope.js"(exports2) {
14255
+ "use strict";
14256
+ Object.defineProperty(exports2, "__esModule", { value: true });
14257
+ exports2.CODE_EDITS_SCOPE_RULES = void 0;
14258
+ exports2.CODE_EDITS_SCOPE_RULES = `# Code Edits Scope Rules
14259
+
14260
+ When the request lists specific extensions to generate (each with a type), alongside a broader description of the feature:
14261
+
14262
+ 1. **The list is the complete scope.** Generate exactly the listed extensions, of the stated types, each covering only what its item describes. Do not add extensions or behavior that no item asks for.
14263
+ 2. **The broader description is background, not a task.** The parts of it that no item covers are built elsewhere in the flow (for example as native elements on the page). Do not implement them, even when the request reads as if your extensions should deliver the whole feature.
14264
+ 3. **Report only what you built.** The final message describes the listed items, not the feature as a whole.`;
14265
+ }
14266
+ });
14267
+
14252
14268
  // ../codegen-common-logic/dist/rules/site-data-layer.js
14253
14269
  var require_site_data_layer = __commonJS({
14254
14270
  "../codegen-common-logic/dist/rules/site-data-layer.js"(exports2) {
@@ -14261,6 +14277,7 @@ For any persistent-data need (CMS collections, tables, schemas, data models):
14261
14277
 
14262
14278
  1. **You MUST invoke the \`wix-site-data-collection\` skill before scaffolding or writing any collection code.**
14263
14279
  2. **Do NOT** create data-collection CLI extension files manually (e.g. \`src/extensions/backend/data-collections/*\`).
14280
+ 3. **If the skill's discovery finds no relevant collection, create it yourself** as the skill describes, before writing code that uses it. NEVER end by asking the user to create the collection.
14264
14281
 
14265
14282
  \`wix-app\` is still correct for dashboard pages, modals, widgets, and UI; only the data layer is overridden here.`;
14266
14283
  }
@@ -14327,6 +14344,7 @@ var require_rules = __commonJS({
14327
14344
  };
14328
14345
  Object.defineProperty(exports2, "__esModule", { value: true });
14329
14346
  __exportStar2(require_brik_import(), exports2);
14347
+ __exportStar2(require_code_edits_scope(), exports2);
14330
14348
  __exportStar2(require_site_data_layer(), exports2);
14331
14349
  __exportStar2(require_stores_catalog_version(), exports2);
14332
14350
  __exportStar2(require_vertical_installation(), exports2);
@@ -14535,7 +14553,8 @@ var require_dist8 = __commonJS({
14535
14553
  environmentIdentity: codegen_common_logic_1.SITE_ENVIRONMENT_IDENTITY,
14536
14554
  codegenRules: [
14537
14555
  ...codegen_common_logic_1.SITE_CODEGEN_RULES,
14538
- { filename: "brik-import-rules.md", content: codegen_common_logic_1.BRIK_IMPORT_RULES }
14556
+ { filename: "brik-import-rules.md", content: codegen_common_logic_1.BRIK_IMPORT_RULES },
14557
+ { filename: "code-edits-scope-rules.md", content: codegen_common_logic_1.CODE_EDITS_SCOPE_RULES }
14539
14558
  ],
14540
14559
  askRules: [],
14541
14560
  gitConflictsRules: [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/ditto-codegen-public",
3
- "version": "1.0.470",
3
+ "version": "1.0.472",
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": "51949572d62d11b72e4bc67ed5130033eb60717dc57e17abbdad93a0"
32
+ "falconPackageHash": "84b0cfe2378ce074540cb35f691a391df6b55997ff33fdcda28a5a8d"
33
33
  }