@wix/ditto-codegen-public 1.0.377 → 1.0.378

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 +14 -4
  2. package/package.json +2 -2
package/dist/out.js CHANGED
@@ -12527,7 +12527,12 @@ var require_checkpoint = __commonJS({
12527
12527
  }
12528
12528
  try {
12529
12529
  const resp2 = await client.request((0, http_2.createCheckpoint)({ siteBranchId: job.siteBranchId }));
12530
- return { checkpointId: resp2.data?.revision?.revisionId };
12530
+ const revision = resp2.data?.revision;
12531
+ return {
12532
+ checkpointId: revision?.revisionId,
12533
+ commitHash: revision?.commitHash,
12534
+ overrideId: revision?.overrideId
12535
+ };
12531
12536
  } catch (error) {
12532
12537
  if (http_client_1.HttpClient.isHttpError(error)) {
12533
12538
  logger.error("[Checkpoint] code-project createCheckpoint failed", {
@@ -12551,7 +12556,10 @@ var require_checkpoint = __commonJS({
12551
12556
  appId: job.projectId,
12552
12557
  commitMessage: truncateCommitMessage(commitMessage)
12553
12558
  }));
12554
- return { checkpointId: resp.data?.checkpointId };
12559
+ return {
12560
+ checkpointId: resp.data?.checkpointId,
12561
+ commitHash: resp.data?.checkpointId
12562
+ };
12555
12563
  };
12556
12564
  var readToolCommitMessage = (input) => {
12557
12565
  if (typeof input !== "object" || input === null)
@@ -12581,14 +12589,16 @@ var require_checkpoint = __commonJS({
12581
12589
  if (!job)
12582
12590
  return;
12583
12591
  try {
12584
- const { checkpointId } = await callCreateCheckpoint(orchestratorHttpClient, job, commitMessage, host.logger);
12592
+ const { checkpointId, commitHash, overrideId } = await callCreateCheckpoint(orchestratorHttpClient, job, commitMessage, host.logger);
12585
12593
  outcome = { status: "created", checkpointId };
12586
12594
  if (checkpointId) {
12587
- await host.jobs.updatePayload({ jobId: job.jobId, taskId: job.taskId }, { checkpointId });
12595
+ await host.jobs.updatePayload({ jobId: job.jobId, taskId: job.taskId }, { checkpointId, commitHash, overrideId });
12588
12596
  }
12589
12597
  host.logger.info("[Checkpoint] created", {
12590
12598
  projectId: job.projectId,
12591
12599
  checkpointId,
12600
+ commitHash,
12601
+ overrideId,
12592
12602
  commitMessage
12593
12603
  });
12594
12604
  } catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/ditto-codegen-public",
3
- "version": "1.0.377",
3
+ "version": "1.0.378",
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": "0fb808417e84ff1d2dea5746bedb059950ac21264af28d6b9b27c5f3"
32
+ "falconPackageHash": "d0707b988a7bcb072c5227b3fe1df67a01c1f65f21920bbf300048fd"
33
33
  }