@wix/ditto-codegen-public 1.0.253 → 1.0.254

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 +22 -7
  2. package/package.json +2 -2
package/dist/out.js CHANGED
@@ -91451,9 +91451,21 @@ var require_sdk_picker_agent_instructions = __commonJS({
91451
91451
  id: "current-0",
91452
91452
  relatedApis: [
91453
91453
  {
91454
- api: "stores.productsV3.queryProducts",
91455
- reason: "Query products to display in dashboard",
91454
+ api: "stores.catalogVersioning.getCatalogVersion",
91455
+ reason: "Detect catalog version (V1 or V3) to use correct API",
91456
91456
  score: 95,
91457
+ docsUrl: "https://dev.wix.com/docs/sdk/backend-modules/stores/catalog-versioning/get-catalog-version"
91458
+ },
91459
+ {
91460
+ api: "stores.products.queryProducts",
91461
+ reason: "Query products for V1 catalog sites",
91462
+ score: 90,
91463
+ docsUrl: "https://dev.wix.com/docs/sdk/backend-modules/stores/products/query-products"
91464
+ },
91465
+ {
91466
+ api: "stores.productsV3.queryProducts",
91467
+ reason: "Query products for V3 catalog sites",
91468
+ score: 90,
91457
91469
  docsUrl: "https://dev.wix.com/docs/sdk/backend-modules/stores/catalog-v3/products-v3/query-products"
91458
91470
  }
91459
91471
  ]
@@ -91566,11 +91578,14 @@ Given an array of extensions (each with a unique ID):
91566
91578
  - **DO NOT suggest unrelated SPIs**
91567
91579
  - **One SPI per service plugin is usually enough** - the SPI handler is the core functionality
91568
91580
 
91569
- **Use V3 APIs:**
91570
- - **ALWAYS use V3 versions for products** - our platform uses V3 exclusively
91571
- - **For products:** \`stores.productsV3.queryProducts\`, \`stores.productsV3.getProduct\`, \`stores.productsV3.createProduct\`, etc.
91572
- - **NEVER use older versions** like \`stores.products\` or \`stores.productsV2\`
91573
- - **Search with "productsV3" or "Catalog V3"**`;
91581
+ **Wix Stores Catalog Versioning (CRITICAL):**
91582
+ - **Wix Stores has TWO incompatible catalog versions** - sites may use V1 or V3
91583
+ - **ALWAYS include BOTH V1 and V3 APIs** when working with Stores products/inventory
91584
+ - **ALWAYS include \`stores.catalogVersioning.getCatalogVersion\`** for version detection
91585
+ - **V1 APIs:** \`stores.products\`, \`stores.inventory\` (legacy sites)
91586
+ - **V3 APIs:** \`stores.productsV3\`, \`stores.inventoryItemsV3\` (current sites)
91587
+ - **Search for both versions:** "products queryProducts" AND "productsV3 queryProducts"
91588
+ - **The generated code must check catalog version at runtime and use the appropriate API**`;
91574
91589
  exports2.sdkPickerAgentConstraints = `- **BE SPECIFIC**: Use exact API method names (e.g., 'ecom.orders.getOrder', not just 'orders')
91575
91590
  - **SCORE ACCURATELY**: Give honest scores - don't inflate, be realistic about importance
91576
91591
  - **EXPLAIN CLEARLY**: Each API must have a clear reason explaining its specific purpose
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/ditto-codegen-public",
3
- "version": "1.0.253",
3
+ "version": "1.0.254",
4
4
  "description": "AI-powered Wix CLI app generator - standalone executable",
5
5
  "scripts": {
6
6
  "build": "node build.mjs",
@@ -28,5 +28,5 @@
28
28
  "@wix/ditto-codegen": "1.0.0",
29
29
  "esbuild": "^0.27.2"
30
30
  },
31
- "falconPackageHash": "2872df7842a12f0c40e12a08ddde0d565e4ecd885483fb6c4f81d01a"
31
+ "falconPackageHash": "737353e52bdb68a70c18697e9ee1b7c517799b09848e90ecd97e6382"
32
32
  }