@wix/ditto-codegen-public 1.0.384 → 1.0.386
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 +51 -31
- package/package.json +2 -2
package/dist/out.js
CHANGED
|
@@ -10840,6 +10840,7 @@ var require_CodeGenService = __commonJS({
|
|
|
10840
10840
|
path: ext.path,
|
|
10841
10841
|
extensionType: ext.extensionType,
|
|
10842
10842
|
title: ext.title,
|
|
10843
|
+
isSpi: ext.isSpi,
|
|
10843
10844
|
files: ext.files.map((f) => ({
|
|
10844
10845
|
path: f.path,
|
|
10845
10846
|
operation: FILE_OPERATION[f.operation] ?? types_1.FileOperation.UNKNOWN_FILE_OPERATION
|
|
@@ -11353,8 +11354,9 @@ var require_constants5 = __commonJS({
|
|
|
11353
11354
|
"dist/opencode-integration/task-tracker/constants.js"(exports2) {
|
|
11354
11355
|
"use strict";
|
|
11355
11356
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
11356
|
-
exports2.
|
|
11357
|
+
exports2.WIX_MCP_SERVER_NAME = exports2.CONTAINER_ROOT_PREFIX = void 0;
|
|
11357
11358
|
exports2.resolveFileOperation = resolveFileOperation;
|
|
11359
|
+
exports2.isSpiExtension = isSpiExtension;
|
|
11358
11360
|
exports2.normalizeFilePath = normalizeFilePath;
|
|
11359
11361
|
exports2.isExtensionsFile = isExtensionsFile;
|
|
11360
11362
|
exports2.detectExtension = detectExtension;
|
|
@@ -11375,28 +11377,35 @@ var require_constants5 = __commonJS({
|
|
|
11375
11377
|
}
|
|
11376
11378
|
return null;
|
|
11377
11379
|
}
|
|
11378
|
-
|
|
11379
|
-
|
|
11380
|
-
|
|
11381
|
-
|
|
11382
|
-
|
|
11383
|
-
|
|
11384
|
-
|
|
11385
|
-
|
|
11386
|
-
|
|
11387
|
-
|
|
11388
|
-
|
|
11389
|
-
|
|
11390
|
-
|
|
11391
|
-
|
|
11392
|
-
|
|
11393
|
-
|
|
11394
|
-
|
|
11395
|
-
|
|
11396
|
-
|
|
11397
|
-
|
|
11398
|
-
|
|
11399
|
-
|
|
11380
|
+
var SPI_EXTENSION_TYPES = [
|
|
11381
|
+
"ecomShippingRates",
|
|
11382
|
+
"ecomAdditionalFees",
|
|
11383
|
+
"ecomValidations",
|
|
11384
|
+
"ecomDiscountTriggers",
|
|
11385
|
+
"ecomGiftCards",
|
|
11386
|
+
"ecomPaymentSettings",
|
|
11387
|
+
"bookingsStaffSortingProvider"
|
|
11388
|
+
];
|
|
11389
|
+
var BUILDER_EXTENSION_TYPES = [
|
|
11390
|
+
"dashboardPage",
|
|
11391
|
+
"dashboardModal",
|
|
11392
|
+
"dashboardPlugin",
|
|
11393
|
+
"dashboardMenuPlugin",
|
|
11394
|
+
"embeddedScript",
|
|
11395
|
+
"event",
|
|
11396
|
+
"customElement",
|
|
11397
|
+
"siteComponent",
|
|
11398
|
+
"editorReactComponent",
|
|
11399
|
+
"sitePlugin",
|
|
11400
|
+
...SPI_EXTENSION_TYPES,
|
|
11401
|
+
"contextProvider",
|
|
11402
|
+
"functionLibrary",
|
|
11403
|
+
"dataCollections"
|
|
11404
|
+
];
|
|
11405
|
+
var SPI_EXTENSION_TYPE_SET = new Set(SPI_EXTENSION_TYPES);
|
|
11406
|
+
function isSpiExtension(extensionType) {
|
|
11407
|
+
return SPI_EXTENSION_TYPE_SET.has(extensionType);
|
|
11408
|
+
}
|
|
11400
11409
|
function normalizeFilePath(filePath) {
|
|
11401
11410
|
return filePath.replace(exports2.CONTAINER_ROOT_PREFIX, "");
|
|
11402
11411
|
}
|
|
@@ -11404,9 +11413,9 @@ var require_constants5 = __commonJS({
|
|
|
11404
11413
|
return EXTENSION_FILE_PATTERN.test(filePath);
|
|
11405
11414
|
}
|
|
11406
11415
|
function detectExtension(content) {
|
|
11407
|
-
for (const
|
|
11416
|
+
for (const extensionType of BUILDER_EXTENSION_TYPES) {
|
|
11408
11417
|
if (content.includes(`extensions.${extensionType}(`) || content.includes(`experimentalExtensions.${extensionType}(`)) {
|
|
11409
|
-
return
|
|
11418
|
+
return extensionType;
|
|
11410
11419
|
}
|
|
11411
11420
|
}
|
|
11412
11421
|
return null;
|
|
@@ -15813,7 +15822,8 @@ var require_collect_extensions_created = __commonJS({
|
|
|
15813
15822
|
path: definitionPath,
|
|
15814
15823
|
extensionType,
|
|
15815
15824
|
title: (0, constants_1.extractExtensionDisplayTitle)(contentForTitle, titlePath),
|
|
15816
|
-
files: [...files]
|
|
15825
|
+
files: [...files],
|
|
15826
|
+
isSpi: (0, constants_1.isSpiExtension)(extensionType)
|
|
15817
15827
|
});
|
|
15818
15828
|
async function collectDataCollectionEntries(outputPath, parentExtensionFile, folderFiles) {
|
|
15819
15829
|
const entries = [];
|
|
@@ -15840,16 +15850,16 @@ var require_collect_extensions_created = __commonJS({
|
|
|
15840
15850
|
continue;
|
|
15841
15851
|
try {
|
|
15842
15852
|
const content = await (0, promises_1.readFile)(resolveFilePath(outputPath, fileChange.path), "utf-8");
|
|
15843
|
-
const
|
|
15844
|
-
if (!
|
|
15853
|
+
const extensionType = (0, constants_1.detectExtension)(content);
|
|
15854
|
+
if (!extensionType)
|
|
15845
15855
|
continue;
|
|
15846
15856
|
const folderFiles = files.filter((file) => isFileInExtensionFolder(file.path, fileChange.path));
|
|
15847
|
-
if (
|
|
15857
|
+
if (extensionType === "dataCollections") {
|
|
15848
15858
|
const dataCollectionEntries = await collectDataCollectionEntries(outputPath, fileChange, folderFiles);
|
|
15849
15859
|
results.push(...dataCollectionEntries);
|
|
15850
15860
|
continue;
|
|
15851
15861
|
}
|
|
15852
|
-
results.push(buildJobExtension(fileChange.path,
|
|
15862
|
+
results.push(buildJobExtension(fileChange.path, extensionType, content, fileChange.path, folderFiles));
|
|
15853
15863
|
} catch {
|
|
15854
15864
|
continue;
|
|
15855
15865
|
}
|
|
@@ -20948,7 +20958,14 @@ var require_biLogger = __commonJS({
|
|
|
20948
20958
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
20949
20959
|
exports2.biLogger = void 0;
|
|
20950
20960
|
var standalone_node_bi_logger_1 = __importDefault2(require_src2());
|
|
20951
|
-
|
|
20961
|
+
var logger_12 = require_logger();
|
|
20962
|
+
function onBiPublisherError(error, context) {
|
|
20963
|
+
logger_12.logger.error("BI publisher failed to send event", {
|
|
20964
|
+
error: error instanceof Error ? error.message : String(error),
|
|
20965
|
+
...context
|
|
20966
|
+
});
|
|
20967
|
+
}
|
|
20968
|
+
exports2.biLogger = standalone_node_bi_logger_1.default.factory({ endpoint: "code", onError: onBiPublisherError }).logger();
|
|
20952
20969
|
}
|
|
20953
20970
|
});
|
|
20954
20971
|
|
|
@@ -20990,6 +21007,7 @@ var require_biEvents = __commonJS({
|
|
|
20990
21007
|
Task_model: report.taskModel,
|
|
20991
21008
|
Task_type: report.taskType
|
|
20992
21009
|
};
|
|
21010
|
+
logger_12.logger.debug("BI environment", { biEnvironment: report.environment });
|
|
20993
21011
|
if (report.environment === types_1.Environment.APP_BUILDER) {
|
|
20994
21012
|
logger_12.logger.info("Reporting BI event 200 (session start)", devibeParams);
|
|
20995
21013
|
try {
|
|
@@ -21033,6 +21051,7 @@ var require_biEvents = __commonJS({
|
|
|
21033
21051
|
Job_skills_used: report.skillsUsed?.join(","),
|
|
21034
21052
|
Job_extensions_created: report.extensionsCreated?.join(",")
|
|
21035
21053
|
};
|
|
21054
|
+
logger_12.logger.debug("BI environment", { biEnvironment: report.environment });
|
|
21036
21055
|
if (report.environment === types_1.Environment.APP_BUILDER) {
|
|
21037
21056
|
logger_12.logger.info("Reporting BI event 201 (session end)", devibeParams);
|
|
21038
21057
|
try {
|
|
@@ -21079,6 +21098,7 @@ var require_biEvents = __commonJS({
|
|
|
21079
21098
|
is_expected: report.isExpected,
|
|
21080
21099
|
validation_type: report.validationType
|
|
21081
21100
|
};
|
|
21101
|
+
logger_12.logger.debug("BI environment", { biEnvironment: report.environment });
|
|
21082
21102
|
if (report.environment === types_1.Environment.APP_BUILDER) {
|
|
21083
21103
|
logger_12.logger.info("Reporting BI event 202 (session error)", devibeParams);
|
|
21084
21104
|
try {
|
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.386",
|
|
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": "f0305d7f23582a725e0e4c0a35756303dfabebca44813dd67d5e332f"
|
|
33
33
|
}
|