@wix/ditto-codegen-public 1.0.376 → 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.
- package/dist/out.js +55 -97
- package/package.json +2 -2
package/dist/out.js
CHANGED
|
@@ -12107,33 +12107,34 @@ var require_http_impl3 = __commonJS({
|
|
|
12107
12107
|
exports2.restoreRevision = restoreRevision;
|
|
12108
12108
|
exports2.createRevision = createRevision;
|
|
12109
12109
|
exports2.createCodeGenerationJob = createCodeGenerationJob;
|
|
12110
|
-
exports2.commitDevOverride = commitDevOverride;
|
|
12111
|
-
exports2.registerDevSchemas = registerDevSchemas;
|
|
12112
|
-
exports2.generateDashboardPage = generateDashboardPage;
|
|
12113
12110
|
exports2.getCodeGenerationJobStatus = getCodeGenerationJobStatus;
|
|
12111
|
+
exports2.generateCode = generateCode;
|
|
12112
|
+
exports2.askCodegen = askCodegen;
|
|
12114
12113
|
var metro_runtime_1 = require_build();
|
|
12115
12114
|
var ambassador_1 = require_ambassador_index();
|
|
12116
12115
|
var metro_runtime_2 = require_build();
|
|
12117
|
-
var
|
|
12118
|
-
var
|
|
12116
|
+
var _askCodegenRequest = {};
|
|
12117
|
+
var _askCodegenResponse = {};
|
|
12118
|
+
var _codeGenerationTask = {
|
|
12119
|
+
createdAt: "google.protobuf.Timestamp",
|
|
12120
|
+
updatedAt: "google.protobuf.Timestamp"
|
|
12121
|
+
};
|
|
12119
12122
|
var _createCheckpointRequest = {};
|
|
12120
12123
|
var _createCheckpointResponse = {};
|
|
12121
12124
|
var _createCodeGenerationJobRequest = {};
|
|
12122
12125
|
var _createCodeGenerationJobResponse = {};
|
|
12123
12126
|
var _createRevisionRequest = {};
|
|
12124
12127
|
var _createRevisionResponse = {};
|
|
12125
|
-
var
|
|
12126
|
-
var
|
|
12128
|
+
var _generateCodeRequest = {};
|
|
12129
|
+
var _generateCodeResponse = {};
|
|
12127
12130
|
var _getCodeGenerationJobStatusRequest = {};
|
|
12128
|
-
var _getCodeGenerationJobStatusResponse = {};
|
|
12131
|
+
var _getCodeGenerationJobStatusResponse = { tasks: "_codeGenerationTask" };
|
|
12129
12132
|
var _getCodeProjectInfoRequest = {};
|
|
12130
12133
|
var _getCodeProjectInfoResponse = {};
|
|
12131
12134
|
var _getDevSessionStatusRequest = {};
|
|
12132
12135
|
var _getDevSessionStatusResponse = { tasks: "_task" };
|
|
12133
12136
|
var _initializeRequest = {};
|
|
12134
12137
|
var _initializeResponse = {};
|
|
12135
|
-
var _registerDevSchemasRequest = {};
|
|
12136
|
-
var _registerDevSchemasResponse = {};
|
|
12137
12138
|
var _restoreRevisionRequest = {};
|
|
12138
12139
|
var _restoreRevisionResponse = {};
|
|
12139
12140
|
var _startDevSessionRequest = {};
|
|
@@ -12406,97 +12407,74 @@ var require_http_impl3 = __commonJS({
|
|
|
12406
12407
|
__createCodeGenerationJob.__isAmbassador = true;
|
|
12407
12408
|
return __createCodeGenerationJob;
|
|
12408
12409
|
}
|
|
12409
|
-
function
|
|
12410
|
-
var _a = (0, ambassador_1.serializer)(
|
|
12411
|
-
var fromRes = (0, ambassador_1.serializer)(
|
|
12412
|
-
function
|
|
12410
|
+
function getCodeGenerationJobStatus(payload) {
|
|
12411
|
+
var _a = (0, ambassador_1.serializer)(_getCodeGenerationJobStatusRequest, {}), toReq = _a.toJSON, fromReq = _a.fromJSON;
|
|
12412
|
+
var fromRes = (0, ambassador_1.serializer)(_getCodeGenerationJobStatusResponse, { _codeGenerationTask }).fromJSON;
|
|
12413
|
+
function __getCodeGenerationJobStatus(_a2) {
|
|
12413
12414
|
var host = _a2.host;
|
|
12414
12415
|
var serializedData = toReq(payload);
|
|
12415
12416
|
var metadata = {
|
|
12416
12417
|
entityFqdn: "wix.code_project.orchestrator.v1.code_project",
|
|
12417
|
-
method: "
|
|
12418
|
-
methodFqn: "com.wixpress.code_project.orchestrator.api.CodeProjectOrchestratorService.
|
|
12418
|
+
method: "GET",
|
|
12419
|
+
methodFqn: "com.wixpress.code_project.orchestrator.api.CodeProjectOrchestratorService.GetCodeGenerationJobStatus",
|
|
12419
12420
|
migrationOptions: {
|
|
12420
12421
|
optInTransformResponse: true
|
|
12421
12422
|
},
|
|
12422
|
-
url: resolveComWixpressCodeProjectOrchestratorApiCodeProjectOrchestratorServiceUrl({ protoPath: "/v1/
|
|
12423
|
-
|
|
12423
|
+
url: resolveComWixpressCodeProjectOrchestratorApiCodeProjectOrchestratorServiceUrl({ protoPath: "/v1/job-status", data: serializedData, host }),
|
|
12424
|
+
params: (0, metro_runtime_1.toURLSearchParams)(serializedData),
|
|
12424
12425
|
transformResponse: fromRes
|
|
12425
12426
|
};
|
|
12426
12427
|
return metadata;
|
|
12427
12428
|
}
|
|
12428
|
-
|
|
12429
|
-
|
|
12430
|
-
return
|
|
12429
|
+
__getCodeGenerationJobStatus.fromReq = fromReq;
|
|
12430
|
+
__getCodeGenerationJobStatus.__isAmbassador = true;
|
|
12431
|
+
return __getCodeGenerationJobStatus;
|
|
12431
12432
|
}
|
|
12432
|
-
function
|
|
12433
|
-
var _a = (0, ambassador_1.serializer)(
|
|
12434
|
-
var fromRes = (0, ambassador_1.serializer)(
|
|
12435
|
-
function
|
|
12433
|
+
function generateCode(payload) {
|
|
12434
|
+
var _a = (0, ambassador_1.serializer)(_generateCodeRequest, {}), toReq = _a.toJSON, fromReq = _a.fromJSON;
|
|
12435
|
+
var fromRes = (0, ambassador_1.serializer)(_generateCodeResponse, {}).fromJSON;
|
|
12436
|
+
function __generateCode(_a2) {
|
|
12436
12437
|
var host = _a2.host;
|
|
12437
12438
|
var serializedData = toReq(payload);
|
|
12438
12439
|
var metadata = {
|
|
12439
12440
|
entityFqdn: "wix.code_project.orchestrator.v1.code_project",
|
|
12440
12441
|
method: "POST",
|
|
12441
|
-
methodFqn: "com.wixpress.code_project.orchestrator.api.CodeProjectOrchestratorService.
|
|
12442
|
+
methodFqn: "com.wixpress.code_project.orchestrator.api.CodeProjectOrchestratorService.GenerateCode",
|
|
12442
12443
|
migrationOptions: {
|
|
12443
12444
|
optInTransformResponse: true
|
|
12444
12445
|
},
|
|
12445
|
-
url: resolveComWixpressCodeProjectOrchestratorApiCodeProjectOrchestratorServiceUrl({ protoPath: "/v1/
|
|
12446
|
+
url: resolveComWixpressCodeProjectOrchestratorApiCodeProjectOrchestratorServiceUrl({ protoPath: "/v1/generate-code", data: serializedData, host }),
|
|
12446
12447
|
data: serializedData,
|
|
12447
12448
|
transformResponse: fromRes
|
|
12448
12449
|
};
|
|
12449
12450
|
return metadata;
|
|
12450
12451
|
}
|
|
12451
|
-
|
|
12452
|
-
|
|
12453
|
-
return
|
|
12452
|
+
__generateCode.fromReq = fromReq;
|
|
12453
|
+
__generateCode.__isAmbassador = true;
|
|
12454
|
+
return __generateCode;
|
|
12454
12455
|
}
|
|
12455
|
-
function
|
|
12456
|
-
var _a = (0, ambassador_1.serializer)(
|
|
12457
|
-
var fromRes = (0, ambassador_1.serializer)(
|
|
12458
|
-
function
|
|
12456
|
+
function askCodegen(payload) {
|
|
12457
|
+
var _a = (0, ambassador_1.serializer)(_askCodegenRequest, {}), toReq = _a.toJSON, fromReq = _a.fromJSON;
|
|
12458
|
+
var fromRes = (0, ambassador_1.serializer)(_askCodegenResponse, {}).fromJSON;
|
|
12459
|
+
function __askCodegen(_a2) {
|
|
12459
12460
|
var host = _a2.host;
|
|
12460
12461
|
var serializedData = toReq(payload);
|
|
12461
12462
|
var metadata = {
|
|
12462
12463
|
entityFqdn: "wix.code_project.orchestrator.v1.code_project",
|
|
12463
12464
|
method: "POST",
|
|
12464
|
-
methodFqn: "com.wixpress.code_project.orchestrator.api.CodeProjectOrchestratorService.
|
|
12465
|
+
methodFqn: "com.wixpress.code_project.orchestrator.api.CodeProjectOrchestratorService.AskCodegen",
|
|
12465
12466
|
migrationOptions: {
|
|
12466
12467
|
optInTransformResponse: true
|
|
12467
12468
|
},
|
|
12468
|
-
url: resolveComWixpressCodeProjectOrchestratorApiCodeProjectOrchestratorServiceUrl({ protoPath: "/v1/
|
|
12469
|
+
url: resolveComWixpressCodeProjectOrchestratorApiCodeProjectOrchestratorServiceUrl({ protoPath: "/v1/ask-codegen", data: serializedData, host }),
|
|
12469
12470
|
data: serializedData,
|
|
12470
12471
|
transformResponse: fromRes
|
|
12471
12472
|
};
|
|
12472
12473
|
return metadata;
|
|
12473
12474
|
}
|
|
12474
|
-
|
|
12475
|
-
|
|
12476
|
-
return
|
|
12477
|
-
}
|
|
12478
|
-
function getCodeGenerationJobStatus(payload) {
|
|
12479
|
-
var _a = (0, ambassador_1.serializer)(_getCodeGenerationJobStatusRequest, {}), toReq = _a.toJSON, fromReq = _a.fromJSON;
|
|
12480
|
-
var fromRes = (0, ambassador_1.serializer)(_getCodeGenerationJobStatusResponse, {}).fromJSON;
|
|
12481
|
-
function __getCodeGenerationJobStatus(_a2) {
|
|
12482
|
-
var host = _a2.host;
|
|
12483
|
-
var serializedData = toReq(payload);
|
|
12484
|
-
var metadata = {
|
|
12485
|
-
entityFqdn: "wix.code_project.orchestrator.v1.code_project",
|
|
12486
|
-
method: "GET",
|
|
12487
|
-
methodFqn: "com.wixpress.code_project.orchestrator.api.CodeProjectOrchestratorService.GetCodeGenerationJobStatus",
|
|
12488
|
-
migrationOptions: {
|
|
12489
|
-
optInTransformResponse: true
|
|
12490
|
-
},
|
|
12491
|
-
url: resolveComWixpressCodeProjectOrchestratorApiCodeProjectOrchestratorServiceUrl({ protoPath: "/v1/job-status", data: serializedData, host }),
|
|
12492
|
-
params: (0, metro_runtime_1.toURLSearchParams)(serializedData),
|
|
12493
|
-
transformResponse: fromRes
|
|
12494
|
-
};
|
|
12495
|
-
return metadata;
|
|
12496
|
-
}
|
|
12497
|
-
__getCodeGenerationJobStatus.fromReq = fromReq;
|
|
12498
|
-
__getCodeGenerationJobStatus.__isAmbassador = true;
|
|
12499
|
-
return __getCodeGenerationJobStatus;
|
|
12475
|
+
__askCodegen.fromReq = fromReq;
|
|
12476
|
+
__askCodegen.__isAmbassador = true;
|
|
12477
|
+
return __askCodegen;
|
|
12500
12478
|
}
|
|
12501
12479
|
}
|
|
12502
12480
|
});
|
|
@@ -12549,7 +12527,12 @@ var require_checkpoint = __commonJS({
|
|
|
12549
12527
|
}
|
|
12550
12528
|
try {
|
|
12551
12529
|
const resp2 = await client.request((0, http_2.createCheckpoint)({ siteBranchId: job.siteBranchId }));
|
|
12552
|
-
|
|
12530
|
+
const revision = resp2.data?.revision;
|
|
12531
|
+
return {
|
|
12532
|
+
checkpointId: revision?.revisionId,
|
|
12533
|
+
commitHash: revision?.commitHash,
|
|
12534
|
+
overrideId: revision?.overrideId
|
|
12535
|
+
};
|
|
12553
12536
|
} catch (error) {
|
|
12554
12537
|
if (http_client_1.HttpClient.isHttpError(error)) {
|
|
12555
12538
|
logger.error("[Checkpoint] code-project createCheckpoint failed", {
|
|
@@ -12573,7 +12556,10 @@ var require_checkpoint = __commonJS({
|
|
|
12573
12556
|
appId: job.projectId,
|
|
12574
12557
|
commitMessage: truncateCommitMessage(commitMessage)
|
|
12575
12558
|
}));
|
|
12576
|
-
return {
|
|
12559
|
+
return {
|
|
12560
|
+
checkpointId: resp.data?.checkpointId,
|
|
12561
|
+
commitHash: resp.data?.checkpointId
|
|
12562
|
+
};
|
|
12577
12563
|
};
|
|
12578
12564
|
var readToolCommitMessage = (input) => {
|
|
12579
12565
|
if (typeof input !== "object" || input === null)
|
|
@@ -12603,14 +12589,16 @@ var require_checkpoint = __commonJS({
|
|
|
12603
12589
|
if (!job)
|
|
12604
12590
|
return;
|
|
12605
12591
|
try {
|
|
12606
|
-
const { checkpointId } = await callCreateCheckpoint(orchestratorHttpClient, job, commitMessage, host.logger);
|
|
12592
|
+
const { checkpointId, commitHash, overrideId } = await callCreateCheckpoint(orchestratorHttpClient, job, commitMessage, host.logger);
|
|
12607
12593
|
outcome = { status: "created", checkpointId };
|
|
12608
12594
|
if (checkpointId) {
|
|
12609
|
-
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 });
|
|
12610
12596
|
}
|
|
12611
12597
|
host.logger.info("[Checkpoint] created", {
|
|
12612
12598
|
projectId: job.projectId,
|
|
12613
12599
|
checkpointId,
|
|
12600
|
+
commitHash,
|
|
12601
|
+
overrideId,
|
|
12614
12602
|
commitMessage
|
|
12615
12603
|
});
|
|
12616
12604
|
} catch (error) {
|
|
@@ -13930,7 +13918,6 @@ var require_http_impl4 = __commonJS({
|
|
|
13930
13918
|
exports2.generateCode = generateCode;
|
|
13931
13919
|
exports2.getGeneratedCodeJobStatus = getGeneratedCodeJobStatus;
|
|
13932
13920
|
exports2.save = save;
|
|
13933
|
-
exports2.getSaveStatus = getSaveStatus;
|
|
13934
13921
|
exports2.getProjectStatus = getProjectStatus;
|
|
13935
13922
|
var metro_runtime_1 = require_build();
|
|
13936
13923
|
var ambassador_1 = require_ambassador_index();
|
|
@@ -13945,8 +13932,6 @@ var require_http_impl4 = __commonJS({
|
|
|
13945
13932
|
var _getGeneratedCodeJobStatusResponse = { tasks: "_codeGenerationTask" };
|
|
13946
13933
|
var _getProjectStatusRequest = {};
|
|
13947
13934
|
var _getProjectStatusResponse = {};
|
|
13948
|
-
var _getSaveStatusRequest = {};
|
|
13949
|
-
var _getSaveStatusResponse = {};
|
|
13950
13935
|
var _saveRequest = {};
|
|
13951
13936
|
var _saveResponse = {};
|
|
13952
13937
|
function resolveWixViewerV1FeatureVibeUrl(opts) {
|
|
@@ -14039,7 +14024,7 @@ var require_http_impl4 = __commonJS({
|
|
|
14039
14024
|
optInTransformResponse: true
|
|
14040
14025
|
},
|
|
14041
14026
|
url: resolveWixViewerV1FeatureVibeUrl({
|
|
14042
|
-
protoPath: "/v1/feature-vibe/generated-code-job-status/{
|
|
14027
|
+
protoPath: "/v1/feature-vibe/generated-code-job-status/{codegenJobId}",
|
|
14043
14028
|
data: serializedData,
|
|
14044
14029
|
host
|
|
14045
14030
|
}),
|
|
@@ -14079,33 +14064,6 @@ var require_http_impl4 = __commonJS({
|
|
|
14079
14064
|
__save.__isAmbassador = true;
|
|
14080
14065
|
return __save;
|
|
14081
14066
|
}
|
|
14082
|
-
function getSaveStatus(payload) {
|
|
14083
|
-
var _a = (0, ambassador_1.serializer)(_getSaveStatusRequest, {}), toReq = _a.toJSON, fromReq = _a.fromJSON;
|
|
14084
|
-
var fromRes = (0, ambassador_1.serializer)(_getSaveStatusResponse, {}).fromJSON;
|
|
14085
|
-
function __getSaveStatus(_a2) {
|
|
14086
|
-
var host = _a2.host;
|
|
14087
|
-
var serializedData = toReq(payload);
|
|
14088
|
-
var metadata = {
|
|
14089
|
-
entityFqdn: "wix.viewer.v1.feature_vibe_project",
|
|
14090
|
-
method: "GET",
|
|
14091
|
-
methodFqn: "wix.viewer.v1.FeatureVibe.GetSaveStatus",
|
|
14092
|
-
migrationOptions: {
|
|
14093
|
-
optInTransformResponse: true
|
|
14094
|
-
},
|
|
14095
|
-
url: resolveWixViewerV1FeatureVibeUrl({
|
|
14096
|
-
protoPath: "/v1/feature-vibe/save-status/{saveId}",
|
|
14097
|
-
data: serializedData,
|
|
14098
|
-
host
|
|
14099
|
-
}),
|
|
14100
|
-
params: (0, metro_runtime_1.toURLSearchParams)(serializedData),
|
|
14101
|
-
transformResponse: fromRes
|
|
14102
|
-
};
|
|
14103
|
-
return metadata;
|
|
14104
|
-
}
|
|
14105
|
-
__getSaveStatus.fromReq = fromReq;
|
|
14106
|
-
__getSaveStatus.__isAmbassador = true;
|
|
14107
|
-
return __getSaveStatus;
|
|
14108
|
-
}
|
|
14109
14067
|
function getProjectStatus(payload) {
|
|
14110
14068
|
var _a = (0, ambassador_1.serializer)(_getProjectStatusRequest, {}), toReq = _a.toJSON, fromReq = _a.fromJSON;
|
|
14111
14069
|
var fromRes = (0, ambassador_1.serializer)(_getProjectStatusResponse, {}).fromJSON;
|
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.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": "
|
|
32
|
+
"falconPackageHash": "d0707b988a7bcb072c5227b3fe1df67a01c1f65f21920bbf300048fd"
|
|
33
33
|
}
|