@wix/ditto-codegen-public 1.0.329 → 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.
Files changed (2) hide show
  1. package/dist/out.js +8 -16
  2. 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
  }
@@ -19334,7 +19330,6 @@ var require_opencode_init = __commonJS({
19334
19330
  var config_12 = require_config();
19335
19331
  var biEvents_1 = require_biEvents();
19336
19332
  var pre_run_decision_1 = require_pre_run_decision();
19337
- var experiments_1 = require_experiments();
19338
19333
  var environments_12 = require_environments();
19339
19334
  var hooks_1 = require_hooks();
19340
19335
  var runOpencodeInitFlow = async (blueprint, history, agentData) => {
@@ -19368,17 +19363,14 @@ var require_opencode_init = __commonJS({
19368
19363
  let caughtError;
19369
19364
  try {
19370
19365
  (0, agent_io_1.writeAgentInput)(outputPath, agentData);
19371
- let finalBlueprint = blueprint;
19372
- if ((0, experiments_1.isUserDecisionsEnabled)()) {
19373
- const envConfig = (0, environments_12.getCodegenEnvironmentConfig)();
19374
- const preDecisionResult = await (0, pre_run_decision_1.runPreDecisionCheck)(localJobContext.jobId, { payload: blueprint }, envConfig.decisionCheckers);
19375
- finalBlueprint = preDecisionResult.modifiedPayload ?? blueprint;
19376
- if (preDecisionResult.decisionsApplied.length > 0) {
19377
- logger_12.logger.info("[OpenCode Init] Applied pre-decision", {
19378
- decisions: preDecisionResult.decisionsApplied,
19379
- finalBlueprint
19380
- });
19381
- }
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
+ });
19382
19374
  }
19383
19375
  const orchestrator = new OpenCodeOrchestrator_1.OpenCodeOrchestrator();
19384
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.329",
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": "27be60515add05720642903acc4d87771920b49663a972e4bc664868"
31
+ "falconPackageHash": "8c4af062d644318f9c2614e0e31d60cc5ad1ec2dfed82afcc0120b46"
32
32
  }