@wix/ditto-codegen-public 1.0.511 → 1.0.513
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 +21 -13
- package/package.json +2 -2
package/dist/out.js
CHANGED
|
@@ -15657,7 +15657,7 @@ var require_config = __commonJS({
|
|
|
15657
15657
|
}
|
|
15658
15658
|
return provider;
|
|
15659
15659
|
}
|
|
15660
|
-
exports2.WIX_MCP_VERSION = "1.0.
|
|
15660
|
+
exports2.WIX_MCP_VERSION = "1.0.100";
|
|
15661
15661
|
exports2.WIX_MCP_DISABLED_TOOLS = [
|
|
15662
15662
|
"CheckDomainAvailability",
|
|
15663
15663
|
"CreateSiteFromTemplate",
|
|
@@ -15671,6 +15671,7 @@ var require_config = __commonJS({
|
|
|
15671
15671
|
"SearchWixAPISpec",
|
|
15672
15672
|
"StartDeployWebsite",
|
|
15673
15673
|
"StartHeadlessBuild",
|
|
15674
|
+
"StartStudioTwoSite",
|
|
15674
15675
|
"UploadHeadlessWebsiteFiles",
|
|
15675
15676
|
"UploadImageToWixSite",
|
|
15676
15677
|
"WixHarmonyEditorBuild",
|
|
@@ -128232,17 +128233,24 @@ var require_bi_events = __commonJS({
|
|
|
128232
128233
|
var bi_logger_1 = require_bi_logger2();
|
|
128233
128234
|
var logger_12 = require_logger();
|
|
128234
128235
|
var MAX_JOB_INPUT_LENGTH = 5e3;
|
|
128236
|
+
var MAX_BI_TEXT_LENGTH = 1500;
|
|
128235
128237
|
var TRUNCATION_SUFFIX = "\u2026";
|
|
128236
128238
|
var JOB_STATUS_MAP = {
|
|
128237
128239
|
COMPLETED: "successful",
|
|
128238
128240
|
FAILED: "error",
|
|
128239
128241
|
CANCELLED: "stopped"
|
|
128240
128242
|
};
|
|
128241
|
-
function
|
|
128242
|
-
if (!
|
|
128243
|
-
return
|
|
128243
|
+
function truncateText(text, maxLength) {
|
|
128244
|
+
if (!text || text.length <= maxLength) {
|
|
128245
|
+
return text;
|
|
128244
128246
|
}
|
|
128245
|
-
return
|
|
128247
|
+
return text.slice(0, maxLength - TRUNCATION_SUFFIX.length) + TRUNCATION_SUFFIX;
|
|
128248
|
+
}
|
|
128249
|
+
function truncateJobInput(jobInput) {
|
|
128250
|
+
return truncateText(jobInput, MAX_JOB_INPUT_LENGTH);
|
|
128251
|
+
}
|
|
128252
|
+
function truncateBiText(text) {
|
|
128253
|
+
return truncateText(text, MAX_BI_TEXT_LENGTH);
|
|
128246
128254
|
}
|
|
128247
128255
|
function skillsArrayToMap(skills) {
|
|
128248
128256
|
const map = {};
|
|
@@ -128275,7 +128283,7 @@ var require_bi_events = __commonJS({
|
|
|
128275
128283
|
const codegenAgentParams = {
|
|
128276
128284
|
job_id: report.jobId,
|
|
128277
128285
|
job_input: truncateJobInput(report.jobInput),
|
|
128278
|
-
extra_data: report.extraData,
|
|
128286
|
+
extra_data: truncateBiText(report.extraData),
|
|
128279
128287
|
Job_cost: report.jobCost,
|
|
128280
128288
|
dev_machine_session_id: report.devMachineSessionId,
|
|
128281
128289
|
run_kind: report.runKind,
|
|
@@ -128319,13 +128327,13 @@ var require_bi_events = __commonJS({
|
|
|
128319
128327
|
}
|
|
128320
128328
|
const codegenAgentParams = {
|
|
128321
128329
|
job_id: report.jobId,
|
|
128322
|
-
extra_data: report.extraData,
|
|
128330
|
+
extra_data: truncateBiText(report.extraData),
|
|
128323
128331
|
job_cost: jobCost,
|
|
128324
128332
|
dev_machine_session_id: report.devMachineSessionId,
|
|
128325
128333
|
run_kind: report.runKind,
|
|
128326
128334
|
environment: report.environment,
|
|
128327
128335
|
app_id: report.appId,
|
|
128328
|
-
agent_output: report.agentOutput,
|
|
128336
|
+
agent_output: truncateBiText(report.agentOutput),
|
|
128329
128337
|
job_status: report.taskStatus ? JOB_STATUS_MAP[report.taskStatus] ?? report.taskStatus : void 0,
|
|
128330
128338
|
job_skills_used: report.skillsUsed ? skillsArrayToMap(report.skillsUsed) : void 0,
|
|
128331
128339
|
job_extensions_created: report.extensionsCreated ? JSON.stringify(report.extensionsCreated) : void 0,
|
|
@@ -128372,14 +128380,14 @@ var require_bi_events = __commonJS({
|
|
|
128372
128380
|
run_kind: report.runKind,
|
|
128373
128381
|
environment: report.environment,
|
|
128374
128382
|
app_id: report.appId,
|
|
128375
|
-
agent_output: report.agentOutput,
|
|
128376
|
-
error_desc: report.errorDesc,
|
|
128377
|
-
error_massage: report.errorMessage,
|
|
128383
|
+
agent_output: truncateBiText(report.agentOutput),
|
|
128384
|
+
error_desc: truncateBiText(report.errorDesc),
|
|
128385
|
+
error_massage: truncateBiText(report.errorMessage),
|
|
128378
128386
|
validation_type: report.validationType,
|
|
128379
|
-
error_json: report.errorJson,
|
|
128387
|
+
error_json: truncateBiText(report.errorJson),
|
|
128380
128388
|
is_retryble: report.isRetryable !== void 0 ? String(report.isRetryable) : void 0,
|
|
128381
128389
|
is_expected: report.isExpected,
|
|
128382
|
-
extra_data: report.extraData,
|
|
128390
|
+
extra_data: truncateBiText(report.extraData),
|
|
128383
128391
|
msid: report.msid
|
|
128384
128392
|
};
|
|
128385
128393
|
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.513",
|
|
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": "475e2a29b1f4beda4c171471b7e732f3809db39c0b31da65ca9a9752"
|
|
33
33
|
}
|