@wix/ditto-codegen-public 1.0.426 → 1.0.428

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 +38 -5
  2. package/package.json +2 -2
package/dist/out.js CHANGED
@@ -11675,13 +11675,15 @@ or reports what it couldn't fix. Validation step only \u2014 never generates fea
11675
11675
  var VALIDATOR_PROMPT = `Run 'validate({ runBuild: true })', fix the errors it reports, and re-run until
11676
11676
  it passes. You are fixing EXISTING code \u2014 do NOT add features or rewrite whole
11677
11677
  files. NEVER force a green build by suppressing types: no 'as any', no
11678
- '@ts-ignore'/'@ts-expect-error', and do NOT switch a correct import (e.g.
11679
- 'import { bookings } from "@wix/bookings"') to 'import * as' just to satisfy
11680
- tsc \u2014 that ships code that compiles but breaks at runtime. A type error on a
11678
+ '@ts-ignore'/'@ts-expect-error', and do NOT switch a correct named import to
11679
+ 'import * as' just to satisfy tsc \u2014 that ships code that compiles but breaks
11680
+ at runtime. A type error on a
11681
11681
  Wix SDK method/namespace/parameter means the call is WRONG: look up the correct
11682
11682
  usage via skills or wix-mcp ('SearchWixSDKDocumentation' \u2192
11683
11683
  'ReadFullDocsMethodSchema') and fix it to the real exported method + its options
11684
- object. Work in a bounded number of fix cycles \u2014 if the build isn't converging
11684
+ object. Deleting the failing code is a regression, not a fix \u2014 the capability is
11685
+ usually on a sibling method or another Wix SDK; search both before reporting it
11686
+ unfixed. Work in a bounded number of fix cycles \u2014 if the build isn't converging
11685
11687
  after a few attempts, STOP and return the remaining errors verbatim rather than
11686
11688
  looping; never silence them.
11687
11689
 
@@ -14454,6 +14456,28 @@ For any persistent-data need (CMS collections, tables, schemas, data models):
14454
14456
  }
14455
14457
  });
14456
14458
 
14459
+ // ../codegen-common-logic/dist/stores-catalog-version-rules.js
14460
+ var require_stores_catalog_version_rules = __commonJS({
14461
+ "../codegen-common-logic/dist/stores-catalog-version-rules.js"(exports2) {
14462
+ "use strict";
14463
+ Object.defineProperty(exports2, "__esModule", { value: true });
14464
+ exports2.STORES_CATALOG_VERSION_RULES = void 0;
14465
+ exports2.STORES_CATALOG_VERSION_RULES = `# Wix Stores Catalog Version Rules
14466
+
14467
+ The agent operates on a live Wix site (METASITE_ID is in your prompt context), so the site's Stores catalog version is knowable at build time.
14468
+
14469
+ ## Mandatory before any Stores work
14470
+
14471
+ For any use of a Wix Stores API \u2014 products, variants, inventory, collections/categories, Stores webhooks, or any other part of the Stores catalog:
14472
+
14473
+ 1. **You MUST invoke the \`wix-stores-catalog-version\` skill first** \u2014 before choosing imports, permission scopes, or webhook subscriptions.
14474
+ 2. **Generate one version's code path only.** No \`catalogVersioning.getCatalogVersion()\` call in generated code, no branching on the version, and no adapter that normalizes V1 and V3 shapes into one type.
14475
+ 3. **Do NOT tell the user their app must support both catalog versions**, and do not add Dev Center action items about confirming V1/V3 compatibility. That requirement applies to public App Market apps, not to a companion app targeting one known site.
14476
+
14477
+ \`wix-app\` is still correct for dashboard pages, modals, widgets, and UI \u2014 and its \`STORES_VERSIONING.md\` remains the reference for the module map, permissions, field mappings, and gotchas. Only the dual-catalog requirement is overridden here.`;
14478
+ }
14479
+ });
14480
+
14457
14481
  // ../codegen-common-logic/dist/studio-2-site-ui-rules.js
14458
14482
  var require_studio_2_site_ui_rules = __commonJS({
14459
14483
  "../codegen-common-logic/dist/studio-2-site-ui-rules.js"(exports2) {
@@ -14525,6 +14549,7 @@ var require_dist7 = __commonJS({
14525
14549
  __exportStar2(require_availableSdks(), exports2);
14526
14550
  __exportStar2(require_system_prompts(), exports2);
14527
14551
  __exportStar2(require_site_data_layer_rules(), exports2);
14552
+ __exportStar2(require_stores_catalog_version_rules(), exports2);
14528
14553
  __exportStar2(require_studio_2_site_ui_rules(), exports2);
14529
14554
  }
14530
14555
  });
@@ -14541,6 +14566,10 @@ var require_dist8 = __commonJS({
14541
14566
  environmentIdentity: "You generate code for the user's own live Wix site \u2014 to the user it's just their site, not a separate app they're aware of. Your changes are saved and applied to the site automatically; there is no separate release step.",
14542
14567
  codegenRules: [
14543
14568
  { filename: "site-data-layer-rules.md", content: codegen_common_logic_1.SITE_DATA_LAYER_RULES },
14569
+ {
14570
+ filename: "stores-catalog-version-rules.md",
14571
+ content: codegen_common_logic_1.STORES_CATALOG_VERSION_RULES
14572
+ },
14544
14573
  { filename: "studio-2-site-ui-rules.md", content: codegen_common_logic_1.STUDIO_2_SITE_UI_RULES }
14545
14574
  ],
14546
14575
  askRules: [],
@@ -14894,7 +14923,11 @@ var require_dist10 = __commonJS({
14894
14923
  exports2.harmonyCodegenConfig = {
14895
14924
  environmentIdentity: "You generate code for the user's own live Wix site \u2014 to the user it's just their site, not a separate app they're aware of. Your changes are saved and applied to the site automatically; there is no separate release step.",
14896
14925
  codegenRules: [
14897
- { filename: "site-data-layer-rules.md", content: codegen_common_logic_1.SITE_DATA_LAYER_RULES }
14926
+ { filename: "site-data-layer-rules.md", content: codegen_common_logic_1.SITE_DATA_LAYER_RULES },
14927
+ {
14928
+ filename: "stores-catalog-version-rules.md",
14929
+ content: codegen_common_logic_1.STORES_CATALOG_VERSION_RULES
14930
+ }
14898
14931
  ],
14899
14932
  askRules: [],
14900
14933
  gitConflictsRules: [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/ditto-codegen-public",
3
- "version": "1.0.426",
3
+ "version": "1.0.428",
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": "1b3d84241cfe457e433522d63186279c3add83d56ad0810a90bc7a66"
32
+ "falconPackageHash": "5bc2ab1123ed3fc7cfbf3764599b4b8516f65cf0d1358317e679fd52"
33
33
  }