@wix/ditto-codegen-public 1.0.225 → 1.0.226

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 +11 -2
  2. package/package.json +2 -2
package/dist/out.js CHANGED
@@ -7641,6 +7641,16 @@ var require_CodeGenService = __commonJS({
7641
7641
  }
7642
7642
  }));
7643
7643
  };
7644
+ this.markJobAsRuninng = async (jobId) => {
7645
+ await this.httpClient.request((0, http_1.updateJob)({
7646
+ projectId: this.projectId,
7647
+ job: {
7648
+ id: jobId,
7649
+ projectId: this.projectId,
7650
+ status: types_1.Status.RUNNING
7651
+ }
7652
+ }));
7653
+ };
7644
7654
  this.markJobAsCancelled = async (jobId) => {
7645
7655
  await this.httpClient.request((0, http_1.updateJob)({
7646
7656
  projectId: this.projectId,
@@ -107288,7 +107298,6 @@ var require_init_codegen = __commonJS({
107288
107298
  var runInitCodegenFlow = async (blueprint, history) => {
107289
107299
  const localJobContext = job_context_storage_12.jobContextStorage.getStore();
107290
107300
  console.log(`[Init] Starting init codegen task: jobId=${localJobContext?.jobId}, taskId=${localJobContext?.taskId}`);
107291
- await codeGenerationService_12.codeGenerationService.updateJobStatus(localJobContext.jobId, ditto_codegen_types_12.Status.RUNNING);
107292
107301
  await codeGenerationService_12.codeGenerationService.updateTask(localJobContext.jobId, localJobContext.taskId, ditto_codegen_types_12.Status.RUNNING, {});
107293
107302
  console.log(`[Init] Marked task RUNNING: jobId=${localJobContext.jobId}, taskId=${localJobContext.taskId}`);
107294
107303
  try {
@@ -321362,7 +321371,6 @@ var require_iterate_codegen = __commonJS({
321362
321371
  var runIterateCodegenFlow = async (chatHistory) => {
321363
321372
  const localJobContext = job_context_storage_12.jobContextStorage.getStore();
321364
321373
  console.log(`[Iterate] Starting iterate codegen task: jobId=${localJobContext?.jobId}, taskId=${localJobContext?.taskId}`);
321365
- await codeGenerationService_12.codeGenerationService.updateJobStatus(localJobContext.jobId, ditto_codegen_types_12.Status.RUNNING);
321366
321374
  await codeGenerationService_12.codeGenerationService.updateTask(localJobContext.jobId, localJobContext.taskId, ditto_codegen_types_12.Status.RUNNING, {});
321367
321375
  console.log(`[Init] Marked task RUNNING: jobId=${localJobContext.jobId}, taskId=${localJobContext.taskId}`);
321368
321376
  try {
@@ -321538,6 +321546,7 @@ var alwaysOnLoop = async () => {
321538
321546
  }
321539
321547
  const job = jobs[0];
321540
321548
  console.log(`[Loop] Selected job: jobId=${job.jobId}`);
321549
+ await codeGenerationService_1.codeGenerationService.markJobAsRuninng(job.jobId);
321541
321550
  await processJob(job);
321542
321551
  await codeGenerationService_1.codeGenerationService.markJobAsCompleted(job.jobId);
321543
321552
  console.log(`[Loop] Processed job: jobId=${job.jobId}. Sleeping ${POST_JOB_SLEEP_MS}ms`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/ditto-codegen-public",
3
- "version": "1.0.225",
3
+ "version": "1.0.226",
4
4
  "description": "AI-powered Wix CLI app generator - standalone executable",
5
5
  "scripts": {
6
6
  "build": "node build.mjs",
@@ -24,5 +24,5 @@
24
24
  "@wix/ditto-codegen": "1.0.0",
25
25
  "esbuild": "^0.27.2"
26
26
  },
27
- "falconPackageHash": "2e7d0b6dea61740e43a2e46910e0abf3709a19aed36a59e7b403b2cc"
27
+ "falconPackageHash": "82af5e4235ba0fe3432dad3e3ccdf5255acdad91e28aa9dd98e0f760"
28
28
  }