@wix/ditto-codegen-public 1.0.369 → 1.0.370
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 +41 -5
- package/package.json +2 -2
package/dist/out.js
CHANGED
|
@@ -12148,7 +12148,26 @@ var require_http_impl3 = __commonJS({
|
|
|
12148
12148
|
};
|
|
12149
12149
|
var _taskOptions = { onFailure: "_task" };
|
|
12150
12150
|
function resolveComWixpressCodeProjectOrchestratorApiCodeProjectOrchestratorServiceUrl(opts) {
|
|
12151
|
-
var domainToMappings = {
|
|
12151
|
+
var domainToMappings = {
|
|
12152
|
+
"editor._base_domain_": [
|
|
12153
|
+
{
|
|
12154
|
+
srcPath: "/_api/code-project-orchestrator",
|
|
12155
|
+
destPath: ""
|
|
12156
|
+
}
|
|
12157
|
+
],
|
|
12158
|
+
"blocks._base_domain_": [
|
|
12159
|
+
{
|
|
12160
|
+
srcPath: "/_api/code-project-orchestrator",
|
|
12161
|
+
destPath: ""
|
|
12162
|
+
}
|
|
12163
|
+
],
|
|
12164
|
+
"create.editorx": [
|
|
12165
|
+
{
|
|
12166
|
+
srcPath: "/_api/code-project-orchestrator",
|
|
12167
|
+
destPath: ""
|
|
12168
|
+
}
|
|
12169
|
+
]
|
|
12170
|
+
};
|
|
12152
12171
|
return (0, metro_runtime_2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
12153
12172
|
}
|
|
12154
12173
|
function initialize(payload) {
|
|
@@ -12516,13 +12535,30 @@ var require_checkpoint = __commonJS({
|
|
|
12516
12535
|
return message.slice(0, MAX_COMMIT_MESSAGE_LENGTH - TRUNCATION_SUFFIX.length) + TRUNCATION_SUFFIX;
|
|
12517
12536
|
};
|
|
12518
12537
|
var useCodeProjectOrchestrator = () => process.env.USE_CODE_PROJECT_ORCHESTRATOR === "true";
|
|
12519
|
-
var callCreateCheckpoint = async (client, job, commitMessage) => {
|
|
12538
|
+
var callCreateCheckpoint = async (client, job, commitMessage, logger) => {
|
|
12520
12539
|
if (useCodeProjectOrchestrator()) {
|
|
12521
12540
|
if (!job.siteBranchId) {
|
|
12522
12541
|
throw new Error("[Checkpoint] SITE_BRANCH_ID is required for the code-project-orchestrator checkpoint");
|
|
12523
12542
|
}
|
|
12524
|
-
|
|
12525
|
-
|
|
12543
|
+
try {
|
|
12544
|
+
const resp2 = await client.request((0, http_2.createCheckpoint)({ siteBranchId: job.siteBranchId }));
|
|
12545
|
+
return { checkpointId: resp2.data?.revision?.revisionId };
|
|
12546
|
+
} catch (error) {
|
|
12547
|
+
if (http_client_1.HttpClient.isHttpError(error)) {
|
|
12548
|
+
logger.error("[Checkpoint] code-project createCheckpoint failed", {
|
|
12549
|
+
siteBranchId: job.siteBranchId,
|
|
12550
|
+
requestId: error.requestId || void 0,
|
|
12551
|
+
method: error.config?.method?.toUpperCase(),
|
|
12552
|
+
url: error.config?.url,
|
|
12553
|
+
status: error.response?.status,
|
|
12554
|
+
statusText: error.response?.statusText,
|
|
12555
|
+
code: error.code,
|
|
12556
|
+
message: error.message,
|
|
12557
|
+
data: error.response?.data
|
|
12558
|
+
});
|
|
12559
|
+
}
|
|
12560
|
+
throw error;
|
|
12561
|
+
}
|
|
12526
12562
|
}
|
|
12527
12563
|
const resp = await client.request((0, http_1.createCheckpoint)({
|
|
12528
12564
|
appId: job.projectId,
|
|
@@ -12557,7 +12593,7 @@ var require_checkpoint = __commonJS({
|
|
|
12557
12593
|
if (!job)
|
|
12558
12594
|
return;
|
|
12559
12595
|
try {
|
|
12560
|
-
const { checkpointId } = await callCreateCheckpoint(orchestratorHttpClient, job, commitMessage);
|
|
12596
|
+
const { checkpointId } = await callCreateCheckpoint(orchestratorHttpClient, job, commitMessage, host.logger);
|
|
12561
12597
|
outcome = { status: "created", checkpointId };
|
|
12562
12598
|
if (checkpointId) {
|
|
12563
12599
|
await host.jobs.updatePayload({ jobId: job.jobId, taskId: job.taskId }, { checkpointId });
|
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.370",
|
|
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": "
|
|
32
|
+
"falconPackageHash": "3d6d0c0fbfb4509e910ac575a739e9fdc27303a83db84e044b588ff9"
|
|
33
33
|
}
|