@wix/ditto-codegen-public 1.0.427 → 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.
- package/dist/out.js +32 -1
- package/package.json +2 -2
package/dist/out.js
CHANGED
|
@@ -14456,6 +14456,28 @@ For any persistent-data need (CMS collections, tables, schemas, data models):
|
|
|
14456
14456
|
}
|
|
14457
14457
|
});
|
|
14458
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
|
+
|
|
14459
14481
|
// ../codegen-common-logic/dist/studio-2-site-ui-rules.js
|
|
14460
14482
|
var require_studio_2_site_ui_rules = __commonJS({
|
|
14461
14483
|
"../codegen-common-logic/dist/studio-2-site-ui-rules.js"(exports2) {
|
|
@@ -14527,6 +14549,7 @@ var require_dist7 = __commonJS({
|
|
|
14527
14549
|
__exportStar2(require_availableSdks(), exports2);
|
|
14528
14550
|
__exportStar2(require_system_prompts(), exports2);
|
|
14529
14551
|
__exportStar2(require_site_data_layer_rules(), exports2);
|
|
14552
|
+
__exportStar2(require_stores_catalog_version_rules(), exports2);
|
|
14530
14553
|
__exportStar2(require_studio_2_site_ui_rules(), exports2);
|
|
14531
14554
|
}
|
|
14532
14555
|
});
|
|
@@ -14543,6 +14566,10 @@ var require_dist8 = __commonJS({
|
|
|
14543
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.",
|
|
14544
14567
|
codegenRules: [
|
|
14545
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
|
+
},
|
|
14546
14573
|
{ filename: "studio-2-site-ui-rules.md", content: codegen_common_logic_1.STUDIO_2_SITE_UI_RULES }
|
|
14547
14574
|
],
|
|
14548
14575
|
askRules: [],
|
|
@@ -14896,7 +14923,11 @@ var require_dist10 = __commonJS({
|
|
|
14896
14923
|
exports2.harmonyCodegenConfig = {
|
|
14897
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.",
|
|
14898
14925
|
codegenRules: [
|
|
14899
|
-
{ 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
|
+
}
|
|
14900
14931
|
],
|
|
14901
14932
|
askRules: [],
|
|
14902
14933
|
gitConflictsRules: [],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/ditto-codegen-public",
|
|
3
|
-
"version": "1.0.
|
|
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": "
|
|
32
|
+
"falconPackageHash": "5bc2ab1123ed3fc7cfbf3764599b4b8516f65cf0d1358317e679fd52"
|
|
33
33
|
}
|