@wix/ditto-codegen-public 1.0.429 → 1.0.431

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 +8 -7
  2. package/package.json +2 -2
package/dist/out.js CHANGED
@@ -11556,7 +11556,7 @@ var require_constants5 = __commonJS({
11556
11556
  "dist/opencode-integration/task-tracker/constants.js"(exports2) {
11557
11557
  "use strict";
11558
11558
  Object.defineProperty(exports2, "__esModule", { value: true });
11559
- exports2.WIX_MCP_SERVER_NAME = exports2.CONTAINER_ROOT_PREFIX = void 0;
11559
+ exports2.BUILDER_EXTENSION_TYPES = exports2.WIX_MCP_SERVER_NAME = exports2.CONTAINER_ROOT_PREFIX = void 0;
11560
11560
  exports2.resolveFileOperation = resolveFileOperation;
11561
11561
  exports2.isSpiExtension = isSpiExtension;
11562
11562
  exports2.normalizeFilePath = normalizeFilePath;
@@ -11588,7 +11588,7 @@ var require_constants5 = __commonJS({
11588
11588
  "ecomPaymentSettings",
11589
11589
  "bookingsStaffSortingProvider"
11590
11590
  ];
11591
- var BUILDER_EXTENSION_TYPES = [
11591
+ exports2.BUILDER_EXTENSION_TYPES = [
11592
11592
  "dashboardPage",
11593
11593
  "dashboardModal",
11594
11594
  "dashboardPlugin",
@@ -11615,7 +11615,7 @@ var require_constants5 = __commonJS({
11615
11615
  return EXTENSION_FILE_PATTERN.test(filePath);
11616
11616
  }
11617
11617
  function detectExtension(content) {
11618
- for (const extensionType of BUILDER_EXTENSION_TYPES) {
11618
+ for (const extensionType of exports2.BUILDER_EXTENSION_TYPES) {
11619
11619
  if (content.includes(`extensions.${extensionType}(`) || content.includes(`experimentalExtensions.${extensionType}(`)) {
11620
11620
  return extensionType;
11621
11621
  }
@@ -11714,10 +11714,11 @@ or reports what it couldn't fix. Validation step only \u2014 never generates fea
11714
11714
  var VALIDATOR_PROMPT = `Run 'validate({ runBuild: true })', fix the errors it reports, and re-run until
11715
11715
  it passes. You are fixing EXISTING code \u2014 do NOT add features or rewrite whole
11716
11716
  files. NEVER force a green build by suppressing types: no 'as any', no
11717
- '@ts-ignore'/'@ts-expect-error', and do NOT switch a correct named import to
11717
+ '@ts-ignore', no NEW '@ts-expect-error', and do NOT switch a correct named import to
11718
11718
  'import * as' just to satisfy tsc \u2014 that ships code that compiles but breaks
11719
- at runtime. A type error on a
11720
- Wix SDK method/namespace/parameter means the call is WRONG: look up the correct
11719
+ at runtime. Leave an EXISTING '@ts-expect-error' alone when a skill mandates it
11720
+ (e.g. a context provider's 'moduleSpecifier' import); removing it is not a fix.
11721
+ A type error on a Wix SDK method/namespace/parameter means the call is WRONG: look up the correct
11721
11722
  usage via skills or wix-mcp ('SearchWixSDKDocumentation' \u2192
11722
11723
  'ReadFullDocsMethodSchema') and fix it to the real exported method + its options
11723
11724
  object. Deleting the failing code is a regression, not a fix \u2014 the capability is
@@ -17014,7 +17015,7 @@ var require_collect_extensions_created = __commonJS({
17014
17015
  var promises_1 = require("fs/promises");
17015
17016
  var ditto_codegen_types_12 = require_dist4();
17016
17017
  var constants_1 = require_constants5();
17017
- var DATA_COLLECTION_MARKER = /import\s+(?:type\s+)?\{[^}]*\bDataCollection\b[^}]*\}\s+from\s+['"]@wix\/astro\/builders['"]/;
17018
+ var DATA_COLLECTION_MARKER = /import\s+(?:type\s+)?\{[^}]*\bDataCollection\b[^}]*\}\s+from\s+['"](?:@wix\/astro\/builders|@wix\/custom-extensions)['"]/;
17018
17019
  var getExtensionDirectory = (extensionDefinitionPath) => `${path_1.posix.dirname(extensionDefinitionPath)}/`;
17019
17020
  var isFileInExtensionFolder = (filePath, extensionDefinitionPath) => filePath === extensionDefinitionPath || filePath.startsWith(getExtensionDirectory(extensionDefinitionPath));
17020
17021
  var resolveFilePath = (outputPath, filePath) => (0, path_1.isAbsolute)(filePath) ? filePath : (0, path_1.join)(outputPath, filePath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/ditto-codegen-public",
3
- "version": "1.0.429",
3
+ "version": "1.0.431",
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": "652401a1596c5c4227f3c4b899e2a9c6f165366175d97865fbf9eeb4"
32
+ "falconPackageHash": "85a0210cddb251eaf19067e588dd30dc2a73f6bb94352b5b386068d3"
33
33
  }