@wix/ditto-codegen-public 1.0.511 → 1.0.512
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 +19 -12
- package/package.json +2 -2
package/dist/out.js
CHANGED
|
@@ -128232,17 +128232,24 @@ var require_bi_events = __commonJS({
|
|
|
128232
128232
|
var bi_logger_1 = require_bi_logger2();
|
|
128233
128233
|
var logger_12 = require_logger();
|
|
128234
128234
|
var MAX_JOB_INPUT_LENGTH = 5e3;
|
|
128235
|
+
var MAX_BI_TEXT_LENGTH = 1500;
|
|
128235
128236
|
var TRUNCATION_SUFFIX = "\u2026";
|
|
128236
128237
|
var JOB_STATUS_MAP = {
|
|
128237
128238
|
COMPLETED: "successful",
|
|
128238
128239
|
FAILED: "error",
|
|
128239
128240
|
CANCELLED: "stopped"
|
|
128240
128241
|
};
|
|
128241
|
-
function
|
|
128242
|
-
if (!
|
|
128243
|
-
return
|
|
128242
|
+
function truncateText(text, maxLength) {
|
|
128243
|
+
if (!text || text.length <= maxLength) {
|
|
128244
|
+
return text;
|
|
128244
128245
|
}
|
|
128245
|
-
return
|
|
128246
|
+
return text.slice(0, maxLength - TRUNCATION_SUFFIX.length) + TRUNCATION_SUFFIX;
|
|
128247
|
+
}
|
|
128248
|
+
function truncateJobInput(jobInput) {
|
|
128249
|
+
return truncateText(jobInput, MAX_JOB_INPUT_LENGTH);
|
|
128250
|
+
}
|
|
128251
|
+
function truncateBiText(text) {
|
|
128252
|
+
return truncateText(text, MAX_BI_TEXT_LENGTH);
|
|
128246
128253
|
}
|
|
128247
128254
|
function skillsArrayToMap(skills) {
|
|
128248
128255
|
const map = {};
|
|
@@ -128275,7 +128282,7 @@ var require_bi_events = __commonJS({
|
|
|
128275
128282
|
const codegenAgentParams = {
|
|
128276
128283
|
job_id: report.jobId,
|
|
128277
128284
|
job_input: truncateJobInput(report.jobInput),
|
|
128278
|
-
extra_data: report.extraData,
|
|
128285
|
+
extra_data: truncateBiText(report.extraData),
|
|
128279
128286
|
Job_cost: report.jobCost,
|
|
128280
128287
|
dev_machine_session_id: report.devMachineSessionId,
|
|
128281
128288
|
run_kind: report.runKind,
|
|
@@ -128319,13 +128326,13 @@ var require_bi_events = __commonJS({
|
|
|
128319
128326
|
}
|
|
128320
128327
|
const codegenAgentParams = {
|
|
128321
128328
|
job_id: report.jobId,
|
|
128322
|
-
extra_data: report.extraData,
|
|
128329
|
+
extra_data: truncateBiText(report.extraData),
|
|
128323
128330
|
job_cost: jobCost,
|
|
128324
128331
|
dev_machine_session_id: report.devMachineSessionId,
|
|
128325
128332
|
run_kind: report.runKind,
|
|
128326
128333
|
environment: report.environment,
|
|
128327
128334
|
app_id: report.appId,
|
|
128328
|
-
agent_output: report.agentOutput,
|
|
128335
|
+
agent_output: truncateBiText(report.agentOutput),
|
|
128329
128336
|
job_status: report.taskStatus ? JOB_STATUS_MAP[report.taskStatus] ?? report.taskStatus : void 0,
|
|
128330
128337
|
job_skills_used: report.skillsUsed ? skillsArrayToMap(report.skillsUsed) : void 0,
|
|
128331
128338
|
job_extensions_created: report.extensionsCreated ? JSON.stringify(report.extensionsCreated) : void 0,
|
|
@@ -128372,14 +128379,14 @@ var require_bi_events = __commonJS({
|
|
|
128372
128379
|
run_kind: report.runKind,
|
|
128373
128380
|
environment: report.environment,
|
|
128374
128381
|
app_id: report.appId,
|
|
128375
|
-
agent_output: report.agentOutput,
|
|
128376
|
-
error_desc: report.errorDesc,
|
|
128377
|
-
error_massage: report.errorMessage,
|
|
128382
|
+
agent_output: truncateBiText(report.agentOutput),
|
|
128383
|
+
error_desc: truncateBiText(report.errorDesc),
|
|
128384
|
+
error_massage: truncateBiText(report.errorMessage),
|
|
128378
128385
|
validation_type: report.validationType,
|
|
128379
|
-
error_json: report.errorJson,
|
|
128386
|
+
error_json: truncateBiText(report.errorJson),
|
|
128380
128387
|
is_retryble: report.isRetryable !== void 0 ? String(report.isRetryable) : void 0,
|
|
128381
128388
|
is_expected: report.isExpected,
|
|
128382
|
-
extra_data: report.extraData,
|
|
128389
|
+
extra_data: truncateBiText(report.extraData),
|
|
128383
128390
|
msid: report.msid
|
|
128384
128391
|
};
|
|
128385
128392
|
logger_12.logger.info("Reporting BI event 305 (generic session error)", codegenAgentParams);
|
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.512",
|
|
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": "adce33453d39e7960ea64bf607569f2b875370e6b4457124d43f9adb"
|
|
33
33
|
}
|