@wix/ditto-codegen-public 1.0.455 → 1.0.456
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 +1 -42
- package/package.json +2 -2
package/dist/out.js
CHANGED
|
@@ -10581,46 +10581,6 @@ var require_wixTokenRefresh = __commonJS({
|
|
|
10581
10581
|
}
|
|
10582
10582
|
});
|
|
10583
10583
|
|
|
10584
|
-
// dist/experiments.js
|
|
10585
|
-
var require_experiments = __commonJS({
|
|
10586
|
-
"dist/experiments.js"(exports2) {
|
|
10587
|
-
"use strict";
|
|
10588
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
10589
|
-
exports2.FILTERED_JOB_POLLING = void 0;
|
|
10590
|
-
exports2.getExperimentVariant = getExperimentVariant;
|
|
10591
|
-
exports2.isExperimentEnabled = isExperimentEnabled;
|
|
10592
|
-
var logger_12 = require_logger();
|
|
10593
|
-
exports2.FILTERED_JOB_POLLING = "codegenFilteredJobPolling";
|
|
10594
|
-
var parsedExperiments = null;
|
|
10595
|
-
function getExperiments() {
|
|
10596
|
-
if (parsedExperiments !== null) {
|
|
10597
|
-
return parsedExperiments;
|
|
10598
|
-
}
|
|
10599
|
-
const raw = process.env.CODEGEN_EXPERIMENTS;
|
|
10600
|
-
if (!raw) {
|
|
10601
|
-
parsedExperiments = {};
|
|
10602
|
-
return parsedExperiments;
|
|
10603
|
-
}
|
|
10604
|
-
try {
|
|
10605
|
-
parsedExperiments = JSON.parse(raw);
|
|
10606
|
-
} catch (error) {
|
|
10607
|
-
logger_12.logger.error("[Experiments] Failed to parse CODEGEN_EXPERIMENTS", {
|
|
10608
|
-
error: error instanceof Error ? error.message : String(error)
|
|
10609
|
-
});
|
|
10610
|
-
parsedExperiments = {};
|
|
10611
|
-
}
|
|
10612
|
-
return parsedExperiments;
|
|
10613
|
-
}
|
|
10614
|
-
function getExperimentVariant(specName) {
|
|
10615
|
-
return getExperiments()[specName] ?? "A";
|
|
10616
|
-
}
|
|
10617
|
-
function isExperimentEnabled(specName) {
|
|
10618
|
-
const variant = getExperimentVariant(specName);
|
|
10619
|
-
return variant === "true" || variant !== "A" && variant !== "false";
|
|
10620
|
-
}
|
|
10621
|
-
}
|
|
10622
|
-
});
|
|
10623
|
-
|
|
10624
10584
|
// ../codegen-types/dist/errors/ErrorTypes.js
|
|
10625
10585
|
var require_ErrorTypes = __commonJS({
|
|
10626
10586
|
"../codegen-types/dist/errors/ErrorTypes.js"(exports2) {
|
|
@@ -11065,7 +11025,6 @@ var require_CodeGenService = __commonJS({
|
|
|
11065
11025
|
return types_1.JobsSortOrder;
|
|
11066
11026
|
} });
|
|
11067
11027
|
var logger_12 = require_logger();
|
|
11068
|
-
var experiments_1 = require_experiments();
|
|
11069
11028
|
var ditto_codegen_types_12 = require_dist4();
|
|
11070
11029
|
var FILE_OPERATION = {
|
|
11071
11030
|
[ditto_codegen_types_12.ExtensionGenerationOperation.INSERT]: types_1.FileOperation.INSERT,
|
|
@@ -11177,7 +11136,7 @@ var require_CodeGenService = __commonJS({
|
|
|
11177
11136
|
};
|
|
11178
11137
|
this.fetchPendingJobs = async () => {
|
|
11179
11138
|
const { sandboxId } = this;
|
|
11180
|
-
const filtered = sandboxId
|
|
11139
|
+
const filtered = sandboxId ? {
|
|
11181
11140
|
projectId: this.projectId,
|
|
11182
11141
|
filter: { status: types_1.Status.PENDING, sandboxId },
|
|
11183
11142
|
paging: { limit: 1 },
|
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.456",
|
|
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": "b4e524a284525e70d74a19bc69db923c47fac5ed6de358b32ae8f17e"
|
|
33
33
|
}
|