@wix/ditto-codegen-public 1.0.300 → 1.0.302

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 +7 -3
  2. package/package.json +2 -2
package/dist/out.js CHANGED
@@ -11416,7 +11416,7 @@ Use this namespace when creating data collections (for idSuffix scoping).`);
11416
11416
  }
11417
11417
  if (codeIdentifier) {
11418
11418
  parts.push(`CODE_IDENTIFIER: ${codeIdentifier}
11419
- If generating site component extensions, use this identifier as the type prefix (e.g. type: '${codeIdentifier}.ComponentName').`);
11419
+ If generating Editor React component extensions, use this identifier as the type prefix (e.g. type: '${codeIdentifier}.ComponentName').`);
11420
11420
  }
11421
11421
  return parts.join("\n\n");
11422
11422
  }
@@ -18267,6 +18267,7 @@ var require_job_timeout_monitor = __commonJS({
18267
18267
  var ditto_codegen_types_12 = require_dist4();
18268
18268
  var utils_1 = require_utils9();
18269
18269
  var logger_12 = require_logger();
18270
+ var context_12 = require_context();
18270
18271
  exports2.JOB_TIMEOUT_MS = 1e3 * 60 * 20;
18271
18272
  var JobTimeoutMonitor = class {
18272
18273
  constructor(codeGenerationService) {
@@ -18285,17 +18286,20 @@ var require_job_timeout_monitor = __commonJS({
18285
18286
  }
18286
18287
  }
18287
18288
  async handleTimeout(jobId) {
18289
+ const logContext = { jobId, appDefId: context_12.ctx.projectId };
18288
18290
  logger_12.logger.error("[Job] Job exceeded timeout", {
18291
+ ...logContext,
18289
18292
  timeoutMs: exports2.JOB_TIMEOUT_MS
18290
18293
  });
18291
18294
  try {
18292
- logger_12.logger.info("[Job] Timeout detected, exiting");
18295
+ logger_12.logger.info("[Job] Timeout detected, exiting", logContext);
18293
18296
  await (0, utils_1.updateAllRunningTasks)(jobId, ditto_codegen_types_12.Status.FAILED, new ditto_codegen_types_12.TimeoutError(`Job exceeded timeout of ${exports2.JOB_TIMEOUT_MS}ms`));
18294
18297
  await this.codeGenerationService.markJobAsCompleted(jobId);
18295
- logger_12.logger.info("[Job] Marked job as completed, failed all running tasks");
18298
+ logger_12.logger.info("[Job] Marked job as completed, failed all running tasks", logContext);
18296
18299
  process.exit();
18297
18300
  } catch (error) {
18298
18301
  logger_12.logger.error("[Job] Failed to mark timed-out job as completed", {
18302
+ ...logContext,
18299
18303
  error: error instanceof Error ? error.message : String(error)
18300
18304
  });
18301
18305
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/ditto-codegen-public",
3
- "version": "1.0.300",
3
+ "version": "1.0.302",
4
4
  "description": "AI-powered Wix CLI app generator - standalone executable",
5
5
  "scripts": {
6
6
  "build": "node build.mjs",
@@ -27,5 +27,5 @@
27
27
  "@wix/ditto-codegen": "1.0.0",
28
28
  "esbuild": "^0.27.2"
29
29
  },
30
- "falconPackageHash": "7e01650dd75487b832d97effba283214a682adce04a362e8302151e0"
30
+ "falconPackageHash": "904bf884529041e012875730d22e5bcd382be7bb37e631576691cbf8"
31
31
  }