@wix/ditto-codegen-public 1.0.266 → 1.0.267

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.
Files changed (2) hide show
  1. package/dist/out.js +1792 -47
  2. package/package.json +2 -2
package/dist/out.js CHANGED
@@ -49014,6 +49014,7 @@ var require_task_tracker = __commonJS({
49014
49014
  this.taskCounter = 0;
49015
49015
  this.codeSearchTaskCreated = false;
49016
49016
  this.docSearchTaskCreated = false;
49017
+ this.skillsUsed = /* @__PURE__ */ new Set();
49017
49018
  this.trackToolCategories = options?.trackToolCategories ?? false;
49018
49019
  }
49019
49020
  getJobContext() {
@@ -49110,6 +49111,7 @@ var require_task_tracker = __commonJS({
49110
49111
  }
49111
49112
  async handleSkillEvent(state) {
49112
49113
  const skillName = state.title?.replace("Loaded skill: ", "") || "unknown";
49114
+ this.skillsUsed.add(skillName);
49113
49115
  logger_12.logger.info("[OpenCode] Loaded skill", { skillName });
49114
49116
  }
49115
49117
  async handleToolCategoryEvent(tool2) {
@@ -49148,6 +49150,9 @@ var require_task_tracker = __commonJS({
49148
49150
  });
49149
49151
  }
49150
49152
  }
49153
+ getSkillsUsed() {
49154
+ return Array.from(this.skillsUsed);
49155
+ }
49151
49156
  async completeRemainingTasks() {
49152
49157
  const jobContext = this.getJobContext();
49153
49158
  if (!jobContext)
@@ -49269,7 +49274,8 @@ var require_result_builder = __commonJS({
49269
49274
  durationMs: Date.now() - startTime,
49270
49275
  requiredPermissions: [],
49271
49276
  filesChanged: (0, parser_1.parseFilesChanged)(stdout),
49272
- usage: (0, parser_1.parseUsageStats)(stdout)
49277
+ usage: (0, parser_1.parseUsageStats)(stdout),
49278
+ skillsUsed: []
49273
49279
  };
49274
49280
  }
49275
49281
  function createSuccessResult(code, stdout, stderr, startTime) {
@@ -49286,7 +49292,8 @@ var require_result_builder = __commonJS({
49286
49292
  durationMs: Date.now() - startTime,
49287
49293
  requiredPermissions: (0, parser_1.parseRequiredPermissions)(stdout),
49288
49294
  filesChanged: (0, parser_1.parseFilesChanged)(stdout),
49289
- usage: (0, parser_1.parseUsageStats)(stdout)
49295
+ usage: (0, parser_1.parseUsageStats)(stdout),
49296
+ skillsUsed: []
49290
49297
  };
49291
49298
  }
49292
49299
  function createSpawnErrorResult(errorMessage, stdout, stderr, startTime) {
@@ -49302,7 +49309,8 @@ var require_result_builder = __commonJS({
49302
49309
  durationMs: Date.now() - startTime,
49303
49310
  requiredPermissions: [],
49304
49311
  filesChanged: [],
49305
- usage: (0, parser_1.createEmptyUsageStats)()
49312
+ usage: (0, parser_1.createEmptyUsageStats)(),
49313
+ skillsUsed: []
49306
49314
  };
49307
49315
  }
49308
49316
  }
@@ -49411,6 +49419,7 @@ var require_executor = __commonJS({
49411
49419
  let lastResult = null;
49412
49420
  let accumulatedStdout = "";
49413
49421
  let accumulatedUsage = (0, parser_1.createEmptyUsageStats)();
49422
+ const accumulatedSkills = [];
49414
49423
  let currentPrompt = options.prompt;
49415
49424
  for (let attempt = 1; attempt <= MAX_RETRIES; attempt++) {
49416
49425
  if (attempt > 1) {
@@ -49421,13 +49430,15 @@ var require_executor = __commonJS({
49421
49430
  const result = await executeOpenCodeOnce({ ...options, prompt: currentPrompt }, attempt);
49422
49431
  accumulatedStdout += result.stdout;
49423
49432
  accumulatedUsage = (0, parser_1.mergeUsageStats)(accumulatedUsage, result.usage);
49433
+ accumulatedSkills.push(...result.skillsUsed);
49424
49434
  const errorMsg = result.error?.message.toLowerCase() ?? "";
49425
49435
  const isRetryableFailure = !result.success && errorMsg.includes("idle timeout");
49426
49436
  if (result.success || !isRetryableFailure) {
49427
49437
  const finalResult2 = {
49428
49438
  ...result,
49429
49439
  filesChanged: (0, parser_1.parseFilesChanged)(accumulatedStdout),
49430
- usage: accumulatedUsage
49440
+ usage: accumulatedUsage,
49441
+ skillsUsed: accumulatedSkills
49431
49442
  };
49432
49443
  logger_12.logger.info((0, parser_1.formatUsageStats)(finalResult2.usage));
49433
49444
  return finalResult2;
@@ -49444,7 +49455,8 @@ var require_executor = __commonJS({
49444
49455
  const finalResult = {
49445
49456
  ...lastResult,
49446
49457
  filesChanged: (0, parser_1.parseFilesChanged)(accumulatedStdout),
49447
- usage: accumulatedUsage
49458
+ usage: accumulatedUsage,
49459
+ skillsUsed: Array.from(accumulatedSkills)
49448
49460
  };
49449
49461
  logger_12.logger.info((0, parser_1.formatUsageStats)(finalResult.usage));
49450
49462
  return finalResult;
@@ -49480,6 +49492,7 @@ var require_executor = __commonJS({
49480
49492
  } else {
49481
49493
  await taskTracker.failRemainingTasks(result.error?.message || "Code generation failed");
49482
49494
  }
49495
+ result.skillsUsed = taskTracker.getSkillsUsed();
49483
49496
  resolve3(result);
49484
49497
  };
49485
49498
  const ctx = {
@@ -49523,7 +49536,8 @@ var require_executor = __commonJS({
49523
49536
  durationMs: Date.now() - startTime,
49524
49537
  requiredPermissions: [],
49525
49538
  filesChanged: [],
49526
- usage: (0, parser_1.createEmptyUsageStats)()
49539
+ usage: (0, parser_1.createEmptyUsageStats)(),
49540
+ skillsUsed: []
49527
49541
  });
49528
49542
  }
49529
49543
  });
@@ -49654,7 +49668,9 @@ var require_OpenCodeOrchestrator = __commonJS({
49654
49668
  this.emitEvent("finish", { outputPath, durationMs });
49655
49669
  return {
49656
49670
  requiredPermissions: result.requiredPermissions,
49657
- filesChanged: result.filesChanged
49671
+ filesChanged: result.filesChanged,
49672
+ usage: result.usage,
49673
+ skillsUsed: result.skillsUsed
49658
49674
  };
49659
49675
  }
49660
49676
  };
@@ -94923,6 +94939,1651 @@ var require_codegen_flow_helpers = __commonJS({
94923
94939
  }
94924
94940
  });
94925
94941
 
94942
+ // ../../node_modules/@wix/bi-logger-dev-tools-data/dist/cjs/v2/index.js
94943
+ var require_v2 = __commonJS({
94944
+ "../../node_modules/@wix/bi-logger-dev-tools-data/dist/cjs/v2/index.js"(exports2) {
94945
+ "use strict";
94946
+ Object.defineProperty(exports2, "__esModule", { value: true });
94947
+ exports2.ciPoliceTicketPageLoad = exports2.arkNewProjectOnboarded = exports2.arkGradualRolloutEnded = exports2.arkGradualRolloutStepChanged = exports2.arkGradualRolloutStarted = exports2.wixStandardsBotWeeklyAlertMessageButtonActionSrc11Evid3404 = exports2.wixStandardsBotWeeklyViolationAlertMessageWasSentSrc11Evid3403 = exports2.wixStandardsBotWeeklyAlertMessageWasSentSrc11Evid3402 = exports2.weeklyStatusReport = exports2.wixStandardsOptOutRequestsApplicationActionSrc11Evid3345 = exports2.wixStandardsOptOutRequestsApplicationClickSrc11Evid3344 = exports2.wixStandardsProjectWasRejectedAndNotAddedToTheIgnoreListSrc11Evid3332 = exports2.wixStandardsEmergencyOptOutPopupMessageSrc11Evid3326 = exports2.executiveSummaryChangeTeamSrc11Evid3325 = exports2.executiveSummaryCustomTimeRangeSrc11Evid3324 = exports2.executiveSummaryCommitToDeadlineSrc11Evid3323 = exports2.executiveSummaryMovingBetweenTabsSrc11Evid3322 = exports2.executiveSummaryEnterOverviewSrc11Evid3321 = exports2.executiveSummaryEmailSentSrc11Evid3320 = exports2.violationsDeadlineSrc11Evid3319 = exports2.ciPoliceNumberOfTargets = exports2.ruleStatusChanged = exports2.wixStandardsInitialExtensionWasAddedSrc11Evid3316 = exports2.weeklyReportButtonAction = exports2.viewPrButtonClick = exports2.autofixReportSent = exports2.fixButtonClicked = exports2.deadlineAlert = exports2.wixStandardsEndFalconRunTimeExperimentSrc11Evid33101 = exports2.wixStandardsStartFalconRunTimeExperimentSrc11Evid33100 = exports2.projectPerformedEmergencyOptOutOfRule = exports2.ciPoliceDeadlineSchedule = exports2.ruleBuildBreakingScheduled = exports2.ruleShouldSendAlertsToggled = exports2.projectRemovedFromIgnoreList = exports2.ruleResultReported = exports2.ruleDryRunChanged = exports2.projectAddedToIgnoreList = exports2.projectResultReported = exports2.reviewEnrichmentCompletedSrc11Evid15002 = exports2.gitHubActionAiPrReviewWasCalledSrc11Evid15001 = exports2.fetchFallback = exports2.wixCliAppFlowAppTemplateSelections = exports2.panoramaAlertUserMark = exports2.panoramaButtonAction = exports2.panoramaPageVisit = exports2.panoramaEnableDisableAlertsSrc11Evid104503 = exports2.panoramaSlackButtonAction = exports2.panoramaAlertSent = exports2.panoramaNewTransaction = void 0;
94948
+ exports2.wixCliAppsFlowDeploymentRequestSrc11Evid5234 = exports2.wixCliAppsFlowTunnelCreationStatusSrc11Evid5233 = exports2.wixCliAppsFlowDeploymentStatusSrc11Evid5232 = exports2.wixCliAction = exports2.wixCliCliError = exports2.wixCliAppFlowStepsAnswers = exports2.wixCliAppFlowExtensionGenerationExtensionWasAdded = exports2.wixCliAppFlowDevelopmentSiteSiteSelectorAborted = exports2.wixCliAppFlowDevelopmentSiteDevelopmentSiteSet = exports2.wixCliAppFlowDevelopmentSiteAppInstallationOnDevelopmentSiteEnd = exports2.wixCliAppFlowDevelopmentSiteAppInstallationOnDevelopmentSiteStart = exports2.wixCliAppFlowDevelopmentSiteExistingSiteSelected = exports2.wixCliAppFlowDevelopmentSiteNewDevelopmentSiteCreationEnd = exports2.wixCliAppFlowDevelopmentSiteNewDevelopmentSiteCreationStart = exports2.wixCliAppFlowDevelopmentSiteTypeOfDevelopmentSiteSelected = exports2.wixCliAppFlowDevelopmentSiteSiteSelectorOpened = exports2.wixCliAppFlowComponentInstalledInTheApp = exports2.wixCliAppFlowAppGenerationAppGenerationEnd = exports2.wixCliAppFlowAppGenerationExistingAppSelected = exports2.wixCliAppFlowAppGenerationNewAppRegistrationEnd = exports2.wixCliAppFlowAppGenerationNewAppNameEntered = exports2.wixCliAppFlowAppGenerationTypeOfCreationSelected = exports2.wixCliLoginEnd = exports2.wixCliLoginStart = exports2.wixCliAppFlowUploadEnded = exports2.wixCliAppFlowZipUploadDone = exports2.wixCliAppFlowFileUploadStarted = exports2.wixCliReadyForReloadAfterCodeChange = exports2.wixCliUserResponseToCliMessage = exports2.wixCliCliMessageDisplayed = exports2.wixCliCodeHasBeenChanged = exports2.wixCliFileFolderCreatedRenamedDeleted = exports2.wixCliCliCommandStatus = exports2.wixCliCliCommand = exports2.autofixPrMerged = exports2.arkProjectOptedIn = exports2.arkProjectOptedOut = exports2.lokiScheduleChanged = exports2.lokiUpdateSkipped = exports2.lokiUpdateMerged = exports2.lokiUpdatePrResult = exports2.lokiUpdatePrOpened = exports2.lokiRepoUpdateCreated = exports2.wixStandardsTicketEmergencyOptOutDialogOpenSrc11Evid3633 = exports2.ciPoliceMsTrackerButtonAction = exports2.ciPoliceMsTrackerOptOutDialogRulesAndProjects = exports2.ciPoliceMsTrackerOptOutDialog = exports2.emergencyOptOutDialogAction = exports2.ciPoliceTicketRuleButtonAction = exports2.ciPoliceTicketProjectButtonAction = void 0;
94949
+ exports2.dpKbMcpServerCallSrc39Evid1996 = exports2.chatGptWixAppActionSrc39Evid1609 = exports2.devibeChatWidgetLoadedSrc196Evid8 = exports2.devibeEarlierAppCheckpointActionCompletedSrc196Evid7 = exports2.devibeAppCheckpointCreatedSrc196Evid6 = exports2.devibeErrorSrc196Evid5 = exports2.devibeBlueprintVersionReadySrc196Evid4 = exports2.devibePageFinishLoadingSrc196Evid3 = exports2.devibeCodegenAgentSessionErrorSrc196Evid202 = exports2.devibeCodegenAgentSessionEndSrc196Evid201 = exports2.devibeCodegenAgentSessionStartSrc196Evid200 = exports2.devibePageStartLoadingSrc196Evid2 = exports2.devibeErrorPageShownSrc196Evid15 = exports2.devibeLandedOnWorksapceSrc196Evid13 = exports2.devibeUserClickSrc196Evid10 = exports2.perferBundleResult = exports2.perferTestResult = exports2.yoshiReadyForReloadAfterCodeChange = exports2.yoshiCodeChangeDetected = exports2.yoshiTestsRunEnd = exports2.yoshiTestsRunStart = exports2.yoshiYarnStartFinished = exports2.buildEnd = exports2.createProject = exports2.startInit = exports2.buildStart = exports2.perferResetArtifactSBaseline = exports2.perferClickOnResetArtifactSBaselineButton = exports2.perferReportOpened = exports2.perferTestEnded = exports2.perferTestStarted = exports2.perferMetricResult = exports2.perferRunResult = exports2.perferTestCaseResult = exports2.perferRunFinished = exports2.perferRunStart = exports2.sledMergeQueueRunSrc11Evid90600 = exports2.sledMergeQueueManualClickSrc11Evid90599 = exports2.arkSlackAlertSent = exports2.wixCliAppFlowAppCloudServerUploadedSrc11Evid5235 = void 0;
94950
+ function panoramaNewTransaction(params) {
94951
+ return { evid: 104401, src: 11, endpoint: "", params };
94952
+ }
94953
+ exports2.panoramaNewTransaction = panoramaNewTransaction;
94954
+ function panoramaAlertSent(params) {
94955
+ return { evid: 104501, src: 11, endpoint: "", params };
94956
+ }
94957
+ exports2.panoramaAlertSent = panoramaAlertSent;
94958
+ function panoramaSlackButtonAction(params) {
94959
+ return { evid: 104502, src: 11, endpoint: "", params };
94960
+ }
94961
+ exports2.panoramaSlackButtonAction = panoramaSlackButtonAction;
94962
+ function panoramaEnableDisableAlertsSrc11Evid104503(params) {
94963
+ return { evid: 104503, src: 11, endpoint: "", params };
94964
+ }
94965
+ exports2.panoramaEnableDisableAlertsSrc11Evid104503 = panoramaEnableDisableAlertsSrc11Evid104503;
94966
+ function panoramaPageVisit(params) {
94967
+ return { evid: 104601, src: 11, endpoint: "", params };
94968
+ }
94969
+ exports2.panoramaPageVisit = panoramaPageVisit;
94970
+ function panoramaButtonAction(params) {
94971
+ return { evid: 104602, src: 11, endpoint: "", params };
94972
+ }
94973
+ exports2.panoramaButtonAction = panoramaButtonAction;
94974
+ function panoramaAlertUserMark(params) {
94975
+ return { evid: 105501, src: 11, endpoint: "", params };
94976
+ }
94977
+ exports2.panoramaAlertUserMark = panoramaAlertUserMark;
94978
+ function wixCliAppFlowAppTemplateSelections(params) {
94979
+ return { evid: 114003, src: 11, endpoint: "", params };
94980
+ }
94981
+ exports2.wixCliAppFlowAppTemplateSelections = wixCliAppFlowAppTemplateSelections;
94982
+ function fetchFallback(params) {
94983
+ return { evid: 114700, src: 11, endpoint: "", params };
94984
+ }
94985
+ exports2.fetchFallback = fetchFallback;
94986
+ function gitHubActionAiPrReviewWasCalledSrc11Evid15001(params) {
94987
+ return { evid: 15001, src: 11, endpoint: "", params };
94988
+ }
94989
+ exports2.gitHubActionAiPrReviewWasCalledSrc11Evid15001 = gitHubActionAiPrReviewWasCalledSrc11Evid15001;
94990
+ function reviewEnrichmentCompletedSrc11Evid15002(params) {
94991
+ return { evid: 15002, src: 11, endpoint: "", params };
94992
+ }
94993
+ exports2.reviewEnrichmentCompletedSrc11Evid15002 = reviewEnrichmentCompletedSrc11Evid15002;
94994
+ function projectResultReported(params) {
94995
+ return { evid: 3301, src: 11, endpoint: "", params };
94996
+ }
94997
+ exports2.projectResultReported = projectResultReported;
94998
+ function projectAddedToIgnoreList(params) {
94999
+ return { evid: 3302, src: 11, endpoint: "", params };
95000
+ }
95001
+ exports2.projectAddedToIgnoreList = projectAddedToIgnoreList;
95002
+ function ruleDryRunChanged(params) {
95003
+ return { evid: 3303, src: 11, endpoint: "", params };
95004
+ }
95005
+ exports2.ruleDryRunChanged = ruleDryRunChanged;
95006
+ function ruleResultReported(params) {
95007
+ return { evid: 3304, src: 11, endpoint: "", params };
95008
+ }
95009
+ exports2.ruleResultReported = ruleResultReported;
95010
+ function projectRemovedFromIgnoreList(params) {
95011
+ return { evid: 3306, src: 11, endpoint: "", params };
95012
+ }
95013
+ exports2.projectRemovedFromIgnoreList = projectRemovedFromIgnoreList;
95014
+ function ruleShouldSendAlertsToggled(params) {
95015
+ return { evid: 3307, src: 11, endpoint: "", params };
95016
+ }
95017
+ exports2.ruleShouldSendAlertsToggled = ruleShouldSendAlertsToggled;
95018
+ function ruleBuildBreakingScheduled(params) {
95019
+ return { evid: 3308, src: 11, endpoint: "", params };
95020
+ }
95021
+ exports2.ruleBuildBreakingScheduled = ruleBuildBreakingScheduled;
95022
+ function ciPoliceDeadlineSchedule(params) {
95023
+ return { evid: 3309, src: 11, endpoint: "", params };
95024
+ }
95025
+ exports2.ciPoliceDeadlineSchedule = ciPoliceDeadlineSchedule;
95026
+ function projectPerformedEmergencyOptOutOfRule(params) {
95027
+ return { evid: 3310, src: 11, endpoint: "", params };
95028
+ }
95029
+ exports2.projectPerformedEmergencyOptOutOfRule = projectPerformedEmergencyOptOutOfRule;
95030
+ function wixStandardsStartFalconRunTimeExperimentSrc11Evid33100(params) {
95031
+ return { evid: 33100, src: 11, endpoint: "", params };
95032
+ }
95033
+ exports2.wixStandardsStartFalconRunTimeExperimentSrc11Evid33100 = wixStandardsStartFalconRunTimeExperimentSrc11Evid33100;
95034
+ function wixStandardsEndFalconRunTimeExperimentSrc11Evid33101(params) {
95035
+ return { evid: 33101, src: 11, endpoint: "", params };
95036
+ }
95037
+ exports2.wixStandardsEndFalconRunTimeExperimentSrc11Evid33101 = wixStandardsEndFalconRunTimeExperimentSrc11Evid33101;
95038
+ function deadlineAlert(params) {
95039
+ return { evid: 3311, src: 11, endpoint: "", params };
95040
+ }
95041
+ exports2.deadlineAlert = deadlineAlert;
95042
+ function fixButtonClicked(params) {
95043
+ return { evid: 3312, src: 11, endpoint: "", params };
95044
+ }
95045
+ exports2.fixButtonClicked = fixButtonClicked;
95046
+ function autofixReportSent(params) {
95047
+ return { evid: 3313, src: 11, endpoint: "", params };
95048
+ }
95049
+ exports2.autofixReportSent = autofixReportSent;
95050
+ function viewPrButtonClick(params) {
95051
+ return { evid: 3314, src: 11, endpoint: "", params };
95052
+ }
95053
+ exports2.viewPrButtonClick = viewPrButtonClick;
95054
+ function weeklyReportButtonAction(params) {
95055
+ return { evid: 3315, src: 11, endpoint: "", params };
95056
+ }
95057
+ exports2.weeklyReportButtonAction = weeklyReportButtonAction;
95058
+ function wixStandardsInitialExtensionWasAddedSrc11Evid3316(params) {
95059
+ return { evid: 3316, src: 11, endpoint: "", params };
95060
+ }
95061
+ exports2.wixStandardsInitialExtensionWasAddedSrc11Evid3316 = wixStandardsInitialExtensionWasAddedSrc11Evid3316;
95062
+ function ruleStatusChanged(params) {
95063
+ return { evid: 3317, src: 11, endpoint: "", params };
95064
+ }
95065
+ exports2.ruleStatusChanged = ruleStatusChanged;
95066
+ function ciPoliceNumberOfTargets(params) {
95067
+ return { evid: 3318, src: 11, endpoint: "", params };
95068
+ }
95069
+ exports2.ciPoliceNumberOfTargets = ciPoliceNumberOfTargets;
95070
+ function violationsDeadlineSrc11Evid3319(params) {
95071
+ return { evid: 3319, src: 11, endpoint: "", params };
95072
+ }
95073
+ exports2.violationsDeadlineSrc11Evid3319 = violationsDeadlineSrc11Evid3319;
95074
+ function executiveSummaryEmailSentSrc11Evid3320(params) {
95075
+ return { evid: 3320, src: 11, endpoint: "", params };
95076
+ }
95077
+ exports2.executiveSummaryEmailSentSrc11Evid3320 = executiveSummaryEmailSentSrc11Evid3320;
95078
+ function executiveSummaryEnterOverviewSrc11Evid3321(params) {
95079
+ return { evid: 3321, src: 11, endpoint: "", params };
95080
+ }
95081
+ exports2.executiveSummaryEnterOverviewSrc11Evid3321 = executiveSummaryEnterOverviewSrc11Evid3321;
95082
+ function executiveSummaryMovingBetweenTabsSrc11Evid3322(params) {
95083
+ return { evid: 3322, src: 11, endpoint: "", params };
95084
+ }
95085
+ exports2.executiveSummaryMovingBetweenTabsSrc11Evid3322 = executiveSummaryMovingBetweenTabsSrc11Evid3322;
95086
+ function executiveSummaryCommitToDeadlineSrc11Evid3323(params) {
95087
+ return { evid: 3323, src: 11, endpoint: "", params };
95088
+ }
95089
+ exports2.executiveSummaryCommitToDeadlineSrc11Evid3323 = executiveSummaryCommitToDeadlineSrc11Evid3323;
95090
+ function executiveSummaryCustomTimeRangeSrc11Evid3324(params) {
95091
+ return { evid: 3324, src: 11, endpoint: "", params };
95092
+ }
95093
+ exports2.executiveSummaryCustomTimeRangeSrc11Evid3324 = executiveSummaryCustomTimeRangeSrc11Evid3324;
95094
+ function executiveSummaryChangeTeamSrc11Evid3325(params) {
95095
+ return { evid: 3325, src: 11, endpoint: "", params };
95096
+ }
95097
+ exports2.executiveSummaryChangeTeamSrc11Evid3325 = executiveSummaryChangeTeamSrc11Evid3325;
95098
+ function wixStandardsEmergencyOptOutPopupMessageSrc11Evid3326(params) {
95099
+ return { evid: 3326, src: 11, endpoint: "", params };
95100
+ }
95101
+ exports2.wixStandardsEmergencyOptOutPopupMessageSrc11Evid3326 = wixStandardsEmergencyOptOutPopupMessageSrc11Evid3326;
95102
+ function wixStandardsProjectWasRejectedAndNotAddedToTheIgnoreListSrc11Evid3332(params) {
95103
+ return { evid: 3332, src: 11, endpoint: "", params };
95104
+ }
95105
+ exports2.wixStandardsProjectWasRejectedAndNotAddedToTheIgnoreListSrc11Evid3332 = wixStandardsProjectWasRejectedAndNotAddedToTheIgnoreListSrc11Evid3332;
95106
+ function wixStandardsOptOutRequestsApplicationClickSrc11Evid3344(params) {
95107
+ return { evid: 3344, src: 11, endpoint: "", params };
95108
+ }
95109
+ exports2.wixStandardsOptOutRequestsApplicationClickSrc11Evid3344 = wixStandardsOptOutRequestsApplicationClickSrc11Evid3344;
95110
+ function wixStandardsOptOutRequestsApplicationActionSrc11Evid3345(params) {
95111
+ return { evid: 3345, src: 11, endpoint: "", params };
95112
+ }
95113
+ exports2.wixStandardsOptOutRequestsApplicationActionSrc11Evid3345 = wixStandardsOptOutRequestsApplicationActionSrc11Evid3345;
95114
+ function weeklyStatusReport(params) {
95115
+ return { evid: 3401, src: 11, endpoint: "", params };
95116
+ }
95117
+ exports2.weeklyStatusReport = weeklyStatusReport;
95118
+ function wixStandardsBotWeeklyAlertMessageWasSentSrc11Evid3402(params) {
95119
+ return { evid: 3402, src: 11, endpoint: "", params };
95120
+ }
95121
+ exports2.wixStandardsBotWeeklyAlertMessageWasSentSrc11Evid3402 = wixStandardsBotWeeklyAlertMessageWasSentSrc11Evid3402;
95122
+ function wixStandardsBotWeeklyViolationAlertMessageWasSentSrc11Evid3403(params) {
95123
+ return { evid: 3403, src: 11, endpoint: "", params };
95124
+ }
95125
+ exports2.wixStandardsBotWeeklyViolationAlertMessageWasSentSrc11Evid3403 = wixStandardsBotWeeklyViolationAlertMessageWasSentSrc11Evid3403;
95126
+ function wixStandardsBotWeeklyAlertMessageButtonActionSrc11Evid3404(params) {
95127
+ return { evid: 3404, src: 11, endpoint: "", params };
95128
+ }
95129
+ exports2.wixStandardsBotWeeklyAlertMessageButtonActionSrc11Evid3404 = wixStandardsBotWeeklyAlertMessageButtonActionSrc11Evid3404;
95130
+ function arkGradualRolloutStarted(params) {
95131
+ return { evid: 3604, src: 11, endpoint: "", params };
95132
+ }
95133
+ exports2.arkGradualRolloutStarted = arkGradualRolloutStarted;
95134
+ function arkGradualRolloutStepChanged(params) {
95135
+ return { evid: 3605, src: 11, endpoint: "", params };
95136
+ }
95137
+ exports2.arkGradualRolloutStepChanged = arkGradualRolloutStepChanged;
95138
+ function arkGradualRolloutEnded(params) {
95139
+ return { evid: 3606, src: 11, endpoint: "", params };
95140
+ }
95141
+ exports2.arkGradualRolloutEnded = arkGradualRolloutEnded;
95142
+ function arkNewProjectOnboarded(params) {
95143
+ return { evid: 3608, src: 11, endpoint: "", params };
95144
+ }
95145
+ exports2.arkNewProjectOnboarded = arkNewProjectOnboarded;
95146
+ function ciPoliceTicketPageLoad(params) {
95147
+ return { evid: 3620, src: 11, endpoint: "", params };
95148
+ }
95149
+ exports2.ciPoliceTicketPageLoad = ciPoliceTicketPageLoad;
95150
+ function ciPoliceTicketProjectButtonAction(params) {
95151
+ return { evid: 3627, src: 11, endpoint: "", params };
95152
+ }
95153
+ exports2.ciPoliceTicketProjectButtonAction = ciPoliceTicketProjectButtonAction;
95154
+ function ciPoliceTicketRuleButtonAction(params) {
95155
+ return { evid: 3628, src: 11, endpoint: "", params };
95156
+ }
95157
+ exports2.ciPoliceTicketRuleButtonAction = ciPoliceTicketRuleButtonAction;
95158
+ function emergencyOptOutDialogAction(params) {
95159
+ return { evid: 3629, src: 11, endpoint: "", params };
95160
+ }
95161
+ exports2.emergencyOptOutDialogAction = emergencyOptOutDialogAction;
95162
+ function ciPoliceMsTrackerOptOutDialog(params) {
95163
+ return { evid: 3630, src: 11, endpoint: "", params };
95164
+ }
95165
+ exports2.ciPoliceMsTrackerOptOutDialog = ciPoliceMsTrackerOptOutDialog;
95166
+ function ciPoliceMsTrackerOptOutDialogRulesAndProjects(params) {
95167
+ return { evid: 3631, src: 11, endpoint: "", params };
95168
+ }
95169
+ exports2.ciPoliceMsTrackerOptOutDialogRulesAndProjects = ciPoliceMsTrackerOptOutDialogRulesAndProjects;
95170
+ function ciPoliceMsTrackerButtonAction(params) {
95171
+ return { evid: 3632, src: 11, endpoint: "", params };
95172
+ }
95173
+ exports2.ciPoliceMsTrackerButtonAction = ciPoliceMsTrackerButtonAction;
95174
+ function wixStandardsTicketEmergencyOptOutDialogOpenSrc11Evid3633(params) {
95175
+ return { evid: 3633, src: 11, endpoint: "", params };
95176
+ }
95177
+ exports2.wixStandardsTicketEmergencyOptOutDialogOpenSrc11Evid3633 = wixStandardsTicketEmergencyOptOutDialogOpenSrc11Evid3633;
95178
+ function lokiRepoUpdateCreated(params) {
95179
+ return { evid: 3710, src: 11, endpoint: "", params };
95180
+ }
95181
+ exports2.lokiRepoUpdateCreated = lokiRepoUpdateCreated;
95182
+ function lokiUpdatePrOpened(params) {
95183
+ return { evid: 3712, src: 11, endpoint: "", params };
95184
+ }
95185
+ exports2.lokiUpdatePrOpened = lokiUpdatePrOpened;
95186
+ function lokiUpdatePrResult(params) {
95187
+ return { evid: 3713, src: 11, endpoint: "", params };
95188
+ }
95189
+ exports2.lokiUpdatePrResult = lokiUpdatePrResult;
95190
+ function lokiUpdateMerged(params) {
95191
+ return { evid: 3714, src: 11, endpoint: "", params };
95192
+ }
95193
+ exports2.lokiUpdateMerged = lokiUpdateMerged;
95194
+ function lokiUpdateSkipped(params) {
95195
+ return { evid: 3715, src: 11, endpoint: "", params };
95196
+ }
95197
+ exports2.lokiUpdateSkipped = lokiUpdateSkipped;
95198
+ function lokiScheduleChanged(params) {
95199
+ return { evid: 3716, src: 11, endpoint: "", params };
95200
+ }
95201
+ exports2.lokiScheduleChanged = lokiScheduleChanged;
95202
+ function arkProjectOptedOut(params) {
95203
+ return { evid: 4300, src: 11, endpoint: "", params };
95204
+ }
95205
+ exports2.arkProjectOptedOut = arkProjectOptedOut;
95206
+ function arkProjectOptedIn(params) {
95207
+ return { evid: 4301, src: 11, endpoint: "", params };
95208
+ }
95209
+ exports2.arkProjectOptedIn = arkProjectOptedIn;
95210
+ function autofixPrMerged(params) {
95211
+ return { evid: 4601, src: 11, endpoint: "", params };
95212
+ }
95213
+ exports2.autofixPrMerged = autofixPrMerged;
95214
+ function wixCliCliCommand(params) {
95215
+ return { evid: 5200, src: 11, endpoint: "", params };
95216
+ }
95217
+ exports2.wixCliCliCommand = wixCliCliCommand;
95218
+ function wixCliCliCommandStatus(params) {
95219
+ return { evid: 5201, src: 11, endpoint: "", params };
95220
+ }
95221
+ exports2.wixCliCliCommandStatus = wixCliCliCommandStatus;
95222
+ function wixCliFileFolderCreatedRenamedDeleted(params) {
95223
+ return { evid: 5202, src: 11, endpoint: "", params };
95224
+ }
95225
+ exports2.wixCliFileFolderCreatedRenamedDeleted = wixCliFileFolderCreatedRenamedDeleted;
95226
+ function wixCliCodeHasBeenChanged(params) {
95227
+ return { evid: 5203, src: 11, endpoint: "", params };
95228
+ }
95229
+ exports2.wixCliCodeHasBeenChanged = wixCliCodeHasBeenChanged;
95230
+ function wixCliCliMessageDisplayed(params) {
95231
+ return { evid: 5204, src: 11, endpoint: "", params };
95232
+ }
95233
+ exports2.wixCliCliMessageDisplayed = wixCliCliMessageDisplayed;
95234
+ function wixCliUserResponseToCliMessage(params) {
95235
+ return { evid: 5205, src: 11, endpoint: "", params };
95236
+ }
95237
+ exports2.wixCliUserResponseToCliMessage = wixCliUserResponseToCliMessage;
95238
+ function wixCliReadyForReloadAfterCodeChange(params) {
95239
+ return { evid: 5206, src: 11, endpoint: "", params };
95240
+ }
95241
+ exports2.wixCliReadyForReloadAfterCodeChange = wixCliReadyForReloadAfterCodeChange;
95242
+ function wixCliAppFlowFileUploadStarted(params) {
95243
+ return { evid: 5208, src: 11, endpoint: "", params };
95244
+ }
95245
+ exports2.wixCliAppFlowFileUploadStarted = wixCliAppFlowFileUploadStarted;
95246
+ function wixCliAppFlowZipUploadDone(params) {
95247
+ return { evid: 5209, src: 11, endpoint: "", params };
95248
+ }
95249
+ exports2.wixCliAppFlowZipUploadDone = wixCliAppFlowZipUploadDone;
95250
+ function wixCliAppFlowUploadEnded(params) {
95251
+ return { evid: 5210, src: 11, endpoint: "", params };
95252
+ }
95253
+ exports2.wixCliAppFlowUploadEnded = wixCliAppFlowUploadEnded;
95254
+ function wixCliLoginStart(params) {
95255
+ return { evid: 5211, src: 11, endpoint: "", params };
95256
+ }
95257
+ exports2.wixCliLoginStart = wixCliLoginStart;
95258
+ function wixCliLoginEnd(params) {
95259
+ return { evid: 5212, src: 11, endpoint: "", params };
95260
+ }
95261
+ exports2.wixCliLoginEnd = wixCliLoginEnd;
95262
+ function wixCliAppFlowAppGenerationTypeOfCreationSelected(params) {
95263
+ return { evid: 5213, src: 11, endpoint: "", params };
95264
+ }
95265
+ exports2.wixCliAppFlowAppGenerationTypeOfCreationSelected = wixCliAppFlowAppGenerationTypeOfCreationSelected;
95266
+ function wixCliAppFlowAppGenerationNewAppNameEntered(params) {
95267
+ return { evid: 5214, src: 11, endpoint: "", params };
95268
+ }
95269
+ exports2.wixCliAppFlowAppGenerationNewAppNameEntered = wixCliAppFlowAppGenerationNewAppNameEntered;
95270
+ function wixCliAppFlowAppGenerationNewAppRegistrationEnd(params) {
95271
+ return { evid: 5215, src: 11, endpoint: "", params };
95272
+ }
95273
+ exports2.wixCliAppFlowAppGenerationNewAppRegistrationEnd = wixCliAppFlowAppGenerationNewAppRegistrationEnd;
95274
+ function wixCliAppFlowAppGenerationExistingAppSelected(params) {
95275
+ return { evid: 5216, src: 11, endpoint: "", params };
95276
+ }
95277
+ exports2.wixCliAppFlowAppGenerationExistingAppSelected = wixCliAppFlowAppGenerationExistingAppSelected;
95278
+ function wixCliAppFlowAppGenerationAppGenerationEnd(params) {
95279
+ return { evid: 5217, src: 11, endpoint: "", params };
95280
+ }
95281
+ exports2.wixCliAppFlowAppGenerationAppGenerationEnd = wixCliAppFlowAppGenerationAppGenerationEnd;
95282
+ function wixCliAppFlowComponentInstalledInTheApp(params) {
95283
+ return { evid: 5218, src: 11, endpoint: "", params };
95284
+ }
95285
+ exports2.wixCliAppFlowComponentInstalledInTheApp = wixCliAppFlowComponentInstalledInTheApp;
95286
+ function wixCliAppFlowDevelopmentSiteSiteSelectorOpened(params) {
95287
+ return { evid: 5219, src: 11, endpoint: "", params };
95288
+ }
95289
+ exports2.wixCliAppFlowDevelopmentSiteSiteSelectorOpened = wixCliAppFlowDevelopmentSiteSiteSelectorOpened;
95290
+ function wixCliAppFlowDevelopmentSiteTypeOfDevelopmentSiteSelected(params) {
95291
+ return { evid: 5220, src: 11, endpoint: "", params };
95292
+ }
95293
+ exports2.wixCliAppFlowDevelopmentSiteTypeOfDevelopmentSiteSelected = wixCliAppFlowDevelopmentSiteTypeOfDevelopmentSiteSelected;
95294
+ function wixCliAppFlowDevelopmentSiteNewDevelopmentSiteCreationStart(params) {
95295
+ return { evid: 5221, src: 11, endpoint: "", params };
95296
+ }
95297
+ exports2.wixCliAppFlowDevelopmentSiteNewDevelopmentSiteCreationStart = wixCliAppFlowDevelopmentSiteNewDevelopmentSiteCreationStart;
95298
+ function wixCliAppFlowDevelopmentSiteNewDevelopmentSiteCreationEnd(params) {
95299
+ return { evid: 5222, src: 11, endpoint: "", params };
95300
+ }
95301
+ exports2.wixCliAppFlowDevelopmentSiteNewDevelopmentSiteCreationEnd = wixCliAppFlowDevelopmentSiteNewDevelopmentSiteCreationEnd;
95302
+ function wixCliAppFlowDevelopmentSiteExistingSiteSelected(params) {
95303
+ return { evid: 5223, src: 11, endpoint: "", params };
95304
+ }
95305
+ exports2.wixCliAppFlowDevelopmentSiteExistingSiteSelected = wixCliAppFlowDevelopmentSiteExistingSiteSelected;
95306
+ function wixCliAppFlowDevelopmentSiteAppInstallationOnDevelopmentSiteStart(params) {
95307
+ return { evid: 5224, src: 11, endpoint: "", params };
95308
+ }
95309
+ exports2.wixCliAppFlowDevelopmentSiteAppInstallationOnDevelopmentSiteStart = wixCliAppFlowDevelopmentSiteAppInstallationOnDevelopmentSiteStart;
95310
+ function wixCliAppFlowDevelopmentSiteAppInstallationOnDevelopmentSiteEnd(params) {
95311
+ return { evid: 5225, src: 11, endpoint: "", params };
95312
+ }
95313
+ exports2.wixCliAppFlowDevelopmentSiteAppInstallationOnDevelopmentSiteEnd = wixCliAppFlowDevelopmentSiteAppInstallationOnDevelopmentSiteEnd;
95314
+ function wixCliAppFlowDevelopmentSiteDevelopmentSiteSet(params) {
95315
+ return { evid: 5226, src: 11, endpoint: "", params };
95316
+ }
95317
+ exports2.wixCliAppFlowDevelopmentSiteDevelopmentSiteSet = wixCliAppFlowDevelopmentSiteDevelopmentSiteSet;
95318
+ function wixCliAppFlowDevelopmentSiteSiteSelectorAborted(params) {
95319
+ return { evid: 5227, src: 11, endpoint: "", params };
95320
+ }
95321
+ exports2.wixCliAppFlowDevelopmentSiteSiteSelectorAborted = wixCliAppFlowDevelopmentSiteSiteSelectorAborted;
95322
+ function wixCliAppFlowExtensionGenerationExtensionWasAdded(params) {
95323
+ return { evid: 5228, src: 11, endpoint: "", params };
95324
+ }
95325
+ exports2.wixCliAppFlowExtensionGenerationExtensionWasAdded = wixCliAppFlowExtensionGenerationExtensionWasAdded;
95326
+ function wixCliAppFlowStepsAnswers(params) {
95327
+ return { evid: 5229, src: 11, endpoint: "", params };
95328
+ }
95329
+ exports2.wixCliAppFlowStepsAnswers = wixCliAppFlowStepsAnswers;
95330
+ function wixCliCliError(params) {
95331
+ return { evid: 5230, src: 11, endpoint: "", params };
95332
+ }
95333
+ exports2.wixCliCliError = wixCliCliError;
95334
+ function wixCliAction(params) {
95335
+ return { evid: 5231, src: 11, endpoint: "", params };
95336
+ }
95337
+ exports2.wixCliAction = wixCliAction;
95338
+ function wixCliAppsFlowDeploymentStatusSrc11Evid5232(params) {
95339
+ return { evid: 5232, src: 11, endpoint: "", params };
95340
+ }
95341
+ exports2.wixCliAppsFlowDeploymentStatusSrc11Evid5232 = wixCliAppsFlowDeploymentStatusSrc11Evid5232;
95342
+ function wixCliAppsFlowTunnelCreationStatusSrc11Evid5233(params) {
95343
+ return { evid: 5233, src: 11, endpoint: "", params };
95344
+ }
95345
+ exports2.wixCliAppsFlowTunnelCreationStatusSrc11Evid5233 = wixCliAppsFlowTunnelCreationStatusSrc11Evid5233;
95346
+ function wixCliAppsFlowDeploymentRequestSrc11Evid5234(params) {
95347
+ return { evid: 5234, src: 11, endpoint: "", params };
95348
+ }
95349
+ exports2.wixCliAppsFlowDeploymentRequestSrc11Evid5234 = wixCliAppsFlowDeploymentRequestSrc11Evid5234;
95350
+ function wixCliAppFlowAppCloudServerUploadedSrc11Evid5235(params) {
95351
+ return { evid: 5235, src: 11, endpoint: "", params };
95352
+ }
95353
+ exports2.wixCliAppFlowAppCloudServerUploadedSrc11Evid5235 = wixCliAppFlowAppCloudServerUploadedSrc11Evid5235;
95354
+ function arkSlackAlertSent(params) {
95355
+ return { evid: 5500, src: 11, endpoint: "", params };
95356
+ }
95357
+ exports2.arkSlackAlertSent = arkSlackAlertSent;
95358
+ function sledMergeQueueManualClickSrc11Evid90599(params) {
95359
+ return { evid: 90599, src: 11, endpoint: "", params };
95360
+ }
95361
+ exports2.sledMergeQueueManualClickSrc11Evid90599 = sledMergeQueueManualClickSrc11Evid90599;
95362
+ function sledMergeQueueRunSrc11Evid90600(params) {
95363
+ return { evid: 90600, src: 11, endpoint: "", params };
95364
+ }
95365
+ exports2.sledMergeQueueRunSrc11Evid90600 = sledMergeQueueRunSrc11Evid90600;
95366
+ function perferRunStart(params) {
95367
+ return { evid: 91200, src: 11, endpoint: "", params };
95368
+ }
95369
+ exports2.perferRunStart = perferRunStart;
95370
+ function perferRunFinished(params) {
95371
+ return { evid: 91201, src: 11, endpoint: "", params };
95372
+ }
95373
+ exports2.perferRunFinished = perferRunFinished;
95374
+ function perferTestCaseResult(params) {
95375
+ return { evid: 91202, src: 11, endpoint: "", params };
95376
+ }
95377
+ exports2.perferTestCaseResult = perferTestCaseResult;
95378
+ function perferRunResult(params) {
95379
+ return { evid: 91204, src: 11, endpoint: "", params };
95380
+ }
95381
+ exports2.perferRunResult = perferRunResult;
95382
+ function perferMetricResult(params) {
95383
+ return { evid: 91205, src: 11, endpoint: "", params };
95384
+ }
95385
+ exports2.perferMetricResult = perferMetricResult;
95386
+ function perferTestStarted(params) {
95387
+ return { evid: 91206, src: 11, endpoint: "", params };
95388
+ }
95389
+ exports2.perferTestStarted = perferTestStarted;
95390
+ function perferTestEnded(params) {
95391
+ return { evid: 91207, src: 11, endpoint: "", params };
95392
+ }
95393
+ exports2.perferTestEnded = perferTestEnded;
95394
+ function perferReportOpened(params) {
95395
+ return { evid: 91211, src: 11, endpoint: "", params };
95396
+ }
95397
+ exports2.perferReportOpened = perferReportOpened;
95398
+ function perferClickOnResetArtifactSBaselineButton(params) {
95399
+ return { evid: 91212, src: 11, endpoint: "", params };
95400
+ }
95401
+ exports2.perferClickOnResetArtifactSBaselineButton = perferClickOnResetArtifactSBaselineButton;
95402
+ function perferResetArtifactSBaseline(params) {
95403
+ return { evid: 91213, src: 11, endpoint: "", params };
95404
+ }
95405
+ exports2.perferResetArtifactSBaseline = perferResetArtifactSBaseline;
95406
+ function buildStart(params) {
95407
+ return { evid: 91400, src: 11, endpoint: "", params };
95408
+ }
95409
+ exports2.buildStart = buildStart;
95410
+ function startInit(params) {
95411
+ return { evid: 91401, src: 11, endpoint: "", params };
95412
+ }
95413
+ exports2.startInit = startInit;
95414
+ function createProject(params) {
95415
+ return { evid: 91402, src: 11, endpoint: "", params };
95416
+ }
95417
+ exports2.createProject = createProject;
95418
+ function buildEnd(params) {
95419
+ return { evid: 91403, src: 11, endpoint: "", params };
95420
+ }
95421
+ exports2.buildEnd = buildEnd;
95422
+ function yoshiYarnStartFinished(params) {
95423
+ return { evid: 91405, src: 11, endpoint: "", params };
95424
+ }
95425
+ exports2.yoshiYarnStartFinished = yoshiYarnStartFinished;
95426
+ function yoshiTestsRunStart(params) {
95427
+ return { evid: 91406, src: 11, endpoint: "", params };
95428
+ }
95429
+ exports2.yoshiTestsRunStart = yoshiTestsRunStart;
95430
+ function yoshiTestsRunEnd(params) {
95431
+ return { evid: 91407, src: 11, endpoint: "", params };
95432
+ }
95433
+ exports2.yoshiTestsRunEnd = yoshiTestsRunEnd;
95434
+ function yoshiCodeChangeDetected(params) {
95435
+ return { evid: 91408, src: 11, endpoint: "", params };
95436
+ }
95437
+ exports2.yoshiCodeChangeDetected = yoshiCodeChangeDetected;
95438
+ function yoshiReadyForReloadAfterCodeChange(params) {
95439
+ return { evid: 91409, src: 11, endpoint: "", params };
95440
+ }
95441
+ exports2.yoshiReadyForReloadAfterCodeChange = yoshiReadyForReloadAfterCodeChange;
95442
+ function perferTestResult(params) {
95443
+ return { evid: 91501, src: 11, endpoint: "", params };
95444
+ }
95445
+ exports2.perferTestResult = perferTestResult;
95446
+ function perferBundleResult(params) {
95447
+ return { evid: 91502, src: 11, endpoint: "", params };
95448
+ }
95449
+ exports2.perferBundleResult = perferBundleResult;
95450
+ function devibeUserClickSrc196Evid10(params) {
95451
+ return { evid: 10, src: 196, endpoint: "", params };
95452
+ }
95453
+ exports2.devibeUserClickSrc196Evid10 = devibeUserClickSrc196Evid10;
95454
+ function devibeLandedOnWorksapceSrc196Evid13(params) {
95455
+ return { evid: 13, src: 196, endpoint: "", params };
95456
+ }
95457
+ exports2.devibeLandedOnWorksapceSrc196Evid13 = devibeLandedOnWorksapceSrc196Evid13;
95458
+ function devibeErrorPageShownSrc196Evid15(params) {
95459
+ return { evid: 15, src: 196, endpoint: "", params };
95460
+ }
95461
+ exports2.devibeErrorPageShownSrc196Evid15 = devibeErrorPageShownSrc196Evid15;
95462
+ function devibePageStartLoadingSrc196Evid2(params) {
95463
+ return { evid: 2, src: 196, endpoint: "", params };
95464
+ }
95465
+ exports2.devibePageStartLoadingSrc196Evid2 = devibePageStartLoadingSrc196Evid2;
95466
+ function devibeCodegenAgentSessionStartSrc196Evid200(params) {
95467
+ return { evid: 200, src: 196, endpoint: "", params };
95468
+ }
95469
+ exports2.devibeCodegenAgentSessionStartSrc196Evid200 = devibeCodegenAgentSessionStartSrc196Evid200;
95470
+ function devibeCodegenAgentSessionEndSrc196Evid201(params) {
95471
+ return { evid: 201, src: 196, endpoint: "", params };
95472
+ }
95473
+ exports2.devibeCodegenAgentSessionEndSrc196Evid201 = devibeCodegenAgentSessionEndSrc196Evid201;
95474
+ function devibeCodegenAgentSessionErrorSrc196Evid202(params) {
95475
+ return { evid: 202, src: 196, endpoint: "", params };
95476
+ }
95477
+ exports2.devibeCodegenAgentSessionErrorSrc196Evid202 = devibeCodegenAgentSessionErrorSrc196Evid202;
95478
+ function devibePageFinishLoadingSrc196Evid3(params) {
95479
+ return { evid: 3, src: 196, endpoint: "", params };
95480
+ }
95481
+ exports2.devibePageFinishLoadingSrc196Evid3 = devibePageFinishLoadingSrc196Evid3;
95482
+ function devibeBlueprintVersionReadySrc196Evid4(params) {
95483
+ return { evid: 4, src: 196, endpoint: "", params };
95484
+ }
95485
+ exports2.devibeBlueprintVersionReadySrc196Evid4 = devibeBlueprintVersionReadySrc196Evid4;
95486
+ function devibeErrorSrc196Evid5(params) {
95487
+ return { evid: 5, src: 196, endpoint: "", params };
95488
+ }
95489
+ exports2.devibeErrorSrc196Evid5 = devibeErrorSrc196Evid5;
95490
+ function devibeAppCheckpointCreatedSrc196Evid6(params) {
95491
+ return { evid: 6, src: 196, endpoint: "", params };
95492
+ }
95493
+ exports2.devibeAppCheckpointCreatedSrc196Evid6 = devibeAppCheckpointCreatedSrc196Evid6;
95494
+ function devibeEarlierAppCheckpointActionCompletedSrc196Evid7(params) {
95495
+ return { evid: 7, src: 196, endpoint: "", params };
95496
+ }
95497
+ exports2.devibeEarlierAppCheckpointActionCompletedSrc196Evid7 = devibeEarlierAppCheckpointActionCompletedSrc196Evid7;
95498
+ function devibeChatWidgetLoadedSrc196Evid8(params) {
95499
+ return { evid: 8, src: 196, endpoint: "", params };
95500
+ }
95501
+ exports2.devibeChatWidgetLoadedSrc196Evid8 = devibeChatWidgetLoadedSrc196Evid8;
95502
+ function chatGptWixAppActionSrc39Evid1609(params) {
95503
+ return { evid: 1609, src: 39, endpoint: "", params };
95504
+ }
95505
+ exports2.chatGptWixAppActionSrc39Evid1609 = chatGptWixAppActionSrc39Evid1609;
95506
+ function dpKbMcpServerCallSrc39Evid1996(params) {
95507
+ return { evid: 1996, src: 39, endpoint: "", params };
95508
+ }
95509
+ exports2.dpKbMcpServerCallSrc39Evid1996 = dpKbMcpServerCallSrc39Evid1996;
95510
+ }
95511
+ });
95512
+
95513
+ // ../../node_modules/@wix/wix-bi-logger-client/dist/assert.js
95514
+ var require_assert2 = __commonJS({
95515
+ "../../node_modules/@wix/wix-bi-logger-client/dist/assert.js"(exports2, module2) {
95516
+ "use strict";
95517
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(obj) {
95518
+ return typeof obj;
95519
+ } : function(obj) {
95520
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
95521
+ };
95522
+ function _classCallCheck(instance, Constructor) {
95523
+ if (!(instance instanceof Constructor)) {
95524
+ throw new TypeError("Cannot call a class as a function");
95525
+ }
95526
+ }
95527
+ function _possibleConstructorReturn(self2, call) {
95528
+ if (!self2) {
95529
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
95530
+ }
95531
+ return call && (typeof call === "object" || typeof call === "function") ? call : self2;
95532
+ }
95533
+ function _inherits(subClass, superClass) {
95534
+ if (typeof superClass !== "function" && superClass !== null) {
95535
+ throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
95536
+ }
95537
+ subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });
95538
+ if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
95539
+ }
95540
+ var AssertionError = (function(_Error) {
95541
+ _inherits(AssertionError2, _Error);
95542
+ function AssertionError2(message) {
95543
+ _classCallCheck(this, AssertionError2);
95544
+ var _this = _possibleConstructorReturn(this, (AssertionError2.__proto__ || Object.getPrototypeOf(AssertionError2)).call(this, message));
95545
+ _this.name = _this.constructor.name;
95546
+ return _this;
95547
+ }
95548
+ return AssertionError2;
95549
+ })(Error);
95550
+ function assertDefined(target, message) {
95551
+ if (target === void 0) {
95552
+ throw new AssertionError(message);
95553
+ }
95554
+ }
95555
+ function assertObject(target, message) {
95556
+ if (target !== void 0 && ((typeof target === "undefined" ? "undefined" : _typeof(target)) !== "object" || Array.isArray(target) || target === null)) {
95557
+ throw new AssertionError(message);
95558
+ }
95559
+ }
95560
+ function assertOk(target, message) {
95561
+ if (!target) {
95562
+ throw new AssertionError(message);
95563
+ }
95564
+ }
95565
+ function assertFunc(target, message) {
95566
+ if (target !== void 0 && typeof target !== "function") {
95567
+ throw new AssertionError(message);
95568
+ }
95569
+ }
95570
+ function assertBoolean(target, message) {
95571
+ if (target !== void 0 && typeof target !== "boolean") {
95572
+ throw new AssertionError(message);
95573
+ }
95574
+ }
95575
+ function assertNumber(target, message) {
95576
+ if (target !== void 0 && typeof target !== "number") {
95577
+ throw new AssertionError(message);
95578
+ }
95579
+ }
95580
+ function assertArray(target, message) {
95581
+ if (typeof Array.isArray === "function") {
95582
+ if (!Array.isArray(target)) {
95583
+ throw new AssertionError(message);
95584
+ }
95585
+ } else if (Object.prototype.toString.call(target) !== "[object Array]") {
95586
+ throw new AssertionError(message);
95587
+ }
95588
+ }
95589
+ module2.exports.defined = assertDefined;
95590
+ module2.exports.object = assertObject;
95591
+ module2.exports.ok = assertOk;
95592
+ module2.exports.func = assertFunc;
95593
+ module2.exports.boolean = assertBoolean;
95594
+ module2.exports.number = assertNumber;
95595
+ module2.exports.array = assertArray;
95596
+ module2.exports.AssertionError = AssertionError;
95597
+ }
95598
+ });
95599
+
95600
+ // ../../node_modules/@wix/wix-bi-logger-client/dist/utils/collections.js
95601
+ var require_collections = __commonJS({
95602
+ "../../node_modules/@wix/wix-bi-logger-client/dist/utils/collections.js"(exports2, module2) {
95603
+ "use strict";
95604
+ module2.exports.mapValues = function(collection, iteratee) {
95605
+ if (!collection) {
95606
+ return {};
95607
+ }
95608
+ return Object.keys(collection).reduce(function(acc, key) {
95609
+ acc[key] = iteratee(collection[key], key, collection);
95610
+ return acc;
95611
+ }, {});
95612
+ };
95613
+ module2.exports.filterValues = function(collection, iteratee) {
95614
+ if (!collection) {
95615
+ return {};
95616
+ }
95617
+ return Object.keys(collection).reduce(function(acc, key) {
95618
+ var keep = iteratee(collection[key], key, collection);
95619
+ if (keep) {
95620
+ acc[key] = collection[key];
95621
+ }
95622
+ return acc;
95623
+ }, {});
95624
+ };
95625
+ }
95626
+ });
95627
+
95628
+ // ../../node_modules/@wix/wix-bi-logger-client/dist/utils/promise.js
95629
+ var require_promise2 = __commonJS({
95630
+ "../../node_modules/@wix/wix-bi-logger-client/dist/utils/promise.js"(exports2, module2) {
95631
+ "use strict";
95632
+ module2.exports.timedPromise = function(promise2, _ref) {
95633
+ var message = _ref.message, timeout = _ref.timeout;
95634
+ var timeoutPromise = new Promise(function(resolve3, reject) {
95635
+ setTimeout(reject, timeout, message ? "Timeout: " + message : "Timeout");
95636
+ });
95637
+ return Promise.race([promise2, timeoutPromise]);
95638
+ };
95639
+ module2.exports.allAsObject = function(promiseObject) {
95640
+ var keys = Object.keys(promiseObject);
95641
+ return Promise.all(keys.map(function(key) {
95642
+ return promiseObject[key];
95643
+ })).then(function(resolved) {
95644
+ return resolved.reduce(function(acc, value, i) {
95645
+ acc[keys[i]] = value;
95646
+ return acc;
95647
+ }, {});
95648
+ });
95649
+ };
95650
+ }
95651
+ });
95652
+
95653
+ // ../../node_modules/@wix/wix-bi-logger-client/dist/utils/log.js
95654
+ var require_log = __commonJS({
95655
+ "../../node_modules/@wix/wix-bi-logger-client/dist/utils/log.js"(exports2, module2) {
95656
+ "use strict";
95657
+ module2.exports = {
95658
+ error: function error48() {
95659
+ if (console && console.error) {
95660
+ var _console;
95661
+ (_console = console).error.apply(_console, arguments);
95662
+ }
95663
+ }
95664
+ };
95665
+ }
95666
+ });
95667
+
95668
+ // ../../node_modules/@wix/wix-bi-logger-client/dist/utils/debounce.js
95669
+ var require_debounce2 = __commonJS({
95670
+ "../../node_modules/@wix/wix-bi-logger-client/dist/utils/debounce.js"(exports2, module2) {
95671
+ "use strict";
95672
+ function debounce(func, wait, immediate) {
95673
+ var timeout = void 0;
95674
+ return function() {
95675
+ var context2 = this;
95676
+ var args = arguments;
95677
+ var later = function later2() {
95678
+ timeout = null;
95679
+ if (!immediate) {
95680
+ func.apply(context2, args);
95681
+ }
95682
+ };
95683
+ var callNow = immediate && !timeout;
95684
+ clearTimeout(timeout);
95685
+ timeout = setTimeout(later, wait);
95686
+ if (callNow) {
95687
+ func.apply(context2, args);
95688
+ }
95689
+ };
95690
+ }
95691
+ module2.exports = debounce;
95692
+ }
95693
+ });
95694
+
95695
+ // ../../node_modules/@wix/wix-bi-logger-client/dist/utils/throttle.js
95696
+ var require_throttle2 = __commonJS({
95697
+ "../../node_modules/@wix/wix-bi-logger-client/dist/utils/throttle.js"(exports2, module2) {
95698
+ "use strict";
95699
+ function throttle(func, wait) {
95700
+ var timeout = void 0;
95701
+ return function() {
95702
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
95703
+ args[_key] = arguments[_key];
95704
+ }
95705
+ if (!timeout) {
95706
+ timeout = setTimeout(function() {
95707
+ func.apply(void 0, args);
95708
+ timeout = null;
95709
+ }, wait);
95710
+ }
95711
+ };
95712
+ }
95713
+ module2.exports = throttle;
95714
+ }
95715
+ });
95716
+
95717
+ // ../../node_modules/@wix/wix-bi-logger-client/dist/utils/batch-queue.js
95718
+ var require_batch_queue2 = __commonJS({
95719
+ "../../node_modules/@wix/wix-bi-logger-client/dist/utils/batch-queue.js"(exports2, module2) {
95720
+ "use strict";
95721
+ var _createClass = /* @__PURE__ */ (function() {
95722
+ function defineProperties(target, props) {
95723
+ for (var i = 0; i < props.length; i++) {
95724
+ var descriptor = props[i];
95725
+ descriptor.enumerable = descriptor.enumerable || false;
95726
+ descriptor.configurable = true;
95727
+ if ("value" in descriptor) descriptor.writable = true;
95728
+ Object.defineProperty(target, descriptor.key, descriptor);
95729
+ }
95730
+ }
95731
+ return function(Constructor, protoProps, staticProps) {
95732
+ if (protoProps) defineProperties(Constructor.prototype, protoProps);
95733
+ if (staticProps) defineProperties(Constructor, staticProps);
95734
+ return Constructor;
95735
+ };
95736
+ })();
95737
+ var _slicedToArray = /* @__PURE__ */ (function() {
95738
+ function sliceIterator(arr, i) {
95739
+ var _arr = [];
95740
+ var _n = true;
95741
+ var _d = false;
95742
+ var _e = void 0;
95743
+ try {
95744
+ for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
95745
+ _arr.push(_s.value);
95746
+ if (i && _arr.length === i) break;
95747
+ }
95748
+ } catch (err) {
95749
+ _d = true;
95750
+ _e = err;
95751
+ } finally {
95752
+ try {
95753
+ if (!_n && _i["return"]) _i["return"]();
95754
+ } finally {
95755
+ if (_d) throw _e;
95756
+ }
95757
+ }
95758
+ return _arr;
95759
+ }
95760
+ return function(arr, i) {
95761
+ if (Array.isArray(arr)) {
95762
+ return arr;
95763
+ } else if (Symbol.iterator in Object(arr)) {
95764
+ return sliceIterator(arr, i);
95765
+ } else {
95766
+ throw new TypeError("Invalid attempt to destructure non-iterable instance");
95767
+ }
95768
+ };
95769
+ })();
95770
+ var _extends = Object.assign || function(target) {
95771
+ for (var i = 1; i < arguments.length; i++) {
95772
+ var source = arguments[i];
95773
+ for (var key in source) {
95774
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
95775
+ target[key] = source[key];
95776
+ }
95777
+ }
95778
+ }
95779
+ return target;
95780
+ };
95781
+ function _classCallCheck(instance, Constructor) {
95782
+ if (!(instance instanceof Constructor)) {
95783
+ throw new TypeError("Cannot call a class as a function");
95784
+ }
95785
+ }
95786
+ var debounce = require_debounce2();
95787
+ var throttle = require_throttle2();
95788
+ var createEvent = function createEvent2(event, context2, startTime) {
95789
+ return {
95790
+ dt: Date.now() - startTime,
95791
+ f: event,
95792
+ context: context2
95793
+ };
95794
+ };
95795
+ var createBatch = function createBatch2(events, startTime) {
95796
+ return {
95797
+ dt: Date.now() - startTime,
95798
+ e: events,
95799
+ g: {}
95800
+ };
95801
+ };
95802
+ var optimizeBatch = function optimizeBatch2(batch) {
95803
+ var fieldCounts = {};
95804
+ var batchLen = batch.e.length;
95805
+ var events = batch.e.map(function(event) {
95806
+ var fields = Object.keys(event.f).map(function(field) {
95807
+ var value = event.f[field];
95808
+ var key = field + "|" + value;
95809
+ fieldCounts[key] = fieldCounts[key] || 0;
95810
+ fieldCounts[key]++;
95811
+ return [field, value, key];
95812
+ });
95813
+ return _extends({}, event, {
95814
+ f: fields
95815
+ });
95816
+ });
95817
+ var globalFields = {};
95818
+ events = events.map(function(event) {
95819
+ var fields = event.f.reduce(function(res, _ref) {
95820
+ var _ref2 = _slicedToArray(_ref, 3), field = _ref2[0], value = _ref2[1], key = _ref2[2];
95821
+ if (fieldCounts[key] === batchLen) {
95822
+ globalFields[field] = value;
95823
+ } else {
95824
+ res[field] = value;
95825
+ }
95826
+ return res;
95827
+ }, {});
95828
+ return _extends({}, event, {
95829
+ f: fields
95830
+ });
95831
+ });
95832
+ return _extends({}, batch, {
95833
+ e: events,
95834
+ g: globalFields
95835
+ });
95836
+ };
95837
+ var BatchQueue = (function() {
95838
+ function BatchQueue2() {
95839
+ _classCallCheck(this, BatchQueue2);
95840
+ this._initilized = false;
95841
+ }
95842
+ _createClass(BatchQueue2, [{
95843
+ key: "_reset",
95844
+ value: function _reset() {
95845
+ var _this = this;
95846
+ this._startTime = Date.now();
95847
+ this._resolve = null;
95848
+ this._promise = new Promise(function(resolve3) {
95849
+ return _this._resolve = resolve3;
95850
+ });
95851
+ }
95852
+ }, {
95853
+ key: "init",
95854
+ value: function init(_ref3, flushHandler) {
95855
+ var _this2 = this;
95856
+ var delayMs = _ref3.delayMs, maxBatchSize = _ref3.maxBatchSize, useThrottle = _ref3.useThrottle, optimizeBatch2 = _ref3.optimizeBatch;
95857
+ if (this._initilized) {
95858
+ return;
95859
+ }
95860
+ this._maxBatchSize = maxBatchSize;
95861
+ this._optimizeBatch = optimizeBatch2;
95862
+ this._queue = [];
95863
+ this._flushHandler = flushHandler;
95864
+ this._flushDebounced = useThrottle ? throttle(function() {
95865
+ return _this2.flush();
95866
+ }, delayMs) : debounce(function() {
95867
+ return _this2.flush();
95868
+ }, delayMs);
95869
+ this._initilized = true;
95870
+ this._reset();
95871
+ }
95872
+ }, {
95873
+ key: "flush",
95874
+ value: function flush() {
95875
+ if (!this._queue.length) {
95876
+ return Promise.resolve();
95877
+ }
95878
+ var events = this._queue.splice(0, this._queue.length);
95879
+ var resolve3 = this._resolve;
95880
+ var startTime = this._startTime;
95881
+ this._reset();
95882
+ var batch = createBatch(events, startTime);
95883
+ if (this._optimizeBatch) {
95884
+ batch = optimizeBatch(batch);
95885
+ }
95886
+ return this._flushHandler(batch).then(resolve3);
95887
+ }
95888
+ }, {
95889
+ key: "feed",
95890
+ value: function feed(event, context2) {
95891
+ this._queue.push(createEvent(event, context2, this._startTime));
95892
+ if (this._queue.length === this._maxBatchSize) {
95893
+ return this.flush();
95894
+ }
95895
+ this._flushDebounced();
95896
+ return this._promise;
95897
+ }
95898
+ }]);
95899
+ return BatchQueue2;
95900
+ })();
95901
+ module2.exports = BatchQueue;
95902
+ }
95903
+ });
95904
+
95905
+ // ../../node_modules/@wix/wix-bi-logger-client/dist/consent-policy.js
95906
+ var require_consent_policy2 = __commonJS({
95907
+ "../../node_modules/@wix/wix-bi-logger-client/dist/consent-policy.js"(exports2, module2) {
95908
+ "use strict";
95909
+ var DefaultConsentPolicy = {
95910
+ functional: true,
95911
+ analytics: true,
95912
+ __default: true
95913
+ };
95914
+ var getPolicy = function getPolicy2(consentPolicyGetter) {
95915
+ return typeof consentPolicyGetter === "function" && consentPolicyGetter() || DefaultConsentPolicy;
95916
+ };
95917
+ var shouldMuteNonEssentials = function shouldMuteNonEssentials2(policy) {
95918
+ return policy.functional === false || policy.analytics === false;
95919
+ };
95920
+ var shouldMuteByCategory = function shouldMuteByCategory2(policy, category) {
95921
+ if (category === "essential") {
95922
+ return false;
95923
+ }
95924
+ if (category === "functional" || category === "analytics") {
95925
+ return policy[category] === false;
95926
+ }
95927
+ return shouldMuteNonEssentials(policy);
95928
+ };
95929
+ module2.exports = {
95930
+ shouldMuteNonEssentials,
95931
+ shouldMuteByCategory,
95932
+ getPolicy
95933
+ };
95934
+ }
95935
+ });
95936
+
95937
+ // ../../node_modules/@wix/wix-bi-logger-client/dist/bi-logger.js
95938
+ var require_bi_logger = __commonJS({
95939
+ "../../node_modules/@wix/wix-bi-logger-client/dist/bi-logger.js"(exports2, module2) {
95940
+ "use strict";
95941
+ var _extends = Object.assign || function(target) {
95942
+ for (var i = 1; i < arguments.length; i++) {
95943
+ var source = arguments[i];
95944
+ for (var key in source) {
95945
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
95946
+ target[key] = source[key];
95947
+ }
95948
+ }
95949
+ }
95950
+ return target;
95951
+ };
95952
+ var _createClass = /* @__PURE__ */ (function() {
95953
+ function defineProperties(target, props) {
95954
+ for (var i = 0; i < props.length; i++) {
95955
+ var descriptor = props[i];
95956
+ descriptor.enumerable = descriptor.enumerable || false;
95957
+ descriptor.configurable = true;
95958
+ if ("value" in descriptor) descriptor.writable = true;
95959
+ Object.defineProperty(target, descriptor.key, descriptor);
95960
+ }
95961
+ }
95962
+ return function(Constructor, protoProps, staticProps) {
95963
+ if (protoProps) defineProperties(Constructor.prototype, protoProps);
95964
+ if (staticProps) defineProperties(Constructor, staticProps);
95965
+ return Constructor;
95966
+ };
95967
+ })();
95968
+ function _objectWithoutProperties(obj, keys) {
95969
+ var target = {};
95970
+ for (var i in obj) {
95971
+ if (keys.indexOf(i) >= 0) continue;
95972
+ if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
95973
+ target[i] = obj[i];
95974
+ }
95975
+ return target;
95976
+ }
95977
+ function _classCallCheck(instance, Constructor) {
95978
+ if (!(instance instanceof Constructor)) {
95979
+ throw new TypeError("Cannot call a class as a function");
95980
+ }
95981
+ }
95982
+ var assert2 = require_assert2();
95983
+ var _require = require_collections();
95984
+ var mapValues = _require.mapValues;
95985
+ var filterValues = _require.filterValues;
95986
+ var promise2 = require_promise2();
95987
+ var log = require_log();
95988
+ var BatchQueue = require_batch_queue2();
95989
+ var _require2 = require_consent_policy2();
95990
+ var shouldMuteByCategory = _require2.shouldMuteByCategory;
95991
+ var shouldMuteNonEssentials = _require2.shouldMuteNonEssentials;
95992
+ var getPolicy = _require2.getPolicy;
95993
+ var BiLogger = (function() {
95994
+ function BiLogger2(options, context2) {
95995
+ _classCallCheck(this, BiLogger2);
95996
+ this._publishers = options.publishers;
95997
+ this._validators = options.validators || [];
95998
+ this._defaults = options.defaults;
95999
+ this._ownDefaults = {};
96000
+ this._events = options.events || {};
96001
+ this._context = context2 || {};
96002
+ this._defaultValueTimeout = options.defaultValueTimeout || 5e3;
96003
+ this._defaultContinueOnFail = options.defaultContinueOnFail || false;
96004
+ this._onPublisherFailHandler = options.onPublisherFailHandler || BiLogger2._defaultPublisherFailHandler;
96005
+ this._isMuted = options.isMuted || function() {
96006
+ return false;
96007
+ };
96008
+ this._eventTransformer = options.eventTransformer || function(event) {
96009
+ return event;
96010
+ };
96011
+ this._payloadTransformer = options.payloadTransformer || function(payload) {
96012
+ return payload;
96013
+ };
96014
+ this._consentPolicyGetter = options.consentPolicyGetter || function() {
96015
+ return null;
96016
+ };
96017
+ this._nonEssentialDefaults = options.nonEssentialDefaults || {};
96018
+ this._maxBatchSize = options.maxBatchSize || 100;
96019
+ this._globalBatchQueue = options.globalBatchQueue;
96020
+ }
96021
+ _createClass(BiLogger2, [{
96022
+ key: "report",
96023
+ value: function report(data) {
96024
+ assert2.defined(data, "Data must be provided");
96025
+ assert2.object(data, "Data must be an object");
96026
+ var src = data.src, evid = data.evid, params = data.params, context2 = _objectWithoutProperties(data, ["src", "evid", "params"]);
96027
+ return this.log(_extends({ src, evid }, params), context2);
96028
+ }
96029
+ }, {
96030
+ key: "log",
96031
+ value: function log2(eventOrKey, eventOrContextOrUndefined, contextOrUndefined) {
96032
+ var _this = this;
96033
+ assert2.defined(eventOrKey, "Event object or event key must be provided.");
96034
+ var _extractEventAndConte = this._extractEventAndContext(eventOrKey, eventOrContextOrUndefined, contextOrUndefined), event = _extractEventAndConte.event, context2 = _extractEventAndConte.context;
96035
+ var policy = getPolicy(this._consentPolicyGetter);
96036
+ var fullContext = _extends({}, this._context, context2);
96037
+ if (this._isMuted() || shouldMuteByCategory(policy, fullContext.category)) {
96038
+ return Promise.resolve();
96039
+ }
96040
+ if (fullContext.useBatch) {
96041
+ var queue = this._initQueue(fullContext, policy);
96042
+ var transformAndQueue = function transformAndQueue2(_event) {
96043
+ var transformedEvent = _this._eventTransformer(_event, fullContext);
96044
+ return queue.feed(transformedEvent, fullContext);
96045
+ };
96046
+ if (this._globalBatchQueue) {
96047
+ return this._getDefaults(this._defaults).then(function(defaults) {
96048
+ var fullEvent2 = _extends({}, defaults, _this._getDynamicNonEssentialDefaults(policy), _this._getStaticNonEssentialDefaults(policy), event, _this._getPolicyFields(policy, fullContext.category));
96049
+ return transformAndQueue(fullEvent2);
96050
+ });
96051
+ } else {
96052
+ var fullEvent = _extends({}, this._getDynamicDefaults(this._defaults), this._getDynamicNonEssentialDefaults(policy), event, this._getPolicyFields(policy, fullContext.category));
96053
+ return transformAndQueue(fullEvent);
96054
+ }
96055
+ }
96056
+ return this._getDefaults(this._defaults).then(function(defaults) {
96057
+ var fullEvent2 = Object.assign(defaults, _this._getDynamicNonEssentialDefaults(policy), _this._getStaticNonEssentialDefaults(policy), event, _this._getPolicyFields(policy, fullContext.category));
96058
+ var validatorsResult = _this._validators.length === 0 ? true : _this._validators.some(function(validator) {
96059
+ return validator.match(fullEvent2) && (validator.execute(fullEvent2) || true);
96060
+ });
96061
+ if (!validatorsResult) {
96062
+ throw new Error("No validator accepted the event. Source: " + fullEvent2.src + " Evid: " + (fullEvent2.evid || fullEvent2.evtId));
96063
+ }
96064
+ var transformedEvent = _this._eventTransformer(fullEvent2, fullContext);
96065
+ transformedEvent = _this._payloadTransformer(transformedEvent, fullContext);
96066
+ return _this._send(transformedEvent, fullContext);
96067
+ });
96068
+ }
96069
+ }, {
96070
+ key: "flush",
96071
+ value: function flush() {
96072
+ if (!this._queue) {
96073
+ return Promise.resolve();
96074
+ }
96075
+ return this._queue.flush();
96076
+ }
96077
+ }, {
96078
+ key: "updateDefaults",
96079
+ value: function updateDefaults(defaults) {
96080
+ assert2.defined(defaults, "Defaults must be provided");
96081
+ assert2.object(defaults, "Defaults must be an object");
96082
+ Object.assign(this._ownDefaults, defaults);
96083
+ return this;
96084
+ }
96085
+ }, {
96086
+ key: "_send",
96087
+ value: function _send(payload) {
96088
+ var _this2 = this;
96089
+ var context2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
96090
+ return Promise.all(this._publishers.map(function(publisher) {
96091
+ var cloned = _extends({}, payload);
96092
+ return Promise.resolve().then(function() {
96093
+ return publisher(cloned, context2);
96094
+ }).catch(function(error48) {
96095
+ return _this2._onPublisherFailHandler(error48, {
96096
+ publisherName: publisher.name,
96097
+ payload
96098
+ });
96099
+ });
96100
+ })).then(function() {
96101
+ return void 0;
96102
+ });
96103
+ }
96104
+ }, {
96105
+ key: "_extractEventAndContext",
96106
+ value: function _extractEventAndContext(eventOrKey, eventOrContextOrUndefined, contextOrUndefined) {
96107
+ var event = void 0;
96108
+ var context2 = {};
96109
+ if (typeof eventOrKey !== "string") {
96110
+ event = eventOrKey;
96111
+ context2 = eventOrContextOrUndefined || context2;
96112
+ } else {
96113
+ event = this._events[eventOrKey];
96114
+ if (!event) {
96115
+ throw new assert2.AssertionError("Event with key '" + eventOrKey + "' not found in event map.");
96116
+ }
96117
+ if (eventOrContextOrUndefined) {
96118
+ event = _extends({}, event, eventOrContextOrUndefined);
96119
+ context2 = contextOrUndefined || context2;
96120
+ }
96121
+ }
96122
+ return { event, context: context2 };
96123
+ }
96124
+ }, {
96125
+ key: "_initQueue",
96126
+ value: function _initQueue(context2, policy) {
96127
+ var _this3 = this;
96128
+ if (this._queue) {
96129
+ return this._queue;
96130
+ }
96131
+ this._queue = this._globalBatchQueue || new BatchQueue();
96132
+ var onFlush = function onFlush2(batch) {
96133
+ if (!_this3._globalBatchQueue) {
96134
+ batch.g = Object.assign(_this3._getStaticDefaults(_this3._defaults), _this3._getStaticNonEssentialDefaults(policy));
96135
+ }
96136
+ var transformedPayload = _this3._payloadTransformer(batch, context2);
96137
+ return _this3._send(transformedPayload, context2);
96138
+ };
96139
+ this._queue.init({
96140
+ delayMs: context2.useBatch === true ? 300 : context2.useBatch,
96141
+ maxBatchSize: this._maxBatchSize,
96142
+ useThrottle: !!this._globalBatchQueue,
96143
+ optimizeBatch: !!this._globalBatchQueue
96144
+ }, onFlush);
96145
+ return this._queue;
96146
+ }
96147
+ }, {
96148
+ key: "_handleDefaultsError",
96149
+ value: function _handleDefaultsError(err) {
96150
+ if (this._defaultContinueOnFail) {
96151
+ log.error(err);
96152
+ return null;
96153
+ }
96154
+ return Promise.reject(err);
96155
+ }
96156
+ }, {
96157
+ key: "_getDynamicNonEssentialDefaults",
96158
+ value: function _getDynamicNonEssentialDefaults(policy) {
96159
+ if (!shouldMuteNonEssentials(policy)) {
96160
+ return this._getDynamicDefaults(this._nonEssentialDefaults);
96161
+ }
96162
+ }
96163
+ }, {
96164
+ key: "_getStaticNonEssentialDefaults",
96165
+ value: function _getStaticNonEssentialDefaults(policy) {
96166
+ if (!shouldMuteNonEssentials(policy)) {
96167
+ return this._getStaticDefaults(this._nonEssentialDefaults);
96168
+ }
96169
+ }
96170
+ }, {
96171
+ key: "_withOwnDefaults",
96172
+ value: function _withOwnDefaults(defaults) {
96173
+ return Object.assign({}, defaults, this._ownDefaults);
96174
+ }
96175
+ }, {
96176
+ key: "_getDynamicDefaults",
96177
+ value: function _getDynamicDefaults(defaults) {
96178
+ defaults = this._withOwnDefaults(defaults);
96179
+ var dynamicDefaults = filterValues(defaults, function(v) {
96180
+ return typeof v === "function";
96181
+ });
96182
+ return mapValues(dynamicDefaults, function(v) {
96183
+ return v();
96184
+ });
96185
+ }
96186
+ }, {
96187
+ key: "_getStaticDefaults",
96188
+ value: function _getStaticDefaults(defaults) {
96189
+ defaults = this._withOwnDefaults(defaults);
96190
+ var staticDefaults = filterValues(defaults, function(v) {
96191
+ return typeof v !== "function";
96192
+ });
96193
+ return staticDefaults;
96194
+ }
96195
+ }, {
96196
+ key: "_getDefaults",
96197
+ value: function _getDefaults(defaults) {
96198
+ var _this4 = this;
96199
+ defaults = this._withOwnDefaults(defaults);
96200
+ if (!defaults) {
96201
+ return Promise.resolve({});
96202
+ }
96203
+ var promises = mapValues(defaults, function(value, key) {
96204
+ if (typeof value === "function") {
96205
+ try {
96206
+ value = value();
96207
+ } catch (err) {
96208
+ return _this4._handleDefaultsError(err);
96209
+ }
96210
+ }
96211
+ if (value && typeof value.then === "function") {
96212
+ return promise2.timedPromise(value, {
96213
+ message: "Cannot get default value '" + key + " for BI Event'",
96214
+ timeout: _this4._defaultValueTimeout
96215
+ }).catch(function(err) {
96216
+ return _this4._handleDefaultsError(err);
96217
+ });
96218
+ }
96219
+ return value;
96220
+ });
96221
+ return promise2.allAsObject(promises);
96222
+ }
96223
+ }, {
96224
+ key: "_encodePolicyValue",
96225
+ value: function _encodePolicyValue(policy, key) {
96226
+ if (!policy) {
96227
+ return 1;
96228
+ }
96229
+ if (typeof policy[key] === "boolean") {
96230
+ return policy[key] ? 1 : 0;
96231
+ }
96232
+ return policy[key];
96233
+ }
96234
+ }, {
96235
+ key: "_getPolicyFields",
96236
+ value: function _getPolicyFields(policy, category) {
96237
+ return {
96238
+ _isca: this._encodePolicyValue(policy, "analytics"),
96239
+ _iscf: this._encodePolicyValue(policy, "functional"),
96240
+ _ispd: policy.__default ? 1 : 0,
96241
+ _ise: category === "essential" ? 1 : 0
96242
+ };
96243
+ }
96244
+ }], [{
96245
+ key: "_defaultPublisherFailHandler",
96246
+ value: function _defaultPublisherFailHandler(error48, _ref) {
96247
+ var publisherName = _ref.publisherName;
96248
+ return publisherName;
96249
+ }
96250
+ }]);
96251
+ return BiLogger2;
96252
+ })();
96253
+ module2.exports = BiLogger;
96254
+ }
96255
+ });
96256
+
96257
+ // ../../node_modules/@wix/wix-bi-logger-client/dist/bi-logger-manager.js
96258
+ var require_bi_logger_manager = __commonJS({
96259
+ "../../node_modules/@wix/wix-bi-logger-client/dist/bi-logger-manager.js"(exports2, module2) {
96260
+ "use strict";
96261
+ var _createClass = /* @__PURE__ */ (function() {
96262
+ function defineProperties(target, props) {
96263
+ for (var i = 0; i < props.length; i++) {
96264
+ var descriptor = props[i];
96265
+ descriptor.enumerable = descriptor.enumerable || false;
96266
+ descriptor.configurable = true;
96267
+ if ("value" in descriptor) descriptor.writable = true;
96268
+ Object.defineProperty(target, descriptor.key, descriptor);
96269
+ }
96270
+ }
96271
+ return function(Constructor, protoProps, staticProps) {
96272
+ if (protoProps) defineProperties(Constructor.prototype, protoProps);
96273
+ if (staticProps) defineProperties(Constructor, staticProps);
96274
+ return Constructor;
96275
+ };
96276
+ })();
96277
+ function _classCallCheck(instance, Constructor) {
96278
+ if (!(instance instanceof Constructor)) {
96279
+ throw new TypeError("Cannot call a class as a function");
96280
+ }
96281
+ }
96282
+ var assert2 = require_assert2();
96283
+ var BiLoggerManager = (function() {
96284
+ function BiLoggerManager2() {
96285
+ _classCallCheck(this, BiLoggerManager2);
96286
+ this.reset();
96287
+ }
96288
+ _createClass(BiLoggerManager2, [{
96289
+ key: "reset",
96290
+ value: function reset() {
96291
+ this._handlers = [];
96292
+ }
96293
+ }, {
96294
+ key: "onLoggerCreated",
96295
+ value: function onLoggerCreated(handler) {
96296
+ var _this = this;
96297
+ assert2.defined(handler, "Handler must be provided.");
96298
+ assert2.func(handler, "Handler must be a function.");
96299
+ this._handlers.push(handler);
96300
+ return function() {
96301
+ var index = _this._handlers.indexOf(handler);
96302
+ if (index !== -1) {
96303
+ _this._handlers.splice(index, 1);
96304
+ }
96305
+ };
96306
+ }
96307
+ }, {
96308
+ key: "notifyLoggerCreated",
96309
+ value: function notifyLoggerCreated(logger) {
96310
+ this._handlers.forEach(function(handler) {
96311
+ return handler(logger);
96312
+ });
96313
+ }
96314
+ }]);
96315
+ return BiLoggerManager2;
96316
+ })();
96317
+ module2.exports = {
96318
+ manager: new BiLoggerManager(),
96319
+ BiLoggerManager
96320
+ };
96321
+ }
96322
+ });
96323
+
96324
+ // ../../node_modules/@wix/wix-bi-logger-client/dist/bi-logger-factory.js
96325
+ var require_bi_logger_factory = __commonJS({
96326
+ "../../node_modules/@wix/wix-bi-logger-client/dist/bi-logger-factory.js"(exports2, module2) {
96327
+ "use strict";
96328
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(obj) {
96329
+ return typeof obj;
96330
+ } : function(obj) {
96331
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
96332
+ };
96333
+ var _createClass = /* @__PURE__ */ (function() {
96334
+ function defineProperties(target, props) {
96335
+ for (var i = 0; i < props.length; i++) {
96336
+ var descriptor = props[i];
96337
+ descriptor.enumerable = descriptor.enumerable || false;
96338
+ descriptor.configurable = true;
96339
+ if ("value" in descriptor) descriptor.writable = true;
96340
+ Object.defineProperty(target, descriptor.key, descriptor);
96341
+ }
96342
+ }
96343
+ return function(Constructor, protoProps, staticProps) {
96344
+ if (protoProps) defineProperties(Constructor.prototype, protoProps);
96345
+ if (staticProps) defineProperties(Constructor, staticProps);
96346
+ return Constructor;
96347
+ };
96348
+ })();
96349
+ function _classCallCheck(instance, Constructor) {
96350
+ if (!(instance instanceof Constructor)) {
96351
+ throw new TypeError("Cannot call a class as a function");
96352
+ }
96353
+ }
96354
+ var assert2 = require_assert2();
96355
+ var BiLogger = require_bi_logger();
96356
+ var biLoggerManager = require_bi_logger_manager();
96357
+ var BatchQueue = require_batch_queue2();
96358
+ var BiLoggerFactory = (function() {
96359
+ function BiLoggerFactory2() {
96360
+ _classCallCheck(this, BiLoggerFactory2);
96361
+ this._publishers = [];
96362
+ this._validators = [];
96363
+ this._defaults = {};
96364
+ this._nonEssentialDefaults = {};
96365
+ this._events = {};
96366
+ this._isMuted = false;
96367
+ this._eventTransformer = null;
96368
+ this._payloadTransformer = null;
96369
+ this._consentPolicyGetter = null;
96370
+ this._maxBatchSize = null;
96371
+ this._batchQueue = null;
96372
+ }
96373
+ _createClass(BiLoggerFactory2, [{
96374
+ key: "addPublisher",
96375
+ value: function addPublisher(publisher) {
96376
+ assert2.defined(publisher, "Publisher must be provided");
96377
+ assert2.ok(typeof publisher === "function", "Expected a publisher function");
96378
+ this._publishers.push(publisher);
96379
+ return this;
96380
+ }
96381
+ }, {
96382
+ key: "addValidator",
96383
+ value: function addValidator(validator) {
96384
+ assert2.defined(validator, "Validator must be provided");
96385
+ assert2.ok((typeof validator === "undefined" ? "undefined" : _typeof(validator)) === "object" && validator, "Expected a validator object");
96386
+ assert2.ok(validator.execute && validator.match, "Provided validator does not match the interface");
96387
+ this._validators.push(validator);
96388
+ return this;
96389
+ }
96390
+ }, {
96391
+ key: "setDefaults",
96392
+ value: function setDefaults(defaults) {
96393
+ assert2.defined(defaults, "Defaults must be provided");
96394
+ assert2.object(defaults, "Defaults must be an object");
96395
+ this._defaults = defaults;
96396
+ return this;
96397
+ }
96398
+ }, {
96399
+ key: "updateDefaults",
96400
+ value: function updateDefaults(defaults) {
96401
+ assert2.defined(defaults, "Defaults must be provided");
96402
+ assert2.object(defaults, "Defaults must be an object");
96403
+ Object.assign(this._defaults, defaults);
96404
+ return this;
96405
+ }
96406
+ }, {
96407
+ key: "updateNonEssentialDefaults",
96408
+ value: function updateNonEssentialDefaults(defaults) {
96409
+ assert2.defined(defaults, "Non-essential Defaults must be provided");
96410
+ assert2.object(defaults, "Non-essential Defaults must be an object");
96411
+ Object.assign(this._nonEssentialDefaults, defaults);
96412
+ return this;
96413
+ }
96414
+ }, {
96415
+ key: "setEvents",
96416
+ value: function setEvents(events) {
96417
+ assert2.defined(events, "Events must be provided");
96418
+ assert2.object(events, "Events must be an object");
96419
+ this._events = events;
96420
+ return this;
96421
+ }
96422
+ }, {
96423
+ key: "setDefaultValueTimeout",
96424
+ value: function setDefaultValueTimeout(defaultValueTimeout) {
96425
+ assert2.defined(defaultValueTimeout, "Default Value Timeout must be provided");
96426
+ this._defaultValueTimeout = defaultValueTimeout;
96427
+ return this;
96428
+ }
96429
+ }, {
96430
+ key: "setDefaultContinueOnFail",
96431
+ value: function setDefaultContinueOnFail(defaultContinueOnFail) {
96432
+ assert2.defined(defaultContinueOnFail, "Default Continue On Fail must be provided");
96433
+ this._defaultContinueOnFail = defaultContinueOnFail;
96434
+ return this;
96435
+ }
96436
+ }, {
96437
+ key: "setPublisherFailHandler",
96438
+ value: function setPublisherFailHandler(onPublisherFailHandler) {
96439
+ assert2.defined(onPublisherFailHandler, "Publisher Fail Handler must be provided");
96440
+ this._onPublisherFailHandler = onPublisherFailHandler;
96441
+ return this;
96442
+ }
96443
+ }, {
96444
+ key: "setMuted",
96445
+ value: function setMuted(isMuted) {
96446
+ assert2.defined(isMuted, "Is Muted must be provided");
96447
+ assert2.boolean(isMuted, "Is Muted must be a boolean");
96448
+ this._isMuted = isMuted;
96449
+ return this;
96450
+ }
96451
+ }, {
96452
+ key: "setMaxBatchSize",
96453
+ value: function setMaxBatchSize(maxBatchSize) {
96454
+ assert2.defined(maxBatchSize, "Max Batch Size must be provided");
96455
+ assert2.number(maxBatchSize, "Max Batch Size must be a number");
96456
+ assert2.ok(maxBatchSize > 0, "Max Batch Size must be higher than 0");
96457
+ this._maxBatchSize = maxBatchSize;
96458
+ return this;
96459
+ }
96460
+ }, {
96461
+ key: "setGlobalBatchQueue",
96462
+ value: function setGlobalBatchQueue(batchQueue) {
96463
+ assert2.defined(batchQueue, "Global Batch Queue must be provided");
96464
+ assert2.ok(batchQueue instanceof BatchQueue, "Global Batch Queue must be an instance of BatchQueue");
96465
+ this._globalBatchQueue = batchQueue;
96466
+ return this;
96467
+ }
96468
+ }, {
96469
+ key: "withEventTransformer",
96470
+ value: function withEventTransformer(transformer) {
96471
+ assert2.defined(transformer, "Event Transformer must be provided");
96472
+ assert2.func(transformer, "Event Transformer must be a function");
96473
+ this._eventTransformer = transformer;
96474
+ return this;
96475
+ }
96476
+ }, {
96477
+ key: "withPayloadTransformer",
96478
+ value: function withPayloadTransformer(transformer) {
96479
+ assert2.defined(transformer, "Payload Transformer must be provided");
96480
+ assert2.func(transformer, "Payload Transformer must be a function");
96481
+ this._payloadTransformer = transformer;
96482
+ return this;
96483
+ }
96484
+ }, {
96485
+ key: "withConsentPolicyGetter",
96486
+ value: function withConsentPolicyGetter(getter) {
96487
+ assert2.defined(getter, "Consent Policy Getter must be provided");
96488
+ assert2.func(getter, "Consent Policy Getter must be a function");
96489
+ this._consentPolicyGetter = getter;
96490
+ return this;
96491
+ }
96492
+ }, {
96493
+ key: "logger",
96494
+ value: function logger(context2) {
96495
+ var _this = this;
96496
+ var logger2 = new BiLogger({
96497
+ publishers: this._publishers,
96498
+ validators: this._validators,
96499
+ defaults: this._defaults,
96500
+ events: this._events,
96501
+ defaultValueTimeout: this._defaultValueTimeout,
96502
+ defaultContinueOnFail: this._defaultContinueOnFail,
96503
+ onPublisherFailHandler: this._onPublisherFailHandler,
96504
+ isMuted: function isMuted() {
96505
+ return _this._isMuted;
96506
+ },
96507
+ eventTransformer: this._eventTransformer,
96508
+ payloadTransformer: this._payloadTransformer,
96509
+ consentPolicyGetter: this._consentPolicyGetter,
96510
+ nonEssentialDefaults: this._nonEssentialDefaults,
96511
+ maxBatchSize: this._maxBatchSize,
96512
+ globalBatchQueue: this._globalBatchQueue
96513
+ }, context2);
96514
+ biLoggerManager.manager.notifyLoggerCreated(logger2);
96515
+ return logger2;
96516
+ }
96517
+ }]);
96518
+ return BiLoggerFactory2;
96519
+ })();
96520
+ module2.exports = BiLoggerFactory;
96521
+ }
96522
+ });
96523
+
96524
+ // ../../node_modules/@wix/wix-bi-logger-client/dist/index.js
96525
+ var require_dist16 = __commonJS({
96526
+ "../../node_modules/@wix/wix-bi-logger-client/dist/index.js"(exports2, module2) {
96527
+ "use strict";
96528
+ var BiLoggerClientFactory = require_bi_logger_factory();
96529
+ var BiLogger = require_bi_logger();
96530
+ var biLoggerManager = require_bi_logger_manager();
96531
+ var BatchQueue = require_batch_queue2();
96532
+ module2.exports.BiLoggerFactory = BiLoggerClientFactory;
96533
+ module2.exports.BiLogger = BiLogger;
96534
+ module2.exports.BiLoggerManager = biLoggerManager.BiLoggerManager;
96535
+ module2.exports.factory = function() {
96536
+ return new BiLoggerClientFactory();
96537
+ };
96538
+ module2.exports.manager = biLoggerManager.manager;
96539
+ module2.exports.createBatchQueue = function() {
96540
+ return new BatchQueue();
96541
+ };
96542
+ }
96543
+ });
96544
+
96545
+ // dist/biLogger.js
96546
+ var require_biLogger = __commonJS({
96547
+ "dist/biLogger.js"(exports2) {
96548
+ "use strict";
96549
+ Object.defineProperty(exports2, "__esModule", { value: true });
96550
+ exports2.biLogger = void 0;
96551
+ var wix_bi_logger_client_1 = require_dist16();
96552
+ var biPublisher = async (event) => {
96553
+ const { src, evid, ...params } = event;
96554
+ const queryString = Object.entries({ src, evid, ...params }).filter(([, v]) => v !== void 0 && v !== null).map(([k, v]) => `${encodeURIComponent(k)}=${encodeURIComponent(String(v))}`).join("&");
96555
+ await fetch(`https://frog.wix.com/code?${queryString}`);
96556
+ };
96557
+ exports2.biLogger = (0, wix_bi_logger_client_1.factory)().addPublisher(biPublisher).logger();
96558
+ }
96559
+ });
96560
+
96561
+ // dist/biEvents.js
96562
+ var require_biEvents = __commonJS({
96563
+ "dist/biEvents.js"(exports2) {
96564
+ "use strict";
96565
+ Object.defineProperty(exports2, "__esModule", { value: true });
96566
+ exports2.reportSessionStart = reportSessionStart;
96567
+ exports2.reportSessionEnd = reportSessionEnd;
96568
+ exports2.reportSessionError = reportSessionError;
96569
+ var v2_1 = require_v2();
96570
+ var biLogger_1 = require_biLogger();
96571
+ var logger_12 = require_logger();
96572
+ function reportSessionStart(params) {
96573
+ logger_12.logger.info("Reporting BI event 200 (session start)", params);
96574
+ void biLogger_1.biLogger.report((0, v2_1.devibeCodegenAgentSessionStartSrc196Evid200)(params));
96575
+ }
96576
+ function reportSessionEnd(params) {
96577
+ logger_12.logger.info("Reporting BI event 201 (session end)", params);
96578
+ void biLogger_1.biLogger.report((0, v2_1.devibeCodegenAgentSessionEndSrc196Evid201)(params));
96579
+ }
96580
+ function reportSessionError(params) {
96581
+ logger_12.logger.info("Reporting BI event 202 (session error)", params);
96582
+ void biLogger_1.biLogger.report((0, v2_1.devibeCodegenAgentSessionErrorSrc196Evid202)(params));
96583
+ }
96584
+ }
96585
+ });
96586
+
94926
96587
  // dist/job-decision-manager.js
94927
96588
  var require_job_decision_manager = __commonJS({
94928
96589
  "dist/job-decision-manager.js"(exports2) {
@@ -95161,6 +96822,8 @@ var require_opencode_init = __commonJS({
95161
96822
  var ditto_codegen_types_2 = require_dist4();
95162
96823
  var context_12 = require_context();
95163
96824
  var logger_12 = require_logger();
96825
+ var config_1 = require_config();
96826
+ var biEvents_1 = require_biEvents();
95164
96827
  var pre_run_decision_1 = require_pre_run_decision();
95165
96828
  var experiments_1 = require_experiments();
95166
96829
  var runOpencodeInitFlow = async (blueprint, history) => {
@@ -95168,14 +96831,25 @@ var require_opencode_init = __commonJS({
95168
96831
  if (!store?.jobId || !store?.taskId) {
95169
96832
  throw new Error("Job context not available - jobId and taskId are required");
95170
96833
  }
95171
- const localJobContext = {
95172
- jobId: store.jobId,
95173
- taskId: store.taskId
95174
- };
95175
- const jobLog = (0, logger_12.getJobLogger)(localJobContext.jobId, localJobContext.taskId);
95176
- jobLog.info(`[OpenCode Init] Starting opencode init task: jobId=${localJobContext?.jobId}, taskId=${localJobContext?.taskId}`);
95177
- await codeGenerationService_12.codeGenerationService.updateTask(localJobContext.jobId, localJobContext.taskId, ditto_codegen_types_12.Status.RUNNING, {});
95178
- jobLog.info(`[OpenCode Init] Marked task RUNNING: jobId=${localJobContext.jobId}, taskId=${localJobContext.taskId}`);
96834
+ const { jobId, taskId, kind } = store;
96835
+ const localJobContext = { jobId, taskId };
96836
+ const jobLog = (0, logger_12.getJobLogger)(jobId, taskId);
96837
+ const biBaseParams = {
96838
+ Job_id: jobId,
96839
+ Task_id: taskId,
96840
+ app_id: context_12.ctx.projectId,
96841
+ Dev_machine_session_id: process.env.CODEGEN_SESSION_ID,
96842
+ run_kind: kind,
96843
+ job_input: JSON.stringify(history)
96844
+ };
96845
+ jobLog.info(`[OpenCode Init] Starting opencode init task: jobId=${jobId}, taskId=${taskId}`);
96846
+ await codeGenerationService_12.codeGenerationService.updateTask(jobId, taskId, ditto_codegen_types_12.Status.RUNNING, {});
96847
+ jobLog.info(`[OpenCode Init] Marked task RUNNING: jobId=${jobId}, taskId=${taskId}`);
96848
+ (0, biEvents_1.reportSessionStart)({
96849
+ ...biBaseParams,
96850
+ Task_model: config_1.DEFAULT_MODEL,
96851
+ Task_type: kind
96852
+ });
95179
96853
  try {
95180
96854
  const outputPath = (0, codegen_flow_helpers_12.getOutputPath)();
95181
96855
  let finalBlueprint = blueprint;
@@ -95198,15 +96872,25 @@ var require_opencode_init = __commonJS({
95198
96872
  requiredPermissions: result.requiredPermissions,
95199
96873
  history
95200
96874
  });
95201
- await codeGenerationService_12.codeGenerationService.updateTask(localJobContext.jobId, localJobContext.taskId, ditto_codegen_types_12.Status.COMPLETED, {
95202
- taskOutput: {
95203
- files: result.filesChanged.map((file2) => ({
95204
- path: file2.path,
95205
- operation: file2.operation
95206
- }))
95207
- }
96875
+ const taskOutput = {
96876
+ files: result.filesChanged.map((file2) => ({
96877
+ path: file2.path,
96878
+ operation: file2.operation
96879
+ }))
96880
+ };
96881
+ await codeGenerationService_12.codeGenerationService.updateTask(jobId, taskId, ditto_codegen_types_12.Status.COMPLETED, {
96882
+ taskOutput
95208
96883
  });
95209
- jobLog.info(`[OpenCode Init] Completed opencode init task: jobId=${localJobContext.jobId}, taskId=${localJobContext.taskId}`);
96884
+ (0, biEvents_1.reportSessionEnd)({
96885
+ ...biBaseParams,
96886
+ Task_model: config_1.DEFAULT_MODEL,
96887
+ Task_type: kind,
96888
+ Task_cost: Math.round(result.usage.cost * 1e6),
96889
+ Task_status: ditto_codegen_types_12.Status.COMPLETED,
96890
+ Agent_output: JSON.stringify(taskOutput),
96891
+ Job_skills_used: result.skillsUsed.join(",")
96892
+ });
96893
+ jobLog.info(`[OpenCode Init] Completed opencode init task: jobId=${jobId}, taskId=${taskId}`);
95210
96894
  } catch (error48) {
95211
96895
  const codegenError = (0, ditto_codegen_types_2.toCodegenError)(error48);
95212
96896
  await (0, codegen_flow_helpers_12.updateJobPayload)(localJobContext, {
@@ -95215,7 +96899,25 @@ var require_opencode_init = __commonJS({
95215
96899
  history
95216
96900
  });
95217
96901
  await (0, codegen_flow_helpers_12.updateParentTaskStatus)(localJobContext, ditto_codegen_types_12.Status.FAILED, codegenError);
95218
- jobLog.error(`[OpenCode Init] Failed opencode init task: jobId=${localJobContext.jobId}, taskId=${localJobContext.taskId}`, { error: error48 instanceof Error ? error48.message : String(error48) });
96902
+ (0, biEvents_1.reportSessionEnd)({
96903
+ ...biBaseParams,
96904
+ Task_model: config_1.DEFAULT_MODEL,
96905
+ Task_type: kind,
96906
+ Task_status: ditto_codegen_types_12.Status.FAILED
96907
+ });
96908
+ (0, biEvents_1.reportSessionError)({
96909
+ ...biBaseParams,
96910
+ task_model: config_1.DEFAULT_MODEL,
96911
+ task_type: kind,
96912
+ Agent_output: JSON.stringify(codegenError),
96913
+ Error_desc: codegenError.errorType,
96914
+ error_massage: codegenError.message,
96915
+ error_json: JSON.stringify(codegenError),
96916
+ is_retryable: codegenError.retryable,
96917
+ is_expected: codegenError.expected,
96918
+ validation_type: codegenError.validationType
96919
+ });
96920
+ jobLog.error(`[OpenCode Init] Failed opencode init task: jobId=${jobId}, taskId=${taskId}`, { error: error48 instanceof Error ? error48.message : String(error48) });
95219
96921
  }
95220
96922
  };
95221
96923
  exports2.runOpencodeInitFlow = runOpencodeInitFlow;
@@ -95268,7 +96970,9 @@ var require_OpenCodeIterationOrchestrator = __commonJS({
95268
96970
  this.emitEvent("finish:iteration", { outputPath, durationMs });
95269
96971
  return {
95270
96972
  requiredPermissions: result.requiredPermissions,
95271
- filesChanged: result.filesChanged
96973
+ filesChanged: result.filesChanged,
96974
+ usage: result.usage,
96975
+ skillsUsed: result.skillsUsed
95272
96976
  };
95273
96977
  }
95274
96978
  };
@@ -95291,19 +96995,32 @@ var require_opencode_iterate = __commonJS({
95291
96995
  var ditto_codegen_types_2 = require_dist4();
95292
96996
  var context_12 = require_context();
95293
96997
  var logger_12 = require_logger();
96998
+ var config_1 = require_config();
96999
+ var biEvents_1 = require_biEvents();
95294
97000
  var runOpencodeIterateFlow = async (chatHistory) => {
95295
97001
  const store = job_context_storage_12.jobContextStorage.getStore();
95296
97002
  if (!store?.jobId || !store?.taskId) {
95297
97003
  throw new Error("Job context not available - jobId and taskId are required");
95298
97004
  }
95299
- const localJobContext = {
95300
- jobId: store.jobId,
95301
- taskId: store.taskId
95302
- };
95303
- const jobLog = (0, logger_12.getJobLogger)(localJobContext.jobId, localJobContext.taskId);
95304
- jobLog.info(`[OpenCode Iterate] Starting opencode iterate task: jobId=${localJobContext?.jobId}, taskId=${localJobContext?.taskId}`);
95305
- await codeGenerationService_12.codeGenerationService.updateTask(localJobContext.jobId, localJobContext.taskId, ditto_codegen_types_12.Status.RUNNING, {});
95306
- jobLog.info(`[OpenCode Iterate] Marked task RUNNING: jobId=${localJobContext.jobId}, taskId=${localJobContext.taskId}`);
97005
+ const { jobId, taskId, kind } = store;
97006
+ const localJobContext = { jobId, taskId };
97007
+ const jobLog = (0, logger_12.getJobLogger)(jobId, taskId);
97008
+ const biBaseParams = {
97009
+ Job_id: jobId,
97010
+ Task_id: taskId,
97011
+ app_id: context_12.ctx.projectId,
97012
+ Dev_machine_session_id: process.env.CODEGEN_SESSION_ID,
97013
+ run_kind: kind,
97014
+ job_input: JSON.stringify(chatHistory)
97015
+ };
97016
+ jobLog.info(`[OpenCode Iterate] Starting opencode iterate task: jobId=${jobId}, taskId=${taskId}`);
97017
+ await codeGenerationService_12.codeGenerationService.updateTask(jobId, taskId, ditto_codegen_types_12.Status.RUNNING, {});
97018
+ jobLog.info(`[OpenCode Iterate] Marked task RUNNING: jobId=${jobId}, taskId=${taskId}`);
97019
+ (0, biEvents_1.reportSessionStart)({
97020
+ ...biBaseParams,
97021
+ Task_model: config_1.DEFAULT_MODEL,
97022
+ Task_type: kind
97023
+ });
95307
97024
  try {
95308
97025
  const outputPath = (0, codegen_flow_helpers_12.getOutputPath)();
95309
97026
  const iterationOrchestrator = new OpenCodeIterationOrchestrator_1.OpenCodeIterationOrchestrator();
@@ -95316,13 +97033,23 @@ var require_opencode_iterate = __commonJS({
95316
97033
  await (0, codegen_flow_helpers_12.updateJobPayload)(localJobContext, {
95317
97034
  requiredPermissions: result.requiredPermissions
95318
97035
  });
95319
- await codeGenerationService_12.codeGenerationService.updateTask(localJobContext.jobId, localJobContext.taskId, ditto_codegen_types_12.Status.COMPLETED, {
95320
- taskOutput: {
95321
- files: result.filesChanged.map((file2) => ({
95322
- path: file2.path,
95323
- operation: file2.operation
95324
- }))
95325
- }
97036
+ const taskOutput = {
97037
+ files: result.filesChanged.map((file2) => ({
97038
+ path: file2.path,
97039
+ operation: file2.operation
97040
+ }))
97041
+ };
97042
+ await codeGenerationService_12.codeGenerationService.updateTask(jobId, taskId, ditto_codegen_types_12.Status.COMPLETED, {
97043
+ taskOutput
97044
+ });
97045
+ (0, biEvents_1.reportSessionEnd)({
97046
+ ...biBaseParams,
97047
+ Task_model: config_1.DEFAULT_MODEL,
97048
+ Task_type: kind,
97049
+ Task_cost: Math.round(result.usage.cost * 1e6),
97050
+ Task_status: ditto_codegen_types_12.Status.COMPLETED,
97051
+ Agent_output: JSON.stringify(taskOutput),
97052
+ Job_skills_used: result.skillsUsed.join(",")
95326
97053
  });
95327
97054
  jobLog.info("[OpenCode Iterate] Completed task");
95328
97055
  } catch (error48) {
@@ -95332,6 +97059,24 @@ var require_opencode_iterate = __commonJS({
95332
97059
  requiredPermissionsErrors: codegenError
95333
97060
  });
95334
97061
  await (0, codegen_flow_helpers_12.updateParentTaskStatus)(localJobContext, ditto_codegen_types_12.Status.FAILED, codegenError);
97062
+ (0, biEvents_1.reportSessionEnd)({
97063
+ ...biBaseParams,
97064
+ Task_model: config_1.DEFAULT_MODEL,
97065
+ Task_type: kind,
97066
+ Task_status: ditto_codegen_types_12.Status.FAILED
97067
+ });
97068
+ (0, biEvents_1.reportSessionError)({
97069
+ ...biBaseParams,
97070
+ task_model: config_1.DEFAULT_MODEL,
97071
+ task_type: kind,
97072
+ Agent_output: JSON.stringify(codegenError),
97073
+ Error_desc: codegenError.errorType,
97074
+ error_massage: codegenError.message,
97075
+ error_json: JSON.stringify(codegenError),
97076
+ is_retryable: codegenError.retryable,
97077
+ is_expected: codegenError.expected,
97078
+ validation_type: codegenError.validationType
97079
+ });
95335
97080
  jobLog.error("[OpenCode Iterate] Failed task", {
95336
97081
  error: error48 instanceof Error ? error48.message : String(error48)
95337
97082
  });
@@ -96870,7 +98615,7 @@ var require_DataCollectionsExtensionSchema = __commonJS({
96870
98615
  });
96871
98616
 
96872
98617
  // ../../node_modules/@wix/wix-data-collections-extension-schema/dist/index.js
96873
- var require_dist16 = __commonJS({
98618
+ var require_dist17 = __commonJS({
96874
98619
  "../../node_modules/@wix/wix-data-collections-extension-schema/dist/index.js"(exports2) {
96875
98620
  "use strict";
96876
98621
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -96910,7 +98655,7 @@ var require_PlannerAgentSchema = __commonJS({
96910
98655
  var ApiSpecSchema_1 = require_ApiSpecSchema();
96911
98656
  var EmbeddedScriptSchema_1 = require_EmbeddedScriptSchema();
96912
98657
  var ditto_codegen_types_12 = require_dist4();
96913
- var wix_data_collections_extension_schema_1 = require_dist16();
98658
+ var wix_data_collections_extension_schema_1 = require_dist17();
96914
98659
  var zod_1 = __importDefault2(require_zod());
96915
98660
  var CollectionSchema = wix_data_collections_extension_schema_1.DataCollectionsExtensionSchema.shape.collections.element.describe("The collection data");
96916
98661
  var DeleteCollectionDataSchema = zod_1.default.object({
@@ -125411,7 +127156,7 @@ var require_AutoPatternsContextAgent = __commonJS({
125411
127156
  });
125412
127157
 
125413
127158
  // ../codegen-dashboard-agents/dist/index.js
125414
- var require_dist17 = __commonJS({
127159
+ var require_dist18 = __commonJS({
125415
127160
  "../codegen-dashboard-agents/dist/index.js"(exports2) {
125416
127161
  "use strict";
125417
127162
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -125464,7 +127209,7 @@ var require_dashboard_page_instructions = __commonJS({
125464
127209
  var dynamicParameters_1 = require_dynamicParameters2();
125465
127210
  var ecomPackage_1 = require_ecomPackage();
125466
127211
  var wdsPackage_1 = require_wdsPackage();
125467
- var codegen_dashboard_agents_1 = require_dist17();
127212
+ var codegen_dashboard_agents_1 = require_dist18();
125468
127213
  exports2.supportedWDSComponents = /* @__PURE__ */ new Set([
125469
127214
  "AutoComplete",
125470
127215
  "Badge",
@@ -127590,7 +129335,7 @@ var require_DashboardDecisionAgent = __commonJS({
127590
129335
  Object.defineProperty(exports2, "__esModule", { value: true });
127591
129336
  exports2.DashboardDecisionAgent = void 0;
127592
129337
  var zod_1 = require_zod();
127593
- var codegen_dashboard_agents_1 = require_dist17();
129338
+ var codegen_dashboard_agents_1 = require_dist18();
127594
129339
  var prompt_selectors_1 = require_prompt_selectors();
127595
129340
  var types_1 = require_types_impl2();
127596
129341
  var userPrompt_1 = require_userPrompt();
@@ -128566,7 +130311,7 @@ var require_update_extension_agent_prompt = __commonJS({
128566
130311
  var codegen_common_logic_1 = require_dist12();
128567
130312
  var AgentsRegistry_1 = require_AgentsRegistry();
128568
130313
  var api_1 = require_api2();
128569
- var codegen_dashboard_agents_1 = require_dist17();
130314
+ var codegen_dashboard_agents_1 = require_dist18();
128570
130315
  async function getExtensionSpecificPrompt(extensions) {
128571
130316
  const corePrompts = [];
128572
130317
  const allApiDocumentation = /* @__PURE__ */ new Set();
@@ -128611,7 +130356,7 @@ var require_UpdateExtensionAgent = __commonJS({
128611
130356
  var update_extension_agent_prompt_1 = require_update_extension_agent_prompt();
128612
130357
  var contextBuilders_1 = require_contextBuilders();
128613
130358
  var userPrompt_1 = require_userPrompt();
128614
- var codegen_dashboard_agents_1 = require_dist17();
130359
+ var codegen_dashboard_agents_1 = require_dist18();
128615
130360
  var codeGenerationService_12 = require_codeGenerationService();
128616
130361
  var types_1 = require_types_impl2();
128617
130362
  var logger_12 = require_logger();