@wix/ditto-codegen-public 1.0.266 → 1.0.268
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/out.js +2150 -217
- package/package.json +2 -2
package/dist/out.js
CHANGED
|
@@ -47,6 +47,7 @@ var require_types_impl = __commonJS({
|
|
|
47
47
|
TaskKind2["ITERATE_CODEGEN"] = "ITERATE_CODEGEN";
|
|
48
48
|
TaskKind2["RUN_AGENT"] = "RUN_AGENT";
|
|
49
49
|
TaskKind2["FIX_CODE"] = "FIX_CODE";
|
|
50
|
+
TaskKind2["ASK_CODEGEN"] = "ASK_CODEGEN";
|
|
50
51
|
})(TaskKind || (exports2.TaskKind = TaskKind = {}));
|
|
51
52
|
var Status;
|
|
52
53
|
(function(Status2) {
|
|
@@ -48473,24 +48474,6 @@ var require_DittoEventEmitter = __commonJS({
|
|
|
48473
48474
|
}
|
|
48474
48475
|
});
|
|
48475
48476
|
|
|
48476
|
-
// dist/opencode-integration/types.js
|
|
48477
|
-
var require_types5 = __commonJS({
|
|
48478
|
-
"dist/opencode-integration/types.js"(exports2) {
|
|
48479
|
-
"use strict";
|
|
48480
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
48481
|
-
exports2.ASK_MODE = void 0;
|
|
48482
|
-
exports2.tryParseJson = tryParseJson;
|
|
48483
|
-
exports2.ASK_MODE = "ask";
|
|
48484
|
-
function tryParseJson(text) {
|
|
48485
|
-
try {
|
|
48486
|
-
return JSON.parse(text);
|
|
48487
|
-
} catch {
|
|
48488
|
-
return null;
|
|
48489
|
-
}
|
|
48490
|
-
}
|
|
48491
|
-
}
|
|
48492
|
-
});
|
|
48493
|
-
|
|
48494
48477
|
// dist/opencode-integration/prompts/prompt-utils.js
|
|
48495
48478
|
var require_prompt_utils = __commonJS({
|
|
48496
48479
|
"dist/opencode-integration/prompts/prompt-utils.js"(exports2) {
|
|
@@ -48711,6 +48694,94 @@ var require_prompts = __commonJS({
|
|
|
48711
48694
|
}
|
|
48712
48695
|
});
|
|
48713
48696
|
|
|
48697
|
+
// dist/opencode-integration/task-tracker/constants.js
|
|
48698
|
+
var require_constants6 = __commonJS({
|
|
48699
|
+
"dist/opencode-integration/task-tracker/constants.js"(exports2) {
|
|
48700
|
+
"use strict";
|
|
48701
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
48702
|
+
exports2.BUILDER_TO_EXTENSION_LABEL = exports2.WRITE_TOOLS = exports2.CODE_SEARCH_TOOLS = exports2.WIX_MCP_SERVER_NAME = exports2.CONTAINER_ROOT_PREFIX = void 0;
|
|
48703
|
+
exports2.resolveFileOperation = resolveFileOperation;
|
|
48704
|
+
exports2.isMcpTool = isMcpTool;
|
|
48705
|
+
exports2.normalizeFilePath = normalizeFilePath;
|
|
48706
|
+
exports2.isExtensionsFile = isExtensionsFile;
|
|
48707
|
+
exports2.detectExtensionType = detectExtensionType;
|
|
48708
|
+
exports2.toTitleCase = toTitleCase;
|
|
48709
|
+
exports2.extractExtensionName = extractExtensionName;
|
|
48710
|
+
exports2.getWrittenContent = getWrittenContent;
|
|
48711
|
+
var ditto_codegen_types_12 = require_dist4();
|
|
48712
|
+
exports2.CONTAINER_ROOT_PREFIX = /^\/user-code\//;
|
|
48713
|
+
exports2.WIX_MCP_SERVER_NAME = "wix-mcp";
|
|
48714
|
+
var EXTENSION_FILE_PATTERN = /\/extensions\.ts$|\.extension\.ts$/;
|
|
48715
|
+
function resolveFileOperation(tool2, metadata) {
|
|
48716
|
+
if (tool2 === "write") {
|
|
48717
|
+
return metadata?.exists ? ditto_codegen_types_12.ExtensionGenerationOperation.EDIT : ditto_codegen_types_12.ExtensionGenerationOperation.INSERT;
|
|
48718
|
+
}
|
|
48719
|
+
if (tool2 === "edit") {
|
|
48720
|
+
return ditto_codegen_types_12.ExtensionGenerationOperation.EDIT;
|
|
48721
|
+
}
|
|
48722
|
+
return null;
|
|
48723
|
+
}
|
|
48724
|
+
exports2.CODE_SEARCH_TOOLS = /* @__PURE__ */ new Set(["read", "grep", "glob", "list"]);
|
|
48725
|
+
exports2.WRITE_TOOLS = /* @__PURE__ */ new Set(["write", "edit"]);
|
|
48726
|
+
exports2.BUILDER_TO_EXTENSION_LABEL = {
|
|
48727
|
+
dashboardPage: "dashboard page",
|
|
48728
|
+
dashboardModal: "dashboard modal",
|
|
48729
|
+
dashboardPlugin: "dashboard plugin",
|
|
48730
|
+
dashboardMenuPlugin: "dashboard menu plugin",
|
|
48731
|
+
embeddedScript: "embedded script",
|
|
48732
|
+
event: "backend event",
|
|
48733
|
+
genericExtension: "extension",
|
|
48734
|
+
customElement: "custom element",
|
|
48735
|
+
siteComponent: "site component",
|
|
48736
|
+
sitePlugin: "site plugin",
|
|
48737
|
+
ecomShippingRates: "service plugin",
|
|
48738
|
+
ecomAdditionalFees: "service plugin",
|
|
48739
|
+
ecomValidations: "service plugin",
|
|
48740
|
+
ecomDiscountTriggers: "service plugin",
|
|
48741
|
+
ecomGiftCards: "service plugin",
|
|
48742
|
+
ecomPaymentSettings: "service plugin",
|
|
48743
|
+
bookingsStaffSortingProvider: "service plugin"
|
|
48744
|
+
};
|
|
48745
|
+
function isMcpTool(tool2) {
|
|
48746
|
+
return tool2.startsWith(exports2.WIX_MCP_SERVER_NAME);
|
|
48747
|
+
}
|
|
48748
|
+
function normalizeFilePath(filePath) {
|
|
48749
|
+
return filePath.replace(exports2.CONTAINER_ROOT_PREFIX, "");
|
|
48750
|
+
}
|
|
48751
|
+
function isExtensionsFile(filePath) {
|
|
48752
|
+
return EXTENSION_FILE_PATTERN.test(filePath);
|
|
48753
|
+
}
|
|
48754
|
+
function detectExtensionType(content) {
|
|
48755
|
+
if (content.includes("genericExtension(") && content.includes('compType: "DATA_COMPONENT"')) {
|
|
48756
|
+
return "collection";
|
|
48757
|
+
}
|
|
48758
|
+
for (const [builder, label] of Object.entries(exports2.BUILDER_TO_EXTENSION_LABEL)) {
|
|
48759
|
+
if (content.includes(`extensions.${builder}(`)) {
|
|
48760
|
+
return label;
|
|
48761
|
+
}
|
|
48762
|
+
}
|
|
48763
|
+
return null;
|
|
48764
|
+
}
|
|
48765
|
+
function toTitleCase(str) {
|
|
48766
|
+
return str.split("-").map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join(" ");
|
|
48767
|
+
}
|
|
48768
|
+
function extractExtensionName(filePath) {
|
|
48769
|
+
const parts = normalizeFilePath(filePath).split("/");
|
|
48770
|
+
const folderName = parts[parts.length - 2] || "";
|
|
48771
|
+
return toTitleCase(folderName);
|
|
48772
|
+
}
|
|
48773
|
+
function getWrittenContent(tool2, state) {
|
|
48774
|
+
if (!state.input)
|
|
48775
|
+
return null;
|
|
48776
|
+
if (tool2 === "write" && state.input.content)
|
|
48777
|
+
return state.input.content;
|
|
48778
|
+
if (tool2 === "edit" && state.input.new_string)
|
|
48779
|
+
return state.input.new_string;
|
|
48780
|
+
return null;
|
|
48781
|
+
}
|
|
48782
|
+
}
|
|
48783
|
+
});
|
|
48784
|
+
|
|
48714
48785
|
// dist/opencode-integration/config.js
|
|
48715
48786
|
var require_config = __commonJS({
|
|
48716
48787
|
"dist/opencode-integration/config.js"(exports2) {
|
|
@@ -48722,6 +48793,7 @@ var require_config = __commonJS({
|
|
|
48722
48793
|
exports2.getOpenCodeAskEnv = getOpenCodeAskEnv;
|
|
48723
48794
|
var os_1 = require("os");
|
|
48724
48795
|
var codeGenerationService_12 = require_codeGenerationService();
|
|
48796
|
+
var constants_1 = require_constants6();
|
|
48725
48797
|
exports2.DEFAULT_TIMEOUT_MS = 20 * 60 * 1e3;
|
|
48726
48798
|
exports2.DEFAULT_MODEL = "anthropic/claude-sonnet-4-6";
|
|
48727
48799
|
function getAnthropicBaseUrl(projectId) {
|
|
@@ -48741,7 +48813,7 @@ var require_config = __commonJS({
|
|
|
48741
48813
|
};
|
|
48742
48814
|
}
|
|
48743
48815
|
var WIX_MCP_CONFIG = {
|
|
48744
|
-
|
|
48816
|
+
[constants_1.WIX_MCP_SERVER_NAME]: {
|
|
48745
48817
|
type: "local",
|
|
48746
48818
|
command: [
|
|
48747
48819
|
"npx",
|
|
@@ -48830,6 +48902,22 @@ var require_config = __commonJS({
|
|
|
48830
48902
|
}
|
|
48831
48903
|
});
|
|
48832
48904
|
|
|
48905
|
+
// dist/opencode-integration/types.js
|
|
48906
|
+
var require_types5 = __commonJS({
|
|
48907
|
+
"dist/opencode-integration/types.js"(exports2) {
|
|
48908
|
+
"use strict";
|
|
48909
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
48910
|
+
exports2.tryParseJson = tryParseJson;
|
|
48911
|
+
function tryParseJson(text) {
|
|
48912
|
+
try {
|
|
48913
|
+
return JSON.parse(text);
|
|
48914
|
+
} catch {
|
|
48915
|
+
return null;
|
|
48916
|
+
}
|
|
48917
|
+
}
|
|
48918
|
+
}
|
|
48919
|
+
});
|
|
48920
|
+
|
|
48833
48921
|
// dist/opencode-integration/parser.js
|
|
48834
48922
|
var require_parser = __commonJS({
|
|
48835
48923
|
"dist/opencode-integration/parser.js"(exports2) {
|
|
@@ -48844,10 +48932,7 @@ var require_parser = __commonJS({
|
|
|
48844
48932
|
exports2.formatUsageStats = formatUsageStats;
|
|
48845
48933
|
var ditto_codegen_types_12 = require_dist4();
|
|
48846
48934
|
var types_1 = require_types5();
|
|
48847
|
-
var
|
|
48848
|
-
write: ditto_codegen_types_12.ExtensionGenerationOperation.INSERT,
|
|
48849
|
-
edit: ditto_codegen_types_12.ExtensionGenerationOperation.EDIT
|
|
48850
|
-
};
|
|
48935
|
+
var constants_1 = require_constants6();
|
|
48851
48936
|
function parseEvents(output, type) {
|
|
48852
48937
|
return output.split("\n").filter((line) => line.trim()).map((line) => (0, types_1.tryParseJson)(line)).filter((event) => event !== null && event.type === type);
|
|
48853
48938
|
}
|
|
@@ -48873,14 +48958,11 @@ var require_parser = __commonJS({
|
|
|
48873
48958
|
}
|
|
48874
48959
|
return [];
|
|
48875
48960
|
}
|
|
48876
|
-
function normalizeFilePath(filePath) {
|
|
48877
|
-
return filePath.replace(/^\/user-code\//, "");
|
|
48878
|
-
}
|
|
48879
48961
|
function parseFilesChanged(output) {
|
|
48880
48962
|
const filesChanged = [];
|
|
48881
48963
|
const seenPaths = /* @__PURE__ */ new Set();
|
|
48882
48964
|
const addFileChange = (filePath, operation) => {
|
|
48883
|
-
const normalizedPath = normalizeFilePath(filePath);
|
|
48965
|
+
const normalizedPath = (0, constants_1.normalizeFilePath)(filePath);
|
|
48884
48966
|
if (normalizedPath && !seenPaths.has(normalizedPath)) {
|
|
48885
48967
|
seenPaths.add(normalizedPath);
|
|
48886
48968
|
filesChanged.push({ path: normalizedPath, operation });
|
|
@@ -48895,13 +48977,13 @@ var require_parser = __commonJS({
|
|
|
48895
48977
|
continue;
|
|
48896
48978
|
}
|
|
48897
48979
|
const tool2 = event.part.tool;
|
|
48898
|
-
const
|
|
48980
|
+
const metadata = event.part.state.metadata;
|
|
48981
|
+
const operation = (0, constants_1.resolveFileOperation)(tool2, metadata);
|
|
48899
48982
|
if (operation) {
|
|
48900
48983
|
const filePath = event.part.state.input?.filePath;
|
|
48901
48984
|
if (filePath) {
|
|
48902
48985
|
addFileChange(filePath, operation);
|
|
48903
48986
|
}
|
|
48904
|
-
const metadata = event.part.state.metadata;
|
|
48905
48987
|
if (metadata?.diagnostics) {
|
|
48906
48988
|
for (const diagPath of Object.keys(metadata.diagnostics)) {
|
|
48907
48989
|
if (diagPath && !diagPath.includes("node_modules")) {
|
|
@@ -48912,7 +48994,7 @@ var require_parser = __commonJS({
|
|
|
48912
48994
|
}
|
|
48913
48995
|
if (tool2 === "task" && event.part.state.metadata?.summary) {
|
|
48914
48996
|
for (const item of event.part.state.metadata.summary) {
|
|
48915
|
-
const summaryOperation =
|
|
48997
|
+
const summaryOperation = (0, constants_1.resolveFileOperation)(item.tool);
|
|
48916
48998
|
if (summaryOperation && item.state?.status === "completed" && item.state?.title) {
|
|
48917
48999
|
addFileChange(item.state.title, summaryOperation);
|
|
48918
49000
|
}
|
|
@@ -48993,35 +49075,194 @@ var require_parser = __commonJS({
|
|
|
48993
49075
|
}
|
|
48994
49076
|
});
|
|
48995
49077
|
|
|
48996
|
-
// dist/opencode-integration/task-tracker.js
|
|
49078
|
+
// dist/opencode-integration/task-tracker/extension-handler.js
|
|
49079
|
+
var require_extension_handler = __commonJS({
|
|
49080
|
+
"dist/opencode-integration/task-tracker/extension-handler.js"(exports2) {
|
|
49081
|
+
"use strict";
|
|
49082
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
49083
|
+
exports2.ExtensionTaskHandler = void 0;
|
|
49084
|
+
var ditto_codegen_types_12 = require_dist4();
|
|
49085
|
+
var codeGenerationService_12 = require_codeGenerationService();
|
|
49086
|
+
var logger_12 = require_logger();
|
|
49087
|
+
var constants_1 = require_constants6();
|
|
49088
|
+
var ExtensionTaskHandler = class {
|
|
49089
|
+
constructor() {
|
|
49090
|
+
this.extensionTasksCreated = /* @__PURE__ */ new Set();
|
|
49091
|
+
}
|
|
49092
|
+
/** Inspects a write/edit event; if it targets an extension file, creates a tracked sub-task. */
|
|
49093
|
+
async handle(tool2, state, ctx) {
|
|
49094
|
+
const filePath = state.input?.filePath || state.title || "";
|
|
49095
|
+
if (!(0, constants_1.isExtensionsFile)(filePath))
|
|
49096
|
+
return;
|
|
49097
|
+
const content = (0, constants_1.getWrittenContent)(tool2, state);
|
|
49098
|
+
if (!content)
|
|
49099
|
+
return;
|
|
49100
|
+
const extensionType = (0, constants_1.detectExtensionType)(content);
|
|
49101
|
+
if (!extensionType)
|
|
49102
|
+
return;
|
|
49103
|
+
const normalizedPath = (0, constants_1.normalizeFilePath)(filePath);
|
|
49104
|
+
if (this.extensionTasksCreated.has(normalizedPath))
|
|
49105
|
+
return;
|
|
49106
|
+
await this.completeInitTask(ctx);
|
|
49107
|
+
await this.createExtensionTask(normalizedPath, extensionType, filePath, ctx);
|
|
49108
|
+
}
|
|
49109
|
+
/** Completes the INIT_CODEGEN task once the extension tasks are created. */
|
|
49110
|
+
async completeInitTask(ctx) {
|
|
49111
|
+
const { store } = ctx;
|
|
49112
|
+
if (store?.isCompleted || store?.kind !== ditto_codegen_types_12.TaskKind.INIT_CODEGEN)
|
|
49113
|
+
return;
|
|
49114
|
+
if (!store.jobId || !store.taskId)
|
|
49115
|
+
return;
|
|
49116
|
+
store.isCompleted = true;
|
|
49117
|
+
try {
|
|
49118
|
+
await codeGenerationService_12.codeGenerationService.updateTask(store.jobId, store.taskId, ditto_codegen_types_12.Status.COMPLETED, {});
|
|
49119
|
+
logger_12.logger.info("[OpenCode] Completed init task before extension tasks");
|
|
49120
|
+
} catch (error48) {
|
|
49121
|
+
logger_12.logger.error("[OpenCode] Failed to complete init task", {
|
|
49122
|
+
error: error48 instanceof Error ? error48.message : String(error48)
|
|
49123
|
+
});
|
|
49124
|
+
}
|
|
49125
|
+
}
|
|
49126
|
+
/** Registers a new RUNNING sub-task in the job service for a detected extension. */
|
|
49127
|
+
async createExtensionTask(normalizedPath, extensionType, originalPath, ctx) {
|
|
49128
|
+
const jobContext = ctx.getJobContext();
|
|
49129
|
+
if (!jobContext)
|
|
49130
|
+
return;
|
|
49131
|
+
const extensionName = (0, constants_1.extractExtensionName)(originalPath);
|
|
49132
|
+
const description = `Creating ${extensionName} ${extensionType}`;
|
|
49133
|
+
const extensionKey = `ext-${normalizedPath}`;
|
|
49134
|
+
this.extensionTasksCreated.add(normalizedPath);
|
|
49135
|
+
ctx.taskCounter++;
|
|
49136
|
+
const taskId = `${jobContext.taskId}-ext-${ctx.taskCounter}`;
|
|
49137
|
+
const extensionFolder = normalizedPath.substring(0, normalizedPath.lastIndexOf("/") + 1);
|
|
49138
|
+
ctx.trackedTasks.set(extensionKey, {
|
|
49139
|
+
taskId,
|
|
49140
|
+
description,
|
|
49141
|
+
status: ditto_codegen_types_12.Status.RUNNING,
|
|
49142
|
+
extensionFolder
|
|
49143
|
+
});
|
|
49144
|
+
try {
|
|
49145
|
+
await codeGenerationService_12.codeGenerationService.addTask(jobContext.jobId, {
|
|
49146
|
+
id: taskId,
|
|
49147
|
+
kind: ditto_codegen_types_12.TaskKind.RUN_AGENT,
|
|
49148
|
+
status: ditto_codegen_types_12.Status.RUNNING,
|
|
49149
|
+
name: "create_extension",
|
|
49150
|
+
description,
|
|
49151
|
+
agentName: ""
|
|
49152
|
+
});
|
|
49153
|
+
logger_12.logger.info("[OpenCode] Created extension task", { description });
|
|
49154
|
+
} catch (error48) {
|
|
49155
|
+
logger_12.logger.error("[OpenCode] Failed to create extension task", {
|
|
49156
|
+
error: error48 instanceof Error ? error48.message : String(error48)
|
|
49157
|
+
});
|
|
49158
|
+
}
|
|
49159
|
+
}
|
|
49160
|
+
};
|
|
49161
|
+
exports2.ExtensionTaskHandler = ExtensionTaskHandler;
|
|
49162
|
+
}
|
|
49163
|
+
});
|
|
49164
|
+
|
|
49165
|
+
// dist/opencode-integration/task-tracker/category-handler.js
|
|
49166
|
+
var require_category_handler = __commonJS({
|
|
49167
|
+
"dist/opencode-integration/task-tracker/category-handler.js"(exports2) {
|
|
49168
|
+
"use strict";
|
|
49169
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
49170
|
+
exports2.CategoryTaskHandler = void 0;
|
|
49171
|
+
var ditto_codegen_types_12 = require_dist4();
|
|
49172
|
+
var codeGenerationService_12 = require_codeGenerationService();
|
|
49173
|
+
var logger_12 = require_logger();
|
|
49174
|
+
var constants_1 = require_constants6();
|
|
49175
|
+
var CategoryTaskHandler = class {
|
|
49176
|
+
constructor() {
|
|
49177
|
+
this.codeSearchCreated = false;
|
|
49178
|
+
this.docSearchCreated = false;
|
|
49179
|
+
}
|
|
49180
|
+
/** Creates a search sub-task on the first use of code-search or MCP tools. */
|
|
49181
|
+
async handle(tool2, ctx) {
|
|
49182
|
+
const jobContext = ctx.getJobContext();
|
|
49183
|
+
if (!jobContext)
|
|
49184
|
+
return;
|
|
49185
|
+
if (constants_1.CODE_SEARCH_TOOLS.has(tool2) && !this.codeSearchCreated) {
|
|
49186
|
+
this.codeSearchCreated = true;
|
|
49187
|
+
await this.createTask("code-search", "Searching in code", ctx);
|
|
49188
|
+
}
|
|
49189
|
+
if ((0, constants_1.isMcpTool)(tool2) && !this.docSearchCreated) {
|
|
49190
|
+
this.docSearchCreated = true;
|
|
49191
|
+
await this.createTask("doc-search", "Searching in docs", ctx);
|
|
49192
|
+
}
|
|
49193
|
+
}
|
|
49194
|
+
async createTask(suffix, description, ctx) {
|
|
49195
|
+
const jobContext = ctx.getJobContext();
|
|
49196
|
+
if (!jobContext)
|
|
49197
|
+
return;
|
|
49198
|
+
const taskId = `${jobContext.taskId}-${suffix}`;
|
|
49199
|
+
ctx.trackedTasks.set(suffix, {
|
|
49200
|
+
taskId,
|
|
49201
|
+
description,
|
|
49202
|
+
status: ditto_codegen_types_12.Status.RUNNING
|
|
49203
|
+
});
|
|
49204
|
+
try {
|
|
49205
|
+
await codeGenerationService_12.codeGenerationService.addTask(jobContext.jobId, {
|
|
49206
|
+
id: taskId,
|
|
49207
|
+
kind: ditto_codegen_types_12.TaskKind.RUN_AGENT,
|
|
49208
|
+
status: ditto_codegen_types_12.Status.RUNNING,
|
|
49209
|
+
name: "run_agent",
|
|
49210
|
+
description,
|
|
49211
|
+
agentName: ""
|
|
49212
|
+
});
|
|
49213
|
+
logger_12.logger.info("[OpenCode] Created category task", { description });
|
|
49214
|
+
} catch (error48) {
|
|
49215
|
+
logger_12.logger.error("[OpenCode] Failed to create category task", {
|
|
49216
|
+
error: error48 instanceof Error ? error48.message : String(error48)
|
|
49217
|
+
});
|
|
49218
|
+
}
|
|
49219
|
+
}
|
|
49220
|
+
};
|
|
49221
|
+
exports2.CategoryTaskHandler = CategoryTaskHandler;
|
|
49222
|
+
}
|
|
49223
|
+
});
|
|
49224
|
+
|
|
49225
|
+
// dist/opencode-integration/task-tracker/task-tracker.js
|
|
48997
49226
|
var require_task_tracker = __commonJS({
|
|
48998
|
-
"dist/opencode-integration/task-tracker.js"(exports2) {
|
|
49227
|
+
"dist/opencode-integration/task-tracker/task-tracker.js"(exports2) {
|
|
48999
49228
|
"use strict";
|
|
49000
49229
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
49001
49230
|
exports2.OpenCodeTaskTracker = void 0;
|
|
49231
|
+
var ditto_codegen_types_12 = require_dist4();
|
|
49002
49232
|
var codeGenerationService_12 = require_codeGenerationService();
|
|
49003
49233
|
var job_context_storage_12 = require_job_context_storage();
|
|
49004
|
-
var ditto_codegen_types_12 = require_dist4();
|
|
49005
49234
|
var types_1 = require_types5();
|
|
49006
49235
|
var logger_12 = require_logger();
|
|
49007
|
-
var
|
|
49008
|
-
|
|
49009
|
-
|
|
49010
|
-
}
|
|
49236
|
+
var constants_1 = require_constants6();
|
|
49237
|
+
var extension_handler_1 = require_extension_handler();
|
|
49238
|
+
var category_handler_1 = require_category_handler();
|
|
49011
49239
|
var OpenCodeTaskTracker = class {
|
|
49012
|
-
constructor(
|
|
49240
|
+
constructor() {
|
|
49013
49241
|
this.trackedTasks = /* @__PURE__ */ new Map();
|
|
49014
49242
|
this.taskCounter = 0;
|
|
49015
|
-
this.
|
|
49016
|
-
this.
|
|
49017
|
-
this.
|
|
49243
|
+
this.collectedFiles = [];
|
|
49244
|
+
this.skillsUsed = /* @__PURE__ */ new Set();
|
|
49245
|
+
this.extensionHandler = new extension_handler_1.ExtensionTaskHandler();
|
|
49246
|
+
this.categoryHandler = new category_handler_1.CategoryTaskHandler();
|
|
49247
|
+
this.store = job_context_storage_12.jobContextStorage.getStore();
|
|
49248
|
+
}
|
|
49249
|
+
getSkillsUsed() {
|
|
49250
|
+
return Array.from(this.skillsUsed);
|
|
49018
49251
|
}
|
|
49019
49252
|
getJobContext() {
|
|
49020
|
-
|
|
49021
|
-
if (!store?.jobId || !store?.taskId) {
|
|
49253
|
+
if (!this.store?.jobId || !this.store?.taskId) {
|
|
49022
49254
|
return null;
|
|
49023
49255
|
}
|
|
49024
|
-
return { jobId: store.jobId, taskId: store.taskId };
|
|
49256
|
+
return { jobId: this.store.jobId, taskId: this.store.taskId };
|
|
49257
|
+
}
|
|
49258
|
+
get handlerContext() {
|
|
49259
|
+
return {
|
|
49260
|
+
getJobContext: () => this.getJobContext(),
|
|
49261
|
+
store: this.store,
|
|
49262
|
+
trackedTasks: this.trackedTasks,
|
|
49263
|
+
collectedFiles: this.collectedFiles,
|
|
49264
|
+
taskCounter: this.taskCounter
|
|
49265
|
+
};
|
|
49025
49266
|
}
|
|
49026
49267
|
async processLine(line) {
|
|
49027
49268
|
if (!line.trim())
|
|
@@ -49037,137 +49278,76 @@ var require_task_tracker = __commonJS({
|
|
|
49037
49278
|
const { tool: tool2, callID, state } = event.part || {};
|
|
49038
49279
|
if (!tool2 || !callID || !state)
|
|
49039
49280
|
return;
|
|
49040
|
-
if (tool2
|
|
49041
|
-
|
|
49281
|
+
if (constants_1.WRITE_TOOLS.has(tool2)) {
|
|
49282
|
+
this.collectFileChange(tool2, state);
|
|
49283
|
+
const ctx = this.handlerContext;
|
|
49284
|
+
await this.extensionHandler.handle(tool2, state, ctx);
|
|
49285
|
+
this.taskCounter = ctx.taskCounter;
|
|
49042
49286
|
}
|
|
49043
49287
|
if (tool2 === "skill" && state.status === "completed") {
|
|
49044
|
-
|
|
49288
|
+
this.handleSkillEvent(state);
|
|
49045
49289
|
}
|
|
49046
|
-
if (this.
|
|
49047
|
-
|
|
49290
|
+
if (this.store?.kind === ditto_codegen_types_12.TaskKind.ASK_CODEGEN) {
|
|
49291
|
+
const ctx = this.handlerContext;
|
|
49292
|
+
await this.categoryHandler.handle(tool2, ctx);
|
|
49293
|
+
this.taskCounter = ctx.taskCounter;
|
|
49048
49294
|
}
|
|
49049
49295
|
}
|
|
49050
|
-
|
|
49051
|
-
|
|
49052
|
-
if (
|
|
49296
|
+
/** Records a unique file change (INSERT/EDIT) from a completed write/edit tool call. */
|
|
49297
|
+
collectFileChange(tool2, state) {
|
|
49298
|
+
if (state.status !== "completed")
|
|
49053
49299
|
return;
|
|
49054
|
-
const
|
|
49055
|
-
|
|
49056
|
-
|
|
49057
|
-
const taskId = `${jobContext.taskId}-opencode-task-${this.taskCounter}`;
|
|
49058
|
-
const initialStatus = state.status === "completed" ? ditto_codegen_types_12.Status.COMPLETED : state.status === "error" ? ditto_codegen_types_12.Status.FAILED : ditto_codegen_types_12.Status.RUNNING;
|
|
49059
|
-
this.trackedTasks.set(callID, {
|
|
49060
|
-
taskId,
|
|
49061
|
-
description,
|
|
49062
|
-
status: initialStatus
|
|
49063
|
-
});
|
|
49064
|
-
try {
|
|
49065
|
-
await codeGenerationService_12.codeGenerationService.addTask(jobContext.jobId, {
|
|
49066
|
-
id: taskId,
|
|
49067
|
-
kind: ditto_codegen_types_12.TaskKind.RUN_AGENT,
|
|
49068
|
-
status: initialStatus,
|
|
49069
|
-
name: "run_agent",
|
|
49070
|
-
description: `Run agent for ${description}`,
|
|
49071
|
-
agentName: "OpenCodeSubAgent"
|
|
49072
|
-
});
|
|
49073
|
-
logger_12.logger.info("[OpenCode] Created sub-task", {
|
|
49074
|
-
description,
|
|
49075
|
-
status: state.status
|
|
49076
|
-
});
|
|
49077
|
-
} catch (error48) {
|
|
49078
|
-
logger_12.logger.error("[OpenCode] Failed to create sub-task", {
|
|
49079
|
-
error: error48 instanceof Error ? error48.message : String(error48)
|
|
49080
|
-
});
|
|
49081
|
-
}
|
|
49300
|
+
const filePath = state.input?.filePath || state.title;
|
|
49301
|
+
const operation = (0, constants_1.resolveFileOperation)(tool2, state.metadata);
|
|
49302
|
+
if (!filePath || !operation)
|
|
49082
49303
|
return;
|
|
49083
|
-
|
|
49084
|
-
|
|
49085
|
-
|
|
49086
|
-
tracked.status = ditto_codegen_types_12.Status.COMPLETED;
|
|
49087
|
-
try {
|
|
49088
|
-
await codeGenerationService_12.codeGenerationService.updateTask(jobContext.jobId, tracked.taskId, ditto_codegen_types_12.Status.COMPLETED, {});
|
|
49089
|
-
logger_12.logger.info("[OpenCode] Completed sub-task", {
|
|
49090
|
-
description: tracked.description
|
|
49091
|
-
});
|
|
49092
|
-
} catch (error48) {
|
|
49093
|
-
logger_12.logger.error("[OpenCode] Failed to update sub-task", {
|
|
49094
|
-
error: error48 instanceof Error ? error48.message : String(error48)
|
|
49095
|
-
});
|
|
49096
|
-
}
|
|
49097
|
-
} else if (state.status === "error" && tracked.status !== ditto_codegen_types_12.Status.FAILED) {
|
|
49098
|
-
tracked.status = ditto_codegen_types_12.Status.FAILED;
|
|
49099
|
-
try {
|
|
49100
|
-
await codeGenerationService_12.codeGenerationService.updateTask(jobContext.jobId, tracked.taskId, ditto_codegen_types_12.Status.FAILED, { error: state.output || "Sub-agent failed" });
|
|
49101
|
-
logger_12.logger.error("[OpenCode] Failed sub-task", {
|
|
49102
|
-
description: tracked.description
|
|
49103
|
-
});
|
|
49104
|
-
} catch (error48) {
|
|
49105
|
-
logger_12.logger.error("[OpenCode] Failed to update sub-task", {
|
|
49106
|
-
error: error48 instanceof Error ? error48.message : String(error48)
|
|
49107
|
-
});
|
|
49108
|
-
}
|
|
49304
|
+
const normalized = (0, constants_1.normalizeFilePath)(filePath);
|
|
49305
|
+
if (!this.collectedFiles.some((f) => f.path === normalized)) {
|
|
49306
|
+
this.collectedFiles.push({ path: normalized, operation });
|
|
49109
49307
|
}
|
|
49110
49308
|
}
|
|
49111
49309
|
async handleSkillEvent(state) {
|
|
49112
49310
|
const skillName = state.title?.replace("Loaded skill: ", "") || "unknown";
|
|
49311
|
+
this.skillsUsed.add(skillName);
|
|
49113
49312
|
logger_12.logger.info("[OpenCode] Loaded skill", { skillName });
|
|
49114
49313
|
}
|
|
49115
|
-
|
|
49116
|
-
|
|
49117
|
-
if (
|
|
49118
|
-
|
|
49119
|
-
|
|
49120
|
-
|
|
49121
|
-
|
|
49122
|
-
|
|
49123
|
-
|
|
49124
|
-
|
|
49125
|
-
|
|
49126
|
-
|
|
49127
|
-
}
|
|
49128
|
-
async createCategoryTask(jobContext, suffix, description) {
|
|
49129
|
-
const taskId = `${jobContext.taskId}-${suffix}`;
|
|
49130
|
-
this.trackedTasks.set(suffix, {
|
|
49131
|
-
taskId,
|
|
49132
|
-
description,
|
|
49133
|
-
status: ditto_codegen_types_12.Status.RUNNING
|
|
49134
|
-
});
|
|
49135
|
-
try {
|
|
49136
|
-
await codeGenerationService_12.codeGenerationService.addTask(jobContext.jobId, {
|
|
49137
|
-
id: taskId,
|
|
49138
|
-
kind: ditto_codegen_types_12.TaskKind.RUN_AGENT,
|
|
49139
|
-
status: ditto_codegen_types_12.Status.RUNNING,
|
|
49140
|
-
name: "run_agent",
|
|
49141
|
-
description,
|
|
49142
|
-
agentName: ""
|
|
49143
|
-
});
|
|
49144
|
-
logger_12.logger.info("[OpenCode] Created category task", { description });
|
|
49145
|
-
} catch (error48) {
|
|
49146
|
-
logger_12.logger.error("[OpenCode] Failed to create category task", {
|
|
49147
|
-
error: error48 instanceof Error ? error48.message : String(error48)
|
|
49148
|
-
});
|
|
49314
|
+
/** Builds the task completion payload — includes file list for extension tasks. */
|
|
49315
|
+
buildTaskPayload(tracked) {
|
|
49316
|
+
if (tracked.extensionFolder) {
|
|
49317
|
+
const extensionFiles = this.collectedFiles.filter((f) => f.path.startsWith(tracked.extensionFolder));
|
|
49318
|
+
return {
|
|
49319
|
+
taskOutput: {
|
|
49320
|
+
files: extensionFiles.map((f) => ({
|
|
49321
|
+
path: f.path,
|
|
49322
|
+
operation: f.operation
|
|
49323
|
+
}))
|
|
49324
|
+
}
|
|
49325
|
+
};
|
|
49149
49326
|
}
|
|
49327
|
+
return {};
|
|
49150
49328
|
}
|
|
49329
|
+
/** Marks all still-running tracked tasks as COMPLETED (called on successful process exit). */
|
|
49151
49330
|
async completeRemainingTasks() {
|
|
49152
49331
|
const jobContext = this.getJobContext();
|
|
49153
49332
|
if (!jobContext)
|
|
49154
49333
|
return;
|
|
49155
49334
|
for (const [, tracked] of this.trackedTasks) {
|
|
49156
49335
|
if (tracked.status === ditto_codegen_types_12.Status.RUNNING) {
|
|
49336
|
+
const payload = this.buildTaskPayload(tracked);
|
|
49157
49337
|
try {
|
|
49158
|
-
await codeGenerationService_12.codeGenerationService.updateTask(jobContext.jobId, tracked.taskId, ditto_codegen_types_12.Status.COMPLETED,
|
|
49159
|
-
|
|
49160
|
-
logger_12.logger.info("[OpenCode] Auto-completed sub-task", {
|
|
49338
|
+
await codeGenerationService_12.codeGenerationService.updateTask(jobContext.jobId, tracked.taskId, ditto_codegen_types_12.Status.COMPLETED, payload);
|
|
49339
|
+
logger_12.logger.info("[OpenCode] Completed task", {
|
|
49161
49340
|
description: tracked.description
|
|
49162
49341
|
});
|
|
49163
49342
|
} catch (err) {
|
|
49164
|
-
logger_12.logger.error("[OpenCode] Failed to
|
|
49343
|
+
logger_12.logger.error("[OpenCode] Failed to complete task", {
|
|
49165
49344
|
error: err instanceof Error ? err.message : String(err)
|
|
49166
49345
|
});
|
|
49167
49346
|
}
|
|
49168
49347
|
}
|
|
49169
49348
|
}
|
|
49170
49349
|
}
|
|
49350
|
+
/** Marks all still-running tracked tasks as FAILED (called on process error/timeout). */
|
|
49171
49351
|
async failRemainingTasks(errorMessage) {
|
|
49172
49352
|
const jobContext = this.getJobContext();
|
|
49173
49353
|
if (!jobContext)
|
|
@@ -49176,12 +49356,11 @@ var require_task_tracker = __commonJS({
|
|
|
49176
49356
|
if (tracked.status === ditto_codegen_types_12.Status.RUNNING) {
|
|
49177
49357
|
try {
|
|
49178
49358
|
await codeGenerationService_12.codeGenerationService.updateTask(jobContext.jobId, tracked.taskId, ditto_codegen_types_12.Status.FAILED, { error: errorMessage });
|
|
49179
|
-
tracked.status = ditto_codegen_types_12.Status.FAILED;
|
|
49180
49359
|
logger_12.logger.info("[OpenCode] Failed sub-task", {
|
|
49181
49360
|
description: tracked.description
|
|
49182
49361
|
});
|
|
49183
49362
|
} catch (err) {
|
|
49184
|
-
logger_12.logger.error("[OpenCode] Failed to
|
|
49363
|
+
logger_12.logger.error("[OpenCode] Failed to mark sub-task as failed", {
|
|
49185
49364
|
error: err instanceof Error ? err.message : String(err)
|
|
49186
49365
|
});
|
|
49187
49366
|
}
|
|
@@ -49193,6 +49372,19 @@ var require_task_tracker = __commonJS({
|
|
|
49193
49372
|
}
|
|
49194
49373
|
});
|
|
49195
49374
|
|
|
49375
|
+
// dist/opencode-integration/task-tracker/index.js
|
|
49376
|
+
var require_task_tracker2 = __commonJS({
|
|
49377
|
+
"dist/opencode-integration/task-tracker/index.js"(exports2) {
|
|
49378
|
+
"use strict";
|
|
49379
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
49380
|
+
exports2.OpenCodeTaskTracker = void 0;
|
|
49381
|
+
var task_tracker_1 = require_task_tracker();
|
|
49382
|
+
Object.defineProperty(exports2, "OpenCodeTaskTracker", { enumerable: true, get: function() {
|
|
49383
|
+
return task_tracker_1.OpenCodeTaskTracker;
|
|
49384
|
+
} });
|
|
49385
|
+
}
|
|
49386
|
+
});
|
|
49387
|
+
|
|
49196
49388
|
// dist/opencode-integration/process-manager.js
|
|
49197
49389
|
var require_process_manager = __commonJS({
|
|
49198
49390
|
"dist/opencode-integration/process-manager.js"(exports2) {
|
|
@@ -49269,7 +49461,8 @@ var require_result_builder = __commonJS({
|
|
|
49269
49461
|
durationMs: Date.now() - startTime,
|
|
49270
49462
|
requiredPermissions: [],
|
|
49271
49463
|
filesChanged: (0, parser_1.parseFilesChanged)(stdout),
|
|
49272
|
-
usage: (0, parser_1.parseUsageStats)(stdout)
|
|
49464
|
+
usage: (0, parser_1.parseUsageStats)(stdout),
|
|
49465
|
+
skillsUsed: []
|
|
49273
49466
|
};
|
|
49274
49467
|
}
|
|
49275
49468
|
function createSuccessResult(code, stdout, stderr, startTime) {
|
|
@@ -49286,7 +49479,8 @@ var require_result_builder = __commonJS({
|
|
|
49286
49479
|
durationMs: Date.now() - startTime,
|
|
49287
49480
|
requiredPermissions: (0, parser_1.parseRequiredPermissions)(stdout),
|
|
49288
49481
|
filesChanged: (0, parser_1.parseFilesChanged)(stdout),
|
|
49289
|
-
usage: (0, parser_1.parseUsageStats)(stdout)
|
|
49482
|
+
usage: (0, parser_1.parseUsageStats)(stdout),
|
|
49483
|
+
skillsUsed: []
|
|
49290
49484
|
};
|
|
49291
49485
|
}
|
|
49292
49486
|
function createSpawnErrorResult(errorMessage, stdout, stderr, startTime) {
|
|
@@ -49302,7 +49496,8 @@ var require_result_builder = __commonJS({
|
|
|
49302
49496
|
durationMs: Date.now() - startTime,
|
|
49303
49497
|
requiredPermissions: [],
|
|
49304
49498
|
filesChanged: [],
|
|
49305
|
-
usage: (0, parser_1.createEmptyUsageStats)()
|
|
49499
|
+
usage: (0, parser_1.createEmptyUsageStats)(),
|
|
49500
|
+
skillsUsed: []
|
|
49306
49501
|
};
|
|
49307
49502
|
}
|
|
49308
49503
|
}
|
|
@@ -49398,11 +49593,11 @@ var require_executor = __commonJS({
|
|
|
49398
49593
|
exports2.executeOpenCode = executeOpenCode;
|
|
49399
49594
|
var child_process_1 = require("child_process");
|
|
49400
49595
|
var ditto_codegen_types_12 = require_dist4();
|
|
49401
|
-
var types_1 = require_types5();
|
|
49402
49596
|
var config_1 = require_config();
|
|
49597
|
+
var job_context_storage_12 = require_job_context_storage();
|
|
49403
49598
|
var parser_1 = require_parser();
|
|
49404
49599
|
var prompts_1 = require_prompts();
|
|
49405
|
-
var task_tracker_1 =
|
|
49600
|
+
var task_tracker_1 = require_task_tracker2();
|
|
49406
49601
|
var process_manager_1 = require_process_manager();
|
|
49407
49602
|
var process_handlers_1 = require_process_handlers();
|
|
49408
49603
|
var logger_12 = require_logger();
|
|
@@ -49411,6 +49606,7 @@ var require_executor = __commonJS({
|
|
|
49411
49606
|
let lastResult = null;
|
|
49412
49607
|
let accumulatedStdout = "";
|
|
49413
49608
|
let accumulatedUsage = (0, parser_1.createEmptyUsageStats)();
|
|
49609
|
+
const accumulatedSkills = [];
|
|
49414
49610
|
let currentPrompt = options.prompt;
|
|
49415
49611
|
for (let attempt = 1; attempt <= MAX_RETRIES; attempt++) {
|
|
49416
49612
|
if (attempt > 1) {
|
|
@@ -49421,13 +49617,15 @@ var require_executor = __commonJS({
|
|
|
49421
49617
|
const result = await executeOpenCodeOnce({ ...options, prompt: currentPrompt }, attempt);
|
|
49422
49618
|
accumulatedStdout += result.stdout;
|
|
49423
49619
|
accumulatedUsage = (0, parser_1.mergeUsageStats)(accumulatedUsage, result.usage);
|
|
49620
|
+
accumulatedSkills.push(...result.skillsUsed);
|
|
49424
49621
|
const errorMsg = result.error?.message.toLowerCase() ?? "";
|
|
49425
49622
|
const isRetryableFailure = !result.success && errorMsg.includes("idle timeout");
|
|
49426
49623
|
if (result.success || !isRetryableFailure) {
|
|
49427
49624
|
const finalResult2 = {
|
|
49428
49625
|
...result,
|
|
49429
49626
|
filesChanged: (0, parser_1.parseFilesChanged)(accumulatedStdout),
|
|
49430
|
-
usage: accumulatedUsage
|
|
49627
|
+
usage: accumulatedUsage,
|
|
49628
|
+
skillsUsed: accumulatedSkills
|
|
49431
49629
|
};
|
|
49432
49630
|
logger_12.logger.info((0, parser_1.formatUsageStats)(finalResult2.usage));
|
|
49433
49631
|
return finalResult2;
|
|
@@ -49444,7 +49642,8 @@ var require_executor = __commonJS({
|
|
|
49444
49642
|
const finalResult = {
|
|
49445
49643
|
...lastResult,
|
|
49446
49644
|
filesChanged: (0, parser_1.parseFilesChanged)(accumulatedStdout),
|
|
49447
|
-
usage: accumulatedUsage
|
|
49645
|
+
usage: accumulatedUsage,
|
|
49646
|
+
skillsUsed: Array.from(accumulatedSkills)
|
|
49448
49647
|
};
|
|
49449
49648
|
logger_12.logger.info((0, parser_1.formatUsageStats)(finalResult.usage));
|
|
49450
49649
|
return finalResult;
|
|
@@ -49453,11 +49652,9 @@ var require_executor = __commonJS({
|
|
|
49453
49652
|
return ["run", "--format", "json", prompt];
|
|
49454
49653
|
}
|
|
49455
49654
|
async function executeOpenCodeOnce(options, attempt) {
|
|
49456
|
-
const { prompt, outputPath, projectId,
|
|
49655
|
+
const { prompt, outputPath, projectId, onStdout, onStderr } = options;
|
|
49457
49656
|
const startTime = Date.now();
|
|
49458
|
-
const taskTracker = new task_tracker_1.OpenCodeTaskTracker(
|
|
49459
|
-
trackToolCategories: mode === types_1.ASK_MODE
|
|
49460
|
-
});
|
|
49657
|
+
const taskTracker = new task_tracker_1.OpenCodeTaskTracker();
|
|
49461
49658
|
return new Promise((resolve3) => {
|
|
49462
49659
|
const state = {
|
|
49463
49660
|
stdout: "",
|
|
@@ -49480,6 +49677,7 @@ var require_executor = __commonJS({
|
|
|
49480
49677
|
} else {
|
|
49481
49678
|
await taskTracker.failRemainingTasks(result.error?.message || "Code generation failed");
|
|
49482
49679
|
}
|
|
49680
|
+
result.skillsUsed = taskTracker.getSkillsUsed();
|
|
49483
49681
|
resolve3(result);
|
|
49484
49682
|
};
|
|
49485
49683
|
const ctx = {
|
|
@@ -49497,7 +49695,8 @@ var require_executor = __commonJS({
|
|
|
49497
49695
|
maxRetries: MAX_RETRIES,
|
|
49498
49696
|
workingDirectory: outputPath
|
|
49499
49697
|
});
|
|
49500
|
-
const
|
|
49698
|
+
const isAsk = job_context_storage_12.jobContextStorage.getStore()?.kind === ditto_codegen_types_12.TaskKind.ASK_CODEGEN;
|
|
49699
|
+
const env = isAsk ? (0, config_1.getOpenCodeAskEnv)(projectId) : (0, config_1.getOpenCodeEnv)(projectId);
|
|
49501
49700
|
ctx.child = (0, child_process_1.spawn)("opencode", args, {
|
|
49502
49701
|
cwd: outputPath,
|
|
49503
49702
|
env,
|
|
@@ -49523,7 +49722,8 @@ var require_executor = __commonJS({
|
|
|
49523
49722
|
durationMs: Date.now() - startTime,
|
|
49524
49723
|
requiredPermissions: [],
|
|
49525
49724
|
filesChanged: [],
|
|
49526
|
-
usage: (0, parser_1.createEmptyUsageStats)()
|
|
49725
|
+
usage: (0, parser_1.createEmptyUsageStats)(),
|
|
49726
|
+
skillsUsed: []
|
|
49527
49727
|
});
|
|
49528
49728
|
}
|
|
49529
49729
|
});
|
|
@@ -49539,7 +49739,6 @@ var require_opencode_runner = __commonJS({
|
|
|
49539
49739
|
exports2.runOpenCodeInit = runOpenCodeInit;
|
|
49540
49740
|
exports2.runOpenCodeIteration = runOpenCodeIteration;
|
|
49541
49741
|
exports2.runOpenCodeAsk = runOpenCodeAsk;
|
|
49542
|
-
var types_1 = require_types5();
|
|
49543
49742
|
var prompts_1 = require_prompts();
|
|
49544
49743
|
var executor_1 = require_executor();
|
|
49545
49744
|
var parser_1 = require_parser();
|
|
@@ -49551,7 +49750,13 @@ var require_opencode_runner = __commonJS({
|
|
|
49551
49750
|
async function runOpenCodeIteration(options) {
|
|
49552
49751
|
const { outputPath, projectId, chatHistory, onStdout, onStderr } = options;
|
|
49553
49752
|
const prompt = (0, prompts_1.buildIterationPrompt)(chatHistory);
|
|
49554
|
-
return (0, executor_1.executeOpenCode)({
|
|
49753
|
+
return (0, executor_1.executeOpenCode)({
|
|
49754
|
+
prompt,
|
|
49755
|
+
outputPath,
|
|
49756
|
+
projectId,
|
|
49757
|
+
onStdout,
|
|
49758
|
+
onStderr
|
|
49759
|
+
});
|
|
49555
49760
|
}
|
|
49556
49761
|
async function runOpenCodeAsk(options) {
|
|
49557
49762
|
const { outputPath, projectId, chatHistory, onStdout, onStderr } = options;
|
|
@@ -49560,7 +49765,6 @@ var require_opencode_runner = __commonJS({
|
|
|
49560
49765
|
prompt,
|
|
49561
49766
|
outputPath,
|
|
49562
49767
|
projectId,
|
|
49563
|
-
mode: types_1.ASK_MODE,
|
|
49564
49768
|
onStdout,
|
|
49565
49769
|
onStderr
|
|
49566
49770
|
});
|
|
@@ -49590,7 +49794,7 @@ var require_opencode_integration = __commonJS({
|
|
|
49590
49794
|
Object.defineProperty(exports2, "runOpenCodeAsk", { enumerable: true, get: function() {
|
|
49591
49795
|
return opencode_runner_1.runOpenCodeAsk;
|
|
49592
49796
|
} });
|
|
49593
|
-
var task_tracker_1 =
|
|
49797
|
+
var task_tracker_1 = require_task_tracker2();
|
|
49594
49798
|
Object.defineProperty(exports2, "OpenCodeTaskTracker", { enumerable: true, get: function() {
|
|
49595
49799
|
return task_tracker_1.OpenCodeTaskTracker;
|
|
49596
49800
|
} });
|
|
@@ -49654,7 +49858,9 @@ var require_OpenCodeOrchestrator = __commonJS({
|
|
|
49654
49858
|
this.emitEvent("finish", { outputPath, durationMs });
|
|
49655
49859
|
return {
|
|
49656
49860
|
requiredPermissions: result.requiredPermissions,
|
|
49657
|
-
filesChanged: result.filesChanged
|
|
49861
|
+
filesChanged: result.filesChanged,
|
|
49862
|
+
usage: result.usage,
|
|
49863
|
+
skillsUsed: result.skillsUsed
|
|
49658
49864
|
};
|
|
49659
49865
|
}
|
|
49660
49866
|
};
|
|
@@ -53258,7 +53464,7 @@ var require_expand = __commonJS({
|
|
|
53258
53464
|
});
|
|
53259
53465
|
|
|
53260
53466
|
// ../../node_modules/braces/lib/constants.js
|
|
53261
|
-
var
|
|
53467
|
+
var require_constants7 = __commonJS({
|
|
53262
53468
|
"../../node_modules/braces/lib/constants.js"(exports2, module2) {
|
|
53263
53469
|
"use strict";
|
|
53264
53470
|
module2.exports = {
|
|
@@ -53391,7 +53597,7 @@ var require_parse3 = __commonJS({
|
|
|
53391
53597
|
/* ' */
|
|
53392
53598
|
CHAR_NO_BREAK_SPACE,
|
|
53393
53599
|
CHAR_ZERO_WIDTH_NOBREAK_SPACE
|
|
53394
|
-
} =
|
|
53600
|
+
} = require_constants7();
|
|
53395
53601
|
var parse4 = (input, options = {}) => {
|
|
53396
53602
|
if (typeof input !== "string") {
|
|
53397
53603
|
throw new TypeError("Expected a string");
|
|
@@ -53660,7 +53866,7 @@ var require_braces = __commonJS({
|
|
|
53660
53866
|
});
|
|
53661
53867
|
|
|
53662
53868
|
// ../../node_modules/micromatch/node_modules/picomatch/lib/constants.js
|
|
53663
|
-
var
|
|
53869
|
+
var require_constants8 = __commonJS({
|
|
53664
53870
|
"../../node_modules/micromatch/node_modules/picomatch/lib/constants.js"(exports2, module2) {
|
|
53665
53871
|
"use strict";
|
|
53666
53872
|
var path4 = require("path");
|
|
@@ -53867,7 +54073,7 @@ var require_utils13 = __commonJS({
|
|
|
53867
54073
|
REGEX_REMOVE_BACKSLASH,
|
|
53868
54074
|
REGEX_SPECIAL_CHARS,
|
|
53869
54075
|
REGEX_SPECIAL_CHARS_GLOBAL
|
|
53870
|
-
} =
|
|
54076
|
+
} = require_constants8();
|
|
53871
54077
|
exports2.isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
|
|
53872
54078
|
exports2.hasRegexChars = (str) => REGEX_SPECIAL_CHARS.test(str);
|
|
53873
54079
|
exports2.isRegexChar = (str) => str.length === 1 && exports2.hasRegexChars(str);
|
|
@@ -53953,7 +54159,7 @@ var require_scan = __commonJS({
|
|
|
53953
54159
|
/* ) */
|
|
53954
54160
|
CHAR_RIGHT_SQUARE_BRACKET
|
|
53955
54161
|
/* ] */
|
|
53956
|
-
} =
|
|
54162
|
+
} = require_constants8();
|
|
53957
54163
|
var isPathSeparator = (code) => {
|
|
53958
54164
|
return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH;
|
|
53959
54165
|
};
|
|
@@ -54251,7 +54457,7 @@ var require_scan = __commonJS({
|
|
|
54251
54457
|
var require_parse4 = __commonJS({
|
|
54252
54458
|
"../../node_modules/micromatch/node_modules/picomatch/lib/parse.js"(exports2, module2) {
|
|
54253
54459
|
"use strict";
|
|
54254
|
-
var constants =
|
|
54460
|
+
var constants = require_constants8();
|
|
54255
54461
|
var utils = require_utils13();
|
|
54256
54462
|
var {
|
|
54257
54463
|
MAX_LENGTH,
|
|
@@ -55028,7 +55234,7 @@ var require_picomatch = __commonJS({
|
|
|
55028
55234
|
var scan = require_scan();
|
|
55029
55235
|
var parse4 = require_parse4();
|
|
55030
55236
|
var utils = require_utils13();
|
|
55031
|
-
var constants =
|
|
55237
|
+
var constants = require_constants8();
|
|
55032
55238
|
var isObject2 = (val) => val && typeof val === "object" && !Array.isArray(val);
|
|
55033
55239
|
var picomatch = (glob, options, returnState = false) => {
|
|
55034
55240
|
if (Array.isArray(glob)) {
|
|
@@ -55981,7 +56187,7 @@ var require_run_parallel = __commonJS({
|
|
|
55981
56187
|
});
|
|
55982
56188
|
|
|
55983
56189
|
// ../../node_modules/@nodelib/fs.scandir/out/constants.js
|
|
55984
|
-
var
|
|
56190
|
+
var require_constants9 = __commonJS({
|
|
55985
56191
|
"../../node_modules/@nodelib/fs.scandir/out/constants.js"(exports2) {
|
|
55986
56192
|
"use strict";
|
|
55987
56193
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -56060,7 +56266,7 @@ var require_async3 = __commonJS({
|
|
|
56060
56266
|
exports2.readdir = exports2.readdirWithFileTypes = exports2.read = void 0;
|
|
56061
56267
|
var fsStat = require_out();
|
|
56062
56268
|
var rpl = require_run_parallel();
|
|
56063
|
-
var constants_1 =
|
|
56269
|
+
var constants_1 = require_constants9();
|
|
56064
56270
|
var utils = require_utils15();
|
|
56065
56271
|
var common = require_common2();
|
|
56066
56272
|
function read(directory, settings, callback) {
|
|
@@ -56169,7 +56375,7 @@ var require_sync2 = __commonJS({
|
|
|
56169
56375
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
56170
56376
|
exports2.readdir = exports2.readdirWithFileTypes = exports2.read = void 0;
|
|
56171
56377
|
var fsStat = require_out();
|
|
56172
|
-
var constants_1 =
|
|
56378
|
+
var constants_1 = require_constants9();
|
|
56173
56379
|
var utils = require_utils15();
|
|
56174
56380
|
var common = require_common2();
|
|
56175
56381
|
function read(directory, settings) {
|
|
@@ -77416,7 +77622,7 @@ var require_tools2 = __commonJS({
|
|
|
77416
77622
|
});
|
|
77417
77623
|
|
|
77418
77624
|
// ../scaffolding/dist/constants.js
|
|
77419
|
-
var
|
|
77625
|
+
var require_constants10 = __commonJS({
|
|
77420
77626
|
"../scaffolding/dist/constants.js"(exports2) {
|
|
77421
77627
|
"use strict";
|
|
77422
77628
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -77446,7 +77652,7 @@ var require_scaffolding = __commonJS({
|
|
|
77446
77652
|
exports2.copyScaffoldingTemplate = copyScaffoldingTemplate;
|
|
77447
77653
|
exports2.toKebabCase = toKebabCase;
|
|
77448
77654
|
var tools_1 = require_tools2();
|
|
77449
|
-
var constants_1 =
|
|
77655
|
+
var constants_1 = require_constants10();
|
|
77450
77656
|
var types_1 = require_types_impl2();
|
|
77451
77657
|
var fs_1 = __importDefault2(require("fs"));
|
|
77452
77658
|
var path_1 = __importDefault2(require("path"));
|
|
@@ -77568,7 +77774,7 @@ var require_dist13 = __commonJS({
|
|
|
77568
77774
|
Object.defineProperty(exports2, "copyRecursive", { enumerable: true, get: function() {
|
|
77569
77775
|
return tools_1.copyRecursive;
|
|
77570
77776
|
} });
|
|
77571
|
-
var constants_1 =
|
|
77777
|
+
var constants_1 = require_constants10();
|
|
77572
77778
|
Object.defineProperty(exports2, "spiToSubPath", { enumerable: true, get: function() {
|
|
77573
77779
|
return constants_1.spiToSubPath;
|
|
77574
77780
|
} });
|
|
@@ -94923,6 +95129,1651 @@ var require_codegen_flow_helpers = __commonJS({
|
|
|
94923
95129
|
}
|
|
94924
95130
|
});
|
|
94925
95131
|
|
|
95132
|
+
// ../../node_modules/@wix/bi-logger-dev-tools-data/dist/cjs/v2/index.js
|
|
95133
|
+
var require_v2 = __commonJS({
|
|
95134
|
+
"../../node_modules/@wix/bi-logger-dev-tools-data/dist/cjs/v2/index.js"(exports2) {
|
|
95135
|
+
"use strict";
|
|
95136
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
95137
|
+
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;
|
|
95138
|
+
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;
|
|
95139
|
+
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;
|
|
95140
|
+
function panoramaNewTransaction(params) {
|
|
95141
|
+
return { evid: 104401, src: 11, endpoint: "", params };
|
|
95142
|
+
}
|
|
95143
|
+
exports2.panoramaNewTransaction = panoramaNewTransaction;
|
|
95144
|
+
function panoramaAlertSent(params) {
|
|
95145
|
+
return { evid: 104501, src: 11, endpoint: "", params };
|
|
95146
|
+
}
|
|
95147
|
+
exports2.panoramaAlertSent = panoramaAlertSent;
|
|
95148
|
+
function panoramaSlackButtonAction(params) {
|
|
95149
|
+
return { evid: 104502, src: 11, endpoint: "", params };
|
|
95150
|
+
}
|
|
95151
|
+
exports2.panoramaSlackButtonAction = panoramaSlackButtonAction;
|
|
95152
|
+
function panoramaEnableDisableAlertsSrc11Evid104503(params) {
|
|
95153
|
+
return { evid: 104503, src: 11, endpoint: "", params };
|
|
95154
|
+
}
|
|
95155
|
+
exports2.panoramaEnableDisableAlertsSrc11Evid104503 = panoramaEnableDisableAlertsSrc11Evid104503;
|
|
95156
|
+
function panoramaPageVisit(params) {
|
|
95157
|
+
return { evid: 104601, src: 11, endpoint: "", params };
|
|
95158
|
+
}
|
|
95159
|
+
exports2.panoramaPageVisit = panoramaPageVisit;
|
|
95160
|
+
function panoramaButtonAction(params) {
|
|
95161
|
+
return { evid: 104602, src: 11, endpoint: "", params };
|
|
95162
|
+
}
|
|
95163
|
+
exports2.panoramaButtonAction = panoramaButtonAction;
|
|
95164
|
+
function panoramaAlertUserMark(params) {
|
|
95165
|
+
return { evid: 105501, src: 11, endpoint: "", params };
|
|
95166
|
+
}
|
|
95167
|
+
exports2.panoramaAlertUserMark = panoramaAlertUserMark;
|
|
95168
|
+
function wixCliAppFlowAppTemplateSelections(params) {
|
|
95169
|
+
return { evid: 114003, src: 11, endpoint: "", params };
|
|
95170
|
+
}
|
|
95171
|
+
exports2.wixCliAppFlowAppTemplateSelections = wixCliAppFlowAppTemplateSelections;
|
|
95172
|
+
function fetchFallback(params) {
|
|
95173
|
+
return { evid: 114700, src: 11, endpoint: "", params };
|
|
95174
|
+
}
|
|
95175
|
+
exports2.fetchFallback = fetchFallback;
|
|
95176
|
+
function gitHubActionAiPrReviewWasCalledSrc11Evid15001(params) {
|
|
95177
|
+
return { evid: 15001, src: 11, endpoint: "", params };
|
|
95178
|
+
}
|
|
95179
|
+
exports2.gitHubActionAiPrReviewWasCalledSrc11Evid15001 = gitHubActionAiPrReviewWasCalledSrc11Evid15001;
|
|
95180
|
+
function reviewEnrichmentCompletedSrc11Evid15002(params) {
|
|
95181
|
+
return { evid: 15002, src: 11, endpoint: "", params };
|
|
95182
|
+
}
|
|
95183
|
+
exports2.reviewEnrichmentCompletedSrc11Evid15002 = reviewEnrichmentCompletedSrc11Evid15002;
|
|
95184
|
+
function projectResultReported(params) {
|
|
95185
|
+
return { evid: 3301, src: 11, endpoint: "", params };
|
|
95186
|
+
}
|
|
95187
|
+
exports2.projectResultReported = projectResultReported;
|
|
95188
|
+
function projectAddedToIgnoreList(params) {
|
|
95189
|
+
return { evid: 3302, src: 11, endpoint: "", params };
|
|
95190
|
+
}
|
|
95191
|
+
exports2.projectAddedToIgnoreList = projectAddedToIgnoreList;
|
|
95192
|
+
function ruleDryRunChanged(params) {
|
|
95193
|
+
return { evid: 3303, src: 11, endpoint: "", params };
|
|
95194
|
+
}
|
|
95195
|
+
exports2.ruleDryRunChanged = ruleDryRunChanged;
|
|
95196
|
+
function ruleResultReported(params) {
|
|
95197
|
+
return { evid: 3304, src: 11, endpoint: "", params };
|
|
95198
|
+
}
|
|
95199
|
+
exports2.ruleResultReported = ruleResultReported;
|
|
95200
|
+
function projectRemovedFromIgnoreList(params) {
|
|
95201
|
+
return { evid: 3306, src: 11, endpoint: "", params };
|
|
95202
|
+
}
|
|
95203
|
+
exports2.projectRemovedFromIgnoreList = projectRemovedFromIgnoreList;
|
|
95204
|
+
function ruleShouldSendAlertsToggled(params) {
|
|
95205
|
+
return { evid: 3307, src: 11, endpoint: "", params };
|
|
95206
|
+
}
|
|
95207
|
+
exports2.ruleShouldSendAlertsToggled = ruleShouldSendAlertsToggled;
|
|
95208
|
+
function ruleBuildBreakingScheduled(params) {
|
|
95209
|
+
return { evid: 3308, src: 11, endpoint: "", params };
|
|
95210
|
+
}
|
|
95211
|
+
exports2.ruleBuildBreakingScheduled = ruleBuildBreakingScheduled;
|
|
95212
|
+
function ciPoliceDeadlineSchedule(params) {
|
|
95213
|
+
return { evid: 3309, src: 11, endpoint: "", params };
|
|
95214
|
+
}
|
|
95215
|
+
exports2.ciPoliceDeadlineSchedule = ciPoliceDeadlineSchedule;
|
|
95216
|
+
function projectPerformedEmergencyOptOutOfRule(params) {
|
|
95217
|
+
return { evid: 3310, src: 11, endpoint: "", params };
|
|
95218
|
+
}
|
|
95219
|
+
exports2.projectPerformedEmergencyOptOutOfRule = projectPerformedEmergencyOptOutOfRule;
|
|
95220
|
+
function wixStandardsStartFalconRunTimeExperimentSrc11Evid33100(params) {
|
|
95221
|
+
return { evid: 33100, src: 11, endpoint: "", params };
|
|
95222
|
+
}
|
|
95223
|
+
exports2.wixStandardsStartFalconRunTimeExperimentSrc11Evid33100 = wixStandardsStartFalconRunTimeExperimentSrc11Evid33100;
|
|
95224
|
+
function wixStandardsEndFalconRunTimeExperimentSrc11Evid33101(params) {
|
|
95225
|
+
return { evid: 33101, src: 11, endpoint: "", params };
|
|
95226
|
+
}
|
|
95227
|
+
exports2.wixStandardsEndFalconRunTimeExperimentSrc11Evid33101 = wixStandardsEndFalconRunTimeExperimentSrc11Evid33101;
|
|
95228
|
+
function deadlineAlert(params) {
|
|
95229
|
+
return { evid: 3311, src: 11, endpoint: "", params };
|
|
95230
|
+
}
|
|
95231
|
+
exports2.deadlineAlert = deadlineAlert;
|
|
95232
|
+
function fixButtonClicked(params) {
|
|
95233
|
+
return { evid: 3312, src: 11, endpoint: "", params };
|
|
95234
|
+
}
|
|
95235
|
+
exports2.fixButtonClicked = fixButtonClicked;
|
|
95236
|
+
function autofixReportSent(params) {
|
|
95237
|
+
return { evid: 3313, src: 11, endpoint: "", params };
|
|
95238
|
+
}
|
|
95239
|
+
exports2.autofixReportSent = autofixReportSent;
|
|
95240
|
+
function viewPrButtonClick(params) {
|
|
95241
|
+
return { evid: 3314, src: 11, endpoint: "", params };
|
|
95242
|
+
}
|
|
95243
|
+
exports2.viewPrButtonClick = viewPrButtonClick;
|
|
95244
|
+
function weeklyReportButtonAction(params) {
|
|
95245
|
+
return { evid: 3315, src: 11, endpoint: "", params };
|
|
95246
|
+
}
|
|
95247
|
+
exports2.weeklyReportButtonAction = weeklyReportButtonAction;
|
|
95248
|
+
function wixStandardsInitialExtensionWasAddedSrc11Evid3316(params) {
|
|
95249
|
+
return { evid: 3316, src: 11, endpoint: "", params };
|
|
95250
|
+
}
|
|
95251
|
+
exports2.wixStandardsInitialExtensionWasAddedSrc11Evid3316 = wixStandardsInitialExtensionWasAddedSrc11Evid3316;
|
|
95252
|
+
function ruleStatusChanged(params) {
|
|
95253
|
+
return { evid: 3317, src: 11, endpoint: "", params };
|
|
95254
|
+
}
|
|
95255
|
+
exports2.ruleStatusChanged = ruleStatusChanged;
|
|
95256
|
+
function ciPoliceNumberOfTargets(params) {
|
|
95257
|
+
return { evid: 3318, src: 11, endpoint: "", params };
|
|
95258
|
+
}
|
|
95259
|
+
exports2.ciPoliceNumberOfTargets = ciPoliceNumberOfTargets;
|
|
95260
|
+
function violationsDeadlineSrc11Evid3319(params) {
|
|
95261
|
+
return { evid: 3319, src: 11, endpoint: "", params };
|
|
95262
|
+
}
|
|
95263
|
+
exports2.violationsDeadlineSrc11Evid3319 = violationsDeadlineSrc11Evid3319;
|
|
95264
|
+
function executiveSummaryEmailSentSrc11Evid3320(params) {
|
|
95265
|
+
return { evid: 3320, src: 11, endpoint: "", params };
|
|
95266
|
+
}
|
|
95267
|
+
exports2.executiveSummaryEmailSentSrc11Evid3320 = executiveSummaryEmailSentSrc11Evid3320;
|
|
95268
|
+
function executiveSummaryEnterOverviewSrc11Evid3321(params) {
|
|
95269
|
+
return { evid: 3321, src: 11, endpoint: "", params };
|
|
95270
|
+
}
|
|
95271
|
+
exports2.executiveSummaryEnterOverviewSrc11Evid3321 = executiveSummaryEnterOverviewSrc11Evid3321;
|
|
95272
|
+
function executiveSummaryMovingBetweenTabsSrc11Evid3322(params) {
|
|
95273
|
+
return { evid: 3322, src: 11, endpoint: "", params };
|
|
95274
|
+
}
|
|
95275
|
+
exports2.executiveSummaryMovingBetweenTabsSrc11Evid3322 = executiveSummaryMovingBetweenTabsSrc11Evid3322;
|
|
95276
|
+
function executiveSummaryCommitToDeadlineSrc11Evid3323(params) {
|
|
95277
|
+
return { evid: 3323, src: 11, endpoint: "", params };
|
|
95278
|
+
}
|
|
95279
|
+
exports2.executiveSummaryCommitToDeadlineSrc11Evid3323 = executiveSummaryCommitToDeadlineSrc11Evid3323;
|
|
95280
|
+
function executiveSummaryCustomTimeRangeSrc11Evid3324(params) {
|
|
95281
|
+
return { evid: 3324, src: 11, endpoint: "", params };
|
|
95282
|
+
}
|
|
95283
|
+
exports2.executiveSummaryCustomTimeRangeSrc11Evid3324 = executiveSummaryCustomTimeRangeSrc11Evid3324;
|
|
95284
|
+
function executiveSummaryChangeTeamSrc11Evid3325(params) {
|
|
95285
|
+
return { evid: 3325, src: 11, endpoint: "", params };
|
|
95286
|
+
}
|
|
95287
|
+
exports2.executiveSummaryChangeTeamSrc11Evid3325 = executiveSummaryChangeTeamSrc11Evid3325;
|
|
95288
|
+
function wixStandardsEmergencyOptOutPopupMessageSrc11Evid3326(params) {
|
|
95289
|
+
return { evid: 3326, src: 11, endpoint: "", params };
|
|
95290
|
+
}
|
|
95291
|
+
exports2.wixStandardsEmergencyOptOutPopupMessageSrc11Evid3326 = wixStandardsEmergencyOptOutPopupMessageSrc11Evid3326;
|
|
95292
|
+
function wixStandardsProjectWasRejectedAndNotAddedToTheIgnoreListSrc11Evid3332(params) {
|
|
95293
|
+
return { evid: 3332, src: 11, endpoint: "", params };
|
|
95294
|
+
}
|
|
95295
|
+
exports2.wixStandardsProjectWasRejectedAndNotAddedToTheIgnoreListSrc11Evid3332 = wixStandardsProjectWasRejectedAndNotAddedToTheIgnoreListSrc11Evid3332;
|
|
95296
|
+
function wixStandardsOptOutRequestsApplicationClickSrc11Evid3344(params) {
|
|
95297
|
+
return { evid: 3344, src: 11, endpoint: "", params };
|
|
95298
|
+
}
|
|
95299
|
+
exports2.wixStandardsOptOutRequestsApplicationClickSrc11Evid3344 = wixStandardsOptOutRequestsApplicationClickSrc11Evid3344;
|
|
95300
|
+
function wixStandardsOptOutRequestsApplicationActionSrc11Evid3345(params) {
|
|
95301
|
+
return { evid: 3345, src: 11, endpoint: "", params };
|
|
95302
|
+
}
|
|
95303
|
+
exports2.wixStandardsOptOutRequestsApplicationActionSrc11Evid3345 = wixStandardsOptOutRequestsApplicationActionSrc11Evid3345;
|
|
95304
|
+
function weeklyStatusReport(params) {
|
|
95305
|
+
return { evid: 3401, src: 11, endpoint: "", params };
|
|
95306
|
+
}
|
|
95307
|
+
exports2.weeklyStatusReport = weeklyStatusReport;
|
|
95308
|
+
function wixStandardsBotWeeklyAlertMessageWasSentSrc11Evid3402(params) {
|
|
95309
|
+
return { evid: 3402, src: 11, endpoint: "", params };
|
|
95310
|
+
}
|
|
95311
|
+
exports2.wixStandardsBotWeeklyAlertMessageWasSentSrc11Evid3402 = wixStandardsBotWeeklyAlertMessageWasSentSrc11Evid3402;
|
|
95312
|
+
function wixStandardsBotWeeklyViolationAlertMessageWasSentSrc11Evid3403(params) {
|
|
95313
|
+
return { evid: 3403, src: 11, endpoint: "", params };
|
|
95314
|
+
}
|
|
95315
|
+
exports2.wixStandardsBotWeeklyViolationAlertMessageWasSentSrc11Evid3403 = wixStandardsBotWeeklyViolationAlertMessageWasSentSrc11Evid3403;
|
|
95316
|
+
function wixStandardsBotWeeklyAlertMessageButtonActionSrc11Evid3404(params) {
|
|
95317
|
+
return { evid: 3404, src: 11, endpoint: "", params };
|
|
95318
|
+
}
|
|
95319
|
+
exports2.wixStandardsBotWeeklyAlertMessageButtonActionSrc11Evid3404 = wixStandardsBotWeeklyAlertMessageButtonActionSrc11Evid3404;
|
|
95320
|
+
function arkGradualRolloutStarted(params) {
|
|
95321
|
+
return { evid: 3604, src: 11, endpoint: "", params };
|
|
95322
|
+
}
|
|
95323
|
+
exports2.arkGradualRolloutStarted = arkGradualRolloutStarted;
|
|
95324
|
+
function arkGradualRolloutStepChanged(params) {
|
|
95325
|
+
return { evid: 3605, src: 11, endpoint: "", params };
|
|
95326
|
+
}
|
|
95327
|
+
exports2.arkGradualRolloutStepChanged = arkGradualRolloutStepChanged;
|
|
95328
|
+
function arkGradualRolloutEnded(params) {
|
|
95329
|
+
return { evid: 3606, src: 11, endpoint: "", params };
|
|
95330
|
+
}
|
|
95331
|
+
exports2.arkGradualRolloutEnded = arkGradualRolloutEnded;
|
|
95332
|
+
function arkNewProjectOnboarded(params) {
|
|
95333
|
+
return { evid: 3608, src: 11, endpoint: "", params };
|
|
95334
|
+
}
|
|
95335
|
+
exports2.arkNewProjectOnboarded = arkNewProjectOnboarded;
|
|
95336
|
+
function ciPoliceTicketPageLoad(params) {
|
|
95337
|
+
return { evid: 3620, src: 11, endpoint: "", params };
|
|
95338
|
+
}
|
|
95339
|
+
exports2.ciPoliceTicketPageLoad = ciPoliceTicketPageLoad;
|
|
95340
|
+
function ciPoliceTicketProjectButtonAction(params) {
|
|
95341
|
+
return { evid: 3627, src: 11, endpoint: "", params };
|
|
95342
|
+
}
|
|
95343
|
+
exports2.ciPoliceTicketProjectButtonAction = ciPoliceTicketProjectButtonAction;
|
|
95344
|
+
function ciPoliceTicketRuleButtonAction(params) {
|
|
95345
|
+
return { evid: 3628, src: 11, endpoint: "", params };
|
|
95346
|
+
}
|
|
95347
|
+
exports2.ciPoliceTicketRuleButtonAction = ciPoliceTicketRuleButtonAction;
|
|
95348
|
+
function emergencyOptOutDialogAction(params) {
|
|
95349
|
+
return { evid: 3629, src: 11, endpoint: "", params };
|
|
95350
|
+
}
|
|
95351
|
+
exports2.emergencyOptOutDialogAction = emergencyOptOutDialogAction;
|
|
95352
|
+
function ciPoliceMsTrackerOptOutDialog(params) {
|
|
95353
|
+
return { evid: 3630, src: 11, endpoint: "", params };
|
|
95354
|
+
}
|
|
95355
|
+
exports2.ciPoliceMsTrackerOptOutDialog = ciPoliceMsTrackerOptOutDialog;
|
|
95356
|
+
function ciPoliceMsTrackerOptOutDialogRulesAndProjects(params) {
|
|
95357
|
+
return { evid: 3631, src: 11, endpoint: "", params };
|
|
95358
|
+
}
|
|
95359
|
+
exports2.ciPoliceMsTrackerOptOutDialogRulesAndProjects = ciPoliceMsTrackerOptOutDialogRulesAndProjects;
|
|
95360
|
+
function ciPoliceMsTrackerButtonAction(params) {
|
|
95361
|
+
return { evid: 3632, src: 11, endpoint: "", params };
|
|
95362
|
+
}
|
|
95363
|
+
exports2.ciPoliceMsTrackerButtonAction = ciPoliceMsTrackerButtonAction;
|
|
95364
|
+
function wixStandardsTicketEmergencyOptOutDialogOpenSrc11Evid3633(params) {
|
|
95365
|
+
return { evid: 3633, src: 11, endpoint: "", params };
|
|
95366
|
+
}
|
|
95367
|
+
exports2.wixStandardsTicketEmergencyOptOutDialogOpenSrc11Evid3633 = wixStandardsTicketEmergencyOptOutDialogOpenSrc11Evid3633;
|
|
95368
|
+
function lokiRepoUpdateCreated(params) {
|
|
95369
|
+
return { evid: 3710, src: 11, endpoint: "", params };
|
|
95370
|
+
}
|
|
95371
|
+
exports2.lokiRepoUpdateCreated = lokiRepoUpdateCreated;
|
|
95372
|
+
function lokiUpdatePrOpened(params) {
|
|
95373
|
+
return { evid: 3712, src: 11, endpoint: "", params };
|
|
95374
|
+
}
|
|
95375
|
+
exports2.lokiUpdatePrOpened = lokiUpdatePrOpened;
|
|
95376
|
+
function lokiUpdatePrResult(params) {
|
|
95377
|
+
return { evid: 3713, src: 11, endpoint: "", params };
|
|
95378
|
+
}
|
|
95379
|
+
exports2.lokiUpdatePrResult = lokiUpdatePrResult;
|
|
95380
|
+
function lokiUpdateMerged(params) {
|
|
95381
|
+
return { evid: 3714, src: 11, endpoint: "", params };
|
|
95382
|
+
}
|
|
95383
|
+
exports2.lokiUpdateMerged = lokiUpdateMerged;
|
|
95384
|
+
function lokiUpdateSkipped(params) {
|
|
95385
|
+
return { evid: 3715, src: 11, endpoint: "", params };
|
|
95386
|
+
}
|
|
95387
|
+
exports2.lokiUpdateSkipped = lokiUpdateSkipped;
|
|
95388
|
+
function lokiScheduleChanged(params) {
|
|
95389
|
+
return { evid: 3716, src: 11, endpoint: "", params };
|
|
95390
|
+
}
|
|
95391
|
+
exports2.lokiScheduleChanged = lokiScheduleChanged;
|
|
95392
|
+
function arkProjectOptedOut(params) {
|
|
95393
|
+
return { evid: 4300, src: 11, endpoint: "", params };
|
|
95394
|
+
}
|
|
95395
|
+
exports2.arkProjectOptedOut = arkProjectOptedOut;
|
|
95396
|
+
function arkProjectOptedIn(params) {
|
|
95397
|
+
return { evid: 4301, src: 11, endpoint: "", params };
|
|
95398
|
+
}
|
|
95399
|
+
exports2.arkProjectOptedIn = arkProjectOptedIn;
|
|
95400
|
+
function autofixPrMerged(params) {
|
|
95401
|
+
return { evid: 4601, src: 11, endpoint: "", params };
|
|
95402
|
+
}
|
|
95403
|
+
exports2.autofixPrMerged = autofixPrMerged;
|
|
95404
|
+
function wixCliCliCommand(params) {
|
|
95405
|
+
return { evid: 5200, src: 11, endpoint: "", params };
|
|
95406
|
+
}
|
|
95407
|
+
exports2.wixCliCliCommand = wixCliCliCommand;
|
|
95408
|
+
function wixCliCliCommandStatus(params) {
|
|
95409
|
+
return { evid: 5201, src: 11, endpoint: "", params };
|
|
95410
|
+
}
|
|
95411
|
+
exports2.wixCliCliCommandStatus = wixCliCliCommandStatus;
|
|
95412
|
+
function wixCliFileFolderCreatedRenamedDeleted(params) {
|
|
95413
|
+
return { evid: 5202, src: 11, endpoint: "", params };
|
|
95414
|
+
}
|
|
95415
|
+
exports2.wixCliFileFolderCreatedRenamedDeleted = wixCliFileFolderCreatedRenamedDeleted;
|
|
95416
|
+
function wixCliCodeHasBeenChanged(params) {
|
|
95417
|
+
return { evid: 5203, src: 11, endpoint: "", params };
|
|
95418
|
+
}
|
|
95419
|
+
exports2.wixCliCodeHasBeenChanged = wixCliCodeHasBeenChanged;
|
|
95420
|
+
function wixCliCliMessageDisplayed(params) {
|
|
95421
|
+
return { evid: 5204, src: 11, endpoint: "", params };
|
|
95422
|
+
}
|
|
95423
|
+
exports2.wixCliCliMessageDisplayed = wixCliCliMessageDisplayed;
|
|
95424
|
+
function wixCliUserResponseToCliMessage(params) {
|
|
95425
|
+
return { evid: 5205, src: 11, endpoint: "", params };
|
|
95426
|
+
}
|
|
95427
|
+
exports2.wixCliUserResponseToCliMessage = wixCliUserResponseToCliMessage;
|
|
95428
|
+
function wixCliReadyForReloadAfterCodeChange(params) {
|
|
95429
|
+
return { evid: 5206, src: 11, endpoint: "", params };
|
|
95430
|
+
}
|
|
95431
|
+
exports2.wixCliReadyForReloadAfterCodeChange = wixCliReadyForReloadAfterCodeChange;
|
|
95432
|
+
function wixCliAppFlowFileUploadStarted(params) {
|
|
95433
|
+
return { evid: 5208, src: 11, endpoint: "", params };
|
|
95434
|
+
}
|
|
95435
|
+
exports2.wixCliAppFlowFileUploadStarted = wixCliAppFlowFileUploadStarted;
|
|
95436
|
+
function wixCliAppFlowZipUploadDone(params) {
|
|
95437
|
+
return { evid: 5209, src: 11, endpoint: "", params };
|
|
95438
|
+
}
|
|
95439
|
+
exports2.wixCliAppFlowZipUploadDone = wixCliAppFlowZipUploadDone;
|
|
95440
|
+
function wixCliAppFlowUploadEnded(params) {
|
|
95441
|
+
return { evid: 5210, src: 11, endpoint: "", params };
|
|
95442
|
+
}
|
|
95443
|
+
exports2.wixCliAppFlowUploadEnded = wixCliAppFlowUploadEnded;
|
|
95444
|
+
function wixCliLoginStart(params) {
|
|
95445
|
+
return { evid: 5211, src: 11, endpoint: "", params };
|
|
95446
|
+
}
|
|
95447
|
+
exports2.wixCliLoginStart = wixCliLoginStart;
|
|
95448
|
+
function wixCliLoginEnd(params) {
|
|
95449
|
+
return { evid: 5212, src: 11, endpoint: "", params };
|
|
95450
|
+
}
|
|
95451
|
+
exports2.wixCliLoginEnd = wixCliLoginEnd;
|
|
95452
|
+
function wixCliAppFlowAppGenerationTypeOfCreationSelected(params) {
|
|
95453
|
+
return { evid: 5213, src: 11, endpoint: "", params };
|
|
95454
|
+
}
|
|
95455
|
+
exports2.wixCliAppFlowAppGenerationTypeOfCreationSelected = wixCliAppFlowAppGenerationTypeOfCreationSelected;
|
|
95456
|
+
function wixCliAppFlowAppGenerationNewAppNameEntered(params) {
|
|
95457
|
+
return { evid: 5214, src: 11, endpoint: "", params };
|
|
95458
|
+
}
|
|
95459
|
+
exports2.wixCliAppFlowAppGenerationNewAppNameEntered = wixCliAppFlowAppGenerationNewAppNameEntered;
|
|
95460
|
+
function wixCliAppFlowAppGenerationNewAppRegistrationEnd(params) {
|
|
95461
|
+
return { evid: 5215, src: 11, endpoint: "", params };
|
|
95462
|
+
}
|
|
95463
|
+
exports2.wixCliAppFlowAppGenerationNewAppRegistrationEnd = wixCliAppFlowAppGenerationNewAppRegistrationEnd;
|
|
95464
|
+
function wixCliAppFlowAppGenerationExistingAppSelected(params) {
|
|
95465
|
+
return { evid: 5216, src: 11, endpoint: "", params };
|
|
95466
|
+
}
|
|
95467
|
+
exports2.wixCliAppFlowAppGenerationExistingAppSelected = wixCliAppFlowAppGenerationExistingAppSelected;
|
|
95468
|
+
function wixCliAppFlowAppGenerationAppGenerationEnd(params) {
|
|
95469
|
+
return { evid: 5217, src: 11, endpoint: "", params };
|
|
95470
|
+
}
|
|
95471
|
+
exports2.wixCliAppFlowAppGenerationAppGenerationEnd = wixCliAppFlowAppGenerationAppGenerationEnd;
|
|
95472
|
+
function wixCliAppFlowComponentInstalledInTheApp(params) {
|
|
95473
|
+
return { evid: 5218, src: 11, endpoint: "", params };
|
|
95474
|
+
}
|
|
95475
|
+
exports2.wixCliAppFlowComponentInstalledInTheApp = wixCliAppFlowComponentInstalledInTheApp;
|
|
95476
|
+
function wixCliAppFlowDevelopmentSiteSiteSelectorOpened(params) {
|
|
95477
|
+
return { evid: 5219, src: 11, endpoint: "", params };
|
|
95478
|
+
}
|
|
95479
|
+
exports2.wixCliAppFlowDevelopmentSiteSiteSelectorOpened = wixCliAppFlowDevelopmentSiteSiteSelectorOpened;
|
|
95480
|
+
function wixCliAppFlowDevelopmentSiteTypeOfDevelopmentSiteSelected(params) {
|
|
95481
|
+
return { evid: 5220, src: 11, endpoint: "", params };
|
|
95482
|
+
}
|
|
95483
|
+
exports2.wixCliAppFlowDevelopmentSiteTypeOfDevelopmentSiteSelected = wixCliAppFlowDevelopmentSiteTypeOfDevelopmentSiteSelected;
|
|
95484
|
+
function wixCliAppFlowDevelopmentSiteNewDevelopmentSiteCreationStart(params) {
|
|
95485
|
+
return { evid: 5221, src: 11, endpoint: "", params };
|
|
95486
|
+
}
|
|
95487
|
+
exports2.wixCliAppFlowDevelopmentSiteNewDevelopmentSiteCreationStart = wixCliAppFlowDevelopmentSiteNewDevelopmentSiteCreationStart;
|
|
95488
|
+
function wixCliAppFlowDevelopmentSiteNewDevelopmentSiteCreationEnd(params) {
|
|
95489
|
+
return { evid: 5222, src: 11, endpoint: "", params };
|
|
95490
|
+
}
|
|
95491
|
+
exports2.wixCliAppFlowDevelopmentSiteNewDevelopmentSiteCreationEnd = wixCliAppFlowDevelopmentSiteNewDevelopmentSiteCreationEnd;
|
|
95492
|
+
function wixCliAppFlowDevelopmentSiteExistingSiteSelected(params) {
|
|
95493
|
+
return { evid: 5223, src: 11, endpoint: "", params };
|
|
95494
|
+
}
|
|
95495
|
+
exports2.wixCliAppFlowDevelopmentSiteExistingSiteSelected = wixCliAppFlowDevelopmentSiteExistingSiteSelected;
|
|
95496
|
+
function wixCliAppFlowDevelopmentSiteAppInstallationOnDevelopmentSiteStart(params) {
|
|
95497
|
+
return { evid: 5224, src: 11, endpoint: "", params };
|
|
95498
|
+
}
|
|
95499
|
+
exports2.wixCliAppFlowDevelopmentSiteAppInstallationOnDevelopmentSiteStart = wixCliAppFlowDevelopmentSiteAppInstallationOnDevelopmentSiteStart;
|
|
95500
|
+
function wixCliAppFlowDevelopmentSiteAppInstallationOnDevelopmentSiteEnd(params) {
|
|
95501
|
+
return { evid: 5225, src: 11, endpoint: "", params };
|
|
95502
|
+
}
|
|
95503
|
+
exports2.wixCliAppFlowDevelopmentSiteAppInstallationOnDevelopmentSiteEnd = wixCliAppFlowDevelopmentSiteAppInstallationOnDevelopmentSiteEnd;
|
|
95504
|
+
function wixCliAppFlowDevelopmentSiteDevelopmentSiteSet(params) {
|
|
95505
|
+
return { evid: 5226, src: 11, endpoint: "", params };
|
|
95506
|
+
}
|
|
95507
|
+
exports2.wixCliAppFlowDevelopmentSiteDevelopmentSiteSet = wixCliAppFlowDevelopmentSiteDevelopmentSiteSet;
|
|
95508
|
+
function wixCliAppFlowDevelopmentSiteSiteSelectorAborted(params) {
|
|
95509
|
+
return { evid: 5227, src: 11, endpoint: "", params };
|
|
95510
|
+
}
|
|
95511
|
+
exports2.wixCliAppFlowDevelopmentSiteSiteSelectorAborted = wixCliAppFlowDevelopmentSiteSiteSelectorAborted;
|
|
95512
|
+
function wixCliAppFlowExtensionGenerationExtensionWasAdded(params) {
|
|
95513
|
+
return { evid: 5228, src: 11, endpoint: "", params };
|
|
95514
|
+
}
|
|
95515
|
+
exports2.wixCliAppFlowExtensionGenerationExtensionWasAdded = wixCliAppFlowExtensionGenerationExtensionWasAdded;
|
|
95516
|
+
function wixCliAppFlowStepsAnswers(params) {
|
|
95517
|
+
return { evid: 5229, src: 11, endpoint: "", params };
|
|
95518
|
+
}
|
|
95519
|
+
exports2.wixCliAppFlowStepsAnswers = wixCliAppFlowStepsAnswers;
|
|
95520
|
+
function wixCliCliError(params) {
|
|
95521
|
+
return { evid: 5230, src: 11, endpoint: "", params };
|
|
95522
|
+
}
|
|
95523
|
+
exports2.wixCliCliError = wixCliCliError;
|
|
95524
|
+
function wixCliAction(params) {
|
|
95525
|
+
return { evid: 5231, src: 11, endpoint: "", params };
|
|
95526
|
+
}
|
|
95527
|
+
exports2.wixCliAction = wixCliAction;
|
|
95528
|
+
function wixCliAppsFlowDeploymentStatusSrc11Evid5232(params) {
|
|
95529
|
+
return { evid: 5232, src: 11, endpoint: "", params };
|
|
95530
|
+
}
|
|
95531
|
+
exports2.wixCliAppsFlowDeploymentStatusSrc11Evid5232 = wixCliAppsFlowDeploymentStatusSrc11Evid5232;
|
|
95532
|
+
function wixCliAppsFlowTunnelCreationStatusSrc11Evid5233(params) {
|
|
95533
|
+
return { evid: 5233, src: 11, endpoint: "", params };
|
|
95534
|
+
}
|
|
95535
|
+
exports2.wixCliAppsFlowTunnelCreationStatusSrc11Evid5233 = wixCliAppsFlowTunnelCreationStatusSrc11Evid5233;
|
|
95536
|
+
function wixCliAppsFlowDeploymentRequestSrc11Evid5234(params) {
|
|
95537
|
+
return { evid: 5234, src: 11, endpoint: "", params };
|
|
95538
|
+
}
|
|
95539
|
+
exports2.wixCliAppsFlowDeploymentRequestSrc11Evid5234 = wixCliAppsFlowDeploymentRequestSrc11Evid5234;
|
|
95540
|
+
function wixCliAppFlowAppCloudServerUploadedSrc11Evid5235(params) {
|
|
95541
|
+
return { evid: 5235, src: 11, endpoint: "", params };
|
|
95542
|
+
}
|
|
95543
|
+
exports2.wixCliAppFlowAppCloudServerUploadedSrc11Evid5235 = wixCliAppFlowAppCloudServerUploadedSrc11Evid5235;
|
|
95544
|
+
function arkSlackAlertSent(params) {
|
|
95545
|
+
return { evid: 5500, src: 11, endpoint: "", params };
|
|
95546
|
+
}
|
|
95547
|
+
exports2.arkSlackAlertSent = arkSlackAlertSent;
|
|
95548
|
+
function sledMergeQueueManualClickSrc11Evid90599(params) {
|
|
95549
|
+
return { evid: 90599, src: 11, endpoint: "", params };
|
|
95550
|
+
}
|
|
95551
|
+
exports2.sledMergeQueueManualClickSrc11Evid90599 = sledMergeQueueManualClickSrc11Evid90599;
|
|
95552
|
+
function sledMergeQueueRunSrc11Evid90600(params) {
|
|
95553
|
+
return { evid: 90600, src: 11, endpoint: "", params };
|
|
95554
|
+
}
|
|
95555
|
+
exports2.sledMergeQueueRunSrc11Evid90600 = sledMergeQueueRunSrc11Evid90600;
|
|
95556
|
+
function perferRunStart(params) {
|
|
95557
|
+
return { evid: 91200, src: 11, endpoint: "", params };
|
|
95558
|
+
}
|
|
95559
|
+
exports2.perferRunStart = perferRunStart;
|
|
95560
|
+
function perferRunFinished(params) {
|
|
95561
|
+
return { evid: 91201, src: 11, endpoint: "", params };
|
|
95562
|
+
}
|
|
95563
|
+
exports2.perferRunFinished = perferRunFinished;
|
|
95564
|
+
function perferTestCaseResult(params) {
|
|
95565
|
+
return { evid: 91202, src: 11, endpoint: "", params };
|
|
95566
|
+
}
|
|
95567
|
+
exports2.perferTestCaseResult = perferTestCaseResult;
|
|
95568
|
+
function perferRunResult(params) {
|
|
95569
|
+
return { evid: 91204, src: 11, endpoint: "", params };
|
|
95570
|
+
}
|
|
95571
|
+
exports2.perferRunResult = perferRunResult;
|
|
95572
|
+
function perferMetricResult(params) {
|
|
95573
|
+
return { evid: 91205, src: 11, endpoint: "", params };
|
|
95574
|
+
}
|
|
95575
|
+
exports2.perferMetricResult = perferMetricResult;
|
|
95576
|
+
function perferTestStarted(params) {
|
|
95577
|
+
return { evid: 91206, src: 11, endpoint: "", params };
|
|
95578
|
+
}
|
|
95579
|
+
exports2.perferTestStarted = perferTestStarted;
|
|
95580
|
+
function perferTestEnded(params) {
|
|
95581
|
+
return { evid: 91207, src: 11, endpoint: "", params };
|
|
95582
|
+
}
|
|
95583
|
+
exports2.perferTestEnded = perferTestEnded;
|
|
95584
|
+
function perferReportOpened(params) {
|
|
95585
|
+
return { evid: 91211, src: 11, endpoint: "", params };
|
|
95586
|
+
}
|
|
95587
|
+
exports2.perferReportOpened = perferReportOpened;
|
|
95588
|
+
function perferClickOnResetArtifactSBaselineButton(params) {
|
|
95589
|
+
return { evid: 91212, src: 11, endpoint: "", params };
|
|
95590
|
+
}
|
|
95591
|
+
exports2.perferClickOnResetArtifactSBaselineButton = perferClickOnResetArtifactSBaselineButton;
|
|
95592
|
+
function perferResetArtifactSBaseline(params) {
|
|
95593
|
+
return { evid: 91213, src: 11, endpoint: "", params };
|
|
95594
|
+
}
|
|
95595
|
+
exports2.perferResetArtifactSBaseline = perferResetArtifactSBaseline;
|
|
95596
|
+
function buildStart(params) {
|
|
95597
|
+
return { evid: 91400, src: 11, endpoint: "", params };
|
|
95598
|
+
}
|
|
95599
|
+
exports2.buildStart = buildStart;
|
|
95600
|
+
function startInit(params) {
|
|
95601
|
+
return { evid: 91401, src: 11, endpoint: "", params };
|
|
95602
|
+
}
|
|
95603
|
+
exports2.startInit = startInit;
|
|
95604
|
+
function createProject(params) {
|
|
95605
|
+
return { evid: 91402, src: 11, endpoint: "", params };
|
|
95606
|
+
}
|
|
95607
|
+
exports2.createProject = createProject;
|
|
95608
|
+
function buildEnd(params) {
|
|
95609
|
+
return { evid: 91403, src: 11, endpoint: "", params };
|
|
95610
|
+
}
|
|
95611
|
+
exports2.buildEnd = buildEnd;
|
|
95612
|
+
function yoshiYarnStartFinished(params) {
|
|
95613
|
+
return { evid: 91405, src: 11, endpoint: "", params };
|
|
95614
|
+
}
|
|
95615
|
+
exports2.yoshiYarnStartFinished = yoshiYarnStartFinished;
|
|
95616
|
+
function yoshiTestsRunStart(params) {
|
|
95617
|
+
return { evid: 91406, src: 11, endpoint: "", params };
|
|
95618
|
+
}
|
|
95619
|
+
exports2.yoshiTestsRunStart = yoshiTestsRunStart;
|
|
95620
|
+
function yoshiTestsRunEnd(params) {
|
|
95621
|
+
return { evid: 91407, src: 11, endpoint: "", params };
|
|
95622
|
+
}
|
|
95623
|
+
exports2.yoshiTestsRunEnd = yoshiTestsRunEnd;
|
|
95624
|
+
function yoshiCodeChangeDetected(params) {
|
|
95625
|
+
return { evid: 91408, src: 11, endpoint: "", params };
|
|
95626
|
+
}
|
|
95627
|
+
exports2.yoshiCodeChangeDetected = yoshiCodeChangeDetected;
|
|
95628
|
+
function yoshiReadyForReloadAfterCodeChange(params) {
|
|
95629
|
+
return { evid: 91409, src: 11, endpoint: "", params };
|
|
95630
|
+
}
|
|
95631
|
+
exports2.yoshiReadyForReloadAfterCodeChange = yoshiReadyForReloadAfterCodeChange;
|
|
95632
|
+
function perferTestResult(params) {
|
|
95633
|
+
return { evid: 91501, src: 11, endpoint: "", params };
|
|
95634
|
+
}
|
|
95635
|
+
exports2.perferTestResult = perferTestResult;
|
|
95636
|
+
function perferBundleResult(params) {
|
|
95637
|
+
return { evid: 91502, src: 11, endpoint: "", params };
|
|
95638
|
+
}
|
|
95639
|
+
exports2.perferBundleResult = perferBundleResult;
|
|
95640
|
+
function devibeUserClickSrc196Evid10(params) {
|
|
95641
|
+
return { evid: 10, src: 196, endpoint: "", params };
|
|
95642
|
+
}
|
|
95643
|
+
exports2.devibeUserClickSrc196Evid10 = devibeUserClickSrc196Evid10;
|
|
95644
|
+
function devibeLandedOnWorksapceSrc196Evid13(params) {
|
|
95645
|
+
return { evid: 13, src: 196, endpoint: "", params };
|
|
95646
|
+
}
|
|
95647
|
+
exports2.devibeLandedOnWorksapceSrc196Evid13 = devibeLandedOnWorksapceSrc196Evid13;
|
|
95648
|
+
function devibeErrorPageShownSrc196Evid15(params) {
|
|
95649
|
+
return { evid: 15, src: 196, endpoint: "", params };
|
|
95650
|
+
}
|
|
95651
|
+
exports2.devibeErrorPageShownSrc196Evid15 = devibeErrorPageShownSrc196Evid15;
|
|
95652
|
+
function devibePageStartLoadingSrc196Evid2(params) {
|
|
95653
|
+
return { evid: 2, src: 196, endpoint: "", params };
|
|
95654
|
+
}
|
|
95655
|
+
exports2.devibePageStartLoadingSrc196Evid2 = devibePageStartLoadingSrc196Evid2;
|
|
95656
|
+
function devibeCodegenAgentSessionStartSrc196Evid200(params) {
|
|
95657
|
+
return { evid: 200, src: 196, endpoint: "", params };
|
|
95658
|
+
}
|
|
95659
|
+
exports2.devibeCodegenAgentSessionStartSrc196Evid200 = devibeCodegenAgentSessionStartSrc196Evid200;
|
|
95660
|
+
function devibeCodegenAgentSessionEndSrc196Evid201(params) {
|
|
95661
|
+
return { evid: 201, src: 196, endpoint: "", params };
|
|
95662
|
+
}
|
|
95663
|
+
exports2.devibeCodegenAgentSessionEndSrc196Evid201 = devibeCodegenAgentSessionEndSrc196Evid201;
|
|
95664
|
+
function devibeCodegenAgentSessionErrorSrc196Evid202(params) {
|
|
95665
|
+
return { evid: 202, src: 196, endpoint: "", params };
|
|
95666
|
+
}
|
|
95667
|
+
exports2.devibeCodegenAgentSessionErrorSrc196Evid202 = devibeCodegenAgentSessionErrorSrc196Evid202;
|
|
95668
|
+
function devibePageFinishLoadingSrc196Evid3(params) {
|
|
95669
|
+
return { evid: 3, src: 196, endpoint: "", params };
|
|
95670
|
+
}
|
|
95671
|
+
exports2.devibePageFinishLoadingSrc196Evid3 = devibePageFinishLoadingSrc196Evid3;
|
|
95672
|
+
function devibeBlueprintVersionReadySrc196Evid4(params) {
|
|
95673
|
+
return { evid: 4, src: 196, endpoint: "", params };
|
|
95674
|
+
}
|
|
95675
|
+
exports2.devibeBlueprintVersionReadySrc196Evid4 = devibeBlueprintVersionReadySrc196Evid4;
|
|
95676
|
+
function devibeErrorSrc196Evid5(params) {
|
|
95677
|
+
return { evid: 5, src: 196, endpoint: "", params };
|
|
95678
|
+
}
|
|
95679
|
+
exports2.devibeErrorSrc196Evid5 = devibeErrorSrc196Evid5;
|
|
95680
|
+
function devibeAppCheckpointCreatedSrc196Evid6(params) {
|
|
95681
|
+
return { evid: 6, src: 196, endpoint: "", params };
|
|
95682
|
+
}
|
|
95683
|
+
exports2.devibeAppCheckpointCreatedSrc196Evid6 = devibeAppCheckpointCreatedSrc196Evid6;
|
|
95684
|
+
function devibeEarlierAppCheckpointActionCompletedSrc196Evid7(params) {
|
|
95685
|
+
return { evid: 7, src: 196, endpoint: "", params };
|
|
95686
|
+
}
|
|
95687
|
+
exports2.devibeEarlierAppCheckpointActionCompletedSrc196Evid7 = devibeEarlierAppCheckpointActionCompletedSrc196Evid7;
|
|
95688
|
+
function devibeChatWidgetLoadedSrc196Evid8(params) {
|
|
95689
|
+
return { evid: 8, src: 196, endpoint: "", params };
|
|
95690
|
+
}
|
|
95691
|
+
exports2.devibeChatWidgetLoadedSrc196Evid8 = devibeChatWidgetLoadedSrc196Evid8;
|
|
95692
|
+
function chatGptWixAppActionSrc39Evid1609(params) {
|
|
95693
|
+
return { evid: 1609, src: 39, endpoint: "", params };
|
|
95694
|
+
}
|
|
95695
|
+
exports2.chatGptWixAppActionSrc39Evid1609 = chatGptWixAppActionSrc39Evid1609;
|
|
95696
|
+
function dpKbMcpServerCallSrc39Evid1996(params) {
|
|
95697
|
+
return { evid: 1996, src: 39, endpoint: "", params };
|
|
95698
|
+
}
|
|
95699
|
+
exports2.dpKbMcpServerCallSrc39Evid1996 = dpKbMcpServerCallSrc39Evid1996;
|
|
95700
|
+
}
|
|
95701
|
+
});
|
|
95702
|
+
|
|
95703
|
+
// ../../node_modules/@wix/wix-bi-logger-client/dist/assert.js
|
|
95704
|
+
var require_assert2 = __commonJS({
|
|
95705
|
+
"../../node_modules/@wix/wix-bi-logger-client/dist/assert.js"(exports2, module2) {
|
|
95706
|
+
"use strict";
|
|
95707
|
+
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(obj) {
|
|
95708
|
+
return typeof obj;
|
|
95709
|
+
} : function(obj) {
|
|
95710
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
95711
|
+
};
|
|
95712
|
+
function _classCallCheck(instance, Constructor) {
|
|
95713
|
+
if (!(instance instanceof Constructor)) {
|
|
95714
|
+
throw new TypeError("Cannot call a class as a function");
|
|
95715
|
+
}
|
|
95716
|
+
}
|
|
95717
|
+
function _possibleConstructorReturn(self2, call) {
|
|
95718
|
+
if (!self2) {
|
|
95719
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
95720
|
+
}
|
|
95721
|
+
return call && (typeof call === "object" || typeof call === "function") ? call : self2;
|
|
95722
|
+
}
|
|
95723
|
+
function _inherits(subClass, superClass) {
|
|
95724
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
95725
|
+
throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
|
|
95726
|
+
}
|
|
95727
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });
|
|
95728
|
+
if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
|
|
95729
|
+
}
|
|
95730
|
+
var AssertionError = (function(_Error) {
|
|
95731
|
+
_inherits(AssertionError2, _Error);
|
|
95732
|
+
function AssertionError2(message) {
|
|
95733
|
+
_classCallCheck(this, AssertionError2);
|
|
95734
|
+
var _this = _possibleConstructorReturn(this, (AssertionError2.__proto__ || Object.getPrototypeOf(AssertionError2)).call(this, message));
|
|
95735
|
+
_this.name = _this.constructor.name;
|
|
95736
|
+
return _this;
|
|
95737
|
+
}
|
|
95738
|
+
return AssertionError2;
|
|
95739
|
+
})(Error);
|
|
95740
|
+
function assertDefined(target, message) {
|
|
95741
|
+
if (target === void 0) {
|
|
95742
|
+
throw new AssertionError(message);
|
|
95743
|
+
}
|
|
95744
|
+
}
|
|
95745
|
+
function assertObject(target, message) {
|
|
95746
|
+
if (target !== void 0 && ((typeof target === "undefined" ? "undefined" : _typeof(target)) !== "object" || Array.isArray(target) || target === null)) {
|
|
95747
|
+
throw new AssertionError(message);
|
|
95748
|
+
}
|
|
95749
|
+
}
|
|
95750
|
+
function assertOk(target, message) {
|
|
95751
|
+
if (!target) {
|
|
95752
|
+
throw new AssertionError(message);
|
|
95753
|
+
}
|
|
95754
|
+
}
|
|
95755
|
+
function assertFunc(target, message) {
|
|
95756
|
+
if (target !== void 0 && typeof target !== "function") {
|
|
95757
|
+
throw new AssertionError(message);
|
|
95758
|
+
}
|
|
95759
|
+
}
|
|
95760
|
+
function assertBoolean(target, message) {
|
|
95761
|
+
if (target !== void 0 && typeof target !== "boolean") {
|
|
95762
|
+
throw new AssertionError(message);
|
|
95763
|
+
}
|
|
95764
|
+
}
|
|
95765
|
+
function assertNumber(target, message) {
|
|
95766
|
+
if (target !== void 0 && typeof target !== "number") {
|
|
95767
|
+
throw new AssertionError(message);
|
|
95768
|
+
}
|
|
95769
|
+
}
|
|
95770
|
+
function assertArray(target, message) {
|
|
95771
|
+
if (typeof Array.isArray === "function") {
|
|
95772
|
+
if (!Array.isArray(target)) {
|
|
95773
|
+
throw new AssertionError(message);
|
|
95774
|
+
}
|
|
95775
|
+
} else if (Object.prototype.toString.call(target) !== "[object Array]") {
|
|
95776
|
+
throw new AssertionError(message);
|
|
95777
|
+
}
|
|
95778
|
+
}
|
|
95779
|
+
module2.exports.defined = assertDefined;
|
|
95780
|
+
module2.exports.object = assertObject;
|
|
95781
|
+
module2.exports.ok = assertOk;
|
|
95782
|
+
module2.exports.func = assertFunc;
|
|
95783
|
+
module2.exports.boolean = assertBoolean;
|
|
95784
|
+
module2.exports.number = assertNumber;
|
|
95785
|
+
module2.exports.array = assertArray;
|
|
95786
|
+
module2.exports.AssertionError = AssertionError;
|
|
95787
|
+
}
|
|
95788
|
+
});
|
|
95789
|
+
|
|
95790
|
+
// ../../node_modules/@wix/wix-bi-logger-client/dist/utils/collections.js
|
|
95791
|
+
var require_collections = __commonJS({
|
|
95792
|
+
"../../node_modules/@wix/wix-bi-logger-client/dist/utils/collections.js"(exports2, module2) {
|
|
95793
|
+
"use strict";
|
|
95794
|
+
module2.exports.mapValues = function(collection, iteratee) {
|
|
95795
|
+
if (!collection) {
|
|
95796
|
+
return {};
|
|
95797
|
+
}
|
|
95798
|
+
return Object.keys(collection).reduce(function(acc, key) {
|
|
95799
|
+
acc[key] = iteratee(collection[key], key, collection);
|
|
95800
|
+
return acc;
|
|
95801
|
+
}, {});
|
|
95802
|
+
};
|
|
95803
|
+
module2.exports.filterValues = function(collection, iteratee) {
|
|
95804
|
+
if (!collection) {
|
|
95805
|
+
return {};
|
|
95806
|
+
}
|
|
95807
|
+
return Object.keys(collection).reduce(function(acc, key) {
|
|
95808
|
+
var keep = iteratee(collection[key], key, collection);
|
|
95809
|
+
if (keep) {
|
|
95810
|
+
acc[key] = collection[key];
|
|
95811
|
+
}
|
|
95812
|
+
return acc;
|
|
95813
|
+
}, {});
|
|
95814
|
+
};
|
|
95815
|
+
}
|
|
95816
|
+
});
|
|
95817
|
+
|
|
95818
|
+
// ../../node_modules/@wix/wix-bi-logger-client/dist/utils/promise.js
|
|
95819
|
+
var require_promise2 = __commonJS({
|
|
95820
|
+
"../../node_modules/@wix/wix-bi-logger-client/dist/utils/promise.js"(exports2, module2) {
|
|
95821
|
+
"use strict";
|
|
95822
|
+
module2.exports.timedPromise = function(promise2, _ref) {
|
|
95823
|
+
var message = _ref.message, timeout = _ref.timeout;
|
|
95824
|
+
var timeoutPromise = new Promise(function(resolve3, reject) {
|
|
95825
|
+
setTimeout(reject, timeout, message ? "Timeout: " + message : "Timeout");
|
|
95826
|
+
});
|
|
95827
|
+
return Promise.race([promise2, timeoutPromise]);
|
|
95828
|
+
};
|
|
95829
|
+
module2.exports.allAsObject = function(promiseObject) {
|
|
95830
|
+
var keys = Object.keys(promiseObject);
|
|
95831
|
+
return Promise.all(keys.map(function(key) {
|
|
95832
|
+
return promiseObject[key];
|
|
95833
|
+
})).then(function(resolved) {
|
|
95834
|
+
return resolved.reduce(function(acc, value, i) {
|
|
95835
|
+
acc[keys[i]] = value;
|
|
95836
|
+
return acc;
|
|
95837
|
+
}, {});
|
|
95838
|
+
});
|
|
95839
|
+
};
|
|
95840
|
+
}
|
|
95841
|
+
});
|
|
95842
|
+
|
|
95843
|
+
// ../../node_modules/@wix/wix-bi-logger-client/dist/utils/log.js
|
|
95844
|
+
var require_log = __commonJS({
|
|
95845
|
+
"../../node_modules/@wix/wix-bi-logger-client/dist/utils/log.js"(exports2, module2) {
|
|
95846
|
+
"use strict";
|
|
95847
|
+
module2.exports = {
|
|
95848
|
+
error: function error48() {
|
|
95849
|
+
if (console && console.error) {
|
|
95850
|
+
var _console;
|
|
95851
|
+
(_console = console).error.apply(_console, arguments);
|
|
95852
|
+
}
|
|
95853
|
+
}
|
|
95854
|
+
};
|
|
95855
|
+
}
|
|
95856
|
+
});
|
|
95857
|
+
|
|
95858
|
+
// ../../node_modules/@wix/wix-bi-logger-client/dist/utils/debounce.js
|
|
95859
|
+
var require_debounce2 = __commonJS({
|
|
95860
|
+
"../../node_modules/@wix/wix-bi-logger-client/dist/utils/debounce.js"(exports2, module2) {
|
|
95861
|
+
"use strict";
|
|
95862
|
+
function debounce(func, wait, immediate) {
|
|
95863
|
+
var timeout = void 0;
|
|
95864
|
+
return function() {
|
|
95865
|
+
var context2 = this;
|
|
95866
|
+
var args = arguments;
|
|
95867
|
+
var later = function later2() {
|
|
95868
|
+
timeout = null;
|
|
95869
|
+
if (!immediate) {
|
|
95870
|
+
func.apply(context2, args);
|
|
95871
|
+
}
|
|
95872
|
+
};
|
|
95873
|
+
var callNow = immediate && !timeout;
|
|
95874
|
+
clearTimeout(timeout);
|
|
95875
|
+
timeout = setTimeout(later, wait);
|
|
95876
|
+
if (callNow) {
|
|
95877
|
+
func.apply(context2, args);
|
|
95878
|
+
}
|
|
95879
|
+
};
|
|
95880
|
+
}
|
|
95881
|
+
module2.exports = debounce;
|
|
95882
|
+
}
|
|
95883
|
+
});
|
|
95884
|
+
|
|
95885
|
+
// ../../node_modules/@wix/wix-bi-logger-client/dist/utils/throttle.js
|
|
95886
|
+
var require_throttle2 = __commonJS({
|
|
95887
|
+
"../../node_modules/@wix/wix-bi-logger-client/dist/utils/throttle.js"(exports2, module2) {
|
|
95888
|
+
"use strict";
|
|
95889
|
+
function throttle(func, wait) {
|
|
95890
|
+
var timeout = void 0;
|
|
95891
|
+
return function() {
|
|
95892
|
+
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
|
95893
|
+
args[_key] = arguments[_key];
|
|
95894
|
+
}
|
|
95895
|
+
if (!timeout) {
|
|
95896
|
+
timeout = setTimeout(function() {
|
|
95897
|
+
func.apply(void 0, args);
|
|
95898
|
+
timeout = null;
|
|
95899
|
+
}, wait);
|
|
95900
|
+
}
|
|
95901
|
+
};
|
|
95902
|
+
}
|
|
95903
|
+
module2.exports = throttle;
|
|
95904
|
+
}
|
|
95905
|
+
});
|
|
95906
|
+
|
|
95907
|
+
// ../../node_modules/@wix/wix-bi-logger-client/dist/utils/batch-queue.js
|
|
95908
|
+
var require_batch_queue2 = __commonJS({
|
|
95909
|
+
"../../node_modules/@wix/wix-bi-logger-client/dist/utils/batch-queue.js"(exports2, module2) {
|
|
95910
|
+
"use strict";
|
|
95911
|
+
var _createClass = /* @__PURE__ */ (function() {
|
|
95912
|
+
function defineProperties(target, props) {
|
|
95913
|
+
for (var i = 0; i < props.length; i++) {
|
|
95914
|
+
var descriptor = props[i];
|
|
95915
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
95916
|
+
descriptor.configurable = true;
|
|
95917
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
95918
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
95919
|
+
}
|
|
95920
|
+
}
|
|
95921
|
+
return function(Constructor, protoProps, staticProps) {
|
|
95922
|
+
if (protoProps) defineProperties(Constructor.prototype, protoProps);
|
|
95923
|
+
if (staticProps) defineProperties(Constructor, staticProps);
|
|
95924
|
+
return Constructor;
|
|
95925
|
+
};
|
|
95926
|
+
})();
|
|
95927
|
+
var _slicedToArray = /* @__PURE__ */ (function() {
|
|
95928
|
+
function sliceIterator(arr, i) {
|
|
95929
|
+
var _arr = [];
|
|
95930
|
+
var _n = true;
|
|
95931
|
+
var _d = false;
|
|
95932
|
+
var _e = void 0;
|
|
95933
|
+
try {
|
|
95934
|
+
for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
|
|
95935
|
+
_arr.push(_s.value);
|
|
95936
|
+
if (i && _arr.length === i) break;
|
|
95937
|
+
}
|
|
95938
|
+
} catch (err) {
|
|
95939
|
+
_d = true;
|
|
95940
|
+
_e = err;
|
|
95941
|
+
} finally {
|
|
95942
|
+
try {
|
|
95943
|
+
if (!_n && _i["return"]) _i["return"]();
|
|
95944
|
+
} finally {
|
|
95945
|
+
if (_d) throw _e;
|
|
95946
|
+
}
|
|
95947
|
+
}
|
|
95948
|
+
return _arr;
|
|
95949
|
+
}
|
|
95950
|
+
return function(arr, i) {
|
|
95951
|
+
if (Array.isArray(arr)) {
|
|
95952
|
+
return arr;
|
|
95953
|
+
} else if (Symbol.iterator in Object(arr)) {
|
|
95954
|
+
return sliceIterator(arr, i);
|
|
95955
|
+
} else {
|
|
95956
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
95957
|
+
}
|
|
95958
|
+
};
|
|
95959
|
+
})();
|
|
95960
|
+
var _extends = Object.assign || function(target) {
|
|
95961
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
95962
|
+
var source = arguments[i];
|
|
95963
|
+
for (var key in source) {
|
|
95964
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
95965
|
+
target[key] = source[key];
|
|
95966
|
+
}
|
|
95967
|
+
}
|
|
95968
|
+
}
|
|
95969
|
+
return target;
|
|
95970
|
+
};
|
|
95971
|
+
function _classCallCheck(instance, Constructor) {
|
|
95972
|
+
if (!(instance instanceof Constructor)) {
|
|
95973
|
+
throw new TypeError("Cannot call a class as a function");
|
|
95974
|
+
}
|
|
95975
|
+
}
|
|
95976
|
+
var debounce = require_debounce2();
|
|
95977
|
+
var throttle = require_throttle2();
|
|
95978
|
+
var createEvent = function createEvent2(event, context2, startTime) {
|
|
95979
|
+
return {
|
|
95980
|
+
dt: Date.now() - startTime,
|
|
95981
|
+
f: event,
|
|
95982
|
+
context: context2
|
|
95983
|
+
};
|
|
95984
|
+
};
|
|
95985
|
+
var createBatch = function createBatch2(events, startTime) {
|
|
95986
|
+
return {
|
|
95987
|
+
dt: Date.now() - startTime,
|
|
95988
|
+
e: events,
|
|
95989
|
+
g: {}
|
|
95990
|
+
};
|
|
95991
|
+
};
|
|
95992
|
+
var optimizeBatch = function optimizeBatch2(batch) {
|
|
95993
|
+
var fieldCounts = {};
|
|
95994
|
+
var batchLen = batch.e.length;
|
|
95995
|
+
var events = batch.e.map(function(event) {
|
|
95996
|
+
var fields = Object.keys(event.f).map(function(field) {
|
|
95997
|
+
var value = event.f[field];
|
|
95998
|
+
var key = field + "|" + value;
|
|
95999
|
+
fieldCounts[key] = fieldCounts[key] || 0;
|
|
96000
|
+
fieldCounts[key]++;
|
|
96001
|
+
return [field, value, key];
|
|
96002
|
+
});
|
|
96003
|
+
return _extends({}, event, {
|
|
96004
|
+
f: fields
|
|
96005
|
+
});
|
|
96006
|
+
});
|
|
96007
|
+
var globalFields = {};
|
|
96008
|
+
events = events.map(function(event) {
|
|
96009
|
+
var fields = event.f.reduce(function(res, _ref) {
|
|
96010
|
+
var _ref2 = _slicedToArray(_ref, 3), field = _ref2[0], value = _ref2[1], key = _ref2[2];
|
|
96011
|
+
if (fieldCounts[key] === batchLen) {
|
|
96012
|
+
globalFields[field] = value;
|
|
96013
|
+
} else {
|
|
96014
|
+
res[field] = value;
|
|
96015
|
+
}
|
|
96016
|
+
return res;
|
|
96017
|
+
}, {});
|
|
96018
|
+
return _extends({}, event, {
|
|
96019
|
+
f: fields
|
|
96020
|
+
});
|
|
96021
|
+
});
|
|
96022
|
+
return _extends({}, batch, {
|
|
96023
|
+
e: events,
|
|
96024
|
+
g: globalFields
|
|
96025
|
+
});
|
|
96026
|
+
};
|
|
96027
|
+
var BatchQueue = (function() {
|
|
96028
|
+
function BatchQueue2() {
|
|
96029
|
+
_classCallCheck(this, BatchQueue2);
|
|
96030
|
+
this._initilized = false;
|
|
96031
|
+
}
|
|
96032
|
+
_createClass(BatchQueue2, [{
|
|
96033
|
+
key: "_reset",
|
|
96034
|
+
value: function _reset() {
|
|
96035
|
+
var _this = this;
|
|
96036
|
+
this._startTime = Date.now();
|
|
96037
|
+
this._resolve = null;
|
|
96038
|
+
this._promise = new Promise(function(resolve3) {
|
|
96039
|
+
return _this._resolve = resolve3;
|
|
96040
|
+
});
|
|
96041
|
+
}
|
|
96042
|
+
}, {
|
|
96043
|
+
key: "init",
|
|
96044
|
+
value: function init(_ref3, flushHandler) {
|
|
96045
|
+
var _this2 = this;
|
|
96046
|
+
var delayMs = _ref3.delayMs, maxBatchSize = _ref3.maxBatchSize, useThrottle = _ref3.useThrottle, optimizeBatch2 = _ref3.optimizeBatch;
|
|
96047
|
+
if (this._initilized) {
|
|
96048
|
+
return;
|
|
96049
|
+
}
|
|
96050
|
+
this._maxBatchSize = maxBatchSize;
|
|
96051
|
+
this._optimizeBatch = optimizeBatch2;
|
|
96052
|
+
this._queue = [];
|
|
96053
|
+
this._flushHandler = flushHandler;
|
|
96054
|
+
this._flushDebounced = useThrottle ? throttle(function() {
|
|
96055
|
+
return _this2.flush();
|
|
96056
|
+
}, delayMs) : debounce(function() {
|
|
96057
|
+
return _this2.flush();
|
|
96058
|
+
}, delayMs);
|
|
96059
|
+
this._initilized = true;
|
|
96060
|
+
this._reset();
|
|
96061
|
+
}
|
|
96062
|
+
}, {
|
|
96063
|
+
key: "flush",
|
|
96064
|
+
value: function flush() {
|
|
96065
|
+
if (!this._queue.length) {
|
|
96066
|
+
return Promise.resolve();
|
|
96067
|
+
}
|
|
96068
|
+
var events = this._queue.splice(0, this._queue.length);
|
|
96069
|
+
var resolve3 = this._resolve;
|
|
96070
|
+
var startTime = this._startTime;
|
|
96071
|
+
this._reset();
|
|
96072
|
+
var batch = createBatch(events, startTime);
|
|
96073
|
+
if (this._optimizeBatch) {
|
|
96074
|
+
batch = optimizeBatch(batch);
|
|
96075
|
+
}
|
|
96076
|
+
return this._flushHandler(batch).then(resolve3);
|
|
96077
|
+
}
|
|
96078
|
+
}, {
|
|
96079
|
+
key: "feed",
|
|
96080
|
+
value: function feed(event, context2) {
|
|
96081
|
+
this._queue.push(createEvent(event, context2, this._startTime));
|
|
96082
|
+
if (this._queue.length === this._maxBatchSize) {
|
|
96083
|
+
return this.flush();
|
|
96084
|
+
}
|
|
96085
|
+
this._flushDebounced();
|
|
96086
|
+
return this._promise;
|
|
96087
|
+
}
|
|
96088
|
+
}]);
|
|
96089
|
+
return BatchQueue2;
|
|
96090
|
+
})();
|
|
96091
|
+
module2.exports = BatchQueue;
|
|
96092
|
+
}
|
|
96093
|
+
});
|
|
96094
|
+
|
|
96095
|
+
// ../../node_modules/@wix/wix-bi-logger-client/dist/consent-policy.js
|
|
96096
|
+
var require_consent_policy2 = __commonJS({
|
|
96097
|
+
"../../node_modules/@wix/wix-bi-logger-client/dist/consent-policy.js"(exports2, module2) {
|
|
96098
|
+
"use strict";
|
|
96099
|
+
var DefaultConsentPolicy = {
|
|
96100
|
+
functional: true,
|
|
96101
|
+
analytics: true,
|
|
96102
|
+
__default: true
|
|
96103
|
+
};
|
|
96104
|
+
var getPolicy = function getPolicy2(consentPolicyGetter) {
|
|
96105
|
+
return typeof consentPolicyGetter === "function" && consentPolicyGetter() || DefaultConsentPolicy;
|
|
96106
|
+
};
|
|
96107
|
+
var shouldMuteNonEssentials = function shouldMuteNonEssentials2(policy) {
|
|
96108
|
+
return policy.functional === false || policy.analytics === false;
|
|
96109
|
+
};
|
|
96110
|
+
var shouldMuteByCategory = function shouldMuteByCategory2(policy, category) {
|
|
96111
|
+
if (category === "essential") {
|
|
96112
|
+
return false;
|
|
96113
|
+
}
|
|
96114
|
+
if (category === "functional" || category === "analytics") {
|
|
96115
|
+
return policy[category] === false;
|
|
96116
|
+
}
|
|
96117
|
+
return shouldMuteNonEssentials(policy);
|
|
96118
|
+
};
|
|
96119
|
+
module2.exports = {
|
|
96120
|
+
shouldMuteNonEssentials,
|
|
96121
|
+
shouldMuteByCategory,
|
|
96122
|
+
getPolicy
|
|
96123
|
+
};
|
|
96124
|
+
}
|
|
96125
|
+
});
|
|
96126
|
+
|
|
96127
|
+
// ../../node_modules/@wix/wix-bi-logger-client/dist/bi-logger.js
|
|
96128
|
+
var require_bi_logger = __commonJS({
|
|
96129
|
+
"../../node_modules/@wix/wix-bi-logger-client/dist/bi-logger.js"(exports2, module2) {
|
|
96130
|
+
"use strict";
|
|
96131
|
+
var _extends = Object.assign || function(target) {
|
|
96132
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
96133
|
+
var source = arguments[i];
|
|
96134
|
+
for (var key in source) {
|
|
96135
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
96136
|
+
target[key] = source[key];
|
|
96137
|
+
}
|
|
96138
|
+
}
|
|
96139
|
+
}
|
|
96140
|
+
return target;
|
|
96141
|
+
};
|
|
96142
|
+
var _createClass = /* @__PURE__ */ (function() {
|
|
96143
|
+
function defineProperties(target, props) {
|
|
96144
|
+
for (var i = 0; i < props.length; i++) {
|
|
96145
|
+
var descriptor = props[i];
|
|
96146
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
96147
|
+
descriptor.configurable = true;
|
|
96148
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
96149
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
96150
|
+
}
|
|
96151
|
+
}
|
|
96152
|
+
return function(Constructor, protoProps, staticProps) {
|
|
96153
|
+
if (protoProps) defineProperties(Constructor.prototype, protoProps);
|
|
96154
|
+
if (staticProps) defineProperties(Constructor, staticProps);
|
|
96155
|
+
return Constructor;
|
|
96156
|
+
};
|
|
96157
|
+
})();
|
|
96158
|
+
function _objectWithoutProperties(obj, keys) {
|
|
96159
|
+
var target = {};
|
|
96160
|
+
for (var i in obj) {
|
|
96161
|
+
if (keys.indexOf(i) >= 0) continue;
|
|
96162
|
+
if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
|
|
96163
|
+
target[i] = obj[i];
|
|
96164
|
+
}
|
|
96165
|
+
return target;
|
|
96166
|
+
}
|
|
96167
|
+
function _classCallCheck(instance, Constructor) {
|
|
96168
|
+
if (!(instance instanceof Constructor)) {
|
|
96169
|
+
throw new TypeError("Cannot call a class as a function");
|
|
96170
|
+
}
|
|
96171
|
+
}
|
|
96172
|
+
var assert2 = require_assert2();
|
|
96173
|
+
var _require = require_collections();
|
|
96174
|
+
var mapValues = _require.mapValues;
|
|
96175
|
+
var filterValues = _require.filterValues;
|
|
96176
|
+
var promise2 = require_promise2();
|
|
96177
|
+
var log = require_log();
|
|
96178
|
+
var BatchQueue = require_batch_queue2();
|
|
96179
|
+
var _require2 = require_consent_policy2();
|
|
96180
|
+
var shouldMuteByCategory = _require2.shouldMuteByCategory;
|
|
96181
|
+
var shouldMuteNonEssentials = _require2.shouldMuteNonEssentials;
|
|
96182
|
+
var getPolicy = _require2.getPolicy;
|
|
96183
|
+
var BiLogger = (function() {
|
|
96184
|
+
function BiLogger2(options, context2) {
|
|
96185
|
+
_classCallCheck(this, BiLogger2);
|
|
96186
|
+
this._publishers = options.publishers;
|
|
96187
|
+
this._validators = options.validators || [];
|
|
96188
|
+
this._defaults = options.defaults;
|
|
96189
|
+
this._ownDefaults = {};
|
|
96190
|
+
this._events = options.events || {};
|
|
96191
|
+
this._context = context2 || {};
|
|
96192
|
+
this._defaultValueTimeout = options.defaultValueTimeout || 5e3;
|
|
96193
|
+
this._defaultContinueOnFail = options.defaultContinueOnFail || false;
|
|
96194
|
+
this._onPublisherFailHandler = options.onPublisherFailHandler || BiLogger2._defaultPublisherFailHandler;
|
|
96195
|
+
this._isMuted = options.isMuted || function() {
|
|
96196
|
+
return false;
|
|
96197
|
+
};
|
|
96198
|
+
this._eventTransformer = options.eventTransformer || function(event) {
|
|
96199
|
+
return event;
|
|
96200
|
+
};
|
|
96201
|
+
this._payloadTransformer = options.payloadTransformer || function(payload) {
|
|
96202
|
+
return payload;
|
|
96203
|
+
};
|
|
96204
|
+
this._consentPolicyGetter = options.consentPolicyGetter || function() {
|
|
96205
|
+
return null;
|
|
96206
|
+
};
|
|
96207
|
+
this._nonEssentialDefaults = options.nonEssentialDefaults || {};
|
|
96208
|
+
this._maxBatchSize = options.maxBatchSize || 100;
|
|
96209
|
+
this._globalBatchQueue = options.globalBatchQueue;
|
|
96210
|
+
}
|
|
96211
|
+
_createClass(BiLogger2, [{
|
|
96212
|
+
key: "report",
|
|
96213
|
+
value: function report(data) {
|
|
96214
|
+
assert2.defined(data, "Data must be provided");
|
|
96215
|
+
assert2.object(data, "Data must be an object");
|
|
96216
|
+
var src = data.src, evid = data.evid, params = data.params, context2 = _objectWithoutProperties(data, ["src", "evid", "params"]);
|
|
96217
|
+
return this.log(_extends({ src, evid }, params), context2);
|
|
96218
|
+
}
|
|
96219
|
+
}, {
|
|
96220
|
+
key: "log",
|
|
96221
|
+
value: function log2(eventOrKey, eventOrContextOrUndefined, contextOrUndefined) {
|
|
96222
|
+
var _this = this;
|
|
96223
|
+
assert2.defined(eventOrKey, "Event object or event key must be provided.");
|
|
96224
|
+
var _extractEventAndConte = this._extractEventAndContext(eventOrKey, eventOrContextOrUndefined, contextOrUndefined), event = _extractEventAndConte.event, context2 = _extractEventAndConte.context;
|
|
96225
|
+
var policy = getPolicy(this._consentPolicyGetter);
|
|
96226
|
+
var fullContext = _extends({}, this._context, context2);
|
|
96227
|
+
if (this._isMuted() || shouldMuteByCategory(policy, fullContext.category)) {
|
|
96228
|
+
return Promise.resolve();
|
|
96229
|
+
}
|
|
96230
|
+
if (fullContext.useBatch) {
|
|
96231
|
+
var queue = this._initQueue(fullContext, policy);
|
|
96232
|
+
var transformAndQueue = function transformAndQueue2(_event) {
|
|
96233
|
+
var transformedEvent = _this._eventTransformer(_event, fullContext);
|
|
96234
|
+
return queue.feed(transformedEvent, fullContext);
|
|
96235
|
+
};
|
|
96236
|
+
if (this._globalBatchQueue) {
|
|
96237
|
+
return this._getDefaults(this._defaults).then(function(defaults) {
|
|
96238
|
+
var fullEvent2 = _extends({}, defaults, _this._getDynamicNonEssentialDefaults(policy), _this._getStaticNonEssentialDefaults(policy), event, _this._getPolicyFields(policy, fullContext.category));
|
|
96239
|
+
return transformAndQueue(fullEvent2);
|
|
96240
|
+
});
|
|
96241
|
+
} else {
|
|
96242
|
+
var fullEvent = _extends({}, this._getDynamicDefaults(this._defaults), this._getDynamicNonEssentialDefaults(policy), event, this._getPolicyFields(policy, fullContext.category));
|
|
96243
|
+
return transformAndQueue(fullEvent);
|
|
96244
|
+
}
|
|
96245
|
+
}
|
|
96246
|
+
return this._getDefaults(this._defaults).then(function(defaults) {
|
|
96247
|
+
var fullEvent2 = Object.assign(defaults, _this._getDynamicNonEssentialDefaults(policy), _this._getStaticNonEssentialDefaults(policy), event, _this._getPolicyFields(policy, fullContext.category));
|
|
96248
|
+
var validatorsResult = _this._validators.length === 0 ? true : _this._validators.some(function(validator) {
|
|
96249
|
+
return validator.match(fullEvent2) && (validator.execute(fullEvent2) || true);
|
|
96250
|
+
});
|
|
96251
|
+
if (!validatorsResult) {
|
|
96252
|
+
throw new Error("No validator accepted the event. Source: " + fullEvent2.src + " Evid: " + (fullEvent2.evid || fullEvent2.evtId));
|
|
96253
|
+
}
|
|
96254
|
+
var transformedEvent = _this._eventTransformer(fullEvent2, fullContext);
|
|
96255
|
+
transformedEvent = _this._payloadTransformer(transformedEvent, fullContext);
|
|
96256
|
+
return _this._send(transformedEvent, fullContext);
|
|
96257
|
+
});
|
|
96258
|
+
}
|
|
96259
|
+
}, {
|
|
96260
|
+
key: "flush",
|
|
96261
|
+
value: function flush() {
|
|
96262
|
+
if (!this._queue) {
|
|
96263
|
+
return Promise.resolve();
|
|
96264
|
+
}
|
|
96265
|
+
return this._queue.flush();
|
|
96266
|
+
}
|
|
96267
|
+
}, {
|
|
96268
|
+
key: "updateDefaults",
|
|
96269
|
+
value: function updateDefaults(defaults) {
|
|
96270
|
+
assert2.defined(defaults, "Defaults must be provided");
|
|
96271
|
+
assert2.object(defaults, "Defaults must be an object");
|
|
96272
|
+
Object.assign(this._ownDefaults, defaults);
|
|
96273
|
+
return this;
|
|
96274
|
+
}
|
|
96275
|
+
}, {
|
|
96276
|
+
key: "_send",
|
|
96277
|
+
value: function _send(payload) {
|
|
96278
|
+
var _this2 = this;
|
|
96279
|
+
var context2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
96280
|
+
return Promise.all(this._publishers.map(function(publisher) {
|
|
96281
|
+
var cloned = _extends({}, payload);
|
|
96282
|
+
return Promise.resolve().then(function() {
|
|
96283
|
+
return publisher(cloned, context2);
|
|
96284
|
+
}).catch(function(error48) {
|
|
96285
|
+
return _this2._onPublisherFailHandler(error48, {
|
|
96286
|
+
publisherName: publisher.name,
|
|
96287
|
+
payload
|
|
96288
|
+
});
|
|
96289
|
+
});
|
|
96290
|
+
})).then(function() {
|
|
96291
|
+
return void 0;
|
|
96292
|
+
});
|
|
96293
|
+
}
|
|
96294
|
+
}, {
|
|
96295
|
+
key: "_extractEventAndContext",
|
|
96296
|
+
value: function _extractEventAndContext(eventOrKey, eventOrContextOrUndefined, contextOrUndefined) {
|
|
96297
|
+
var event = void 0;
|
|
96298
|
+
var context2 = {};
|
|
96299
|
+
if (typeof eventOrKey !== "string") {
|
|
96300
|
+
event = eventOrKey;
|
|
96301
|
+
context2 = eventOrContextOrUndefined || context2;
|
|
96302
|
+
} else {
|
|
96303
|
+
event = this._events[eventOrKey];
|
|
96304
|
+
if (!event) {
|
|
96305
|
+
throw new assert2.AssertionError("Event with key '" + eventOrKey + "' not found in event map.");
|
|
96306
|
+
}
|
|
96307
|
+
if (eventOrContextOrUndefined) {
|
|
96308
|
+
event = _extends({}, event, eventOrContextOrUndefined);
|
|
96309
|
+
context2 = contextOrUndefined || context2;
|
|
96310
|
+
}
|
|
96311
|
+
}
|
|
96312
|
+
return { event, context: context2 };
|
|
96313
|
+
}
|
|
96314
|
+
}, {
|
|
96315
|
+
key: "_initQueue",
|
|
96316
|
+
value: function _initQueue(context2, policy) {
|
|
96317
|
+
var _this3 = this;
|
|
96318
|
+
if (this._queue) {
|
|
96319
|
+
return this._queue;
|
|
96320
|
+
}
|
|
96321
|
+
this._queue = this._globalBatchQueue || new BatchQueue();
|
|
96322
|
+
var onFlush = function onFlush2(batch) {
|
|
96323
|
+
if (!_this3._globalBatchQueue) {
|
|
96324
|
+
batch.g = Object.assign(_this3._getStaticDefaults(_this3._defaults), _this3._getStaticNonEssentialDefaults(policy));
|
|
96325
|
+
}
|
|
96326
|
+
var transformedPayload = _this3._payloadTransformer(batch, context2);
|
|
96327
|
+
return _this3._send(transformedPayload, context2);
|
|
96328
|
+
};
|
|
96329
|
+
this._queue.init({
|
|
96330
|
+
delayMs: context2.useBatch === true ? 300 : context2.useBatch,
|
|
96331
|
+
maxBatchSize: this._maxBatchSize,
|
|
96332
|
+
useThrottle: !!this._globalBatchQueue,
|
|
96333
|
+
optimizeBatch: !!this._globalBatchQueue
|
|
96334
|
+
}, onFlush);
|
|
96335
|
+
return this._queue;
|
|
96336
|
+
}
|
|
96337
|
+
}, {
|
|
96338
|
+
key: "_handleDefaultsError",
|
|
96339
|
+
value: function _handleDefaultsError(err) {
|
|
96340
|
+
if (this._defaultContinueOnFail) {
|
|
96341
|
+
log.error(err);
|
|
96342
|
+
return null;
|
|
96343
|
+
}
|
|
96344
|
+
return Promise.reject(err);
|
|
96345
|
+
}
|
|
96346
|
+
}, {
|
|
96347
|
+
key: "_getDynamicNonEssentialDefaults",
|
|
96348
|
+
value: function _getDynamicNonEssentialDefaults(policy) {
|
|
96349
|
+
if (!shouldMuteNonEssentials(policy)) {
|
|
96350
|
+
return this._getDynamicDefaults(this._nonEssentialDefaults);
|
|
96351
|
+
}
|
|
96352
|
+
}
|
|
96353
|
+
}, {
|
|
96354
|
+
key: "_getStaticNonEssentialDefaults",
|
|
96355
|
+
value: function _getStaticNonEssentialDefaults(policy) {
|
|
96356
|
+
if (!shouldMuteNonEssentials(policy)) {
|
|
96357
|
+
return this._getStaticDefaults(this._nonEssentialDefaults);
|
|
96358
|
+
}
|
|
96359
|
+
}
|
|
96360
|
+
}, {
|
|
96361
|
+
key: "_withOwnDefaults",
|
|
96362
|
+
value: function _withOwnDefaults(defaults) {
|
|
96363
|
+
return Object.assign({}, defaults, this._ownDefaults);
|
|
96364
|
+
}
|
|
96365
|
+
}, {
|
|
96366
|
+
key: "_getDynamicDefaults",
|
|
96367
|
+
value: function _getDynamicDefaults(defaults) {
|
|
96368
|
+
defaults = this._withOwnDefaults(defaults);
|
|
96369
|
+
var dynamicDefaults = filterValues(defaults, function(v) {
|
|
96370
|
+
return typeof v === "function";
|
|
96371
|
+
});
|
|
96372
|
+
return mapValues(dynamicDefaults, function(v) {
|
|
96373
|
+
return v();
|
|
96374
|
+
});
|
|
96375
|
+
}
|
|
96376
|
+
}, {
|
|
96377
|
+
key: "_getStaticDefaults",
|
|
96378
|
+
value: function _getStaticDefaults(defaults) {
|
|
96379
|
+
defaults = this._withOwnDefaults(defaults);
|
|
96380
|
+
var staticDefaults = filterValues(defaults, function(v) {
|
|
96381
|
+
return typeof v !== "function";
|
|
96382
|
+
});
|
|
96383
|
+
return staticDefaults;
|
|
96384
|
+
}
|
|
96385
|
+
}, {
|
|
96386
|
+
key: "_getDefaults",
|
|
96387
|
+
value: function _getDefaults(defaults) {
|
|
96388
|
+
var _this4 = this;
|
|
96389
|
+
defaults = this._withOwnDefaults(defaults);
|
|
96390
|
+
if (!defaults) {
|
|
96391
|
+
return Promise.resolve({});
|
|
96392
|
+
}
|
|
96393
|
+
var promises = mapValues(defaults, function(value, key) {
|
|
96394
|
+
if (typeof value === "function") {
|
|
96395
|
+
try {
|
|
96396
|
+
value = value();
|
|
96397
|
+
} catch (err) {
|
|
96398
|
+
return _this4._handleDefaultsError(err);
|
|
96399
|
+
}
|
|
96400
|
+
}
|
|
96401
|
+
if (value && typeof value.then === "function") {
|
|
96402
|
+
return promise2.timedPromise(value, {
|
|
96403
|
+
message: "Cannot get default value '" + key + " for BI Event'",
|
|
96404
|
+
timeout: _this4._defaultValueTimeout
|
|
96405
|
+
}).catch(function(err) {
|
|
96406
|
+
return _this4._handleDefaultsError(err);
|
|
96407
|
+
});
|
|
96408
|
+
}
|
|
96409
|
+
return value;
|
|
96410
|
+
});
|
|
96411
|
+
return promise2.allAsObject(promises);
|
|
96412
|
+
}
|
|
96413
|
+
}, {
|
|
96414
|
+
key: "_encodePolicyValue",
|
|
96415
|
+
value: function _encodePolicyValue(policy, key) {
|
|
96416
|
+
if (!policy) {
|
|
96417
|
+
return 1;
|
|
96418
|
+
}
|
|
96419
|
+
if (typeof policy[key] === "boolean") {
|
|
96420
|
+
return policy[key] ? 1 : 0;
|
|
96421
|
+
}
|
|
96422
|
+
return policy[key];
|
|
96423
|
+
}
|
|
96424
|
+
}, {
|
|
96425
|
+
key: "_getPolicyFields",
|
|
96426
|
+
value: function _getPolicyFields(policy, category) {
|
|
96427
|
+
return {
|
|
96428
|
+
_isca: this._encodePolicyValue(policy, "analytics"),
|
|
96429
|
+
_iscf: this._encodePolicyValue(policy, "functional"),
|
|
96430
|
+
_ispd: policy.__default ? 1 : 0,
|
|
96431
|
+
_ise: category === "essential" ? 1 : 0
|
|
96432
|
+
};
|
|
96433
|
+
}
|
|
96434
|
+
}], [{
|
|
96435
|
+
key: "_defaultPublisherFailHandler",
|
|
96436
|
+
value: function _defaultPublisherFailHandler(error48, _ref) {
|
|
96437
|
+
var publisherName = _ref.publisherName;
|
|
96438
|
+
return publisherName;
|
|
96439
|
+
}
|
|
96440
|
+
}]);
|
|
96441
|
+
return BiLogger2;
|
|
96442
|
+
})();
|
|
96443
|
+
module2.exports = BiLogger;
|
|
96444
|
+
}
|
|
96445
|
+
});
|
|
96446
|
+
|
|
96447
|
+
// ../../node_modules/@wix/wix-bi-logger-client/dist/bi-logger-manager.js
|
|
96448
|
+
var require_bi_logger_manager = __commonJS({
|
|
96449
|
+
"../../node_modules/@wix/wix-bi-logger-client/dist/bi-logger-manager.js"(exports2, module2) {
|
|
96450
|
+
"use strict";
|
|
96451
|
+
var _createClass = /* @__PURE__ */ (function() {
|
|
96452
|
+
function defineProperties(target, props) {
|
|
96453
|
+
for (var i = 0; i < props.length; i++) {
|
|
96454
|
+
var descriptor = props[i];
|
|
96455
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
96456
|
+
descriptor.configurable = true;
|
|
96457
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
96458
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
96459
|
+
}
|
|
96460
|
+
}
|
|
96461
|
+
return function(Constructor, protoProps, staticProps) {
|
|
96462
|
+
if (protoProps) defineProperties(Constructor.prototype, protoProps);
|
|
96463
|
+
if (staticProps) defineProperties(Constructor, staticProps);
|
|
96464
|
+
return Constructor;
|
|
96465
|
+
};
|
|
96466
|
+
})();
|
|
96467
|
+
function _classCallCheck(instance, Constructor) {
|
|
96468
|
+
if (!(instance instanceof Constructor)) {
|
|
96469
|
+
throw new TypeError("Cannot call a class as a function");
|
|
96470
|
+
}
|
|
96471
|
+
}
|
|
96472
|
+
var assert2 = require_assert2();
|
|
96473
|
+
var BiLoggerManager = (function() {
|
|
96474
|
+
function BiLoggerManager2() {
|
|
96475
|
+
_classCallCheck(this, BiLoggerManager2);
|
|
96476
|
+
this.reset();
|
|
96477
|
+
}
|
|
96478
|
+
_createClass(BiLoggerManager2, [{
|
|
96479
|
+
key: "reset",
|
|
96480
|
+
value: function reset() {
|
|
96481
|
+
this._handlers = [];
|
|
96482
|
+
}
|
|
96483
|
+
}, {
|
|
96484
|
+
key: "onLoggerCreated",
|
|
96485
|
+
value: function onLoggerCreated(handler) {
|
|
96486
|
+
var _this = this;
|
|
96487
|
+
assert2.defined(handler, "Handler must be provided.");
|
|
96488
|
+
assert2.func(handler, "Handler must be a function.");
|
|
96489
|
+
this._handlers.push(handler);
|
|
96490
|
+
return function() {
|
|
96491
|
+
var index = _this._handlers.indexOf(handler);
|
|
96492
|
+
if (index !== -1) {
|
|
96493
|
+
_this._handlers.splice(index, 1);
|
|
96494
|
+
}
|
|
96495
|
+
};
|
|
96496
|
+
}
|
|
96497
|
+
}, {
|
|
96498
|
+
key: "notifyLoggerCreated",
|
|
96499
|
+
value: function notifyLoggerCreated(logger) {
|
|
96500
|
+
this._handlers.forEach(function(handler) {
|
|
96501
|
+
return handler(logger);
|
|
96502
|
+
});
|
|
96503
|
+
}
|
|
96504
|
+
}]);
|
|
96505
|
+
return BiLoggerManager2;
|
|
96506
|
+
})();
|
|
96507
|
+
module2.exports = {
|
|
96508
|
+
manager: new BiLoggerManager(),
|
|
96509
|
+
BiLoggerManager
|
|
96510
|
+
};
|
|
96511
|
+
}
|
|
96512
|
+
});
|
|
96513
|
+
|
|
96514
|
+
// ../../node_modules/@wix/wix-bi-logger-client/dist/bi-logger-factory.js
|
|
96515
|
+
var require_bi_logger_factory = __commonJS({
|
|
96516
|
+
"../../node_modules/@wix/wix-bi-logger-client/dist/bi-logger-factory.js"(exports2, module2) {
|
|
96517
|
+
"use strict";
|
|
96518
|
+
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(obj) {
|
|
96519
|
+
return typeof obj;
|
|
96520
|
+
} : function(obj) {
|
|
96521
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
96522
|
+
};
|
|
96523
|
+
var _createClass = /* @__PURE__ */ (function() {
|
|
96524
|
+
function defineProperties(target, props) {
|
|
96525
|
+
for (var i = 0; i < props.length; i++) {
|
|
96526
|
+
var descriptor = props[i];
|
|
96527
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
96528
|
+
descriptor.configurable = true;
|
|
96529
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
96530
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
96531
|
+
}
|
|
96532
|
+
}
|
|
96533
|
+
return function(Constructor, protoProps, staticProps) {
|
|
96534
|
+
if (protoProps) defineProperties(Constructor.prototype, protoProps);
|
|
96535
|
+
if (staticProps) defineProperties(Constructor, staticProps);
|
|
96536
|
+
return Constructor;
|
|
96537
|
+
};
|
|
96538
|
+
})();
|
|
96539
|
+
function _classCallCheck(instance, Constructor) {
|
|
96540
|
+
if (!(instance instanceof Constructor)) {
|
|
96541
|
+
throw new TypeError("Cannot call a class as a function");
|
|
96542
|
+
}
|
|
96543
|
+
}
|
|
96544
|
+
var assert2 = require_assert2();
|
|
96545
|
+
var BiLogger = require_bi_logger();
|
|
96546
|
+
var biLoggerManager = require_bi_logger_manager();
|
|
96547
|
+
var BatchQueue = require_batch_queue2();
|
|
96548
|
+
var BiLoggerFactory = (function() {
|
|
96549
|
+
function BiLoggerFactory2() {
|
|
96550
|
+
_classCallCheck(this, BiLoggerFactory2);
|
|
96551
|
+
this._publishers = [];
|
|
96552
|
+
this._validators = [];
|
|
96553
|
+
this._defaults = {};
|
|
96554
|
+
this._nonEssentialDefaults = {};
|
|
96555
|
+
this._events = {};
|
|
96556
|
+
this._isMuted = false;
|
|
96557
|
+
this._eventTransformer = null;
|
|
96558
|
+
this._payloadTransformer = null;
|
|
96559
|
+
this._consentPolicyGetter = null;
|
|
96560
|
+
this._maxBatchSize = null;
|
|
96561
|
+
this._batchQueue = null;
|
|
96562
|
+
}
|
|
96563
|
+
_createClass(BiLoggerFactory2, [{
|
|
96564
|
+
key: "addPublisher",
|
|
96565
|
+
value: function addPublisher(publisher) {
|
|
96566
|
+
assert2.defined(publisher, "Publisher must be provided");
|
|
96567
|
+
assert2.ok(typeof publisher === "function", "Expected a publisher function");
|
|
96568
|
+
this._publishers.push(publisher);
|
|
96569
|
+
return this;
|
|
96570
|
+
}
|
|
96571
|
+
}, {
|
|
96572
|
+
key: "addValidator",
|
|
96573
|
+
value: function addValidator(validator) {
|
|
96574
|
+
assert2.defined(validator, "Validator must be provided");
|
|
96575
|
+
assert2.ok((typeof validator === "undefined" ? "undefined" : _typeof(validator)) === "object" && validator, "Expected a validator object");
|
|
96576
|
+
assert2.ok(validator.execute && validator.match, "Provided validator does not match the interface");
|
|
96577
|
+
this._validators.push(validator);
|
|
96578
|
+
return this;
|
|
96579
|
+
}
|
|
96580
|
+
}, {
|
|
96581
|
+
key: "setDefaults",
|
|
96582
|
+
value: function setDefaults(defaults) {
|
|
96583
|
+
assert2.defined(defaults, "Defaults must be provided");
|
|
96584
|
+
assert2.object(defaults, "Defaults must be an object");
|
|
96585
|
+
this._defaults = defaults;
|
|
96586
|
+
return this;
|
|
96587
|
+
}
|
|
96588
|
+
}, {
|
|
96589
|
+
key: "updateDefaults",
|
|
96590
|
+
value: function updateDefaults(defaults) {
|
|
96591
|
+
assert2.defined(defaults, "Defaults must be provided");
|
|
96592
|
+
assert2.object(defaults, "Defaults must be an object");
|
|
96593
|
+
Object.assign(this._defaults, defaults);
|
|
96594
|
+
return this;
|
|
96595
|
+
}
|
|
96596
|
+
}, {
|
|
96597
|
+
key: "updateNonEssentialDefaults",
|
|
96598
|
+
value: function updateNonEssentialDefaults(defaults) {
|
|
96599
|
+
assert2.defined(defaults, "Non-essential Defaults must be provided");
|
|
96600
|
+
assert2.object(defaults, "Non-essential Defaults must be an object");
|
|
96601
|
+
Object.assign(this._nonEssentialDefaults, defaults);
|
|
96602
|
+
return this;
|
|
96603
|
+
}
|
|
96604
|
+
}, {
|
|
96605
|
+
key: "setEvents",
|
|
96606
|
+
value: function setEvents(events) {
|
|
96607
|
+
assert2.defined(events, "Events must be provided");
|
|
96608
|
+
assert2.object(events, "Events must be an object");
|
|
96609
|
+
this._events = events;
|
|
96610
|
+
return this;
|
|
96611
|
+
}
|
|
96612
|
+
}, {
|
|
96613
|
+
key: "setDefaultValueTimeout",
|
|
96614
|
+
value: function setDefaultValueTimeout(defaultValueTimeout) {
|
|
96615
|
+
assert2.defined(defaultValueTimeout, "Default Value Timeout must be provided");
|
|
96616
|
+
this._defaultValueTimeout = defaultValueTimeout;
|
|
96617
|
+
return this;
|
|
96618
|
+
}
|
|
96619
|
+
}, {
|
|
96620
|
+
key: "setDefaultContinueOnFail",
|
|
96621
|
+
value: function setDefaultContinueOnFail(defaultContinueOnFail) {
|
|
96622
|
+
assert2.defined(defaultContinueOnFail, "Default Continue On Fail must be provided");
|
|
96623
|
+
this._defaultContinueOnFail = defaultContinueOnFail;
|
|
96624
|
+
return this;
|
|
96625
|
+
}
|
|
96626
|
+
}, {
|
|
96627
|
+
key: "setPublisherFailHandler",
|
|
96628
|
+
value: function setPublisherFailHandler(onPublisherFailHandler) {
|
|
96629
|
+
assert2.defined(onPublisherFailHandler, "Publisher Fail Handler must be provided");
|
|
96630
|
+
this._onPublisherFailHandler = onPublisherFailHandler;
|
|
96631
|
+
return this;
|
|
96632
|
+
}
|
|
96633
|
+
}, {
|
|
96634
|
+
key: "setMuted",
|
|
96635
|
+
value: function setMuted(isMuted) {
|
|
96636
|
+
assert2.defined(isMuted, "Is Muted must be provided");
|
|
96637
|
+
assert2.boolean(isMuted, "Is Muted must be a boolean");
|
|
96638
|
+
this._isMuted = isMuted;
|
|
96639
|
+
return this;
|
|
96640
|
+
}
|
|
96641
|
+
}, {
|
|
96642
|
+
key: "setMaxBatchSize",
|
|
96643
|
+
value: function setMaxBatchSize(maxBatchSize) {
|
|
96644
|
+
assert2.defined(maxBatchSize, "Max Batch Size must be provided");
|
|
96645
|
+
assert2.number(maxBatchSize, "Max Batch Size must be a number");
|
|
96646
|
+
assert2.ok(maxBatchSize > 0, "Max Batch Size must be higher than 0");
|
|
96647
|
+
this._maxBatchSize = maxBatchSize;
|
|
96648
|
+
return this;
|
|
96649
|
+
}
|
|
96650
|
+
}, {
|
|
96651
|
+
key: "setGlobalBatchQueue",
|
|
96652
|
+
value: function setGlobalBatchQueue(batchQueue) {
|
|
96653
|
+
assert2.defined(batchQueue, "Global Batch Queue must be provided");
|
|
96654
|
+
assert2.ok(batchQueue instanceof BatchQueue, "Global Batch Queue must be an instance of BatchQueue");
|
|
96655
|
+
this._globalBatchQueue = batchQueue;
|
|
96656
|
+
return this;
|
|
96657
|
+
}
|
|
96658
|
+
}, {
|
|
96659
|
+
key: "withEventTransformer",
|
|
96660
|
+
value: function withEventTransformer(transformer) {
|
|
96661
|
+
assert2.defined(transformer, "Event Transformer must be provided");
|
|
96662
|
+
assert2.func(transformer, "Event Transformer must be a function");
|
|
96663
|
+
this._eventTransformer = transformer;
|
|
96664
|
+
return this;
|
|
96665
|
+
}
|
|
96666
|
+
}, {
|
|
96667
|
+
key: "withPayloadTransformer",
|
|
96668
|
+
value: function withPayloadTransformer(transformer) {
|
|
96669
|
+
assert2.defined(transformer, "Payload Transformer must be provided");
|
|
96670
|
+
assert2.func(transformer, "Payload Transformer must be a function");
|
|
96671
|
+
this._payloadTransformer = transformer;
|
|
96672
|
+
return this;
|
|
96673
|
+
}
|
|
96674
|
+
}, {
|
|
96675
|
+
key: "withConsentPolicyGetter",
|
|
96676
|
+
value: function withConsentPolicyGetter(getter) {
|
|
96677
|
+
assert2.defined(getter, "Consent Policy Getter must be provided");
|
|
96678
|
+
assert2.func(getter, "Consent Policy Getter must be a function");
|
|
96679
|
+
this._consentPolicyGetter = getter;
|
|
96680
|
+
return this;
|
|
96681
|
+
}
|
|
96682
|
+
}, {
|
|
96683
|
+
key: "logger",
|
|
96684
|
+
value: function logger(context2) {
|
|
96685
|
+
var _this = this;
|
|
96686
|
+
var logger2 = new BiLogger({
|
|
96687
|
+
publishers: this._publishers,
|
|
96688
|
+
validators: this._validators,
|
|
96689
|
+
defaults: this._defaults,
|
|
96690
|
+
events: this._events,
|
|
96691
|
+
defaultValueTimeout: this._defaultValueTimeout,
|
|
96692
|
+
defaultContinueOnFail: this._defaultContinueOnFail,
|
|
96693
|
+
onPublisherFailHandler: this._onPublisherFailHandler,
|
|
96694
|
+
isMuted: function isMuted() {
|
|
96695
|
+
return _this._isMuted;
|
|
96696
|
+
},
|
|
96697
|
+
eventTransformer: this._eventTransformer,
|
|
96698
|
+
payloadTransformer: this._payloadTransformer,
|
|
96699
|
+
consentPolicyGetter: this._consentPolicyGetter,
|
|
96700
|
+
nonEssentialDefaults: this._nonEssentialDefaults,
|
|
96701
|
+
maxBatchSize: this._maxBatchSize,
|
|
96702
|
+
globalBatchQueue: this._globalBatchQueue
|
|
96703
|
+
}, context2);
|
|
96704
|
+
biLoggerManager.manager.notifyLoggerCreated(logger2);
|
|
96705
|
+
return logger2;
|
|
96706
|
+
}
|
|
96707
|
+
}]);
|
|
96708
|
+
return BiLoggerFactory2;
|
|
96709
|
+
})();
|
|
96710
|
+
module2.exports = BiLoggerFactory;
|
|
96711
|
+
}
|
|
96712
|
+
});
|
|
96713
|
+
|
|
96714
|
+
// ../../node_modules/@wix/wix-bi-logger-client/dist/index.js
|
|
96715
|
+
var require_dist16 = __commonJS({
|
|
96716
|
+
"../../node_modules/@wix/wix-bi-logger-client/dist/index.js"(exports2, module2) {
|
|
96717
|
+
"use strict";
|
|
96718
|
+
var BiLoggerClientFactory = require_bi_logger_factory();
|
|
96719
|
+
var BiLogger = require_bi_logger();
|
|
96720
|
+
var biLoggerManager = require_bi_logger_manager();
|
|
96721
|
+
var BatchQueue = require_batch_queue2();
|
|
96722
|
+
module2.exports.BiLoggerFactory = BiLoggerClientFactory;
|
|
96723
|
+
module2.exports.BiLogger = BiLogger;
|
|
96724
|
+
module2.exports.BiLoggerManager = biLoggerManager.BiLoggerManager;
|
|
96725
|
+
module2.exports.factory = function() {
|
|
96726
|
+
return new BiLoggerClientFactory();
|
|
96727
|
+
};
|
|
96728
|
+
module2.exports.manager = biLoggerManager.manager;
|
|
96729
|
+
module2.exports.createBatchQueue = function() {
|
|
96730
|
+
return new BatchQueue();
|
|
96731
|
+
};
|
|
96732
|
+
}
|
|
96733
|
+
});
|
|
96734
|
+
|
|
96735
|
+
// dist/biLogger.js
|
|
96736
|
+
var require_biLogger = __commonJS({
|
|
96737
|
+
"dist/biLogger.js"(exports2) {
|
|
96738
|
+
"use strict";
|
|
96739
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
96740
|
+
exports2.biLogger = void 0;
|
|
96741
|
+
var wix_bi_logger_client_1 = require_dist16();
|
|
96742
|
+
var biPublisher = async (event) => {
|
|
96743
|
+
const { src, evid, ...params } = event;
|
|
96744
|
+
const queryString = Object.entries({ src, evid, ...params }).filter(([, v]) => v !== void 0 && v !== null).map(([k, v]) => `${encodeURIComponent(k)}=${encodeURIComponent(String(v))}`).join("&");
|
|
96745
|
+
await fetch(`https://frog.wix.com/code?${queryString}`);
|
|
96746
|
+
};
|
|
96747
|
+
exports2.biLogger = (0, wix_bi_logger_client_1.factory)().addPublisher(biPublisher).logger();
|
|
96748
|
+
}
|
|
96749
|
+
});
|
|
96750
|
+
|
|
96751
|
+
// dist/biEvents.js
|
|
96752
|
+
var require_biEvents = __commonJS({
|
|
96753
|
+
"dist/biEvents.js"(exports2) {
|
|
96754
|
+
"use strict";
|
|
96755
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
96756
|
+
exports2.reportSessionStart = reportSessionStart;
|
|
96757
|
+
exports2.reportSessionEnd = reportSessionEnd;
|
|
96758
|
+
exports2.reportSessionError = reportSessionError;
|
|
96759
|
+
var v2_1 = require_v2();
|
|
96760
|
+
var biLogger_1 = require_biLogger();
|
|
96761
|
+
var logger_12 = require_logger();
|
|
96762
|
+
function reportSessionStart(params) {
|
|
96763
|
+
logger_12.logger.info("Reporting BI event 200 (session start)", params);
|
|
96764
|
+
void biLogger_1.biLogger.report((0, v2_1.devibeCodegenAgentSessionStartSrc196Evid200)(params));
|
|
96765
|
+
}
|
|
96766
|
+
function reportSessionEnd(params) {
|
|
96767
|
+
logger_12.logger.info("Reporting BI event 201 (session end)", params);
|
|
96768
|
+
void biLogger_1.biLogger.report((0, v2_1.devibeCodegenAgentSessionEndSrc196Evid201)(params));
|
|
96769
|
+
}
|
|
96770
|
+
function reportSessionError(params) {
|
|
96771
|
+
logger_12.logger.info("Reporting BI event 202 (session error)", params);
|
|
96772
|
+
void biLogger_1.biLogger.report((0, v2_1.devibeCodegenAgentSessionErrorSrc196Evid202)(params));
|
|
96773
|
+
}
|
|
96774
|
+
}
|
|
96775
|
+
});
|
|
96776
|
+
|
|
94926
96777
|
// dist/job-decision-manager.js
|
|
94927
96778
|
var require_job_decision_manager = __commonJS({
|
|
94928
96779
|
"dist/job-decision-manager.js"(exports2) {
|
|
@@ -95161,6 +97012,8 @@ var require_opencode_init = __commonJS({
|
|
|
95161
97012
|
var ditto_codegen_types_2 = require_dist4();
|
|
95162
97013
|
var context_12 = require_context();
|
|
95163
97014
|
var logger_12 = require_logger();
|
|
97015
|
+
var config_1 = require_config();
|
|
97016
|
+
var biEvents_1 = require_biEvents();
|
|
95164
97017
|
var pre_run_decision_1 = require_pre_run_decision();
|
|
95165
97018
|
var experiments_1 = require_experiments();
|
|
95166
97019
|
var runOpencodeInitFlow = async (blueprint, history) => {
|
|
@@ -95168,14 +97021,25 @@ var require_opencode_init = __commonJS({
|
|
|
95168
97021
|
if (!store?.jobId || !store?.taskId) {
|
|
95169
97022
|
throw new Error("Job context not available - jobId and taskId are required");
|
|
95170
97023
|
}
|
|
95171
|
-
const
|
|
95172
|
-
|
|
95173
|
-
|
|
95174
|
-
|
|
95175
|
-
|
|
95176
|
-
|
|
95177
|
-
|
|
95178
|
-
|
|
97024
|
+
const { jobId, taskId, kind } = store;
|
|
97025
|
+
const localJobContext = { jobId, taskId };
|
|
97026
|
+
const jobLog = (0, logger_12.getJobLogger)(jobId, taskId);
|
|
97027
|
+
const biBaseParams = {
|
|
97028
|
+
Job_id: jobId,
|
|
97029
|
+
Task_id: taskId,
|
|
97030
|
+
app_id: context_12.ctx.projectId,
|
|
97031
|
+
Dev_machine_session_id: process.env.CODEGEN_SESSION_ID,
|
|
97032
|
+
run_kind: kind,
|
|
97033
|
+
job_input: JSON.stringify(history)
|
|
97034
|
+
};
|
|
97035
|
+
jobLog.info(`[OpenCode Init] Starting opencode init task: jobId=${jobId}, taskId=${taskId}`);
|
|
97036
|
+
await codeGenerationService_12.codeGenerationService.updateTask(jobId, taskId, ditto_codegen_types_12.Status.RUNNING, {});
|
|
97037
|
+
jobLog.info(`[OpenCode Init] Marked task RUNNING: jobId=${jobId}, taskId=${taskId}`);
|
|
97038
|
+
(0, biEvents_1.reportSessionStart)({
|
|
97039
|
+
...biBaseParams,
|
|
97040
|
+
Task_model: config_1.DEFAULT_MODEL,
|
|
97041
|
+
Task_type: kind
|
|
97042
|
+
});
|
|
95179
97043
|
try {
|
|
95180
97044
|
const outputPath = (0, codegen_flow_helpers_12.getOutputPath)();
|
|
95181
97045
|
let finalBlueprint = blueprint;
|
|
@@ -95198,15 +97062,24 @@ var require_opencode_init = __commonJS({
|
|
|
95198
97062
|
requiredPermissions: result.requiredPermissions,
|
|
95199
97063
|
history
|
|
95200
97064
|
});
|
|
95201
|
-
|
|
95202
|
-
|
|
97065
|
+
if (!store.isCompleted) {
|
|
97066
|
+
await codeGenerationService_12.codeGenerationService.updateTask(jobId, taskId, ditto_codegen_types_12.Status.COMPLETED, {});
|
|
97067
|
+
}
|
|
97068
|
+
(0, biEvents_1.reportSessionEnd)({
|
|
97069
|
+
...biBaseParams,
|
|
97070
|
+
Task_model: config_1.DEFAULT_MODEL,
|
|
97071
|
+
Task_type: kind,
|
|
97072
|
+
Task_cost: Math.round(result.usage.cost * 1e6),
|
|
97073
|
+
Task_status: ditto_codegen_types_12.Status.COMPLETED,
|
|
97074
|
+
Agent_output: JSON.stringify({
|
|
95203
97075
|
files: result.filesChanged.map((file2) => ({
|
|
95204
97076
|
path: file2.path,
|
|
95205
97077
|
operation: file2.operation
|
|
95206
97078
|
}))
|
|
95207
|
-
}
|
|
97079
|
+
}),
|
|
97080
|
+
Job_skills_used: result.skillsUsed.join(",")
|
|
95208
97081
|
});
|
|
95209
|
-
jobLog.info(`[OpenCode Init] Completed opencode init task: jobId=${
|
|
97082
|
+
jobLog.info(`[OpenCode Init] Completed opencode init task: jobId=${jobId}, taskId=${taskId}`);
|
|
95210
97083
|
} catch (error48) {
|
|
95211
97084
|
const codegenError = (0, ditto_codegen_types_2.toCodegenError)(error48);
|
|
95212
97085
|
await (0, codegen_flow_helpers_12.updateJobPayload)(localJobContext, {
|
|
@@ -95215,7 +97088,25 @@ var require_opencode_init = __commonJS({
|
|
|
95215
97088
|
history
|
|
95216
97089
|
});
|
|
95217
97090
|
await (0, codegen_flow_helpers_12.updateParentTaskStatus)(localJobContext, ditto_codegen_types_12.Status.FAILED, codegenError);
|
|
95218
|
-
|
|
97091
|
+
(0, biEvents_1.reportSessionEnd)({
|
|
97092
|
+
...biBaseParams,
|
|
97093
|
+
Task_model: config_1.DEFAULT_MODEL,
|
|
97094
|
+
Task_type: kind,
|
|
97095
|
+
Task_status: ditto_codegen_types_12.Status.FAILED
|
|
97096
|
+
});
|
|
97097
|
+
(0, biEvents_1.reportSessionError)({
|
|
97098
|
+
...biBaseParams,
|
|
97099
|
+
task_model: config_1.DEFAULT_MODEL,
|
|
97100
|
+
task_type: kind,
|
|
97101
|
+
Agent_output: JSON.stringify(codegenError),
|
|
97102
|
+
Error_desc: codegenError.errorType,
|
|
97103
|
+
error_massage: codegenError.message,
|
|
97104
|
+
error_json: JSON.stringify(codegenError),
|
|
97105
|
+
is_retryable: codegenError.retryable,
|
|
97106
|
+
is_expected: codegenError.expected,
|
|
97107
|
+
validation_type: codegenError.validationType
|
|
97108
|
+
});
|
|
97109
|
+
jobLog.error(`[OpenCode Init] Failed opencode init task: jobId=${jobId}, taskId=${taskId}`, { error: error48 instanceof Error ? error48.message : String(error48) });
|
|
95219
97110
|
}
|
|
95220
97111
|
};
|
|
95221
97112
|
exports2.runOpencodeInitFlow = runOpencodeInitFlow;
|
|
@@ -95268,7 +97159,9 @@ var require_OpenCodeIterationOrchestrator = __commonJS({
|
|
|
95268
97159
|
this.emitEvent("finish:iteration", { outputPath, durationMs });
|
|
95269
97160
|
return {
|
|
95270
97161
|
requiredPermissions: result.requiredPermissions,
|
|
95271
|
-
filesChanged: result.filesChanged
|
|
97162
|
+
filesChanged: result.filesChanged,
|
|
97163
|
+
usage: result.usage,
|
|
97164
|
+
skillsUsed: result.skillsUsed
|
|
95272
97165
|
};
|
|
95273
97166
|
}
|
|
95274
97167
|
};
|
|
@@ -95291,19 +97184,32 @@ var require_opencode_iterate = __commonJS({
|
|
|
95291
97184
|
var ditto_codegen_types_2 = require_dist4();
|
|
95292
97185
|
var context_12 = require_context();
|
|
95293
97186
|
var logger_12 = require_logger();
|
|
97187
|
+
var config_1 = require_config();
|
|
97188
|
+
var biEvents_1 = require_biEvents();
|
|
95294
97189
|
var runOpencodeIterateFlow = async (chatHistory) => {
|
|
95295
97190
|
const store = job_context_storage_12.jobContextStorage.getStore();
|
|
95296
97191
|
if (!store?.jobId || !store?.taskId) {
|
|
95297
97192
|
throw new Error("Job context not available - jobId and taskId are required");
|
|
95298
97193
|
}
|
|
95299
|
-
const
|
|
95300
|
-
|
|
95301
|
-
|
|
95302
|
-
|
|
95303
|
-
|
|
95304
|
-
|
|
95305
|
-
|
|
95306
|
-
|
|
97194
|
+
const { jobId, taskId, kind } = store;
|
|
97195
|
+
const localJobContext = { jobId, taskId };
|
|
97196
|
+
const jobLog = (0, logger_12.getJobLogger)(jobId, taskId);
|
|
97197
|
+
const biBaseParams = {
|
|
97198
|
+
Job_id: jobId,
|
|
97199
|
+
Task_id: taskId,
|
|
97200
|
+
app_id: context_12.ctx.projectId,
|
|
97201
|
+
Dev_machine_session_id: process.env.CODEGEN_SESSION_ID,
|
|
97202
|
+
run_kind: kind,
|
|
97203
|
+
job_input: JSON.stringify(chatHistory)
|
|
97204
|
+
};
|
|
97205
|
+
jobLog.info(`[OpenCode Iterate] Starting opencode iterate task: jobId=${jobId}, taskId=${taskId}`);
|
|
97206
|
+
await codeGenerationService_12.codeGenerationService.updateTask(jobId, taskId, ditto_codegen_types_12.Status.RUNNING, {});
|
|
97207
|
+
jobLog.info(`[OpenCode Iterate] Marked task RUNNING: jobId=${jobId}, taskId=${taskId}`);
|
|
97208
|
+
(0, biEvents_1.reportSessionStart)({
|
|
97209
|
+
...biBaseParams,
|
|
97210
|
+
Task_model: config_1.DEFAULT_MODEL,
|
|
97211
|
+
Task_type: kind
|
|
97212
|
+
});
|
|
95307
97213
|
try {
|
|
95308
97214
|
const outputPath = (0, codegen_flow_helpers_12.getOutputPath)();
|
|
95309
97215
|
const iterationOrchestrator = new OpenCodeIterationOrchestrator_1.OpenCodeIterationOrchestrator();
|
|
@@ -95316,13 +97222,23 @@ var require_opencode_iterate = __commonJS({
|
|
|
95316
97222
|
await (0, codegen_flow_helpers_12.updateJobPayload)(localJobContext, {
|
|
95317
97223
|
requiredPermissions: result.requiredPermissions
|
|
95318
97224
|
});
|
|
95319
|
-
|
|
95320
|
-
|
|
95321
|
-
|
|
95322
|
-
|
|
95323
|
-
|
|
95324
|
-
|
|
95325
|
-
|
|
97225
|
+
const taskOutput = {
|
|
97226
|
+
files: result.filesChanged.map((file2) => ({
|
|
97227
|
+
path: file2.path,
|
|
97228
|
+
operation: file2.operation
|
|
97229
|
+
}))
|
|
97230
|
+
};
|
|
97231
|
+
await codeGenerationService_12.codeGenerationService.updateTask(jobId, taskId, ditto_codegen_types_12.Status.COMPLETED, {
|
|
97232
|
+
taskOutput
|
|
97233
|
+
});
|
|
97234
|
+
(0, biEvents_1.reportSessionEnd)({
|
|
97235
|
+
...biBaseParams,
|
|
97236
|
+
Task_model: config_1.DEFAULT_MODEL,
|
|
97237
|
+
Task_type: kind,
|
|
97238
|
+
Task_cost: Math.round(result.usage.cost * 1e6),
|
|
97239
|
+
Task_status: ditto_codegen_types_12.Status.COMPLETED,
|
|
97240
|
+
Agent_output: JSON.stringify(taskOutput),
|
|
97241
|
+
Job_skills_used: result.skillsUsed.join(",")
|
|
95326
97242
|
});
|
|
95327
97243
|
jobLog.info("[OpenCode Iterate] Completed task");
|
|
95328
97244
|
} catch (error48) {
|
|
@@ -95332,6 +97248,24 @@ var require_opencode_iterate = __commonJS({
|
|
|
95332
97248
|
requiredPermissionsErrors: codegenError
|
|
95333
97249
|
});
|
|
95334
97250
|
await (0, codegen_flow_helpers_12.updateParentTaskStatus)(localJobContext, ditto_codegen_types_12.Status.FAILED, codegenError);
|
|
97251
|
+
(0, biEvents_1.reportSessionEnd)({
|
|
97252
|
+
...biBaseParams,
|
|
97253
|
+
Task_model: config_1.DEFAULT_MODEL,
|
|
97254
|
+
Task_type: kind,
|
|
97255
|
+
Task_status: ditto_codegen_types_12.Status.FAILED
|
|
97256
|
+
});
|
|
97257
|
+
(0, biEvents_1.reportSessionError)({
|
|
97258
|
+
...biBaseParams,
|
|
97259
|
+
task_model: config_1.DEFAULT_MODEL,
|
|
97260
|
+
task_type: kind,
|
|
97261
|
+
Agent_output: JSON.stringify(codegenError),
|
|
97262
|
+
Error_desc: codegenError.errorType,
|
|
97263
|
+
error_massage: codegenError.message,
|
|
97264
|
+
error_json: JSON.stringify(codegenError),
|
|
97265
|
+
is_retryable: codegenError.retryable,
|
|
97266
|
+
is_expected: codegenError.expected,
|
|
97267
|
+
validation_type: codegenError.validationType
|
|
97268
|
+
});
|
|
95335
97269
|
jobLog.error("[OpenCode Iterate] Failed task", {
|
|
95336
97270
|
error: error48 instanceof Error ? error48.message : String(error48)
|
|
95337
97271
|
});
|
|
@@ -96870,7 +98804,7 @@ var require_DataCollectionsExtensionSchema = __commonJS({
|
|
|
96870
98804
|
});
|
|
96871
98805
|
|
|
96872
98806
|
// ../../node_modules/@wix/wix-data-collections-extension-schema/dist/index.js
|
|
96873
|
-
var
|
|
98807
|
+
var require_dist17 = __commonJS({
|
|
96874
98808
|
"../../node_modules/@wix/wix-data-collections-extension-schema/dist/index.js"(exports2) {
|
|
96875
98809
|
"use strict";
|
|
96876
98810
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -96910,7 +98844,7 @@ var require_PlannerAgentSchema = __commonJS({
|
|
|
96910
98844
|
var ApiSpecSchema_1 = require_ApiSpecSchema();
|
|
96911
98845
|
var EmbeddedScriptSchema_1 = require_EmbeddedScriptSchema();
|
|
96912
98846
|
var ditto_codegen_types_12 = require_dist4();
|
|
96913
|
-
var wix_data_collections_extension_schema_1 =
|
|
98847
|
+
var wix_data_collections_extension_schema_1 = require_dist17();
|
|
96914
98848
|
var zod_1 = __importDefault2(require_zod());
|
|
96915
98849
|
var CollectionSchema = wix_data_collections_extension_schema_1.DataCollectionsExtensionSchema.shape.collections.element.describe("The collection data");
|
|
96916
98850
|
var DeleteCollectionDataSchema = zod_1.default.object({
|
|
@@ -125411,7 +127345,7 @@ var require_AutoPatternsContextAgent = __commonJS({
|
|
|
125411
127345
|
});
|
|
125412
127346
|
|
|
125413
127347
|
// ../codegen-dashboard-agents/dist/index.js
|
|
125414
|
-
var
|
|
127348
|
+
var require_dist18 = __commonJS({
|
|
125415
127349
|
"../codegen-dashboard-agents/dist/index.js"(exports2) {
|
|
125416
127350
|
"use strict";
|
|
125417
127351
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -125464,7 +127398,7 @@ var require_dashboard_page_instructions = __commonJS({
|
|
|
125464
127398
|
var dynamicParameters_1 = require_dynamicParameters2();
|
|
125465
127399
|
var ecomPackage_1 = require_ecomPackage();
|
|
125466
127400
|
var wdsPackage_1 = require_wdsPackage();
|
|
125467
|
-
var codegen_dashboard_agents_1 =
|
|
127401
|
+
var codegen_dashboard_agents_1 = require_dist18();
|
|
125468
127402
|
exports2.supportedWDSComponents = /* @__PURE__ */ new Set([
|
|
125469
127403
|
"AutoComplete",
|
|
125470
127404
|
"Badge",
|
|
@@ -127590,7 +129524,7 @@ var require_DashboardDecisionAgent = __commonJS({
|
|
|
127590
129524
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
127591
129525
|
exports2.DashboardDecisionAgent = void 0;
|
|
127592
129526
|
var zod_1 = require_zod();
|
|
127593
|
-
var codegen_dashboard_agents_1 =
|
|
129527
|
+
var codegen_dashboard_agents_1 = require_dist18();
|
|
127594
129528
|
var prompt_selectors_1 = require_prompt_selectors();
|
|
127595
129529
|
var types_1 = require_types_impl2();
|
|
127596
129530
|
var userPrompt_1 = require_userPrompt();
|
|
@@ -128566,7 +130500,7 @@ var require_update_extension_agent_prompt = __commonJS({
|
|
|
128566
130500
|
var codegen_common_logic_1 = require_dist12();
|
|
128567
130501
|
var AgentsRegistry_1 = require_AgentsRegistry();
|
|
128568
130502
|
var api_1 = require_api2();
|
|
128569
|
-
var codegen_dashboard_agents_1 =
|
|
130503
|
+
var codegen_dashboard_agents_1 = require_dist18();
|
|
128570
130504
|
async function getExtensionSpecificPrompt(extensions) {
|
|
128571
130505
|
const corePrompts = [];
|
|
128572
130506
|
const allApiDocumentation = /* @__PURE__ */ new Set();
|
|
@@ -128611,7 +130545,7 @@ var require_UpdateExtensionAgent = __commonJS({
|
|
|
128611
130545
|
var update_extension_agent_prompt_1 = require_update_extension_agent_prompt();
|
|
128612
130546
|
var contextBuilders_1 = require_contextBuilders();
|
|
128613
130547
|
var userPrompt_1 = require_userPrompt();
|
|
128614
|
-
var codegen_dashboard_agents_1 =
|
|
130548
|
+
var codegen_dashboard_agents_1 = require_dist18();
|
|
128615
130549
|
var codeGenerationService_12 = require_codeGenerationService();
|
|
128616
130550
|
var types_1 = require_types_impl2();
|
|
128617
130551
|
var logger_12 = require_logger();
|
|
@@ -343296,12 +345230,11 @@ async function processJob(job) {
|
|
|
343296
345230
|
const payload = task.payload ?? {};
|
|
343297
345231
|
const history = payload.history ?? [];
|
|
343298
345232
|
const blueprint = payload.blueprint;
|
|
343299
|
-
|
|
343300
|
-
if (taskKind === "ASK_CODEGEN") {
|
|
345233
|
+
if (task.kind === CodeGenService_1.TaskKind.ASK_CODEGEN) {
|
|
343301
345234
|
await (0, opencode_ask_1.runOpencodeAskFlow)(history);
|
|
343302
|
-
} else if (task.kind ===
|
|
345235
|
+
} else if (task.kind === CodeGenService_1.TaskKind.ITERATE_CODEGEN) {
|
|
343303
345236
|
await handleIteration(history);
|
|
343304
|
-
} else if (task.kind ===
|
|
345237
|
+
} else if (task.kind === CodeGenService_1.TaskKind.INIT_CODEGEN && blueprint) {
|
|
343305
345238
|
await handleInit(blueprint, history);
|
|
343306
345239
|
}
|
|
343307
345240
|
});
|