@wix/ditto-codegen-public 1.0.328 → 1.0.330
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 +15 -21
- package/package.json +2 -2
package/dist/out.js
CHANGED
|
@@ -11784,7 +11784,6 @@ var require_experiments = __commonJS({
|
|
|
11784
11784
|
"use strict";
|
|
11785
11785
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
11786
11786
|
exports2.isExperimentEnabled = isExperimentEnabled;
|
|
11787
|
-
exports2.isUserDecisionsEnabled = isUserDecisionsEnabled;
|
|
11788
11787
|
exports2.isUseWixAiGatewayEnabled = isUseWixAiGatewayEnabled;
|
|
11789
11788
|
var logger_12 = require_logger();
|
|
11790
11789
|
var parsedExperiments = null;
|
|
@@ -11810,9 +11809,6 @@ var require_experiments = __commonJS({
|
|
|
11810
11809
|
function isExperimentEnabled(specName) {
|
|
11811
11810
|
return getExperiments()[specName] === "true";
|
|
11812
11811
|
}
|
|
11813
|
-
function isUserDecisionsEnabled() {
|
|
11814
|
-
return isExperimentEnabled("specs.ditto.CodegenUserDecisions");
|
|
11815
|
-
}
|
|
11816
11812
|
function isUseWixAiGatewayEnabled() {
|
|
11817
11813
|
return isExperimentEnabled("specs.ditto.CodegenUseWixAiGateway");
|
|
11818
11814
|
}
|
|
@@ -13389,7 +13385,8 @@ var require_extension_handler = __commonJS({
|
|
|
13389
13385
|
files: extensionFiles.map((f) => ({
|
|
13390
13386
|
path: f.path,
|
|
13391
13387
|
operation: f.operation
|
|
13392
|
-
}))
|
|
13388
|
+
})),
|
|
13389
|
+
extensionType: tracked.extensionType
|
|
13393
13390
|
}
|
|
13394
13391
|
};
|
|
13395
13392
|
}
|
|
@@ -13419,7 +13416,7 @@ var require_extension_handler = __commonJS({
|
|
|
13419
13416
|
if (!this.extensionTypesByPath.has(normalizedPath)) {
|
|
13420
13417
|
this.extensionTypesByPath.set(normalizedPath, extension.extensionType);
|
|
13421
13418
|
await (0, init_task_1.completeInitTask)(ctx);
|
|
13422
|
-
await this.createExtensionTask(normalizedPath, extension.label, filePath, ctx);
|
|
13419
|
+
await this.createExtensionTask(normalizedPath, extension.label, extension.extensionType, filePath, ctx);
|
|
13423
13420
|
}
|
|
13424
13421
|
if (!isCompleted)
|
|
13425
13422
|
return;
|
|
@@ -13453,12 +13450,12 @@ var require_extension_handler = __commonJS({
|
|
|
13453
13450
|
}
|
|
13454
13451
|
}
|
|
13455
13452
|
/** Registers a RUNNING sub-task in the job service for a detected extension. */
|
|
13456
|
-
async createExtensionTask(normalizedPath, extensionType, originalPath, ctx) {
|
|
13453
|
+
async createExtensionTask(normalizedPath, extensionLabel, extensionType, originalPath, ctx) {
|
|
13457
13454
|
const jobContext = ctx.getJobContext();
|
|
13458
13455
|
if (!jobContext)
|
|
13459
13456
|
return;
|
|
13460
13457
|
const extensionName = (0, constants_1.extractExtensionName)(originalPath);
|
|
13461
|
-
const description = `Creating ${extensionName} ${
|
|
13458
|
+
const description = `Creating ${extensionName} ${extensionLabel}`;
|
|
13462
13459
|
const extensionKey = `ext-${normalizedPath}`;
|
|
13463
13460
|
const taskId = (0, crypto_12.randomUUID)();
|
|
13464
13461
|
const extensionFolder = normalizedPath.substring(0, normalizedPath.lastIndexOf("/") + 1);
|
|
@@ -13466,7 +13463,8 @@ var require_extension_handler = __commonJS({
|
|
|
13466
13463
|
taskId,
|
|
13467
13464
|
description,
|
|
13468
13465
|
status: ditto_codegen_types_12.Status.RUNNING,
|
|
13469
|
-
extensionFolder
|
|
13466
|
+
extensionFolder,
|
|
13467
|
+
extensionType
|
|
13470
13468
|
};
|
|
13471
13469
|
ctx.trackedTasks.set(extensionKey, tracked);
|
|
13472
13470
|
try {
|
|
@@ -19332,7 +19330,6 @@ var require_opencode_init = __commonJS({
|
|
|
19332
19330
|
var config_12 = require_config();
|
|
19333
19331
|
var biEvents_1 = require_biEvents();
|
|
19334
19332
|
var pre_run_decision_1 = require_pre_run_decision();
|
|
19335
|
-
var experiments_1 = require_experiments();
|
|
19336
19333
|
var environments_12 = require_environments();
|
|
19337
19334
|
var hooks_1 = require_hooks();
|
|
19338
19335
|
var runOpencodeInitFlow = async (blueprint, history, agentData) => {
|
|
@@ -19366,17 +19363,14 @@ var require_opencode_init = __commonJS({
|
|
|
19366
19363
|
let caughtError;
|
|
19367
19364
|
try {
|
|
19368
19365
|
(0, agent_io_1.writeAgentInput)(outputPath, agentData);
|
|
19369
|
-
|
|
19370
|
-
|
|
19371
|
-
|
|
19372
|
-
|
|
19373
|
-
|
|
19374
|
-
|
|
19375
|
-
|
|
19376
|
-
|
|
19377
|
-
finalBlueprint
|
|
19378
|
-
});
|
|
19379
|
-
}
|
|
19366
|
+
const envConfig = (0, environments_12.getCodegenEnvironmentConfig)();
|
|
19367
|
+
const preDecisionResult = await (0, pre_run_decision_1.runPreDecisionCheck)(localJobContext.jobId, { payload: blueprint }, envConfig.decisionCheckers);
|
|
19368
|
+
const finalBlueprint = preDecisionResult.modifiedPayload ?? blueprint;
|
|
19369
|
+
if (preDecisionResult.decisionsApplied.length > 0) {
|
|
19370
|
+
logger_12.logger.info("[OpenCode Init] Applied pre-decision", {
|
|
19371
|
+
decisions: preDecisionResult.decisionsApplied,
|
|
19372
|
+
finalBlueprint
|
|
19373
|
+
});
|
|
19380
19374
|
}
|
|
19381
19375
|
const orchestrator = new OpenCodeOrchestrator_1.OpenCodeOrchestrator();
|
|
19382
19376
|
(0, cli_listeners_1.attachOrchestratorListeners)(orchestrator);
|
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.330",
|
|
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
|
"esbuild": "^0.27.2",
|
|
29
29
|
"vitest": "^4.0.16"
|
|
30
30
|
},
|
|
31
|
-
"falconPackageHash": "
|
|
31
|
+
"falconPackageHash": "8c4af062d644318f9c2614e0e31d60cc5ad1ec2dfed82afcc0120b46"
|
|
32
32
|
}
|