@wix/ditto-codegen-public 1.0.70 → 1.0.71
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 +17 -0
- package/package.json +2 -2
package/dist/out.js
CHANGED
|
@@ -77023,6 +77023,13 @@ var require_CodeGenService = __commonJS({
|
|
|
77023
77023
|
body: JSON.stringify({ status: TaskStatus.COMPLETED })
|
|
77024
77024
|
});
|
|
77025
77025
|
};
|
|
77026
|
+
this.updateJob = async (jobId, payload) => {
|
|
77027
|
+
await fetch(`${this.baseUrl}/projects/${this.projectId}/jobs/${jobId}`, {
|
|
77028
|
+
method: "PUT",
|
|
77029
|
+
headers: { "Content-Type": "application/json" },
|
|
77030
|
+
body: JSON.stringify({ payload })
|
|
77031
|
+
});
|
|
77032
|
+
};
|
|
77026
77033
|
this.updateTask = async (jobId, taskId, status, payload) => {
|
|
77027
77034
|
await fetch(`${this.baseUrl}/projects/${this.projectId}/jobs/${jobId}/tasks/${taskId}`, {
|
|
77028
77035
|
method: "PUT",
|
|
@@ -138758,6 +138765,7 @@ var require_codegen_flow_helpers = __commonJS({
|
|
|
138758
138765
|
};
|
|
138759
138766
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
138760
138767
|
exports2.setupAgentTaskTracking = setupAgentTaskTracking;
|
|
138768
|
+
exports2.updateJobPayload = updateJobPayload;
|
|
138761
138769
|
exports2.updateParentTaskStatus = updateParentTaskStatus;
|
|
138762
138770
|
exports2.getOutputPath = getOutputPath;
|
|
138763
138771
|
var path_1 = __importDefault2(require("path"));
|
|
@@ -138797,6 +138805,9 @@ var require_codegen_flow_helpers = __commonJS({
|
|
|
138797
138805
|
});
|
|
138798
138806
|
});
|
|
138799
138807
|
}
|
|
138808
|
+
async function updateJobPayload(jobContext, payload) {
|
|
138809
|
+
await __1.codeGenerationService.updateJob(jobContext.jobId, payload);
|
|
138810
|
+
}
|
|
138800
138811
|
async function updateParentTaskStatus(jobContext, status, error) {
|
|
138801
138812
|
await __1.codeGenerationService.updateTask(jobContext.jobId, jobContext.taskId, status, error ? { error: (0, utils_1.serializeError)(error) } : {});
|
|
138802
138813
|
}
|
|
@@ -138839,6 +138850,9 @@ var require_init_codegen = __commonJS({
|
|
|
138839
138850
|
accessToken: context_1.ctx.accessToken
|
|
138840
138851
|
});
|
|
138841
138852
|
await (0, codegen_flow_helpers_1.updateParentTaskStatus)(localJobContext, CodeGenService_1.TaskStatus.COMPLETED);
|
|
138853
|
+
await (0, codegen_flow_helpers_1.updateJobPayload)(localJobContext, {
|
|
138854
|
+
requiredPermissions: ["SCOPE.DC-DATA.DATA-COLLECTIONS-MANAGE"]
|
|
138855
|
+
});
|
|
138842
138856
|
console.log(`[Init] Completed init codegen task: jobId=${localJobContext.jobId}, taskId=${localJobContext.taskId}`);
|
|
138843
138857
|
} catch (error) {
|
|
138844
138858
|
await (0, codegen_flow_helpers_1.updateParentTaskStatus)(localJobContext, CodeGenService_1.TaskStatus.FAILED, error);
|
|
@@ -138881,6 +138895,9 @@ var require_iterate_codegen = __commonJS({
|
|
|
138881
138895
|
accessToken: context_1.ctx.accessToken
|
|
138882
138896
|
});
|
|
138883
138897
|
await (0, codegen_flow_helpers_1.updateParentTaskStatus)(localJobContext, CodeGenService_1.TaskStatus.COMPLETED);
|
|
138898
|
+
await (0, codegen_flow_helpers_1.updateJobPayload)(localJobContext, {
|
|
138899
|
+
requiredPermissions: ["SCOPE.DC-DATA.DATA-COLLECTIONS-MANAGE"]
|
|
138900
|
+
});
|
|
138884
138901
|
console.log(`[Init] Completed iterate codegen task: jobId=${localJobContext.jobId}, taskId=${localJobContext.taskId}`);
|
|
138885
138902
|
} catch (error) {
|
|
138886
138903
|
await (0, codegen_flow_helpers_1.updateParentTaskStatus)(localJobContext, CodeGenService_1.TaskStatus.FAILED, error);
|
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.71",
|
|
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.25.9"
|
|
26
26
|
},
|
|
27
|
-
"falconPackageHash": "
|
|
27
|
+
"falconPackageHash": "8cbdd50fff198d4acdc393fe265661b6227722e854c96f8c21feb25b"
|
|
28
28
|
}
|