@wix/mcp 1.0.21 → 1.0.23
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/build/bin-standalone.js +634 -976
- package/build/bin-standalone.js.map +4 -4
- package/build/cjs/index.cjs +8882 -1521
- package/build/cjs/index.cjs.map +4 -4
- package/build/dts/api-call/index.d.ts +1 -1
- package/build/dts/api-call/index.d.ts.map +1 -1
- package/build/dts/api-call/index.js +20 -12
- package/build/dts/api-call/index.js.map +1 -1
- package/build/dts/bin.d.ts +1 -1
- package/build/dts/bin.d.ts.map +1 -1
- package/build/dts/bin.js +8 -2
- package/build/dts/bin.js.map +1 -1
- package/build/dts/docs/create-site-guide-fixture.d.ts +8 -0
- package/build/dts/docs/create-site-guide-fixture.d.ts.map +1 -0
- package/build/dts/docs/create-site-guide-fixture.js +11 -0
- package/build/dts/docs/create-site-guide-fixture.js.map +1 -0
- package/build/dts/docs/create-site-guide.d.ts +3 -0
- package/build/dts/docs/create-site-guide.d.ts.map +1 -0
- package/build/dts/docs/create-site-guide.js +71 -0
- package/build/dts/docs/create-site-guide.js.map +1 -0
- package/build/dts/docs/docs.d.ts +19 -1
- package/build/dts/docs/docs.d.ts.map +1 -1
- package/build/dts/docs/docs.js +136 -107
- package/build/dts/docs/docs.js.map +1 -1
- package/build/dts/docs/get-to-know.d.ts +10 -1
- package/build/dts/docs/get-to-know.d.ts.map +1 -1
- package/build/dts/docs/get-to-know.js +11 -6
- package/build/dts/docs/get-to-know.js.map +1 -1
- package/build/dts/docs/velo-readme.d.ts.map +1 -1
- package/build/dts/docs/velo-readme.js +1 -1
- package/build/dts/docs/velo-readme.js.map +1 -1
- package/build/dts/index.d.ts +3 -1
- package/build/dts/index.d.ts.map +1 -1
- package/build/dts/index.js +2 -0
- package/build/dts/index.js.map +1 -1
- package/build/dts/pull-site-creation-job-tool/constants.d.ts +3 -0
- package/build/dts/pull-site-creation-job-tool/constants.d.ts.map +1 -0
- package/build/dts/pull-site-creation-job-tool/constants.js +3 -0
- package/build/dts/pull-site-creation-job-tool/constants.js.map +1 -0
- package/build/dts/pull-site-creation-job-tool/index.d.ts +21 -0
- package/build/dts/pull-site-creation-job-tool/index.d.ts.map +1 -0
- package/build/dts/pull-site-creation-job-tool/index.js +144 -0
- package/build/dts/pull-site-creation-job-tool/index.js.map +1 -0
- package/build/dts/site-builder-tool/constants.d.ts +7 -0
- package/build/dts/site-builder-tool/constants.d.ts.map +1 -0
- package/build/dts/site-builder-tool/constants.js +7 -0
- package/build/dts/site-builder-tool/constants.js.map +1 -0
- package/build/dts/site-builder-tool/index.d.ts +4 -0
- package/build/dts/site-builder-tool/index.d.ts.map +1 -0
- package/build/dts/site-builder-tool/index.js +160 -0
- package/build/dts/site-builder-tool/index.js.map +1 -0
- package/build/dts/support/index.d.ts +1 -1
- package/build/dts/support/index.d.ts.map +1 -1
- package/build/dts/support/index.js +8 -4
- package/build/dts/support/index.js.map +1 -1
- package/build/dts/widget-manifest.d.ts +6 -0
- package/build/dts/widget-manifest.d.ts.map +1 -0
- package/build/dts/widget-manifest.js +19 -0
- package/build/dts/widget-manifest.js.map +1 -0
- package/build/dts/wix-mcp-server.d.ts +16 -3
- package/build/dts/wix-mcp-server.d.ts.map +1 -1
- package/build/dts/wix-mcp-server.js +121 -106
- package/build/dts/wix-mcp-server.js.map +1 -1
- package/build/esm/index.js +8789 -926
- package/build/esm/index.js.map +4 -4
- package/package.json +28 -7
package/build/bin-standalone.js
CHANGED
|
@@ -45,552 +45,41 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
45
45
|
));
|
|
46
46
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
47
47
|
|
|
48
|
-
// ../../node_modules/@wix/
|
|
49
|
-
var require_v2 = __commonJS({
|
|
50
|
-
"../../node_modules/@wix/bi-logger-api-infra-data/dist/cjs/v2/index.js"(exports) {
|
|
51
|
-
"use strict";
|
|
52
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
|
-
exports.wixDocsHoverOnContentTerms = exports.docsAiAssistantCostSrc112Evid1436 = exports.docsAiAssistantOpenCloseSrc112Evid1435 = exports.apiExampleGenerationCompletedByAiTool = exports.wixDocsClickOnLinks = exports.relativeLinksFailure = exports.wixDocsMenuEditorReviewSaveModalClicks = exports.wixDocsMenuEditorInstructionsClicks = exports.wixDocsMenuEditorContentFilterChange = exports.wixDocsMenuEditorVersionsSideBarClicks = exports.wixDocsMenuEditorVersionsSideBarLoaded = exports.wixDocsMenuEditorSideBarActionMoveToReview = exports.wixDocsMenuEditorEditModeStatusChange = exports.wixDocsModalClick = exports.wixDocsModalWasClose = exports.wixDocsModalWasOpen = exports.wixDocsMainPageScroll = exports.wixDocsMainPageClick = exports.wixDocsDocsWasPublished = exports.wixDocsMenuEditorSideBarPositionChanged = exports.wixDocsMenuEditorSideBarActionFinished = exports.wixDocsMenuEditorSideBarActionClick = exports.wixDocsClickInPage = exports.wixDocsSubmitFeedback = exports.wixDocsClickOnGiveFeedback = exports.wixDocsClickedOnNavbar = exports.wixDocsNavbarLoaded = exports.wixDocsClickOnSidebarItem = exports.wixDocsSidebarState = exports.wixDocsCloseSearchDialog = exports.wixDocsChooseASearchResult = exports.wixDocsHoverOverASearchResultItem = exports.wixDocsScrollingInSearchResultView = exports.wixDocsTypeASearchTerm = exports.wixDocsSearchOpened = exports.wixDocsFinishLoadingPage = exports.wixDocsStartLoadingPage = exports.docsSsrRequestSrc112Evid140 = exports.docsAiAssistantAnswerSrc112Evid14 = exports.wixDocsChangelogItemSeen = exports.wixDocsClickOnItem = exports.wixDocsChangelogFilterUsage = exports.wixDocsViewLiveSiteClick = exports.docsAiAssistantClickSrc112Evid13 = exports.testTokenTokenGeneratedServerless = exports.wixDocsPlaygroundLinksDropdownClick = exports.wixDocsFeedbackSubmittedServer = exports.wixDocsSendRequestServer = exports.wixDocsSendRequestClient = exports.wixDocs404PageLoaded = void 0;
|
|
54
|
-
exports.triggerValueWasSelected = exports.apiKeysClickOnOauthPageLink = exports.apiKeysClickOnSendCodeAgain = exports.apiKeysClickOnSendCode = exports.apiKeysFinishDeleteKey = exports.apiKeysStartDeleteKey = exports.apiKeysFinishRotateKey = exports.apiKeysStartRotateKey = exports.apiKeysFinishDuplicateKey = exports.apiKeysStartDuplicateKey = exports.apiKeysFinishEditKey = exports.apiKeysStartEditKey = exports.apiKeysClickOnCopyAccountId = exports.apiKeysClickOnViewApiReferences = exports.apiKeysClickOnGenerateKeyEmptyState = exports.apiKeysClickOnGenerateKeyTopButton = exports.apiKeysClickOnActionFromThe3Dots = exports.apiKeysFinishGenerateKey = exports.apiKeysStartGenerateKey = exports.oauthAppOauthAppActionWasMadeServer = exports.oauthAppClickAtTheGenerateClientSecretDialog = exports.oauthAppOauthAppActionWasMade = exports.oauthAppClickAtTheDeleteOauthAppDialog = exports.oauthAppClickOnSaveFromCreateEditOauthAppPage = exports.oauthAppClickOnCloseFromCreateEditOauthAppPage = exports.oauthAppClickAtTheCreateEditOauthAppPage = exports.oauthAppClickNextCloseAtTheCreateOauthAppDialog = exports.oauthAppClickAtTheOauthAppMainPage = exports.oauthAppClickOnOauthAppAction = exports.headlessPlaygroundModalFinishedLoading = exports.headlessQuickStartModalShown = exports.publicSdkCall = exports.wixDocsShareableLinkClick = exports.wixDocsTryItOutClick = exports.wixDocsCopyCode = exports.wixDocsContactOwnerLinkClicked = exports.wixDocsNavigationClick = exports.wixDocsSearchResults = exports.gitToResourceUpdateSrc112Evid30 = exports.wixDocsGiveFeedbackClick = exports.wixDocsToggleClick = exports.wixDocsSiteVisit = exports.wixDocsObjectShowMembersClick = exports.wixDocsViewSourceClick = exports.wixDocsRelatedSiteClick = exports.wixDocsRedirectByExternalIdSrc112Evid1601 = exports.docsRedirectFailure = exports.wixDocsOpenCloseExamples = exports.wixDocsVisitLocalViewer = exports.wixDocsHover = void 0;
|
|
55
|
-
exports.spiExternalInvocationSrc96Evid199 = exports.devCenterWebhookSentTriggered = exports.webhooksInDcMainPageClicks = exports.webhooksInDcCreateEventPageClicks = exports.webhooksInDcCodeExampleWindowScroll = exports.webhooksInDcTriggeredTestModalClicks = exports.webhooksInDcCodeExampleWindowClicks = exports.wixMcpRequestSrc39Evid1607 = exports.testSrc184Evid9999 = exports.copyOfHeadlessResumeSetUpDialogClick = exports.headlessResumeSetUpDialogIsShown = exports.headlessDeployThisTemplatePageClick = exports.headlessDeployThisTemplatePageIsShown = exports.headlessAddWixToYourProjectDialogClick = exports.headlessOAuthInstalled = exports.headlessAddWixToYourProjectDialogIsShown = exports.apiBlockGaRule = exports.settingsAccess = exports.appsSettingsDeletionCandidate = exports.autoVeloSiteCallForAMethod = exports.graphqlCall = exports.webhooksDispatcherResponseChannelTopicSrc155Evid3 = exports.headlessMigrationTourModalShown = exports.zapierCustomZapCreatedOrDeleted = exports.zapierTestDataClick = void 0;
|
|
56
|
-
function wixDocs404PageLoaded(params) {
|
|
57
|
-
return { evid: 10, src: 112, endpoint: "", params };
|
|
58
|
-
}
|
|
59
|
-
exports.wixDocs404PageLoaded = wixDocs404PageLoaded;
|
|
60
|
-
function wixDocsSendRequestClient(params) {
|
|
61
|
-
return { evid: 11, src: 112, endpoint: "", params };
|
|
62
|
-
}
|
|
63
|
-
exports.wixDocsSendRequestClient = wixDocsSendRequestClient;
|
|
64
|
-
function wixDocsSendRequestServer(params) {
|
|
65
|
-
return { evid: 111, src: 112, endpoint: "", params };
|
|
66
|
-
}
|
|
67
|
-
exports.wixDocsSendRequestServer = wixDocsSendRequestServer;
|
|
68
|
-
function wixDocsFeedbackSubmittedServer(params) {
|
|
69
|
-
return { evid: 112, src: 112, endpoint: "", params };
|
|
70
|
-
}
|
|
71
|
-
exports.wixDocsFeedbackSubmittedServer = wixDocsFeedbackSubmittedServer;
|
|
72
|
-
function wixDocsPlaygroundLinksDropdownClick(params) {
|
|
73
|
-
return { evid: 12, src: 112, endpoint: "", params };
|
|
74
|
-
}
|
|
75
|
-
exports.wixDocsPlaygroundLinksDropdownClick = wixDocsPlaygroundLinksDropdownClick;
|
|
76
|
-
function testTokenTokenGeneratedServerless(params) {
|
|
77
|
-
return { evid: 1200, src: 112, endpoint: "", params };
|
|
78
|
-
}
|
|
79
|
-
exports.testTokenTokenGeneratedServerless = testTokenTokenGeneratedServerless;
|
|
80
|
-
function docsAiAssistantClickSrc112Evid13(params) {
|
|
81
|
-
return { evid: 13, src: 112, endpoint: "", params };
|
|
82
|
-
}
|
|
83
|
-
exports.docsAiAssistantClickSrc112Evid13 = docsAiAssistantClickSrc112Evid13;
|
|
84
|
-
function wixDocsViewLiveSiteClick(params) {
|
|
85
|
-
return { evid: 1300, src: 112, endpoint: "", params };
|
|
86
|
-
}
|
|
87
|
-
exports.wixDocsViewLiveSiteClick = wixDocsViewLiveSiteClick;
|
|
88
|
-
function wixDocsChangelogFilterUsage(params) {
|
|
89
|
-
return { evid: 1301, src: 112, endpoint: "", params };
|
|
90
|
-
}
|
|
91
|
-
exports.wixDocsChangelogFilterUsage = wixDocsChangelogFilterUsage;
|
|
92
|
-
function wixDocsClickOnItem(params) {
|
|
93
|
-
return { evid: 1302, src: 112, endpoint: "", params };
|
|
94
|
-
}
|
|
95
|
-
exports.wixDocsClickOnItem = wixDocsClickOnItem;
|
|
96
|
-
function wixDocsChangelogItemSeen(params) {
|
|
97
|
-
return { evid: 1303, src: 112, endpoint: "", params };
|
|
98
|
-
}
|
|
99
|
-
exports.wixDocsChangelogItemSeen = wixDocsChangelogItemSeen;
|
|
100
|
-
function docsAiAssistantAnswerSrc112Evid14(params) {
|
|
101
|
-
return { evid: 14, src: 112, endpoint: "", params };
|
|
102
|
-
}
|
|
103
|
-
exports.docsAiAssistantAnswerSrc112Evid14 = docsAiAssistantAnswerSrc112Evid14;
|
|
104
|
-
function docsSsrRequestSrc112Evid140(params) {
|
|
105
|
-
return { evid: 140, src: 112, endpoint: "", params };
|
|
106
|
-
}
|
|
107
|
-
exports.docsSsrRequestSrc112Evid140 = docsSsrRequestSrc112Evid140;
|
|
108
|
-
function wixDocsStartLoadingPage(params) {
|
|
109
|
-
return { evid: 1400, src: 112, endpoint: "", params };
|
|
110
|
-
}
|
|
111
|
-
exports.wixDocsStartLoadingPage = wixDocsStartLoadingPage;
|
|
112
|
-
function wixDocsFinishLoadingPage(params) {
|
|
113
|
-
return { evid: 1401, src: 112, endpoint: "", params };
|
|
114
|
-
}
|
|
115
|
-
exports.wixDocsFinishLoadingPage = wixDocsFinishLoadingPage;
|
|
116
|
-
function wixDocsSearchOpened(params) {
|
|
117
|
-
return { evid: 1403, src: 112, endpoint: "", params };
|
|
118
|
-
}
|
|
119
|
-
exports.wixDocsSearchOpened = wixDocsSearchOpened;
|
|
120
|
-
function wixDocsTypeASearchTerm(params) {
|
|
121
|
-
return { evid: 1404, src: 112, endpoint: "", params };
|
|
122
|
-
}
|
|
123
|
-
exports.wixDocsTypeASearchTerm = wixDocsTypeASearchTerm;
|
|
124
|
-
function wixDocsScrollingInSearchResultView(params) {
|
|
125
|
-
return { evid: 1405, src: 112, endpoint: "", params };
|
|
126
|
-
}
|
|
127
|
-
exports.wixDocsScrollingInSearchResultView = wixDocsScrollingInSearchResultView;
|
|
128
|
-
function wixDocsHoverOverASearchResultItem(params) {
|
|
129
|
-
return { evid: 1406, src: 112, endpoint: "", params };
|
|
130
|
-
}
|
|
131
|
-
exports.wixDocsHoverOverASearchResultItem = wixDocsHoverOverASearchResultItem;
|
|
132
|
-
function wixDocsChooseASearchResult(params) {
|
|
133
|
-
return { evid: 1407, src: 112, endpoint: "", params };
|
|
134
|
-
}
|
|
135
|
-
exports.wixDocsChooseASearchResult = wixDocsChooseASearchResult;
|
|
136
|
-
function wixDocsCloseSearchDialog(params) {
|
|
137
|
-
return { evid: 1408, src: 112, endpoint: "", params };
|
|
138
|
-
}
|
|
139
|
-
exports.wixDocsCloseSearchDialog = wixDocsCloseSearchDialog;
|
|
140
|
-
function wixDocsSidebarState(params) {
|
|
141
|
-
return { evid: 1409, src: 112, endpoint: "", params };
|
|
142
|
-
}
|
|
143
|
-
exports.wixDocsSidebarState = wixDocsSidebarState;
|
|
144
|
-
function wixDocsClickOnSidebarItem(params) {
|
|
145
|
-
return { evid: 1410, src: 112, endpoint: "", params };
|
|
146
|
-
}
|
|
147
|
-
exports.wixDocsClickOnSidebarItem = wixDocsClickOnSidebarItem;
|
|
148
|
-
function wixDocsNavbarLoaded(params) {
|
|
149
|
-
return { evid: 1411, src: 112, endpoint: "", params };
|
|
150
|
-
}
|
|
151
|
-
exports.wixDocsNavbarLoaded = wixDocsNavbarLoaded;
|
|
152
|
-
function wixDocsClickedOnNavbar(params) {
|
|
153
|
-
return { evid: 1412, src: 112, endpoint: "", params };
|
|
154
|
-
}
|
|
155
|
-
exports.wixDocsClickedOnNavbar = wixDocsClickedOnNavbar;
|
|
156
|
-
function wixDocsClickOnGiveFeedback(params) {
|
|
157
|
-
return { evid: 1413, src: 112, endpoint: "", params };
|
|
158
|
-
}
|
|
159
|
-
exports.wixDocsClickOnGiveFeedback = wixDocsClickOnGiveFeedback;
|
|
160
|
-
function wixDocsSubmitFeedback(params) {
|
|
161
|
-
return { evid: 1414, src: 112, endpoint: "", params };
|
|
162
|
-
}
|
|
163
|
-
exports.wixDocsSubmitFeedback = wixDocsSubmitFeedback;
|
|
164
|
-
function wixDocsClickInPage(params) {
|
|
165
|
-
return { evid: 1415, src: 112, endpoint: "", params };
|
|
166
|
-
}
|
|
167
|
-
exports.wixDocsClickInPage = wixDocsClickInPage;
|
|
168
|
-
function wixDocsMenuEditorSideBarActionClick(params) {
|
|
169
|
-
return { evid: 1416, src: 112, endpoint: "", params };
|
|
170
|
-
}
|
|
171
|
-
exports.wixDocsMenuEditorSideBarActionClick = wixDocsMenuEditorSideBarActionClick;
|
|
172
|
-
function wixDocsMenuEditorSideBarActionFinished(params) {
|
|
173
|
-
return { evid: 1417, src: 112, endpoint: "", params };
|
|
174
|
-
}
|
|
175
|
-
exports.wixDocsMenuEditorSideBarActionFinished = wixDocsMenuEditorSideBarActionFinished;
|
|
176
|
-
function wixDocsMenuEditorSideBarPositionChanged(params) {
|
|
177
|
-
return { evid: 1418, src: 112, endpoint: "", params };
|
|
178
|
-
}
|
|
179
|
-
exports.wixDocsMenuEditorSideBarPositionChanged = wixDocsMenuEditorSideBarPositionChanged;
|
|
180
|
-
function wixDocsDocsWasPublished(params) {
|
|
181
|
-
return { evid: 1419, src: 112, endpoint: "", params };
|
|
182
|
-
}
|
|
183
|
-
exports.wixDocsDocsWasPublished = wixDocsDocsWasPublished;
|
|
184
|
-
function wixDocsMainPageClick(params) {
|
|
185
|
-
return { evid: 1420, src: 112, endpoint: "", params };
|
|
186
|
-
}
|
|
187
|
-
exports.wixDocsMainPageClick = wixDocsMainPageClick;
|
|
188
|
-
function wixDocsMainPageScroll(params) {
|
|
189
|
-
return { evid: 1421, src: 112, endpoint: "", params };
|
|
190
|
-
}
|
|
191
|
-
exports.wixDocsMainPageScroll = wixDocsMainPageScroll;
|
|
192
|
-
function wixDocsModalWasOpen(params) {
|
|
193
|
-
return { evid: 1422, src: 112, endpoint: "", params };
|
|
194
|
-
}
|
|
195
|
-
exports.wixDocsModalWasOpen = wixDocsModalWasOpen;
|
|
196
|
-
function wixDocsModalWasClose(params) {
|
|
197
|
-
return { evid: 1423, src: 112, endpoint: "", params };
|
|
198
|
-
}
|
|
199
|
-
exports.wixDocsModalWasClose = wixDocsModalWasClose;
|
|
200
|
-
function wixDocsModalClick(params) {
|
|
201
|
-
return { evid: 1424, src: 112, endpoint: "", params };
|
|
202
|
-
}
|
|
203
|
-
exports.wixDocsModalClick = wixDocsModalClick;
|
|
204
|
-
function wixDocsMenuEditorEditModeStatusChange(params) {
|
|
205
|
-
return { evid: 1425, src: 112, endpoint: "", params };
|
|
206
|
-
}
|
|
207
|
-
exports.wixDocsMenuEditorEditModeStatusChange = wixDocsMenuEditorEditModeStatusChange;
|
|
208
|
-
function wixDocsMenuEditorSideBarActionMoveToReview(params) {
|
|
209
|
-
return { evid: 1426, src: 112, endpoint: "", params };
|
|
210
|
-
}
|
|
211
|
-
exports.wixDocsMenuEditorSideBarActionMoveToReview = wixDocsMenuEditorSideBarActionMoveToReview;
|
|
212
|
-
function wixDocsMenuEditorVersionsSideBarLoaded(params) {
|
|
213
|
-
return { evid: 1427, src: 112, endpoint: "", params };
|
|
214
|
-
}
|
|
215
|
-
exports.wixDocsMenuEditorVersionsSideBarLoaded = wixDocsMenuEditorVersionsSideBarLoaded;
|
|
216
|
-
function wixDocsMenuEditorVersionsSideBarClicks(params) {
|
|
217
|
-
return { evid: 1428, src: 112, endpoint: "", params };
|
|
218
|
-
}
|
|
219
|
-
exports.wixDocsMenuEditorVersionsSideBarClicks = wixDocsMenuEditorVersionsSideBarClicks;
|
|
220
|
-
function wixDocsMenuEditorContentFilterChange(params) {
|
|
221
|
-
return { evid: 1429, src: 112, endpoint: "", params };
|
|
222
|
-
}
|
|
223
|
-
exports.wixDocsMenuEditorContentFilterChange = wixDocsMenuEditorContentFilterChange;
|
|
224
|
-
function wixDocsMenuEditorInstructionsClicks(params) {
|
|
225
|
-
return { evid: 1430, src: 112, endpoint: "", params };
|
|
226
|
-
}
|
|
227
|
-
exports.wixDocsMenuEditorInstructionsClicks = wixDocsMenuEditorInstructionsClicks;
|
|
228
|
-
function wixDocsMenuEditorReviewSaveModalClicks(params) {
|
|
229
|
-
return { evid: 1431, src: 112, endpoint: "", params };
|
|
230
|
-
}
|
|
231
|
-
exports.wixDocsMenuEditorReviewSaveModalClicks = wixDocsMenuEditorReviewSaveModalClicks;
|
|
232
|
-
function relativeLinksFailure(params) {
|
|
233
|
-
return { evid: 1432, src: 112, endpoint: "", params };
|
|
234
|
-
}
|
|
235
|
-
exports.relativeLinksFailure = relativeLinksFailure;
|
|
236
|
-
function wixDocsClickOnLinks(params) {
|
|
237
|
-
return { evid: 1433, src: 112, endpoint: "", params };
|
|
238
|
-
}
|
|
239
|
-
exports.wixDocsClickOnLinks = wixDocsClickOnLinks;
|
|
240
|
-
function apiExampleGenerationCompletedByAiTool(params) {
|
|
241
|
-
return { evid: 1434, src: 112, endpoint: "", params };
|
|
242
|
-
}
|
|
243
|
-
exports.apiExampleGenerationCompletedByAiTool = apiExampleGenerationCompletedByAiTool;
|
|
244
|
-
function docsAiAssistantOpenCloseSrc112Evid1435(params) {
|
|
245
|
-
return { evid: 1435, src: 112, endpoint: "", params };
|
|
246
|
-
}
|
|
247
|
-
exports.docsAiAssistantOpenCloseSrc112Evid1435 = docsAiAssistantOpenCloseSrc112Evid1435;
|
|
248
|
-
function docsAiAssistantCostSrc112Evid1436(params) {
|
|
249
|
-
return { evid: 1436, src: 112, endpoint: "", params };
|
|
250
|
-
}
|
|
251
|
-
exports.docsAiAssistantCostSrc112Evid1436 = docsAiAssistantCostSrc112Evid1436;
|
|
252
|
-
function wixDocsHoverOnContentTerms(params) {
|
|
253
|
-
return { evid: 1437, src: 112, endpoint: "", params };
|
|
254
|
-
}
|
|
255
|
-
exports.wixDocsHoverOnContentTerms = wixDocsHoverOnContentTerms;
|
|
256
|
-
function wixDocsHover(params) {
|
|
257
|
-
return { evid: 1438, src: 112, endpoint: "", params };
|
|
258
|
-
}
|
|
259
|
-
exports.wixDocsHover = wixDocsHover;
|
|
260
|
-
function wixDocsVisitLocalViewer(params) {
|
|
261
|
-
return { evid: 15, src: 112, endpoint: "", params };
|
|
262
|
-
}
|
|
263
|
-
exports.wixDocsVisitLocalViewer = wixDocsVisitLocalViewer;
|
|
264
|
-
function wixDocsOpenCloseExamples(params) {
|
|
265
|
-
return { evid: 16, src: 112, endpoint: "", params };
|
|
266
|
-
}
|
|
267
|
-
exports.wixDocsOpenCloseExamples = wixDocsOpenCloseExamples;
|
|
268
|
-
function docsRedirectFailure(params) {
|
|
269
|
-
return { evid: 1600, src: 112, endpoint: "", params };
|
|
270
|
-
}
|
|
271
|
-
exports.docsRedirectFailure = docsRedirectFailure;
|
|
272
|
-
function wixDocsRedirectByExternalIdSrc112Evid1601(params) {
|
|
273
|
-
return { evid: 1601, src: 112, endpoint: "", params };
|
|
274
|
-
}
|
|
275
|
-
exports.wixDocsRedirectByExternalIdSrc112Evid1601 = wixDocsRedirectByExternalIdSrc112Evid1601;
|
|
276
|
-
function wixDocsRelatedSiteClick(params) {
|
|
277
|
-
return { evid: 17, src: 112, endpoint: "", params };
|
|
278
|
-
}
|
|
279
|
-
exports.wixDocsRelatedSiteClick = wixDocsRelatedSiteClick;
|
|
280
|
-
function wixDocsViewSourceClick(params) {
|
|
281
|
-
return { evid: 18, src: 112, endpoint: "", params };
|
|
282
|
-
}
|
|
283
|
-
exports.wixDocsViewSourceClick = wixDocsViewSourceClick;
|
|
284
|
-
function wixDocsObjectShowMembersClick(params) {
|
|
285
|
-
return { evid: 19, src: 112, endpoint: "", params };
|
|
286
|
-
}
|
|
287
|
-
exports.wixDocsObjectShowMembersClick = wixDocsObjectShowMembersClick;
|
|
288
|
-
function wixDocsSiteVisit(params) {
|
|
289
|
-
return { evid: 2, src: 112, endpoint: "", params };
|
|
290
|
-
}
|
|
291
|
-
exports.wixDocsSiteVisit = wixDocsSiteVisit;
|
|
292
|
-
function wixDocsToggleClick(params) {
|
|
293
|
-
return { evid: 22, src: 112, endpoint: "", params };
|
|
294
|
-
}
|
|
295
|
-
exports.wixDocsToggleClick = wixDocsToggleClick;
|
|
296
|
-
function wixDocsGiveFeedbackClick(params) {
|
|
297
|
-
return { evid: 3, src: 112, endpoint: "", params };
|
|
298
|
-
}
|
|
299
|
-
exports.wixDocsGiveFeedbackClick = wixDocsGiveFeedbackClick;
|
|
300
|
-
function gitToResourceUpdateSrc112Evid30(params) {
|
|
301
|
-
return { evid: 30, src: 112, endpoint: "", params };
|
|
302
|
-
}
|
|
303
|
-
exports.gitToResourceUpdateSrc112Evid30 = gitToResourceUpdateSrc112Evid30;
|
|
304
|
-
function wixDocsSearchResults(params) {
|
|
305
|
-
return { evid: 4, src: 112, endpoint: "", params };
|
|
306
|
-
}
|
|
307
|
-
exports.wixDocsSearchResults = wixDocsSearchResults;
|
|
308
|
-
function wixDocsNavigationClick(params) {
|
|
309
|
-
return { evid: 5, src: 112, endpoint: "", params };
|
|
310
|
-
}
|
|
311
|
-
exports.wixDocsNavigationClick = wixDocsNavigationClick;
|
|
312
|
-
function wixDocsContactOwnerLinkClicked(params) {
|
|
313
|
-
return { evid: 6, src: 112, endpoint: "", params };
|
|
314
|
-
}
|
|
315
|
-
exports.wixDocsContactOwnerLinkClicked = wixDocsContactOwnerLinkClicked;
|
|
316
|
-
function wixDocsCopyCode(params) {
|
|
317
|
-
return { evid: 7, src: 112, endpoint: "", params };
|
|
318
|
-
}
|
|
319
|
-
exports.wixDocsCopyCode = wixDocsCopyCode;
|
|
320
|
-
function wixDocsTryItOutClick(params) {
|
|
321
|
-
return { evid: 8, src: 112, endpoint: "", params };
|
|
322
|
-
}
|
|
323
|
-
exports.wixDocsTryItOutClick = wixDocsTryItOutClick;
|
|
324
|
-
function wixDocsShareableLinkClick(params) {
|
|
325
|
-
return { evid: 9, src: 112, endpoint: "", params };
|
|
326
|
-
}
|
|
327
|
-
exports.wixDocsShareableLinkClick = wixDocsShareableLinkClick;
|
|
328
|
-
function publicSdkCall(params) {
|
|
329
|
-
return { evid: 1606, src: 11, endpoint: "", params };
|
|
330
|
-
}
|
|
331
|
-
exports.publicSdkCall = publicSdkCall;
|
|
332
|
-
function headlessQuickStartModalShown(params) {
|
|
333
|
-
return { evid: 11, src: 151, endpoint: "", params };
|
|
334
|
-
}
|
|
335
|
-
exports.headlessQuickStartModalShown = headlessQuickStartModalShown;
|
|
336
|
-
function headlessPlaygroundModalFinishedLoading(params) {
|
|
337
|
-
return { evid: 12, src: 151, endpoint: "", params };
|
|
338
|
-
}
|
|
339
|
-
exports.headlessPlaygroundModalFinishedLoading = headlessPlaygroundModalFinishedLoading;
|
|
340
|
-
function oauthAppClickOnOauthAppAction(params) {
|
|
341
|
-
return { evid: 100, src: 154, endpoint: "", params };
|
|
342
|
-
}
|
|
343
|
-
exports.oauthAppClickOnOauthAppAction = oauthAppClickOnOauthAppAction;
|
|
344
|
-
function oauthAppClickAtTheOauthAppMainPage(params) {
|
|
345
|
-
return { evid: 101, src: 154, endpoint: "", params };
|
|
346
|
-
}
|
|
347
|
-
exports.oauthAppClickAtTheOauthAppMainPage = oauthAppClickAtTheOauthAppMainPage;
|
|
348
|
-
function oauthAppClickNextCloseAtTheCreateOauthAppDialog(params) {
|
|
349
|
-
return { evid: 102, src: 154, endpoint: "", params };
|
|
350
|
-
}
|
|
351
|
-
exports.oauthAppClickNextCloseAtTheCreateOauthAppDialog = oauthAppClickNextCloseAtTheCreateOauthAppDialog;
|
|
352
|
-
function oauthAppClickAtTheCreateEditOauthAppPage(params) {
|
|
353
|
-
return { evid: 103, src: 154, endpoint: "", params };
|
|
354
|
-
}
|
|
355
|
-
exports.oauthAppClickAtTheCreateEditOauthAppPage = oauthAppClickAtTheCreateEditOauthAppPage;
|
|
356
|
-
function oauthAppClickOnCloseFromCreateEditOauthAppPage(params) {
|
|
357
|
-
return { evid: 104, src: 154, endpoint: "", params };
|
|
358
|
-
}
|
|
359
|
-
exports.oauthAppClickOnCloseFromCreateEditOauthAppPage = oauthAppClickOnCloseFromCreateEditOauthAppPage;
|
|
360
|
-
function oauthAppClickOnSaveFromCreateEditOauthAppPage(params) {
|
|
361
|
-
return { evid: 105, src: 154, endpoint: "", params };
|
|
362
|
-
}
|
|
363
|
-
exports.oauthAppClickOnSaveFromCreateEditOauthAppPage = oauthAppClickOnSaveFromCreateEditOauthAppPage;
|
|
364
|
-
function oauthAppClickAtTheDeleteOauthAppDialog(params) {
|
|
365
|
-
return { evid: 106, src: 154, endpoint: "", params };
|
|
366
|
-
}
|
|
367
|
-
exports.oauthAppClickAtTheDeleteOauthAppDialog = oauthAppClickAtTheDeleteOauthAppDialog;
|
|
368
|
-
function oauthAppOauthAppActionWasMade(params) {
|
|
369
|
-
return { evid: 107, src: 154, endpoint: "", params };
|
|
370
|
-
}
|
|
371
|
-
exports.oauthAppOauthAppActionWasMade = oauthAppOauthAppActionWasMade;
|
|
372
|
-
function oauthAppClickAtTheGenerateClientSecretDialog(params) {
|
|
373
|
-
return { evid: 108, src: 154, endpoint: "", params };
|
|
374
|
-
}
|
|
375
|
-
exports.oauthAppClickAtTheGenerateClientSecretDialog = oauthAppClickAtTheGenerateClientSecretDialog;
|
|
376
|
-
function oauthAppOauthAppActionWasMadeServer(params) {
|
|
377
|
-
return { evid: 151, src: 154, endpoint: "", params };
|
|
378
|
-
}
|
|
379
|
-
exports.oauthAppOauthAppActionWasMadeServer = oauthAppOauthAppActionWasMadeServer;
|
|
380
|
-
function apiKeysStartGenerateKey(params) {
|
|
381
|
-
return { evid: 202, src: 154, endpoint: "", params };
|
|
382
|
-
}
|
|
383
|
-
exports.apiKeysStartGenerateKey = apiKeysStartGenerateKey;
|
|
384
|
-
function apiKeysFinishGenerateKey(params) {
|
|
385
|
-
return { evid: 203, src: 154, endpoint: "", params };
|
|
386
|
-
}
|
|
387
|
-
exports.apiKeysFinishGenerateKey = apiKeysFinishGenerateKey;
|
|
388
|
-
function apiKeysClickOnActionFromThe3Dots(params) {
|
|
389
|
-
return { evid: 204, src: 154, endpoint: "", params };
|
|
390
|
-
}
|
|
391
|
-
exports.apiKeysClickOnActionFromThe3Dots = apiKeysClickOnActionFromThe3Dots;
|
|
392
|
-
function apiKeysClickOnGenerateKeyTopButton(params) {
|
|
393
|
-
return { evid: 205, src: 154, endpoint: "", params };
|
|
394
|
-
}
|
|
395
|
-
exports.apiKeysClickOnGenerateKeyTopButton = apiKeysClickOnGenerateKeyTopButton;
|
|
396
|
-
function apiKeysClickOnGenerateKeyEmptyState(params) {
|
|
397
|
-
return { evid: 206, src: 154, endpoint: "", params };
|
|
398
|
-
}
|
|
399
|
-
exports.apiKeysClickOnGenerateKeyEmptyState = apiKeysClickOnGenerateKeyEmptyState;
|
|
400
|
-
function apiKeysClickOnViewApiReferences(params) {
|
|
401
|
-
return { evid: 207, src: 154, endpoint: "", params };
|
|
402
|
-
}
|
|
403
|
-
exports.apiKeysClickOnViewApiReferences = apiKeysClickOnViewApiReferences;
|
|
404
|
-
function apiKeysClickOnCopyAccountId(params) {
|
|
405
|
-
return { evid: 208, src: 154, endpoint: "", params };
|
|
406
|
-
}
|
|
407
|
-
exports.apiKeysClickOnCopyAccountId = apiKeysClickOnCopyAccountId;
|
|
408
|
-
function apiKeysStartEditKey(params) {
|
|
409
|
-
return { evid: 209, src: 154, endpoint: "", params };
|
|
410
|
-
}
|
|
411
|
-
exports.apiKeysStartEditKey = apiKeysStartEditKey;
|
|
412
|
-
function apiKeysFinishEditKey(params) {
|
|
413
|
-
return { evid: 210, src: 154, endpoint: "", params };
|
|
414
|
-
}
|
|
415
|
-
exports.apiKeysFinishEditKey = apiKeysFinishEditKey;
|
|
416
|
-
function apiKeysStartDuplicateKey(params) {
|
|
417
|
-
return { evid: 211, src: 154, endpoint: "", params };
|
|
418
|
-
}
|
|
419
|
-
exports.apiKeysStartDuplicateKey = apiKeysStartDuplicateKey;
|
|
420
|
-
function apiKeysFinishDuplicateKey(params) {
|
|
421
|
-
return { evid: 212, src: 154, endpoint: "", params };
|
|
422
|
-
}
|
|
423
|
-
exports.apiKeysFinishDuplicateKey = apiKeysFinishDuplicateKey;
|
|
424
|
-
function apiKeysStartRotateKey(params) {
|
|
425
|
-
return { evid: 213, src: 154, endpoint: "", params };
|
|
426
|
-
}
|
|
427
|
-
exports.apiKeysStartRotateKey = apiKeysStartRotateKey;
|
|
428
|
-
function apiKeysFinishRotateKey(params) {
|
|
429
|
-
return { evid: 214, src: 154, endpoint: "", params };
|
|
430
|
-
}
|
|
431
|
-
exports.apiKeysFinishRotateKey = apiKeysFinishRotateKey;
|
|
432
|
-
function apiKeysStartDeleteKey(params) {
|
|
433
|
-
return { evid: 215, src: 154, endpoint: "", params };
|
|
434
|
-
}
|
|
435
|
-
exports.apiKeysStartDeleteKey = apiKeysStartDeleteKey;
|
|
436
|
-
function apiKeysFinishDeleteKey(params) {
|
|
437
|
-
return { evid: 216, src: 154, endpoint: "", params };
|
|
438
|
-
}
|
|
439
|
-
exports.apiKeysFinishDeleteKey = apiKeysFinishDeleteKey;
|
|
440
|
-
function apiKeysClickOnSendCode(params) {
|
|
441
|
-
return { evid: 217, src: 154, endpoint: "", params };
|
|
442
|
-
}
|
|
443
|
-
exports.apiKeysClickOnSendCode = apiKeysClickOnSendCode;
|
|
444
|
-
function apiKeysClickOnSendCodeAgain(params) {
|
|
445
|
-
return { evid: 218, src: 154, endpoint: "", params };
|
|
446
|
-
}
|
|
447
|
-
exports.apiKeysClickOnSendCodeAgain = apiKeysClickOnSendCodeAgain;
|
|
448
|
-
function apiKeysClickOnOauthPageLink(params) {
|
|
449
|
-
return { evid: 227, src: 154, endpoint: "", params };
|
|
450
|
-
}
|
|
451
|
-
exports.apiKeysClickOnOauthPageLink = apiKeysClickOnOauthPageLink;
|
|
452
|
-
function triggerValueWasSelected(params) {
|
|
453
|
-
return { evid: 400, src: 154, endpoint: "", params };
|
|
454
|
-
}
|
|
455
|
-
exports.triggerValueWasSelected = triggerValueWasSelected;
|
|
456
|
-
function zapierTestDataClick(params) {
|
|
457
|
-
return { evid: 401, src: 154, endpoint: "", params };
|
|
458
|
-
}
|
|
459
|
-
exports.zapierTestDataClick = zapierTestDataClick;
|
|
460
|
-
function zapierCustomZapCreatedOrDeleted(params) {
|
|
461
|
-
return { evid: 402, src: 154, endpoint: "", params };
|
|
462
|
-
}
|
|
463
|
-
exports.zapierCustomZapCreatedOrDeleted = zapierCustomZapCreatedOrDeleted;
|
|
464
|
-
function headlessMigrationTourModalShown(params) {
|
|
465
|
-
return { evid: 8, src: 154, endpoint: "", params };
|
|
466
|
-
}
|
|
467
|
-
exports.headlessMigrationTourModalShown = headlessMigrationTourModalShown;
|
|
468
|
-
function webhooksDispatcherResponseChannelTopicSrc155Evid3(params) {
|
|
469
|
-
return { evid: 3, src: 155, endpoint: "", params };
|
|
470
|
-
}
|
|
471
|
-
exports.webhooksDispatcherResponseChannelTopicSrc155Evid3 = webhooksDispatcherResponseChannelTopicSrc155Evid3;
|
|
472
|
-
function graphqlCall(params) {
|
|
473
|
-
return { evid: 400, src: 155, endpoint: "", params };
|
|
474
|
-
}
|
|
475
|
-
exports.graphqlCall = graphqlCall;
|
|
476
|
-
function autoVeloSiteCallForAMethod(params) {
|
|
477
|
-
return { evid: 401, src: 155, endpoint: "", params };
|
|
478
|
-
}
|
|
479
|
-
exports.autoVeloSiteCallForAMethod = autoVeloSiteCallForAMethod;
|
|
480
|
-
function appsSettingsDeletionCandidate(params) {
|
|
481
|
-
return { evid: 700, src: 155, endpoint: "", params };
|
|
482
|
-
}
|
|
483
|
-
exports.appsSettingsDeletionCandidate = appsSettingsDeletionCandidate;
|
|
484
|
-
function settingsAccess(params) {
|
|
485
|
-
return { evid: 800, src: 155, endpoint: "", params };
|
|
486
|
-
}
|
|
487
|
-
exports.settingsAccess = settingsAccess;
|
|
488
|
-
function apiBlockGaRule(params) {
|
|
489
|
-
return { evid: 801, src: 155, endpoint: "", params };
|
|
490
|
-
}
|
|
491
|
-
exports.apiBlockGaRule = apiBlockGaRule;
|
|
492
|
-
function headlessAddWixToYourProjectDialogIsShown(params) {
|
|
493
|
-
return { evid: 13, src: 160, endpoint: "", params };
|
|
494
|
-
}
|
|
495
|
-
exports.headlessAddWixToYourProjectDialogIsShown = headlessAddWixToYourProjectDialogIsShown;
|
|
496
|
-
function headlessOAuthInstalled(params) {
|
|
497
|
-
return { evid: 15, src: 160, endpoint: "", params };
|
|
498
|
-
}
|
|
499
|
-
exports.headlessOAuthInstalled = headlessOAuthInstalled;
|
|
500
|
-
function headlessAddWixToYourProjectDialogClick(params) {
|
|
501
|
-
return { evid: 16, src: 160, endpoint: "", params };
|
|
502
|
-
}
|
|
503
|
-
exports.headlessAddWixToYourProjectDialogClick = headlessAddWixToYourProjectDialogClick;
|
|
504
|
-
function headlessDeployThisTemplatePageIsShown(params) {
|
|
505
|
-
return { evid: 17, src: 160, endpoint: "", params };
|
|
506
|
-
}
|
|
507
|
-
exports.headlessDeployThisTemplatePageIsShown = headlessDeployThisTemplatePageIsShown;
|
|
508
|
-
function headlessDeployThisTemplatePageClick(params) {
|
|
509
|
-
return { evid: 18, src: 160, endpoint: "", params };
|
|
510
|
-
}
|
|
511
|
-
exports.headlessDeployThisTemplatePageClick = headlessDeployThisTemplatePageClick;
|
|
512
|
-
function headlessResumeSetUpDialogIsShown(params) {
|
|
513
|
-
return { evid: 19, src: 160, endpoint: "", params };
|
|
514
|
-
}
|
|
515
|
-
exports.headlessResumeSetUpDialogIsShown = headlessResumeSetUpDialogIsShown;
|
|
516
|
-
function copyOfHeadlessResumeSetUpDialogClick(params) {
|
|
517
|
-
return { evid: 20, src: 160, endpoint: "", params };
|
|
518
|
-
}
|
|
519
|
-
exports.copyOfHeadlessResumeSetUpDialogClick = copyOfHeadlessResumeSetUpDialogClick;
|
|
520
|
-
function testSrc184Evid9999(params) {
|
|
521
|
-
return { evid: 9999, src: 184, endpoint: "", params };
|
|
522
|
-
}
|
|
523
|
-
exports.testSrc184Evid9999 = testSrc184Evid9999;
|
|
524
|
-
function wixMcpRequestSrc39Evid16072(params) {
|
|
525
|
-
return { evid: 1607, src: 39, endpoint: "", params };
|
|
526
|
-
}
|
|
527
|
-
exports.wixMcpRequestSrc39Evid1607 = wixMcpRequestSrc39Evid16072;
|
|
528
|
-
function webhooksInDcCodeExampleWindowClicks(params) {
|
|
529
|
-
return { evid: 11905, src: 96, endpoint: "", params };
|
|
530
|
-
}
|
|
531
|
-
exports.webhooksInDcCodeExampleWindowClicks = webhooksInDcCodeExampleWindowClicks;
|
|
532
|
-
function webhooksInDcTriggeredTestModalClicks(params) {
|
|
533
|
-
return { evid: 11906, src: 96, endpoint: "", params };
|
|
534
|
-
}
|
|
535
|
-
exports.webhooksInDcTriggeredTestModalClicks = webhooksInDcTriggeredTestModalClicks;
|
|
536
|
-
function webhooksInDcCodeExampleWindowScroll(params) {
|
|
537
|
-
return { evid: 11907, src: 96, endpoint: "", params };
|
|
538
|
-
}
|
|
539
|
-
exports.webhooksInDcCodeExampleWindowScroll = webhooksInDcCodeExampleWindowScroll;
|
|
540
|
-
function webhooksInDcCreateEventPageClicks(params) {
|
|
541
|
-
return { evid: 11908, src: 96, endpoint: "", params };
|
|
542
|
-
}
|
|
543
|
-
exports.webhooksInDcCreateEventPageClicks = webhooksInDcCreateEventPageClicks;
|
|
544
|
-
function webhooksInDcMainPageClicks(params) {
|
|
545
|
-
return { evid: 12301, src: 96, endpoint: "", params };
|
|
546
|
-
}
|
|
547
|
-
exports.webhooksInDcMainPageClicks = webhooksInDcMainPageClicks;
|
|
548
|
-
function devCenterWebhookSentTriggered(params) {
|
|
549
|
-
return { evid: 1300, src: 96, endpoint: "", params };
|
|
550
|
-
}
|
|
551
|
-
exports.devCenterWebhookSentTriggered = devCenterWebhookSentTriggered;
|
|
552
|
-
function spiExternalInvocationSrc96Evid199(params) {
|
|
553
|
-
return { evid: 199, src: 96, endpoint: "", params };
|
|
554
|
-
}
|
|
555
|
-
exports.spiExternalInvocationSrc96Evid199 = spiExternalInvocationSrc96Evid199;
|
|
556
|
-
}
|
|
557
|
-
});
|
|
558
|
-
|
|
559
|
-
// ../../node_modules/@wix/panorama-client-node/node_modules/@wix/panorama-common-shared/dist/cjs/types/enum-types.js
|
|
48
|
+
// ../../node_modules/@wix/panorama-common-shared/dist/cjs/types/enum-types.js
|
|
560
49
|
var require_enum_types = __commonJS({
|
|
561
|
-
"../../node_modules/@wix/panorama-
|
|
50
|
+
"../../node_modules/@wix/panorama-common-shared/dist/cjs/types/enum-types.js"(exports) {
|
|
562
51
|
"use strict";
|
|
563
52
|
exports.__esModule = true;
|
|
564
53
|
exports.TransactionAction = exports.Platform = exports.LogLevel = exports.InternalTransactions = exports.ErrorSeverity = exports.AlertType = exports.AlertStatus = void 0;
|
|
565
|
-
var AlertType = exports.AlertType = /* @__PURE__ */ function(AlertType2) {
|
|
54
|
+
var AlertType = exports.AlertType = /* @__PURE__ */ (function(AlertType2) {
|
|
566
55
|
AlertType2["SuccessRate"] = "SuccessRate";
|
|
567
56
|
AlertType2["SuccessRateQuality"] = "SuccessRateQuality";
|
|
568
57
|
AlertType2["Duration"] = "Duration";
|
|
569
58
|
AlertType2["ErrorRate"] = "ErrorRate";
|
|
570
59
|
return AlertType2;
|
|
571
|
-
}({});
|
|
572
|
-
var AlertStatus = exports.AlertStatus = /* @__PURE__ */ function(AlertStatus2) {
|
|
60
|
+
})({});
|
|
61
|
+
var AlertStatus = exports.AlertStatus = /* @__PURE__ */ (function(AlertStatus2) {
|
|
573
62
|
AlertStatus2["Alerting"] = "alerting";
|
|
574
63
|
AlertStatus2["Ok"] = "ok";
|
|
575
64
|
return AlertStatus2;
|
|
576
|
-
}({});
|
|
577
|
-
var LogLevel = exports.LogLevel = /* @__PURE__ */ function(LogLevel2) {
|
|
65
|
+
})({});
|
|
66
|
+
var LogLevel = exports.LogLevel = /* @__PURE__ */ (function(LogLevel2) {
|
|
578
67
|
LogLevel2["Info"] = "INFO";
|
|
579
68
|
LogLevel2["Warn"] = "WARN";
|
|
580
69
|
LogLevel2["Error"] = "ERROR";
|
|
581
70
|
LogLevel2["Debug"] = "DEBUG";
|
|
582
71
|
return LogLevel2;
|
|
583
|
-
}({});
|
|
584
|
-
var TransactionAction = exports.TransactionAction = /* @__PURE__ */ function(TransactionAction2) {
|
|
72
|
+
})({});
|
|
73
|
+
var TransactionAction = exports.TransactionAction = /* @__PURE__ */ (function(TransactionAction2) {
|
|
585
74
|
TransactionAction2["Start"] = "START";
|
|
586
75
|
TransactionAction2["Finish"] = "FINISH";
|
|
587
76
|
return TransactionAction2;
|
|
588
|
-
}({});
|
|
77
|
+
})({});
|
|
589
78
|
var InternalTransactions = exports.InternalTransactions = {
|
|
590
79
|
ComponentLoad: "PANORAMA_COMPONENT_LOAD",
|
|
591
80
|
ComponentPhase: "PANORAMA_COMPONENT_PHASE"
|
|
592
81
|
};
|
|
593
|
-
var Platform = exports.Platform = /* @__PURE__ */ function(Platform2) {
|
|
82
|
+
var Platform = exports.Platform = /* @__PURE__ */ (function(Platform2) {
|
|
594
83
|
Platform2["Standalone"] = "standalone";
|
|
595
84
|
Platform2["BusinessManager"] = "business-manager";
|
|
596
85
|
Platform2["Viewer"] = "viewer";
|
|
@@ -598,9 +87,10 @@ var require_enum_types = __commonJS({
|
|
|
598
87
|
Platform2["EditorSettings"] = "editor:settings";
|
|
599
88
|
Platform2["Mobile"] = "mobile";
|
|
600
89
|
Platform2["Standards"] = "standards";
|
|
90
|
+
Platform2["DevPortal"] = "dev-portal";
|
|
601
91
|
return Platform2;
|
|
602
|
-
}({});
|
|
603
|
-
var ErrorSeverity = exports.ErrorSeverity = /* @__PURE__ */ function(ErrorSeverity2) {
|
|
92
|
+
})({});
|
|
93
|
+
var ErrorSeverity = exports.ErrorSeverity = /* @__PURE__ */ (function(ErrorSeverity2) {
|
|
604
94
|
ErrorSeverity2["Fatal"] = "fatal";
|
|
605
95
|
ErrorSeverity2["Error"] = "error";
|
|
606
96
|
ErrorSeverity2["Warning"] = "warning";
|
|
@@ -609,29 +99,29 @@ var require_enum_types = __commonJS({
|
|
|
609
99
|
ErrorSeverity2["Debug"] = "debug";
|
|
610
100
|
ErrorSeverity2["Critical"] = "critical";
|
|
611
101
|
return ErrorSeverity2;
|
|
612
|
-
}({});
|
|
102
|
+
})({});
|
|
613
103
|
}
|
|
614
104
|
});
|
|
615
105
|
|
|
616
|
-
// ../../node_modules/@wix/panorama-
|
|
106
|
+
// ../../node_modules/@wix/panorama-common-shared/dist/cjs/types/data-types.js
|
|
617
107
|
var require_data_types = __commonJS({
|
|
618
|
-
"../../node_modules/@wix/panorama-
|
|
108
|
+
"../../node_modules/@wix/panorama-common-shared/dist/cjs/types/data-types.js"(exports) {
|
|
619
109
|
"use strict";
|
|
620
110
|
exports.__esModule = true;
|
|
621
111
|
}
|
|
622
112
|
});
|
|
623
113
|
|
|
624
|
-
// ../../node_modules/@wix/panorama-
|
|
114
|
+
// ../../node_modules/@wix/panorama-common-shared/dist/cjs/types/interface-types.js
|
|
625
115
|
var require_interface_types = __commonJS({
|
|
626
|
-
"../../node_modules/@wix/panorama-
|
|
116
|
+
"../../node_modules/@wix/panorama-common-shared/dist/cjs/types/interface-types.js"(exports) {
|
|
627
117
|
"use strict";
|
|
628
118
|
exports.__esModule = true;
|
|
629
119
|
}
|
|
630
120
|
});
|
|
631
121
|
|
|
632
|
-
// ../../node_modules/@wix/panorama-
|
|
122
|
+
// ../../node_modules/@wix/panorama-common-shared/dist/cjs/types/index.js
|
|
633
123
|
var require_types = __commonJS({
|
|
634
|
-
"../../node_modules/@wix/panorama-
|
|
124
|
+
"../../node_modules/@wix/panorama-common-shared/dist/cjs/types/index.js"(exports) {
|
|
635
125
|
"use strict";
|
|
636
126
|
exports.__esModule = true;
|
|
637
127
|
var _enumTypes = require_enum_types();
|
|
@@ -729,9 +219,9 @@ var require_defineProperty = __commonJS({
|
|
|
729
219
|
}
|
|
730
220
|
});
|
|
731
221
|
|
|
732
|
-
// ../../node_modules/@wix/panorama-client
|
|
222
|
+
// ../../node_modules/@wix/panorama-client/node_modules/@wix/panorama-common/dist/cjs/duration-tracker/duration-tracker.js
|
|
733
223
|
var require_duration_tracker = __commonJS({
|
|
734
|
-
"../../node_modules/@wix/panorama-client
|
|
224
|
+
"../../node_modules/@wix/panorama-client/node_modules/@wix/panorama-common/dist/cjs/duration-tracker/duration-tracker.js"(exports) {
|
|
735
225
|
"use strict";
|
|
736
226
|
var _interopRequireDefault = require_interopRequireDefault();
|
|
737
227
|
exports.__esModule = true;
|
|
@@ -776,9 +266,9 @@ var require_duration_tracker = __commonJS({
|
|
|
776
266
|
}
|
|
777
267
|
});
|
|
778
268
|
|
|
779
|
-
// ../../node_modules/@wix/panorama-client
|
|
269
|
+
// ../../node_modules/@wix/panorama-client/node_modules/@wix/panorama-common/dist/cjs/duration-tracker/index.js
|
|
780
270
|
var require_duration_tracker2 = __commonJS({
|
|
781
|
-
"../../node_modules/@wix/panorama-client
|
|
271
|
+
"../../node_modules/@wix/panorama-client/node_modules/@wix/panorama-common/dist/cjs/duration-tracker/index.js"(exports) {
|
|
782
272
|
"use strict";
|
|
783
273
|
exports.__esModule = true;
|
|
784
274
|
exports.createDurationTracker = void 0;
|
|
@@ -787,9 +277,9 @@ var require_duration_tracker2 = __commonJS({
|
|
|
787
277
|
}
|
|
788
278
|
});
|
|
789
279
|
|
|
790
|
-
// ../../node_modules/@wix/panorama-client
|
|
280
|
+
// ../../node_modules/@wix/panorama-client/node_modules/@wix/panorama-common/dist/cjs/global-config/global-config.js
|
|
791
281
|
var require_global_config = __commonJS({
|
|
792
|
-
"../../node_modules/@wix/panorama-client
|
|
282
|
+
"../../node_modules/@wix/panorama-client/node_modules/@wix/panorama-common/dist/cjs/global-config/global-config.js"(exports) {
|
|
793
283
|
"use strict";
|
|
794
284
|
var _interopRequireDefault = require_interopRequireDefault();
|
|
795
285
|
exports.__esModule = true;
|
|
@@ -847,9 +337,9 @@ var require_global_config = __commonJS({
|
|
|
847
337
|
}
|
|
848
338
|
});
|
|
849
339
|
|
|
850
|
-
// ../../node_modules/@wix/panorama-client
|
|
340
|
+
// ../../node_modules/@wix/panorama-client/node_modules/@wix/panorama-common/dist/cjs/global-config/index.js
|
|
851
341
|
var require_global_config2 = __commonJS({
|
|
852
|
-
"../../node_modules/@wix/panorama-client
|
|
342
|
+
"../../node_modules/@wix/panorama-client/node_modules/@wix/panorama-common/dist/cjs/global-config/index.js"(exports) {
|
|
853
343
|
"use strict";
|
|
854
344
|
exports.__esModule = true;
|
|
855
345
|
exports.createGlobalConfig = void 0;
|
|
@@ -858,9 +348,9 @@ var require_global_config2 = __commonJS({
|
|
|
858
348
|
}
|
|
859
349
|
});
|
|
860
350
|
|
|
861
|
-
// ../../node_modules/@wix/panorama-client
|
|
351
|
+
// ../../node_modules/@wix/panorama-client/node_modules/@wix/panorama-common/dist/cjs/utils/class-utils.js
|
|
862
352
|
var require_class_utils = __commonJS({
|
|
863
|
-
"../../node_modules/@wix/panorama-client
|
|
353
|
+
"../../node_modules/@wix/panorama-client/node_modules/@wix/panorama-common/dist/cjs/utils/class-utils.js"(exports) {
|
|
864
354
|
"use strict";
|
|
865
355
|
exports.__esModule = true;
|
|
866
356
|
exports.bindPrototypeMethodsToSelf = void 0;
|
|
@@ -878,9 +368,9 @@ var require_class_utils = __commonJS({
|
|
|
878
368
|
}
|
|
879
369
|
});
|
|
880
370
|
|
|
881
|
-
// ../../node_modules/@wix/panorama-client
|
|
371
|
+
// ../../node_modules/@wix/panorama-client/node_modules/@wix/panorama-common/dist/cjs/utils/index.js
|
|
882
372
|
var require_utils = __commonJS({
|
|
883
|
-
"../../node_modules/@wix/panorama-client
|
|
373
|
+
"../../node_modules/@wix/panorama-client/node_modules/@wix/panorama-common/dist/cjs/utils/index.js"(exports) {
|
|
884
374
|
"use strict";
|
|
885
375
|
exports.__esModule = true;
|
|
886
376
|
var _classUtils = require_class_utils();
|
|
@@ -892,9 +382,9 @@ var require_utils = __commonJS({
|
|
|
892
382
|
}
|
|
893
383
|
});
|
|
894
384
|
|
|
895
|
-
// ../../node_modules/@wix/panorama-client
|
|
385
|
+
// ../../node_modules/@wix/panorama-client/dist/cjs/utils/general-utils.js
|
|
896
386
|
var require_general_utils = __commonJS({
|
|
897
|
-
"../../node_modules/@wix/panorama-client
|
|
387
|
+
"../../node_modules/@wix/panorama-client/dist/cjs/utils/general-utils.js"(exports) {
|
|
898
388
|
"use strict";
|
|
899
389
|
exports.__esModule = true;
|
|
900
390
|
exports.union = exports.last = exports.defaults = exports.deepDefaults = void 0;
|
|
@@ -932,9 +422,9 @@ var require_general_utils = __commonJS({
|
|
|
932
422
|
}
|
|
933
423
|
});
|
|
934
424
|
|
|
935
|
-
// ../../node_modules/@wix/panorama-client
|
|
425
|
+
// ../../node_modules/@wix/panorama-client/dist/cjs/panorama-error-monitor.js
|
|
936
426
|
var require_panorama_error_monitor = __commonJS({
|
|
937
|
-
"../../node_modules/@wix/panorama-client
|
|
427
|
+
"../../node_modules/@wix/panorama-client/dist/cjs/panorama-error-monitor.js"(exports) {
|
|
938
428
|
"use strict";
|
|
939
429
|
exports.__esModule = true;
|
|
940
430
|
exports.PanoramaErrorMonitorImpl = void 0;
|
|
@@ -956,9 +446,9 @@ var require_panorama_error_monitor = __commonJS({
|
|
|
956
446
|
}
|
|
957
447
|
});
|
|
958
448
|
|
|
959
|
-
// ../../node_modules/@wix/panorama-client
|
|
449
|
+
// ../../node_modules/@wix/panorama-client/dist/cjs/panorama-logger.js
|
|
960
450
|
var require_panorama_logger = __commonJS({
|
|
961
|
-
"../../node_modules/@wix/panorama-client
|
|
451
|
+
"../../node_modules/@wix/panorama-client/dist/cjs/panorama-logger.js"(exports) {
|
|
962
452
|
"use strict";
|
|
963
453
|
exports.__esModule = true;
|
|
964
454
|
exports.PanoramaLoggerImpl = void 0;
|
|
@@ -986,9 +476,9 @@ var require_panorama_logger = __commonJS({
|
|
|
986
476
|
}
|
|
987
477
|
});
|
|
988
478
|
|
|
989
|
-
// ../../node_modules/@wix/panorama-
|
|
479
|
+
// ../../node_modules/@wix/panorama-common-shared/dist/cjs/utils/transaction-utils.js
|
|
990
480
|
var require_transaction_utils = __commonJS({
|
|
991
|
-
"../../node_modules/@wix/panorama-
|
|
481
|
+
"../../node_modules/@wix/panorama-common-shared/dist/cjs/utils/transaction-utils.js"(exports) {
|
|
992
482
|
"use strict";
|
|
993
483
|
exports.__esModule = true;
|
|
994
484
|
exports.isCustomTransactionName = void 0;
|
|
@@ -998,9 +488,9 @@ var require_transaction_utils = __commonJS({
|
|
|
998
488
|
}
|
|
999
489
|
});
|
|
1000
490
|
|
|
1001
|
-
// ../../node_modules/@wix/panorama-
|
|
491
|
+
// ../../node_modules/@wix/panorama-common-shared/dist/cjs/utils/platform-utils.js
|
|
1002
492
|
var require_platform_utils = __commonJS({
|
|
1003
|
-
"../../node_modules/@wix/panorama-
|
|
493
|
+
"../../node_modules/@wix/panorama-common-shared/dist/cjs/utils/platform-utils.js"(exports) {
|
|
1004
494
|
"use strict";
|
|
1005
495
|
exports.__esModule = true;
|
|
1006
496
|
exports.isSsrEnabledInPlatform = void 0;
|
|
@@ -1010,9 +500,9 @@ var require_platform_utils = __commonJS({
|
|
|
1010
500
|
}
|
|
1011
501
|
});
|
|
1012
502
|
|
|
1013
|
-
// ../../node_modules/@wix/panorama-
|
|
503
|
+
// ../../node_modules/@wix/panorama-common-shared/dist/cjs/utils/guid.js
|
|
1014
504
|
var require_guid = __commonJS({
|
|
1015
|
-
"../../node_modules/@wix/panorama-
|
|
505
|
+
"../../node_modules/@wix/panorama-common-shared/dist/cjs/utils/guid.js"(exports) {
|
|
1016
506
|
"use strict";
|
|
1017
507
|
exports.__esModule = true;
|
|
1018
508
|
exports.generateGuidRegex = void 0;
|
|
@@ -1021,9 +511,9 @@ var require_guid = __commonJS({
|
|
|
1021
511
|
}
|
|
1022
512
|
});
|
|
1023
513
|
|
|
1024
|
-
// ../../node_modules/@wix/panorama-
|
|
514
|
+
// ../../node_modules/@wix/panorama-common-shared/dist/cjs/utils/index.js
|
|
1025
515
|
var require_utils2 = __commonJS({
|
|
1026
|
-
"../../node_modules/@wix/panorama-
|
|
516
|
+
"../../node_modules/@wix/panorama-common-shared/dist/cjs/utils/index.js"(exports) {
|
|
1027
517
|
"use strict";
|
|
1028
518
|
exports.__esModule = true;
|
|
1029
519
|
var _transactionUtils = require_transaction_utils();
|
|
@@ -1047,9 +537,9 @@ var require_utils2 = __commonJS({
|
|
|
1047
537
|
}
|
|
1048
538
|
});
|
|
1049
539
|
|
|
1050
|
-
// ../../node_modules/@wix/panorama-client
|
|
540
|
+
// ../../node_modules/@wix/panorama-client/dist/cjs/panorama-transaction.js
|
|
1051
541
|
var require_panorama_transaction = __commonJS({
|
|
1052
|
-
"../../node_modules/@wix/panorama-client
|
|
542
|
+
"../../node_modules/@wix/panorama-client/dist/cjs/panorama-transaction.js"(exports) {
|
|
1053
543
|
"use strict";
|
|
1054
544
|
exports.__esModule = true;
|
|
1055
545
|
exports.PanoramaTransactionImpl = void 0;
|
|
@@ -1078,9 +568,9 @@ var require_panorama_transaction = __commonJS({
|
|
|
1078
568
|
}
|
|
1079
569
|
});
|
|
1080
570
|
|
|
1081
|
-
// ../../node_modules/@wix/panorama-client
|
|
571
|
+
// ../../node_modules/@wix/panorama-client/dist/cjs/panorama-client-component.js
|
|
1082
572
|
var require_panorama_client_component = __commonJS({
|
|
1083
|
-
"../../node_modules/@wix/panorama-client
|
|
573
|
+
"../../node_modules/@wix/panorama-client/dist/cjs/panorama-client-component.js"(exports) {
|
|
1084
574
|
"use strict";
|
|
1085
575
|
var _interopRequireDefault = require_interopRequireDefault();
|
|
1086
576
|
exports.__esModule = true;
|
|
@@ -1112,15 +602,15 @@ var require_panorama_client_component = __commonJS({
|
|
|
1112
602
|
}
|
|
1113
603
|
});
|
|
1114
604
|
|
|
1115
|
-
// ../../node_modules/@wix/panorama-client
|
|
605
|
+
// ../../node_modules/@wix/panorama-client/dist/cjs/plugins/hooks-manager.js
|
|
1116
606
|
var require_hooks_manager = __commonJS({
|
|
1117
|
-
"../../node_modules/@wix/panorama-client
|
|
607
|
+
"../../node_modules/@wix/panorama-client/dist/cjs/plugins/hooks-manager.js"(exports) {
|
|
1118
608
|
"use strict";
|
|
1119
609
|
var _interopRequireDefault = require_interopRequireDefault();
|
|
1120
610
|
exports.__esModule = true;
|
|
1121
611
|
exports.HooksManager = exports.Hook = void 0;
|
|
1122
612
|
var _defineProperty2 = _interopRequireDefault(require_defineProperty());
|
|
1123
|
-
var Hook = exports.Hook = /* @__PURE__ */ function(Hook2) {
|
|
613
|
+
var Hook = exports.Hook = /* @__PURE__ */ (function(Hook2) {
|
|
1124
614
|
Hook2[Hook2["afterCreateClientForComponent"] = 0] = "afterCreateClientForComponent";
|
|
1125
615
|
Hook2[Hook2["beforeReport"] = 1] = "beforeReport";
|
|
1126
616
|
Hook2[Hook2["beforeReportTransactionStart"] = 2] = "beforeReportTransactionStart";
|
|
@@ -1139,7 +629,7 @@ var require_hooks_manager = __commonJS({
|
|
|
1139
629
|
Hook2[Hook2["afterReportLog"] = 15] = "afterReportLog";
|
|
1140
630
|
Hook2[Hook2["beforeUnhandledError"] = 16] = "beforeUnhandledError";
|
|
1141
631
|
return Hook2;
|
|
1142
|
-
}({});
|
|
632
|
+
})({});
|
|
1143
633
|
var HooksManager = class {
|
|
1144
634
|
constructor() {
|
|
1145
635
|
(0, _defineProperty2.default)(this, "subscribers", {});
|
|
@@ -1165,9 +655,9 @@ var require_hooks_manager = __commonJS({
|
|
|
1165
655
|
}
|
|
1166
656
|
});
|
|
1167
657
|
|
|
1168
|
-
// ../../node_modules/@wix/panorama-client
|
|
658
|
+
// ../../node_modules/@wix/panorama-client/dist/cjs/panorama-phase.js
|
|
1169
659
|
var require_panorama_phase = __commonJS({
|
|
1170
|
-
"../../node_modules/@wix/panorama-client
|
|
660
|
+
"../../node_modules/@wix/panorama-client/dist/cjs/panorama-phase.js"(exports) {
|
|
1171
661
|
"use strict";
|
|
1172
662
|
exports.__esModule = true;
|
|
1173
663
|
exports.PanoramaPhaseImpl = void 0;
|
|
@@ -1190,9 +680,9 @@ var require_panorama_phase = __commonJS({
|
|
|
1190
680
|
}
|
|
1191
681
|
});
|
|
1192
682
|
|
|
1193
|
-
// ../../node_modules/@wix/panorama-client
|
|
683
|
+
// ../../node_modules/@wix/panorama-client/dist/cjs/panorama-client.js
|
|
1194
684
|
var require_panorama_client = __commonJS({
|
|
1195
|
-
"../../node_modules/@wix/panorama-client
|
|
685
|
+
"../../node_modules/@wix/panorama-client/dist/cjs/panorama-client.js"(exports) {
|
|
1196
686
|
"use strict";
|
|
1197
687
|
var _interopRequireDefault = require_interopRequireDefault();
|
|
1198
688
|
exports.__esModule = true;
|
|
@@ -1256,9 +746,9 @@ var require_panorama_client = __commonJS({
|
|
|
1256
746
|
}
|
|
1257
747
|
});
|
|
1258
748
|
|
|
1259
|
-
// ../../node_modules/@wix/panorama-client
|
|
749
|
+
// ../../node_modules/@wix/panorama-client/dist/cjs/utils/error-utils.js
|
|
1260
750
|
var require_error_utils = __commonJS({
|
|
1261
|
-
"../../node_modules/@wix/panorama-client
|
|
751
|
+
"../../node_modules/@wix/panorama-client/dist/cjs/utils/error-utils.js"(exports) {
|
|
1262
752
|
"use strict";
|
|
1263
753
|
exports.__esModule = true;
|
|
1264
754
|
exports.normalizeError = exports.extractWixHttpErrorDetails = exports.createUndedupableError = void 0;
|
|
@@ -1307,9 +797,9 @@ var require_error_utils = __commonJS({
|
|
|
1307
797
|
}
|
|
1308
798
|
});
|
|
1309
799
|
|
|
1310
|
-
// ../../node_modules/@wix/panorama-client
|
|
800
|
+
// ../../node_modules/@wix/panorama-client/dist/cjs/constants.js
|
|
1311
801
|
var require_constants = __commonJS({
|
|
1312
|
-
"../../node_modules/@wix/panorama-client
|
|
802
|
+
"../../node_modules/@wix/panorama-client/dist/cjs/constants.js"(exports) {
|
|
1313
803
|
"use strict";
|
|
1314
804
|
exports.__esModule = true;
|
|
1315
805
|
exports.MAX_STACK_TRACE_SIZE_BYTES = exports.MAX_SESSION_TIME_MS = void 0;
|
|
@@ -1318,9 +808,9 @@ var require_constants = __commonJS({
|
|
|
1318
808
|
}
|
|
1319
809
|
});
|
|
1320
810
|
|
|
1321
|
-
// ../../node_modules/@wix/panorama-client
|
|
811
|
+
// ../../node_modules/@wix/panorama-client/dist/cjs/lib/payload-sanitizer.js
|
|
1322
812
|
var require_payload_sanitizer = __commonJS({
|
|
1323
|
-
"../../node_modules/@wix/panorama-client
|
|
813
|
+
"../../node_modules/@wix/panorama-client/dist/cjs/lib/payload-sanitizer.js"(exports) {
|
|
1324
814
|
"use strict";
|
|
1325
815
|
exports.__esModule = true;
|
|
1326
816
|
exports.sanitizePayload = void 0;
|
|
@@ -1350,9 +840,9 @@ var require_payload_sanitizer = __commonJS({
|
|
|
1350
840
|
}
|
|
1351
841
|
});
|
|
1352
842
|
|
|
1353
|
-
// ../../node_modules/@wix/panorama-client
|
|
843
|
+
// ../../node_modules/@wix/panorama-client/dist/cjs/lib/payload-builder.js
|
|
1354
844
|
var require_payload_builder = __commonJS({
|
|
1355
|
-
"../../node_modules/@wix/panorama-client
|
|
845
|
+
"../../node_modules/@wix/panorama-client/dist/cjs/lib/payload-builder.js"(exports) {
|
|
1356
846
|
"use strict";
|
|
1357
847
|
exports.__esModule = true;
|
|
1358
848
|
exports.buildTransactionPayload = exports.buildPhasePayload = exports.buildLoggerPayload = exports.buildErrorPayload = void 0;
|
|
@@ -1462,9 +952,9 @@ var require_payload_builder = __commonJS({
|
|
|
1462
952
|
}
|
|
1463
953
|
});
|
|
1464
954
|
|
|
1465
|
-
// ../../node_modules/@wix/panorama-client
|
|
955
|
+
// ../../node_modules/@wix/panorama-client/dist/cjs/panorama-client-base.js
|
|
1466
956
|
var require_panorama_client_base = __commonJS({
|
|
1467
|
-
"../../node_modules/@wix/panorama-client
|
|
957
|
+
"../../node_modules/@wix/panorama-client/dist/cjs/panorama-client-base.js"(exports) {
|
|
1468
958
|
"use strict";
|
|
1469
959
|
var _interopRequireDefault = require_interopRequireDefault();
|
|
1470
960
|
exports.__esModule = true;
|
|
@@ -1632,9 +1122,9 @@ var require_panorama_client_base = __commonJS({
|
|
|
1632
1122
|
}
|
|
1633
1123
|
});
|
|
1634
1124
|
|
|
1635
|
-
// ../../node_modules/@wix/panorama-client
|
|
1125
|
+
// ../../node_modules/@wix/panorama-client/dist/cjs/lib/scope.js
|
|
1636
1126
|
var require_scope = __commonJS({
|
|
1637
|
-
"../../node_modules/@wix/panorama-client
|
|
1127
|
+
"../../node_modules/@wix/panorama-client/dist/cjs/lib/scope.js"(exports) {
|
|
1638
1128
|
"use strict";
|
|
1639
1129
|
var _interopRequireDefault = require_interopRequireDefault();
|
|
1640
1130
|
exports.__esModule = true;
|
|
@@ -1666,9 +1156,9 @@ var require_scope = __commonJS({
|
|
|
1666
1156
|
}
|
|
1667
1157
|
});
|
|
1668
1158
|
|
|
1669
|
-
// ../../node_modules/@wix/panorama-client
|
|
1159
|
+
// ../../node_modules/@wix/panorama-client/dist/cjs/panorama-client-factory.js
|
|
1670
1160
|
var require_panorama_client_factory = __commonJS({
|
|
1671
|
-
"../../node_modules/@wix/panorama-client
|
|
1161
|
+
"../../node_modules/@wix/panorama-client/dist/cjs/panorama-client-factory.js"(exports) {
|
|
1672
1162
|
"use strict";
|
|
1673
1163
|
var _interopRequireDefault = require_interopRequireDefault();
|
|
1674
1164
|
exports.__esModule = true;
|
|
@@ -1744,31 +1234,31 @@ var require_panorama_client_factory = __commonJS({
|
|
|
1744
1234
|
}
|
|
1745
1235
|
});
|
|
1746
1236
|
|
|
1747
|
-
// ../../node_modules/@wix/panorama-client
|
|
1237
|
+
// ../../node_modules/@wix/panorama-client/dist/cjs/types.js
|
|
1748
1238
|
var require_types2 = __commonJS({
|
|
1749
|
-
"../../node_modules/@wix/panorama-client
|
|
1239
|
+
"../../node_modules/@wix/panorama-client/dist/cjs/types.js"(exports) {
|
|
1750
1240
|
"use strict";
|
|
1751
1241
|
exports.__esModule = true;
|
|
1752
1242
|
exports.StacktraceScriptType = exports.ExceptionType = void 0;
|
|
1753
|
-
var ExceptionType = exports.ExceptionType = /* @__PURE__ */ function(ExceptionType2) {
|
|
1243
|
+
var ExceptionType = exports.ExceptionType = /* @__PURE__ */ (function(ExceptionType2) {
|
|
1754
1244
|
ExceptionType2["HANDLED"] = "HANDLED";
|
|
1755
1245
|
ExceptionType2["UNHANDLED"] = "UNHANDLED";
|
|
1756
1246
|
return ExceptionType2;
|
|
1757
|
-
}({});
|
|
1758
|
-
var StacktraceScriptType = exports.StacktraceScriptType = /* @__PURE__ */ function(StacktraceScriptType2) {
|
|
1247
|
+
})({});
|
|
1248
|
+
var StacktraceScriptType = exports.StacktraceScriptType = /* @__PURE__ */ (function(StacktraceScriptType2) {
|
|
1759
1249
|
StacktraceScriptType2["WIX_SERVICE"] = "WIX_SERVICE";
|
|
1760
1250
|
StacktraceScriptType2["WIX_APP"] = "WIX_APP";
|
|
1761
1251
|
StacktraceScriptType2["WIX_CLI_APP"] = "WIX_CLI_APP";
|
|
1762
1252
|
StacktraceScriptType2["WIX_CHAT"] = "WIX_CHAT_WIDGET";
|
|
1763
1253
|
StacktraceScriptType2["BROWSER_EXTENSION"] = "BROWSER_EXTENSION";
|
|
1764
1254
|
return StacktraceScriptType2;
|
|
1765
|
-
}({});
|
|
1255
|
+
})({});
|
|
1766
1256
|
}
|
|
1767
1257
|
});
|
|
1768
1258
|
|
|
1769
|
-
// ../../node_modules/@wix/panorama-client
|
|
1259
|
+
// ../../node_modules/@wix/panorama-client/dist/cjs/index.js
|
|
1770
1260
|
var require_cjs = __commonJS({
|
|
1771
|
-
"../../node_modules/@wix/panorama-client
|
|
1261
|
+
"../../node_modules/@wix/panorama-client/dist/cjs/index.js"(exports) {
|
|
1772
1262
|
"use strict";
|
|
1773
1263
|
exports.__esModule = true;
|
|
1774
1264
|
exports.panoramaClient = exports.createGlobalConfig = exports.Platform = exports.ExceptionType = exports.ErrorSeverity = void 0;
|
|
@@ -1784,9 +1274,9 @@ var require_cjs = __commonJS({
|
|
|
1784
1274
|
}
|
|
1785
1275
|
});
|
|
1786
1276
|
|
|
1787
|
-
// ../../node_modules/@wix/panorama-
|
|
1277
|
+
// ../../node_modules/@wix/panorama-common-shared/dist/cjs/constants.js
|
|
1788
1278
|
var require_constants2 = __commonJS({
|
|
1789
|
-
"../../node_modules/@wix/panorama-
|
|
1279
|
+
"../../node_modules/@wix/panorama-common-shared/dist/cjs/constants.js"(exports) {
|
|
1790
1280
|
"use strict";
|
|
1791
1281
|
exports.__esModule = true;
|
|
1792
1282
|
exports.SUCCESS_RATE_GRAFANA_INVESTIGATION_DASHBOARD_URL = exports.PANORAMA_GRAFANA_BASE_URL = exports.PANORAMA_APP_DEF_ID = exports.DURATION_GRAFANA_INVESTIGATION_DASHBOARD_URL = exports.DEV_PORTAL_BASE_URL = exports.CLICKHOUSE_REPORT_URL = exports.CLICKHOUSE_BATCH_REPORT_URL = void 0;
|
|
@@ -1865,7 +1355,7 @@ var require_cjs2 = __commonJS({
|
|
|
1865
1355
|
"../../node_modules/@wix/panorama-client-node/dist/cjs/index.js"(exports) {
|
|
1866
1356
|
"use strict";
|
|
1867
1357
|
exports.__esModule = true;
|
|
1868
|
-
exports.panoramaClientFactory = exports.createGlobalConfig = exports.PanoramaPlatform = exports.PanoramaExceptionType = exports.PanoramaErrorSeverity = void 0;
|
|
1358
|
+
exports.panoramaClientFactory = exports.nodeReporter = exports.createGlobalConfig = exports.PanoramaPlatform = exports.PanoramaExceptionType = exports.PanoramaErrorSeverity = void 0;
|
|
1869
1359
|
var _panoramaClientNode = require_panorama_client_node();
|
|
1870
1360
|
exports.panoramaClientFactory = _panoramaClientNode.panoramaClientFactory;
|
|
1871
1361
|
var _panoramaClient = require_cjs();
|
|
@@ -1873,6 +1363,8 @@ var require_cjs2 = __commonJS({
|
|
|
1873
1363
|
exports.PanoramaExceptionType = _panoramaClient.ExceptionType;
|
|
1874
1364
|
exports.PanoramaErrorSeverity = _panoramaClient.ErrorSeverity;
|
|
1875
1365
|
exports.PanoramaPlatform = _panoramaClient.Platform;
|
|
1366
|
+
var _reporter = require_reporter();
|
|
1367
|
+
exports.nodeReporter = _reporter.nodeReporter;
|
|
1876
1368
|
}
|
|
1877
1369
|
});
|
|
1878
1370
|
|
|
@@ -2334,7 +1826,7 @@ var init_tslib_es6 = __esm({
|
|
|
2334
1826
|
};
|
|
2335
1827
|
return __assign.apply(this, arguments);
|
|
2336
1828
|
};
|
|
2337
|
-
__createBinding = Object.create ? function(o, m, k, k2) {
|
|
1829
|
+
__createBinding = Object.create ? (function(o, m, k, k2) {
|
|
2338
1830
|
if (k2 === void 0) k2 = k;
|
|
2339
1831
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
2340
1832
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
@@ -2343,13 +1835,13 @@ var init_tslib_es6 = __esm({
|
|
|
2343
1835
|
} };
|
|
2344
1836
|
}
|
|
2345
1837
|
Object.defineProperty(o, k2, desc);
|
|
2346
|
-
} : function(o, m, k, k2) {
|
|
1838
|
+
}) : (function(o, m, k, k2) {
|
|
2347
1839
|
if (k2 === void 0) k2 = k;
|
|
2348
1840
|
o[k2] = m[k];
|
|
2349
|
-
};
|
|
2350
|
-
__setModuleDefault = Object.create ? function(o, v) {
|
|
1841
|
+
});
|
|
1842
|
+
__setModuleDefault = Object.create ? (function(o, v) {
|
|
2351
1843
|
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
2352
|
-
} : function(o, v) {
|
|
1844
|
+
}) : function(o, v) {
|
|
2353
1845
|
o["default"] = v;
|
|
2354
1846
|
};
|
|
2355
1847
|
ownKeys = function(o) {
|
|
@@ -2428,7 +1920,7 @@ var require_assert = __commonJS({
|
|
|
2428
1920
|
subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });
|
|
2429
1921
|
if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
|
|
2430
1922
|
}
|
|
2431
|
-
var AssertionError = function(_Error) {
|
|
1923
|
+
var AssertionError = (function(_Error) {
|
|
2432
1924
|
_inherits(AssertionError2, _Error);
|
|
2433
1925
|
function AssertionError2(message) {
|
|
2434
1926
|
_classCallCheck(this, AssertionError2);
|
|
@@ -2437,7 +1929,7 @@ var require_assert = __commonJS({
|
|
|
2437
1929
|
return _this;
|
|
2438
1930
|
}
|
|
2439
1931
|
return AssertionError2;
|
|
2440
|
-
}(Error);
|
|
1932
|
+
})(Error);
|
|
2441
1933
|
function assertDefined(target, message) {
|
|
2442
1934
|
if (target === void 0) {
|
|
2443
1935
|
throw new AssertionError(message);
|
|
@@ -2609,7 +2101,7 @@ var require_throttle = __commonJS({
|
|
|
2609
2101
|
var require_batch_queue = __commonJS({
|
|
2610
2102
|
"../../node_modules/@wix/wix-bi-logger-client/dist/utils/batch-queue.js"(exports, module) {
|
|
2611
2103
|
"use strict";
|
|
2612
|
-
var _createClass = /* @__PURE__ */ function() {
|
|
2104
|
+
var _createClass = /* @__PURE__ */ (function() {
|
|
2613
2105
|
function defineProperties(target, props) {
|
|
2614
2106
|
for (var i = 0; i < props.length; i++) {
|
|
2615
2107
|
var descriptor = props[i];
|
|
@@ -2624,8 +2116,8 @@ var require_batch_queue = __commonJS({
|
|
|
2624
2116
|
if (staticProps) defineProperties(Constructor, staticProps);
|
|
2625
2117
|
return Constructor;
|
|
2626
2118
|
};
|
|
2627
|
-
}();
|
|
2628
|
-
var _slicedToArray = /* @__PURE__ */ function() {
|
|
2119
|
+
})();
|
|
2120
|
+
var _slicedToArray = /* @__PURE__ */ (function() {
|
|
2629
2121
|
function sliceIterator(arr, i) {
|
|
2630
2122
|
var _arr = [];
|
|
2631
2123
|
var _n = true;
|
|
@@ -2657,7 +2149,7 @@ var require_batch_queue = __commonJS({
|
|
|
2657
2149
|
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
2658
2150
|
}
|
|
2659
2151
|
};
|
|
2660
|
-
}();
|
|
2152
|
+
})();
|
|
2661
2153
|
var _extends = Object.assign || function(target) {
|
|
2662
2154
|
for (var i = 1; i < arguments.length; i++) {
|
|
2663
2155
|
var source = arguments[i];
|
|
@@ -2725,7 +2217,7 @@ var require_batch_queue = __commonJS({
|
|
|
2725
2217
|
g: globalFields
|
|
2726
2218
|
});
|
|
2727
2219
|
};
|
|
2728
|
-
var BatchQueue = function() {
|
|
2220
|
+
var BatchQueue = (function() {
|
|
2729
2221
|
function BatchQueue2() {
|
|
2730
2222
|
_classCallCheck(this, BatchQueue2);
|
|
2731
2223
|
this._initilized = false;
|
|
@@ -2788,7 +2280,7 @@ var require_batch_queue = __commonJS({
|
|
|
2788
2280
|
}
|
|
2789
2281
|
}]);
|
|
2790
2282
|
return BatchQueue2;
|
|
2791
|
-
}();
|
|
2283
|
+
})();
|
|
2792
2284
|
module.exports = BatchQueue;
|
|
2793
2285
|
}
|
|
2794
2286
|
});
|
|
@@ -2840,7 +2332,7 @@ var require_bi_logger = __commonJS({
|
|
|
2840
2332
|
}
|
|
2841
2333
|
return target;
|
|
2842
2334
|
};
|
|
2843
|
-
var _createClass = /* @__PURE__ */ function() {
|
|
2335
|
+
var _createClass = /* @__PURE__ */ (function() {
|
|
2844
2336
|
function defineProperties(target, props) {
|
|
2845
2337
|
for (var i = 0; i < props.length; i++) {
|
|
2846
2338
|
var descriptor = props[i];
|
|
@@ -2855,7 +2347,7 @@ var require_bi_logger = __commonJS({
|
|
|
2855
2347
|
if (staticProps) defineProperties(Constructor, staticProps);
|
|
2856
2348
|
return Constructor;
|
|
2857
2349
|
};
|
|
2858
|
-
}();
|
|
2350
|
+
})();
|
|
2859
2351
|
function _objectWithoutProperties(obj, keys) {
|
|
2860
2352
|
var target = {};
|
|
2861
2353
|
for (var i in obj) {
|
|
@@ -2881,7 +2373,7 @@ var require_bi_logger = __commonJS({
|
|
|
2881
2373
|
var shouldMuteByCategory = _require2.shouldMuteByCategory;
|
|
2882
2374
|
var shouldMuteNonEssentials = _require2.shouldMuteNonEssentials;
|
|
2883
2375
|
var getPolicy = _require2.getPolicy;
|
|
2884
|
-
var BiLogger = function() {
|
|
2376
|
+
var BiLogger = (function() {
|
|
2885
2377
|
function BiLogger2(options, context) {
|
|
2886
2378
|
_classCallCheck(this, BiLogger2);
|
|
2887
2379
|
this._publishers = options.publishers;
|
|
@@ -3140,7 +2632,7 @@ var require_bi_logger = __commonJS({
|
|
|
3140
2632
|
}
|
|
3141
2633
|
}]);
|
|
3142
2634
|
return BiLogger2;
|
|
3143
|
-
}();
|
|
2635
|
+
})();
|
|
3144
2636
|
module.exports = BiLogger;
|
|
3145
2637
|
}
|
|
3146
2638
|
});
|
|
@@ -3149,7 +2641,7 @@ var require_bi_logger = __commonJS({
|
|
|
3149
2641
|
var require_bi_logger_manager = __commonJS({
|
|
3150
2642
|
"../../node_modules/@wix/wix-bi-logger-client/dist/bi-logger-manager.js"(exports, module) {
|
|
3151
2643
|
"use strict";
|
|
3152
|
-
var _createClass = /* @__PURE__ */ function() {
|
|
2644
|
+
var _createClass = /* @__PURE__ */ (function() {
|
|
3153
2645
|
function defineProperties(target, props) {
|
|
3154
2646
|
for (var i = 0; i < props.length; i++) {
|
|
3155
2647
|
var descriptor = props[i];
|
|
@@ -3164,14 +2656,14 @@ var require_bi_logger_manager = __commonJS({
|
|
|
3164
2656
|
if (staticProps) defineProperties(Constructor, staticProps);
|
|
3165
2657
|
return Constructor;
|
|
3166
2658
|
};
|
|
3167
|
-
}();
|
|
2659
|
+
})();
|
|
3168
2660
|
function _classCallCheck(instance, Constructor) {
|
|
3169
2661
|
if (!(instance instanceof Constructor)) {
|
|
3170
2662
|
throw new TypeError("Cannot call a class as a function");
|
|
3171
2663
|
}
|
|
3172
2664
|
}
|
|
3173
2665
|
var assert = require_assert();
|
|
3174
|
-
var BiLoggerManager = function() {
|
|
2666
|
+
var BiLoggerManager = (function() {
|
|
3175
2667
|
function BiLoggerManager2() {
|
|
3176
2668
|
_classCallCheck(this, BiLoggerManager2);
|
|
3177
2669
|
this.reset();
|
|
@@ -3204,7 +2696,7 @@ var require_bi_logger_manager = __commonJS({
|
|
|
3204
2696
|
}
|
|
3205
2697
|
}]);
|
|
3206
2698
|
return BiLoggerManager2;
|
|
3207
|
-
}();
|
|
2699
|
+
})();
|
|
3208
2700
|
module.exports = {
|
|
3209
2701
|
manager: new BiLoggerManager(),
|
|
3210
2702
|
BiLoggerManager
|
|
@@ -3221,7 +2713,7 @@ var require_bi_logger_factory = __commonJS({
|
|
|
3221
2713
|
} : function(obj) {
|
|
3222
2714
|
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
3223
2715
|
};
|
|
3224
|
-
var _createClass = /* @__PURE__ */ function() {
|
|
2716
|
+
var _createClass = /* @__PURE__ */ (function() {
|
|
3225
2717
|
function defineProperties(target, props) {
|
|
3226
2718
|
for (var i = 0; i < props.length; i++) {
|
|
3227
2719
|
var descriptor = props[i];
|
|
@@ -3236,7 +2728,7 @@ var require_bi_logger_factory = __commonJS({
|
|
|
3236
2728
|
if (staticProps) defineProperties(Constructor, staticProps);
|
|
3237
2729
|
return Constructor;
|
|
3238
2730
|
};
|
|
3239
|
-
}();
|
|
2731
|
+
})();
|
|
3240
2732
|
function _classCallCheck(instance, Constructor) {
|
|
3241
2733
|
if (!(instance instanceof Constructor)) {
|
|
3242
2734
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -3246,7 +2738,7 @@ var require_bi_logger_factory = __commonJS({
|
|
|
3246
2738
|
var BiLogger = require_bi_logger();
|
|
3247
2739
|
var biLoggerManager = require_bi_logger_manager();
|
|
3248
2740
|
var BatchQueue = require_batch_queue();
|
|
3249
|
-
var BiLoggerFactory = function() {
|
|
2741
|
+
var BiLoggerFactory = (function() {
|
|
3250
2742
|
function BiLoggerFactory2() {
|
|
3251
2743
|
_classCallCheck(this, BiLoggerFactory2);
|
|
3252
2744
|
this._publishers = [];
|
|
@@ -3407,7 +2899,7 @@ var require_bi_logger_factory = __commonJS({
|
|
|
3407
2899
|
}
|
|
3408
2900
|
}]);
|
|
3409
2901
|
return BiLoggerFactory2;
|
|
3410
|
-
}();
|
|
2902
|
+
})();
|
|
3411
2903
|
module.exports = BiLoggerFactory;
|
|
3412
2904
|
}
|
|
3413
2905
|
});
|
|
@@ -3823,13 +3315,13 @@ var require_domain = __commonJS({
|
|
|
3823
3315
|
"use strict";
|
|
3824
3316
|
exports.__esModule = true;
|
|
3825
3317
|
exports.Brand = void 0;
|
|
3826
|
-
var Brand = exports.Brand = /* @__PURE__ */ function(Brand2) {
|
|
3318
|
+
var Brand = exports.Brand = /* @__PURE__ */ (function(Brand2) {
|
|
3827
3319
|
Brand2[Brand2["wix"] = 0] = "wix";
|
|
3828
3320
|
Brand2[Brand2["editorx"] = 1] = "editorx";
|
|
3829
3321
|
Brand2[Brand2["dayful"] = 2] = "dayful";
|
|
3830
3322
|
Brand2[Brand2["studio"] = 3] = "studio";
|
|
3831
3323
|
return Brand2;
|
|
3832
|
-
}({});
|
|
3324
|
+
})({});
|
|
3833
3325
|
}
|
|
3834
3326
|
});
|
|
3835
3327
|
|
|
@@ -6157,7 +5649,7 @@ var require_cookies2 = __commonJS({
|
|
|
6157
5649
|
var utils = require_utils5();
|
|
6158
5650
|
module.exports = utils.isStandardBrowserEnv() ? (
|
|
6159
5651
|
// Standard browser envs support document.cookie
|
|
6160
|
-
/* @__PURE__ */ function standardBrowserEnv() {
|
|
5652
|
+
/* @__PURE__ */ (function standardBrowserEnv() {
|
|
6161
5653
|
return {
|
|
6162
5654
|
write: function write(name, value, expires, path3, domain, secure) {
|
|
6163
5655
|
var cookie = [];
|
|
@@ -6184,10 +5676,10 @@ var require_cookies2 = __commonJS({
|
|
|
6184
5676
|
this.write(name, "", Date.now() - 864e5);
|
|
6185
5677
|
}
|
|
6186
5678
|
};
|
|
6187
|
-
}()
|
|
5679
|
+
})()
|
|
6188
5680
|
) : (
|
|
6189
5681
|
// Non standard browser env (web workers, react-native) lack needed support.
|
|
6190
|
-
/* @__PURE__ */ function nonStandardBrowserEnv() {
|
|
5682
|
+
/* @__PURE__ */ (function nonStandardBrowserEnv() {
|
|
6191
5683
|
return {
|
|
6192
5684
|
write: function write() {
|
|
6193
5685
|
},
|
|
@@ -6197,7 +5689,7 @@ var require_cookies2 = __commonJS({
|
|
|
6197
5689
|
remove: function remove() {
|
|
6198
5690
|
}
|
|
6199
5691
|
};
|
|
6200
|
-
}()
|
|
5692
|
+
})()
|
|
6201
5693
|
);
|
|
6202
5694
|
}
|
|
6203
5695
|
});
|
|
@@ -6262,7 +5754,7 @@ var require_isURLSameOrigin = __commonJS({
|
|
|
6262
5754
|
module.exports = utils.isStandardBrowserEnv() ? (
|
|
6263
5755
|
// Standard browser envs have full support of the APIs needed to test
|
|
6264
5756
|
// whether the request URL is of the same origin as current location.
|
|
6265
|
-
function standardBrowserEnv() {
|
|
5757
|
+
(function standardBrowserEnv() {
|
|
6266
5758
|
var msie = /(msie|trident)/i.test(navigator.userAgent);
|
|
6267
5759
|
var urlParsingNode = document.createElement("a");
|
|
6268
5760
|
var originURL;
|
|
@@ -6289,14 +5781,14 @@ var require_isURLSameOrigin = __commonJS({
|
|
|
6289
5781
|
var parsed = utils.isString(requestURL) ? resolveURL(requestURL) : requestURL;
|
|
6290
5782
|
return parsed.protocol === originURL.protocol && parsed.host === originURL.host;
|
|
6291
5783
|
};
|
|
6292
|
-
}()
|
|
5784
|
+
})()
|
|
6293
5785
|
) : (
|
|
6294
5786
|
// Non standard browser envs (web workers, react-native) lack needed support.
|
|
6295
|
-
/* @__PURE__ */ function nonStandardBrowserEnv() {
|
|
5787
|
+
/* @__PURE__ */ (function nonStandardBrowserEnv() {
|
|
6296
5788
|
return function isURLSameOrigin() {
|
|
6297
5789
|
return true;
|
|
6298
5790
|
};
|
|
6299
|
-
}()
|
|
5791
|
+
})()
|
|
6300
5792
|
);
|
|
6301
5793
|
}
|
|
6302
5794
|
});
|
|
@@ -7401,7 +6893,7 @@ var require_src2 = __commonJS({
|
|
|
7401
6893
|
};
|
|
7402
6894
|
var StandaloneNodeLogger2 = (
|
|
7403
6895
|
/** @class */
|
|
7404
|
-
function() {
|
|
6896
|
+
(function() {
|
|
7405
6897
|
function StandaloneNodeLogger3() {
|
|
7406
6898
|
}
|
|
7407
6899
|
StandaloneNodeLogger3.prototype.factory = function(options) {
|
|
@@ -7443,7 +6935,7 @@ var require_src2 = __commonJS({
|
|
|
7443
6935
|
return biLoggerFactory;
|
|
7444
6936
|
};
|
|
7445
6937
|
return StandaloneNodeLogger3;
|
|
7446
|
-
}()
|
|
6938
|
+
})()
|
|
7447
6939
|
);
|
|
7448
6940
|
exports.StandaloneNodeLogger = StandaloneNodeLogger2;
|
|
7449
6941
|
exports.default = new StandaloneNodeLogger2();
|
|
@@ -7736,13 +7228,13 @@ var require_domain2 = __commonJS({
|
|
|
7736
7228
|
"use strict";
|
|
7737
7229
|
exports.__esModule = true;
|
|
7738
7230
|
exports.Brand = void 0;
|
|
7739
|
-
var Brand = exports.Brand = /* @__PURE__ */ function(Brand2) {
|
|
7231
|
+
var Brand = exports.Brand = /* @__PURE__ */ (function(Brand2) {
|
|
7740
7232
|
Brand2[Brand2["wix"] = 0] = "wix";
|
|
7741
7233
|
Brand2[Brand2["editorx"] = 1] = "editorx";
|
|
7742
7234
|
Brand2[Brand2["dayful"] = 2] = "dayful";
|
|
7743
7235
|
Brand2[Brand2["studio"] = 3] = "studio";
|
|
7744
7236
|
return Brand2;
|
|
7745
|
-
}({});
|
|
7237
|
+
})({});
|
|
7746
7238
|
}
|
|
7747
7239
|
});
|
|
7748
7240
|
|
|
@@ -8753,7 +8245,7 @@ var require_http2 = __commonJS({
|
|
|
8753
8245
|
var require_helpers = __commonJS({
|
|
8754
8246
|
"../../node_modules/agent-base/dist/helpers.js"(exports) {
|
|
8755
8247
|
"use strict";
|
|
8756
|
-
var __createBinding2 = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
8248
|
+
var __createBinding2 = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
8757
8249
|
if (k2 === void 0) k2 = k;
|
|
8758
8250
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8759
8251
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
@@ -8762,13 +8254,13 @@ var require_helpers = __commonJS({
|
|
|
8762
8254
|
} };
|
|
8763
8255
|
}
|
|
8764
8256
|
Object.defineProperty(o, k2, desc);
|
|
8765
|
-
} : function(o, m, k, k2) {
|
|
8257
|
+
}) : (function(o, m, k, k2) {
|
|
8766
8258
|
if (k2 === void 0) k2 = k;
|
|
8767
8259
|
o[k2] = m[k];
|
|
8768
|
-
});
|
|
8769
|
-
var __setModuleDefault2 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
|
|
8260
|
+
}));
|
|
8261
|
+
var __setModuleDefault2 = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
|
|
8770
8262
|
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
8771
|
-
} : function(o, v) {
|
|
8263
|
+
}) : function(o, v) {
|
|
8772
8264
|
o["default"] = v;
|
|
8773
8265
|
});
|
|
8774
8266
|
var __importStar2 = exports && exports.__importStar || function(mod) {
|
|
@@ -8823,7 +8315,7 @@ var require_helpers = __commonJS({
|
|
|
8823
8315
|
var require_dist2 = __commonJS({
|
|
8824
8316
|
"../../node_modules/agent-base/dist/index.js"(exports) {
|
|
8825
8317
|
"use strict";
|
|
8826
|
-
var __createBinding2 = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
8318
|
+
var __createBinding2 = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
8827
8319
|
if (k2 === void 0) k2 = k;
|
|
8828
8320
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8829
8321
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
@@ -8832,13 +8324,13 @@ var require_dist2 = __commonJS({
|
|
|
8832
8324
|
} };
|
|
8833
8325
|
}
|
|
8834
8326
|
Object.defineProperty(o, k2, desc);
|
|
8835
|
-
} : function(o, m, k, k2) {
|
|
8327
|
+
}) : (function(o, m, k, k2) {
|
|
8836
8328
|
if (k2 === void 0) k2 = k;
|
|
8837
8329
|
o[k2] = m[k];
|
|
8838
|
-
});
|
|
8839
|
-
var __setModuleDefault2 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
|
|
8330
|
+
}));
|
|
8331
|
+
var __setModuleDefault2 = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
|
|
8840
8332
|
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
8841
|
-
} : function(o, v) {
|
|
8333
|
+
}) : function(o, v) {
|
|
8842
8334
|
o["default"] = v;
|
|
8843
8335
|
});
|
|
8844
8336
|
var __importStar2 = exports && exports.__importStar || function(mod) {
|
|
@@ -8979,7 +8471,7 @@ var require_dist2 = __commonJS({
|
|
|
8979
8471
|
var require_dist3 = __commonJS({
|
|
8980
8472
|
"../../node_modules/http-proxy-agent/dist/index.js"(exports) {
|
|
8981
8473
|
"use strict";
|
|
8982
|
-
var __createBinding2 = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
8474
|
+
var __createBinding2 = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
8983
8475
|
if (k2 === void 0) k2 = k;
|
|
8984
8476
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8985
8477
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
@@ -8988,13 +8480,13 @@ var require_dist3 = __commonJS({
|
|
|
8988
8480
|
} };
|
|
8989
8481
|
}
|
|
8990
8482
|
Object.defineProperty(o, k2, desc);
|
|
8991
|
-
} : function(o, m, k, k2) {
|
|
8483
|
+
}) : (function(o, m, k, k2) {
|
|
8992
8484
|
if (k2 === void 0) k2 = k;
|
|
8993
8485
|
o[k2] = m[k];
|
|
8994
|
-
});
|
|
8995
|
-
var __setModuleDefault2 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
|
|
8486
|
+
}));
|
|
8487
|
+
var __setModuleDefault2 = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
|
|
8996
8488
|
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
8997
|
-
} : function(o, v) {
|
|
8489
|
+
}) : function(o, v) {
|
|
8998
8490
|
o["default"] = v;
|
|
8999
8491
|
});
|
|
9000
8492
|
var __importStar2 = exports && exports.__importStar || function(mod) {
|
|
@@ -9205,7 +8697,7 @@ var require_parse_proxy_response = __commonJS({
|
|
|
9205
8697
|
var require_dist4 = __commonJS({
|
|
9206
8698
|
"../../node_modules/@wix/http-client/node_modules/https-proxy-agent/dist/index.js"(exports) {
|
|
9207
8699
|
"use strict";
|
|
9208
|
-
var __createBinding2 = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
8700
|
+
var __createBinding2 = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
9209
8701
|
if (k2 === void 0) k2 = k;
|
|
9210
8702
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9211
8703
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
@@ -9214,13 +8706,13 @@ var require_dist4 = __commonJS({
|
|
|
9214
8706
|
} };
|
|
9215
8707
|
}
|
|
9216
8708
|
Object.defineProperty(o, k2, desc);
|
|
9217
|
-
} : function(o, m, k, k2) {
|
|
8709
|
+
}) : (function(o, m, k, k2) {
|
|
9218
8710
|
if (k2 === void 0) k2 = k;
|
|
9219
8711
|
o[k2] = m[k];
|
|
9220
|
-
});
|
|
9221
|
-
var __setModuleDefault2 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
|
|
8712
|
+
}));
|
|
8713
|
+
var __setModuleDefault2 = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
|
|
9222
8714
|
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
9223
|
-
} : function(o, v) {
|
|
8715
|
+
}) : function(o, v) {
|
|
9224
8716
|
o["default"] = v;
|
|
9225
8717
|
});
|
|
9226
8718
|
var __importStar2 = exports && exports.__importStar || function(mod) {
|
|
@@ -9407,7 +8899,7 @@ var require_cookies4 = __commonJS({
|
|
|
9407
8899
|
var utils = require_utils8();
|
|
9408
8900
|
module.exports = utils.isStandardBrowserEnv() ? (
|
|
9409
8901
|
// Standard browser envs support document.cookie
|
|
9410
|
-
/* @__PURE__ */ function standardBrowserEnv() {
|
|
8902
|
+
/* @__PURE__ */ (function standardBrowserEnv() {
|
|
9411
8903
|
return {
|
|
9412
8904
|
write: function write(name, value, expires, path3, domain, secure) {
|
|
9413
8905
|
var cookie = [];
|
|
@@ -9434,10 +8926,10 @@ var require_cookies4 = __commonJS({
|
|
|
9434
8926
|
this.write(name, "", Date.now() - 864e5);
|
|
9435
8927
|
}
|
|
9436
8928
|
};
|
|
9437
|
-
}()
|
|
8929
|
+
})()
|
|
9438
8930
|
) : (
|
|
9439
8931
|
// Non standard browser env (web workers, react-native) lack needed support.
|
|
9440
|
-
/* @__PURE__ */ function nonStandardBrowserEnv() {
|
|
8932
|
+
/* @__PURE__ */ (function nonStandardBrowserEnv() {
|
|
9441
8933
|
return {
|
|
9442
8934
|
write: function write() {
|
|
9443
8935
|
},
|
|
@@ -9447,7 +8939,7 @@ var require_cookies4 = __commonJS({
|
|
|
9447
8939
|
remove: function remove() {
|
|
9448
8940
|
}
|
|
9449
8941
|
};
|
|
9450
|
-
}()
|
|
8942
|
+
})()
|
|
9451
8943
|
);
|
|
9452
8944
|
}
|
|
9453
8945
|
});
|
|
@@ -9512,7 +9004,7 @@ var require_isURLSameOrigin2 = __commonJS({
|
|
|
9512
9004
|
module.exports = utils.isStandardBrowserEnv() ? (
|
|
9513
9005
|
// Standard browser envs have full support of the APIs needed to test
|
|
9514
9006
|
// whether the request URL is of the same origin as current location.
|
|
9515
|
-
function standardBrowserEnv() {
|
|
9007
|
+
(function standardBrowserEnv() {
|
|
9516
9008
|
var msie = /(msie|trident)/i.test(navigator.userAgent);
|
|
9517
9009
|
var urlParsingNode = document.createElement("a");
|
|
9518
9010
|
var originURL;
|
|
@@ -9539,14 +9031,14 @@ var require_isURLSameOrigin2 = __commonJS({
|
|
|
9539
9031
|
var parsed = utils.isString(requestURL) ? resolveURL(requestURL) : requestURL;
|
|
9540
9032
|
return parsed.protocol === originURL.protocol && parsed.host === originURL.host;
|
|
9541
9033
|
};
|
|
9542
|
-
}()
|
|
9034
|
+
})()
|
|
9543
9035
|
) : (
|
|
9544
9036
|
// Non standard browser envs (web workers, react-native) lack needed support.
|
|
9545
|
-
/* @__PURE__ */ function nonStandardBrowserEnv() {
|
|
9037
|
+
/* @__PURE__ */ (function nonStandardBrowserEnv() {
|
|
9546
9038
|
return function isURLSameOrigin() {
|
|
9547
9039
|
return true;
|
|
9548
9040
|
};
|
|
9549
|
-
}()
|
|
9041
|
+
})()
|
|
9550
9042
|
);
|
|
9551
9043
|
}
|
|
9552
9044
|
});
|
|
@@ -10985,7 +10477,7 @@ async function fetchArticleContent(httpClient, articleUrl, mode, stripHeader = f
|
|
|
10985
10477
|
}
|
|
10986
10478
|
|
|
10987
10479
|
// src/docs/get-to-know.ts
|
|
10988
|
-
var
|
|
10480
|
+
var DEFAULT_DOC_URLS = [
|
|
10989
10481
|
{
|
|
10990
10482
|
url: "https://dev.wix.com/docs/picasso/wix-ai-docs/index/get-to-know-wix-llm-instructions",
|
|
10991
10483
|
action: "include"
|
|
@@ -11014,7 +10506,7 @@ Please note that this is a large document. Only use it for the scenarios mention
|
|
|
11014
10506
|
];
|
|
11015
10507
|
var DESCRIPTION = `# Tool: WixREADME
|
|
11016
10508
|
|
|
11017
|
-
**Directive:** \`WixREADME\` is the **MANDATORY FIRST STEP** for all Wix-related tasks. Its output (including relevant linked documents) provides foundational context for all other Wix tools. Adherence to this protocol is **NON-NEGOTIABLE**.
|
|
10509
|
+
**Directive:** \`WixREADME\` is the **MANDATORY FIRST STEP** for all Wix-related tasks EXCEPT when the user explicitly asks to build/create a site - in which case you should use the \`WixSiteBuilderWidget\` tool directly. Its output (including relevant linked documents) provides foundational context for all other Wix tools. Adherence to this protocol is **NON-NEGOTIABLE**.
|
|
11018
10510
|
|
|
11019
10511
|
**Operational Protocol (Strictly Sequential):**
|
|
11020
10512
|
|
|
@@ -11043,50 +10535,145 @@ var DESCRIPTION = `# Tool: WixREADME
|
|
|
11043
10535
|
* Fetch **ONLY RELEVANT** linked documents using \`ReadFullDocsArticle\` before any other Wix tool.
|
|
11044
10536
|
* **FAILURE TO FOLLOW THIS EXACT SEQUENCE WILL LEAD TO ERRORS.** Strict adherence is mandatory.`;
|
|
11045
10537
|
var WixREADME_DEPENDENT_DESCRIPTION = "**Dependency:** Must be used after 'WixREADME' has successfully run.";
|
|
11046
|
-
async function addGetToKnowTools(server2) {
|
|
11047
|
-
|
|
11048
|
-
|
|
11049
|
-
|
|
11050
|
-
|
|
11051
|
-
|
|
11052
|
-
|
|
11053
|
-
|
|
11054
|
-
|
|
10538
|
+
async function addGetToKnowTools(server2, disableTools = [], toolDescriptions, readmeDocs) {
|
|
10539
|
+
if (disableTools.includes("WixREADME")) {
|
|
10540
|
+
return;
|
|
10541
|
+
}
|
|
10542
|
+
const docsToUse = readmeDocs && readmeDocs.length > 0 ? readmeDocs : DEFAULT_DOC_URLS;
|
|
10543
|
+
server2.tool(
|
|
10544
|
+
"WixREADME",
|
|
10545
|
+
toolDescriptions?.["WixREADME"] ?? DESCRIPTION,
|
|
10546
|
+
{},
|
|
10547
|
+
{ readOnlyHint: true, destructiveHint: false, openWorldHint: false },
|
|
10548
|
+
async (_, { httpClient }) => {
|
|
10549
|
+
try {
|
|
10550
|
+
const contents = await Promise.all(
|
|
10551
|
+
docsToUse.map(async ({ url, action, description, title }) => {
|
|
10552
|
+
if (action === "index") {
|
|
10553
|
+
return {
|
|
10554
|
+
type: "text",
|
|
10555
|
+
text: `## ${title}
|
|
11055
10556
|
|
|
11056
10557
|
<urls>
|
|
11057
10558
|
${url}
|
|
11058
10559
|
</urls>
|
|
11059
10560
|
|
|
11060
|
-
${description}`
|
|
10561
|
+
${description ?? ""}`
|
|
10562
|
+
};
|
|
10563
|
+
}
|
|
10564
|
+
const content = await fetchArticleContent(
|
|
10565
|
+
httpClient,
|
|
10566
|
+
url,
|
|
10567
|
+
"article",
|
|
10568
|
+
true
|
|
10569
|
+
);
|
|
10570
|
+
return {
|
|
10571
|
+
type: "text",
|
|
10572
|
+
text: content
|
|
11061
10573
|
};
|
|
11062
|
-
}
|
|
11063
|
-
|
|
11064
|
-
|
|
11065
|
-
|
|
11066
|
-
|
|
11067
|
-
|
|
11068
|
-
|
|
11069
|
-
|
|
11070
|
-
|
|
11071
|
-
|
|
11072
|
-
|
|
11073
|
-
|
|
11074
|
-
|
|
11075
|
-
|
|
11076
|
-
|
|
11077
|
-
}
|
|
11078
|
-
} catch (error) {
|
|
11079
|
-
return {
|
|
11080
|
-
isError: true,
|
|
11081
|
-
content: [
|
|
11082
|
-
{
|
|
11083
|
-
type: "text",
|
|
11084
|
-
text: `Error fetching the document: ${error.message}`
|
|
11085
|
-
}
|
|
11086
|
-
]
|
|
11087
|
-
};
|
|
10574
|
+
})
|
|
10575
|
+
);
|
|
10576
|
+
return {
|
|
10577
|
+
content: contents
|
|
10578
|
+
};
|
|
10579
|
+
} catch (error) {
|
|
10580
|
+
return {
|
|
10581
|
+
isError: true,
|
|
10582
|
+
content: [
|
|
10583
|
+
{
|
|
10584
|
+
type: "text",
|
|
10585
|
+
text: `Error fetching the document: ${error.message}`
|
|
10586
|
+
}
|
|
10587
|
+
]
|
|
10588
|
+
};
|
|
10589
|
+
}
|
|
11088
10590
|
}
|
|
11089
|
-
|
|
10591
|
+
);
|
|
10592
|
+
}
|
|
10593
|
+
|
|
10594
|
+
// src/docs/create-site-guide.ts
|
|
10595
|
+
var CREATE_SITE_DOCS = [
|
|
10596
|
+
{
|
|
10597
|
+
url: "https://dev.wix.com/docs/kb-only/MCP_REST_RECIPES_KB_ID/TRAIN_create_a_new_site_from_template",
|
|
10598
|
+
title: "How to Create a New Wix Site",
|
|
10599
|
+
nextSteps: "\n\n**Next Steps:** Use the ManageWixSite tool to make the API call for creating the Wix site."
|
|
10600
|
+
},
|
|
10601
|
+
{
|
|
10602
|
+
url: "https://dev.wix.com/docs/kb-only/MCP_REST_RECIPES_KB_ID/TRAIN_wix.devcenter.apps.installer.v1.AppsInstallerService.InstallApp",
|
|
10603
|
+
title: "How to Install App on a Wix Site",
|
|
10604
|
+
nextSteps: "\n\n**Next Steps:** Use the CallWixSiteAPI tool to make the API call for installing apps on the Wix site."
|
|
10605
|
+
}
|
|
10606
|
+
];
|
|
10607
|
+
var CREATE_SITE_DESCRIPTION = `
|
|
10608
|
+
Provides comprehensive documentation for creating a new Wix Business (i.e site, app, etc.)
|
|
10609
|
+
|
|
10610
|
+
## When to Use This Tool
|
|
10611
|
+
|
|
10612
|
+
Use this tool when the user requests to create a new Wix site.
|
|
10613
|
+
|
|
10614
|
+
## What This Tool Contains
|
|
10615
|
+
|
|
10616
|
+
This tool provides complete documentation including:
|
|
10617
|
+
- Template selection (empty sites or designed templates)
|
|
10618
|
+
- Wix Editor vs Wix Studio options
|
|
10619
|
+
- Regular vs Headless site creation
|
|
10620
|
+
- API endpoint details and parameters
|
|
10621
|
+
- Post-creation steps (OAuth for headless, publishing for regular sites)
|
|
10622
|
+
- App installation instructions
|
|
10623
|
+
|
|
10624
|
+
## Important Notes
|
|
10625
|
+
|
|
10626
|
+
**Do NOT use WixREADME or SearchWixRESTDocumentation before this tool.** If the user wants to create a Wix site, call this tool directly. It contains ALL necessary documentation.
|
|
10627
|
+
|
|
10628
|
+
**After reading this documentation:**
|
|
10629
|
+
1. Use ManageWixSite to create the site
|
|
10630
|
+
2. Use CallWixSiteAPI to install apps (if needed)
|
|
10631
|
+
|
|
10632
|
+
If the user wants to create a Wix site, call this tool directly. It contains ALL necessary documentation. You don't need to search for additional documentation, read more articles, use the WixREADME tool etc unless the user asks you to do so explicitly or you encounter an error.`;
|
|
10633
|
+
async function addCreateWixBusinessGuideTools(server2, disableTools = [], toolDescriptions) {
|
|
10634
|
+
if (disableTools.includes("CreateWixBusinessGuide")) {
|
|
10635
|
+
return;
|
|
10636
|
+
}
|
|
10637
|
+
server2.tool(
|
|
10638
|
+
"CreateWixBusinessGuide",
|
|
10639
|
+
toolDescriptions?.["CreateWixBusinessGuide"] ?? CREATE_SITE_DESCRIPTION,
|
|
10640
|
+
{},
|
|
10641
|
+
{ readOnlyHint: true, destructiveHint: false, openWorldHint: false },
|
|
10642
|
+
async (_args, { httpClient }) => {
|
|
10643
|
+
try {
|
|
10644
|
+
const contents = await Promise.all(
|
|
10645
|
+
CREATE_SITE_DOCS.map(async ({ url, title, nextSteps }) => {
|
|
10646
|
+
const articleContent = await fetchArticleContent(
|
|
10647
|
+
httpClient,
|
|
10648
|
+
url,
|
|
10649
|
+
"article",
|
|
10650
|
+
true
|
|
10651
|
+
);
|
|
10652
|
+
const fullContent = `# ${title}
|
|
10653
|
+
|
|
10654
|
+
${articleContent}${nextSteps}`;
|
|
10655
|
+
return {
|
|
10656
|
+
type: "text",
|
|
10657
|
+
text: fullContent
|
|
10658
|
+
};
|
|
10659
|
+
})
|
|
10660
|
+
);
|
|
10661
|
+
return {
|
|
10662
|
+
content: contents
|
|
10663
|
+
};
|
|
10664
|
+
} catch (error) {
|
|
10665
|
+
return {
|
|
10666
|
+
isError: true,
|
|
10667
|
+
content: [
|
|
10668
|
+
{
|
|
10669
|
+
type: "text",
|
|
10670
|
+
text: `Error fetching create site documentation: ${error.message}`
|
|
10671
|
+
}
|
|
10672
|
+
]
|
|
10673
|
+
};
|
|
10674
|
+
}
|
|
10675
|
+
}
|
|
10676
|
+
);
|
|
11090
10677
|
}
|
|
11091
10678
|
|
|
11092
10679
|
// src/docs/docs.ts
|
|
@@ -11106,20 +10693,36 @@ var addDocsTools = (server2, allowedTools = [
|
|
|
11106
10693
|
"BUILD_APPS",
|
|
11107
10694
|
"WIX_HEADLESS",
|
|
11108
10695
|
"BUSINESS_SOLUTIONS"
|
|
11109
|
-
],
|
|
11110
|
-
|
|
11111
|
-
|
|
10696
|
+
], options = {}) => {
|
|
10697
|
+
const {
|
|
10698
|
+
getToKnowWixEnabled = false,
|
|
10699
|
+
createWixBusinessGuideEnabled = true,
|
|
10700
|
+
disableTools,
|
|
10701
|
+
toolDescriptions,
|
|
10702
|
+
readmeDocs
|
|
10703
|
+
} = options;
|
|
10704
|
+
const getDescription = (toolName, defaultDesc) => toolDescriptions?.[toolName] ?? defaultDesc;
|
|
10705
|
+
if (getToKnowWixEnabled && !disableTools?.includes("WixREADME")) {
|
|
10706
|
+
addGetToKnowTools(server2, disableTools || [], toolDescriptions, readmeDocs);
|
|
10707
|
+
}
|
|
10708
|
+
if (createWixBusinessGuideEnabled && !disableTools?.includes("CreateWixBusinessGuide")) {
|
|
10709
|
+
addCreateWixBusinessGuideTools(
|
|
10710
|
+
server2,
|
|
10711
|
+
disableTools || [],
|
|
10712
|
+
toolDescriptions
|
|
10713
|
+
);
|
|
11112
10714
|
}
|
|
11113
|
-
if (allowedTools.includes("WDS")) {
|
|
10715
|
+
if (allowedTools.includes("WDS") && !disableTools?.includes("SearchWixWDSDocumentation")) {
|
|
10716
|
+
const defaultWdsDesc = [
|
|
10717
|
+
"Searches the Wix Design System Documentation for components and patterns.",
|
|
10718
|
+
"Use this tool when you need to understand or implement UI components and design patterns in a Wix project.",
|
|
10719
|
+
"Search for specific component names, patterns, or UI requirements.",
|
|
10720
|
+
"If you can't find what you need, try to rephrase your search term or use bigger maxResults value.",
|
|
10721
|
+
getToKnowWixEnabled ? WixREADME_DEPENDENT_DESCRIPTION : ""
|
|
10722
|
+
].join("\n");
|
|
11114
10723
|
server2.tool(
|
|
11115
10724
|
"SearchWixWDSDocumentation",
|
|
11116
|
-
|
|
11117
|
-
"Searches the Wix Design System Documentation for components and patterns.",
|
|
11118
|
-
"Use this tool when you need to understand or implement UI components and design patterns in a Wix project.",
|
|
11119
|
-
"Search for specific component names, patterns, or UI requirements.",
|
|
11120
|
-
"If you can't find what you need, try to rephrase your search term or use bigger maxResults value.",
|
|
11121
|
-
getToKnowWixEnabled ? WixREADME_DEPENDENT_DESCRIPTION : ""
|
|
11122
|
-
].join("\n"),
|
|
10725
|
+
getDescription("SearchWixWDSDocumentation", defaultWdsDesc),
|
|
11123
10726
|
{
|
|
11124
10727
|
searchTerm: z.string().describe(
|
|
11125
10728
|
"The search term to search for in the Wix Design System Documentation"
|
|
@@ -11128,6 +10731,7 @@ var addDocsTools = (server2, allowedTools = [
|
|
|
11128
10731
|
"The maximum number of results to return, default is 5, max is 15"
|
|
11129
10732
|
).min(1).max(15).optional().default(10)
|
|
11130
10733
|
},
|
|
10734
|
+
{ readOnlyHint: true, destructiveHint: false, openWorldHint: false },
|
|
11131
10735
|
async ({ searchTerm, maxResults }, { panorama }) => {
|
|
11132
10736
|
try {
|
|
11133
10737
|
logger.log(`Searching for ${searchTerm} in Wix WDS`);
|
|
@@ -11165,16 +10769,17 @@ var addDocsTools = (server2, allowedTools = [
|
|
|
11165
10769
|
}
|
|
11166
10770
|
);
|
|
11167
10771
|
}
|
|
11168
|
-
if (allowedTools.includes("REST")) {
|
|
10772
|
+
if (allowedTools.includes("REST") && !disableTools?.includes("SearchWixRESTDocumentation")) {
|
|
10773
|
+
const defaultRestDesc = [
|
|
10774
|
+
"Searches the official Wix REST API documentation.",
|
|
10775
|
+
"Use this tool whenever you need to to interact with the Wix platform via HTTP requests.",
|
|
10776
|
+
"Specify the API endpoint, resource, or action you need information about (e.g., 'get site details endpoint', 'create data collection', 'update product API', 'REST authentication').",
|
|
10777
|
+
"If you can't find what you need, try to rephrase your search term or use bigger maxResults value.",
|
|
10778
|
+
getToKnowWixEnabled ? WixREADME_DEPENDENT_DESCRIPTION : ""
|
|
10779
|
+
].join("\n");
|
|
11169
10780
|
server2.tool(
|
|
11170
10781
|
"SearchWixRESTDocumentation",
|
|
11171
|
-
|
|
11172
|
-
"Searches the official Wix REST API documentation.",
|
|
11173
|
-
"Use this tool whenever you need to to interact with the Wix platform via HTTP requests.",
|
|
11174
|
-
"Specify the API endpoint, resource, or action you need information about (e.g., 'get site details endpoint', 'create data collection', 'update product API', 'REST authentication').",
|
|
11175
|
-
"If you can't find what you need, try to rephrase your search term or use bigger maxResults value.",
|
|
11176
|
-
getToKnowWixEnabled ? WixREADME_DEPENDENT_DESCRIPTION : ""
|
|
11177
|
-
].join("\n"),
|
|
10782
|
+
getDescription("SearchWixRESTDocumentation", defaultRestDesc),
|
|
11178
10783
|
{
|
|
11179
10784
|
searchTerm: z.string().describe(
|
|
11180
10785
|
"The search term to search for in the Wix REST API Documentation"
|
|
@@ -11183,6 +10788,7 @@ var addDocsTools = (server2, allowedTools = [
|
|
|
11183
10788
|
"The maximum number of results to return, default is 5, max is 15"
|
|
11184
10789
|
).min(1).max(15).optional().default(10)
|
|
11185
10790
|
},
|
|
10791
|
+
{ readOnlyHint: true, destructiveHint: false, openWorldHint: false },
|
|
11186
10792
|
async ({ searchTerm, maxResults }, { panorama }) => {
|
|
11187
10793
|
try {
|
|
11188
10794
|
logger.log(`Searching for ${searchTerm} in Wix REST API`);
|
|
@@ -11225,19 +10831,20 @@ var addDocsTools = (server2, allowedTools = [
|
|
|
11225
10831
|
}
|
|
11226
10832
|
);
|
|
11227
10833
|
}
|
|
11228
|
-
if (allowedTools.includes("BUSINESS_SOLUTIONS") && !getToKnowWixEnabled) {
|
|
10834
|
+
if (allowedTools.includes("BUSINESS_SOLUTIONS") && !getToKnowWixEnabled && !disableTools?.includes("WixBusinessFlowsDocumentation")) {
|
|
10835
|
+
const defaultBusinessDesc = [
|
|
10836
|
+
"This tool provides step-by-step recipes for setting up complex Wix business solutions that involve multiple API calls.",
|
|
10837
|
+
"It excels at guiding the creation of features like booking systems with payments.",
|
|
10838
|
+
"For example, it can guide the setup of a service in Wix Bookings where customers can pay using Wix Payments, such as creating a bookable yoga class",
|
|
10839
|
+
"It searches the Wix Business Solutions documentation for these integrated workflows involving services, bookings, payments, stores, blogs, and more.",
|
|
10840
|
+
"This tool returns a list of articles that are potentially relevant to the input search term.",
|
|
10841
|
+
"**IMPORTANT NOTES:**",
|
|
10842
|
+
"1. Before attempting to implement a multi step API calls on Wix, YOU MUST TRY THIS TOOL FIRST.",
|
|
10843
|
+
"2. Out of the returned list of articles that you will receive, you MUST select the most relevant one and use the ReadFullDocsArticle tool to fetch it."
|
|
10844
|
+
].join("\n");
|
|
11229
10845
|
server2.tool(
|
|
11230
10846
|
"WixBusinessFlowsDocumentation",
|
|
11231
|
-
|
|
11232
|
-
"This tool provides step-by-step recipes for setting up complex Wix business solutions that involve multiple API calls.",
|
|
11233
|
-
"It excels at guiding the creation of features like booking systems with payments.",
|
|
11234
|
-
"For example, it can guide the setup of a service in Wix Bookings where customers can pay using Wix Payments, such as creating a bookable yoga class",
|
|
11235
|
-
"It searches the Wix Business Solutions documentation for these integrated workflows involving services, bookings, payments, stores, blogs, and more.",
|
|
11236
|
-
"This tool returns a list of articles that are potentially relevant to the input search term.",
|
|
11237
|
-
"**IMPORTANT NOTES:**",
|
|
11238
|
-
"1. Before attempting to implement a multi step API calls on Wix, YOU MUST TRY THIS TOOL FIRST.",
|
|
11239
|
-
"2. Out of the returned list of articles that you will receive, you MUST select the most relevant one and use the ReadFullDocsArticle tool to fetch it."
|
|
11240
|
-
].join("\n"),
|
|
10847
|
+
getDescription("WixBusinessFlowsDocumentation", defaultBusinessDesc),
|
|
11241
10848
|
{
|
|
11242
10849
|
searchTerm: z.string().describe(
|
|
11243
10850
|
'The search term for the required sample flow (e.g. "setup a new business")'
|
|
@@ -11246,6 +10853,7 @@ var addDocsTools = (server2, allowedTools = [
|
|
|
11246
10853
|
"The maximum number of results to return, default is 5, max is 15"
|
|
11247
10854
|
).min(1).max(15).optional().default(5)
|
|
11248
10855
|
},
|
|
10856
|
+
{ readOnlyHint: true, destructiveHint: false, openWorldHint: false },
|
|
11249
10857
|
async ({ searchTerm, maxResults }, { panorama }) => {
|
|
11250
10858
|
try {
|
|
11251
10859
|
logger.log(`Searching for ${searchTerm} in Wix Sample Flows`);
|
|
@@ -11287,16 +10895,17 @@ var addDocsTools = (server2, allowedTools = [
|
|
|
11287
10895
|
}
|
|
11288
10896
|
);
|
|
11289
10897
|
}
|
|
11290
|
-
if (allowedTools.includes("SDK")) {
|
|
10898
|
+
if (allowedTools.includes("SDK") && !disableTools?.includes("SearchWixSDKDocumentation")) {
|
|
10899
|
+
const defaultSdkDesc = [
|
|
10900
|
+
"Searches the official Wix javascript SDK documentation.",
|
|
10901
|
+
"Use this tool whenever you need to write or modify Wix related SDK code.",
|
|
10902
|
+
"Specify the SDK module, function, or feature you need information about (e.g., 'how to query all items from a data collection?', 'how to use wix-stores-backend', 'authentication methods in the SDK').",
|
|
10903
|
+
"If you can't find what you need, try to rephrase your search term or use bigger maxResults value.",
|
|
10904
|
+
getToKnowWixEnabled ? WixREADME_DEPENDENT_DESCRIPTION : ""
|
|
10905
|
+
].join("\n");
|
|
11291
10906
|
server2.tool(
|
|
11292
10907
|
"SearchWixSDKDocumentation",
|
|
11293
|
-
|
|
11294
|
-
"Searches the official Wix javascript SDK documentation.",
|
|
11295
|
-
"Use this tool whenever you need to write or modify Wix related SDK code.",
|
|
11296
|
-
"Specify the SDK module, function, or feature you need information about (e.g., 'how to query all items from a data collection?', 'how to use wix-stores-backend', 'authentication methods in the SDK').",
|
|
11297
|
-
"If you can't find what you need, try to rephrase your search term or use bigger maxResults value.",
|
|
11298
|
-
getToKnowWixEnabled ? WixREADME_DEPENDENT_DESCRIPTION : ""
|
|
11299
|
-
].join("\n"),
|
|
10908
|
+
getDescription("SearchWixSDKDocumentation", defaultSdkDesc),
|
|
11300
10909
|
{
|
|
11301
10910
|
searchTerm: z.string().describe(
|
|
11302
10911
|
"The search term to search for in the Wix SDK Documentation"
|
|
@@ -11305,6 +10914,7 @@ var addDocsTools = (server2, allowedTools = [
|
|
|
11305
10914
|
"The maximum number of results to return, default is 5, max is 15"
|
|
11306
10915
|
).min(1).max(15).optional().default(5)
|
|
11307
10916
|
},
|
|
10917
|
+
{ readOnlyHint: true, destructiveHint: false, openWorldHint: false },
|
|
11308
10918
|
async ({ searchTerm, maxResults }, { panorama }) => {
|
|
11309
10919
|
try {
|
|
11310
10920
|
logger.log(`Searching for ${searchTerm} in Wix SDK`);
|
|
@@ -11349,16 +10959,17 @@ var addDocsTools = (server2, allowedTools = [
|
|
|
11349
10959
|
}
|
|
11350
10960
|
);
|
|
11351
10961
|
}
|
|
11352
|
-
if (allowedTools.includes("BUILD_APPS")) {
|
|
10962
|
+
if (allowedTools.includes("BUILD_APPS") && !disableTools?.includes("SearchBuildAppsDocumentation")) {
|
|
10963
|
+
const defaultBuildAppsDesc = [
|
|
10964
|
+
"Searches the official Build Apps documentation.",
|
|
10965
|
+
"Use this tool when you need to understand or implement Wix CLI applications related code.",
|
|
10966
|
+
"The search term should be a specific Wix CLI command or specific topic related to Wix CLI applications or its ecosystem (e.g. deployment, creating new extensions etc).",
|
|
10967
|
+
"If you can't find what you need, try to rephrase your search term or use bigger maxResults value.",
|
|
10968
|
+
getToKnowWixEnabled ? WixREADME_DEPENDENT_DESCRIPTION : ""
|
|
10969
|
+
].join("\n");
|
|
11353
10970
|
server2.tool(
|
|
11354
10971
|
"SearchBuildAppsDocumentation",
|
|
11355
|
-
|
|
11356
|
-
"Searches the official Build Apps documentation.",
|
|
11357
|
-
"Use this tool when you need to understand or implement Wix CLI applications related code.",
|
|
11358
|
-
"The search term should be a specific Wix CLI command or specific topic related to Wix CLI applications or its ecosystem (e.g. deployment, creating new extensions etc).",
|
|
11359
|
-
"If you can't find what you need, try to rephrase your search term or use bigger maxResults value.",
|
|
11360
|
-
getToKnowWixEnabled ? WixREADME_DEPENDENT_DESCRIPTION : ""
|
|
11361
|
-
].join("\n"),
|
|
10972
|
+
getDescription("SearchBuildAppsDocumentation", defaultBuildAppsDesc),
|
|
11362
10973
|
{
|
|
11363
10974
|
searchTerm: z.string().describe(
|
|
11364
10975
|
"The search term to search for in the Build Apps Documentation"
|
|
@@ -11367,6 +10978,7 @@ var addDocsTools = (server2, allowedTools = [
|
|
|
11367
10978
|
"The maximum number of results to return, default is 5, max is 15"
|
|
11368
10979
|
).min(1).max(15).optional().default(5)
|
|
11369
10980
|
},
|
|
10981
|
+
{ readOnlyHint: true, destructiveHint: false, openWorldHint: false },
|
|
11370
10982
|
async ({ searchTerm, maxResults }, { panorama }) => {
|
|
11371
10983
|
try {
|
|
11372
10984
|
logger.log(`Searching for ${searchTerm} in Build Apps`);
|
|
@@ -11403,16 +11015,17 @@ var addDocsTools = (server2, allowedTools = [
|
|
|
11403
11015
|
}
|
|
11404
11016
|
);
|
|
11405
11017
|
}
|
|
11406
|
-
if (allowedTools.includes("WIX_HEADLESS")) {
|
|
11018
|
+
if (allowedTools.includes("WIX_HEADLESS") && !disableTools?.includes("SearchWixHeadlessDocumentation")) {
|
|
11019
|
+
const defaultHeadlessDesc = [
|
|
11020
|
+
"Searches the official Wix Headless Documentation.",
|
|
11021
|
+
"Use this tool when you need to understand or implement Headless related code.",
|
|
11022
|
+
"The search term should be a specific Wix Headless topic or feature you need information about.",
|
|
11023
|
+
"If you can't find what you need, try to rephrase your search term or use bigger maxResults value.",
|
|
11024
|
+
getToKnowWixEnabled ? WixREADME_DEPENDENT_DESCRIPTION : ""
|
|
11025
|
+
].join("\n");
|
|
11407
11026
|
server2.tool(
|
|
11408
11027
|
"SearchWixHeadlessDocumentation",
|
|
11409
|
-
|
|
11410
|
-
"Searches the official Wix Headless Documentation.",
|
|
11411
|
-
"Use this tool when you need to understand or implement Headless related code.",
|
|
11412
|
-
"The search term should be a specific Wix Headless topic or feature you need information about.",
|
|
11413
|
-
"If you can't find what you need, try to rephrase your search term or use bigger maxResults value.",
|
|
11414
|
-
getToKnowWixEnabled ? WixREADME_DEPENDENT_DESCRIPTION : ""
|
|
11415
|
-
].join("\n"),
|
|
11028
|
+
getDescription("SearchWixHeadlessDocumentation", defaultHeadlessDesc),
|
|
11416
11029
|
{
|
|
11417
11030
|
searchTerm: z.string().describe(
|
|
11418
11031
|
"The search term to search for in the Headless Documentation"
|
|
@@ -11421,6 +11034,7 @@ var addDocsTools = (server2, allowedTools = [
|
|
|
11421
11034
|
"The maximum number of results to return, default is 5, max is 15"
|
|
11422
11035
|
).min(1).max(15).optional().default(5)
|
|
11423
11036
|
},
|
|
11037
|
+
{ readOnlyHint: true, destructiveHint: false, openWorldHint: false },
|
|
11424
11038
|
async ({ searchTerm, maxResults }, { panorama }) => {
|
|
11425
11039
|
try {
|
|
11426
11040
|
logger.log(`Searching for ${searchTerm} in Headless`);
|
|
@@ -11457,22 +11071,24 @@ var addDocsTools = (server2, allowedTools = [
|
|
|
11457
11071
|
}
|
|
11458
11072
|
);
|
|
11459
11073
|
}
|
|
11460
|
-
if (allowedTools.includes("VELO")) {
|
|
11074
|
+
if (allowedTools.includes("VELO") && !disableTools?.includes("SearchWixVeloDocumentation")) {
|
|
11075
|
+
const defaultVeloDesc = [
|
|
11076
|
+
"Searches the official Velo documentation.",
|
|
11077
|
+
"Use this tool when you need to understand or implement Velo related code.",
|
|
11078
|
+
"The search term should be a specific Velo topic or feature you need information about.",
|
|
11079
|
+
"If you can't find what you need, try to rephrase your search term or use bigger maxResults value.",
|
|
11080
|
+
getToKnowWixEnabled ? WixREADME_DEPENDENT_DESCRIPTION : ""
|
|
11081
|
+
].join("\n");
|
|
11461
11082
|
server2.tool(
|
|
11462
11083
|
"SearchWixVeloDocumentation",
|
|
11463
|
-
|
|
11464
|
-
"Searches the official Velo documentation.",
|
|
11465
|
-
"Use this tool when you need to understand or implement Velo related code.",
|
|
11466
|
-
"The search term should be a specific Velo topic or feature you need information about.",
|
|
11467
|
-
"If you can't find what you need, try to rephrase your search term or use bigger maxResults value.",
|
|
11468
|
-
getToKnowWixEnabled ? WixREADME_DEPENDENT_DESCRIPTION : ""
|
|
11469
|
-
].join("\n"),
|
|
11084
|
+
getDescription("SearchWixVeloDocumentation", defaultVeloDesc),
|
|
11470
11085
|
{
|
|
11471
11086
|
searchTerm: z.string().describe("The search term to search for in the Velo Documentation"),
|
|
11472
11087
|
maxResults: z.number().describe(
|
|
11473
11088
|
"The maximum number of results to return, default is 5, max is 15"
|
|
11474
11089
|
).min(1).max(15).optional().default(5)
|
|
11475
11090
|
},
|
|
11091
|
+
{ readOnlyHint: true, destructiveHint: false, openWorldHint: false },
|
|
11476
11092
|
async ({ searchTerm, maxResults }, { panorama }) => {
|
|
11477
11093
|
try {
|
|
11478
11094
|
logger.log(`Searching for ${searchTerm} in Velo`);
|
|
@@ -11515,102 +11131,110 @@ var addDocsTools = (server2, allowedTools = [
|
|
|
11515
11131
|
}
|
|
11516
11132
|
);
|
|
11517
11133
|
}
|
|
11518
|
-
|
|
11519
|
-
|
|
11520
|
-
[
|
|
11134
|
+
if (!disableTools?.includes("ReadFullDocsArticle")) {
|
|
11135
|
+
const defaultReadArticleDesc = [
|
|
11521
11136
|
"Fetches the full Wix docs article or method article.",
|
|
11522
11137
|
"Use this tool when you read a summary of a docs article or method article, you have the docs url and want to read the full article.",
|
|
11523
11138
|
getToKnowWixEnabled ? WixREADME_DEPENDENT_DESCRIPTION : ""
|
|
11524
|
-
].join("\n")
|
|
11525
|
-
|
|
11526
|
-
|
|
11527
|
-
|
|
11528
|
-
|
|
11529
|
-
|
|
11530
|
-
|
|
11531
|
-
|
|
11532
|
-
|
|
11533
|
-
|
|
11534
|
-
|
|
11535
|
-
|
|
11536
|
-
|
|
11537
|
-
|
|
11538
|
-
|
|
11139
|
+
].join("\n");
|
|
11140
|
+
server2.tool(
|
|
11141
|
+
"ReadFullDocsArticle",
|
|
11142
|
+
getDescription("ReadFullDocsArticle", defaultReadArticleDesc),
|
|
11143
|
+
{
|
|
11144
|
+
articleUrl: z.string().url().describe(
|
|
11145
|
+
"The URL of the docs article or method article to fetch. Should be something like https://dev.wix.com/docs/.../.../..."
|
|
11146
|
+
)
|
|
11147
|
+
},
|
|
11148
|
+
{ readOnlyHint: true, destructiveHint: false, openWorldHint: false },
|
|
11149
|
+
async ({ articleUrl }, { httpClient }) => {
|
|
11150
|
+
try {
|
|
11151
|
+
const articleContent = await fetchArticleContent(
|
|
11152
|
+
httpClient,
|
|
11153
|
+
articleUrl,
|
|
11154
|
+
"article"
|
|
11155
|
+
);
|
|
11156
|
+
if (!articleContent) {
|
|
11157
|
+
throw new Error("Article content is empty");
|
|
11158
|
+
}
|
|
11159
|
+
return {
|
|
11160
|
+
content: [
|
|
11161
|
+
{
|
|
11162
|
+
type: "text",
|
|
11163
|
+
text: articleContent
|
|
11164
|
+
},
|
|
11165
|
+
{
|
|
11166
|
+
type: "text",
|
|
11167
|
+
text: [
|
|
11168
|
+
"---",
|
|
11169
|
+
"Next, if you are dealing with a method - you MUST call ReadFullDocsMethodSchema tool - it will give you the full request schema for the method."
|
|
11170
|
+
].join("\n")
|
|
11171
|
+
}
|
|
11172
|
+
]
|
|
11173
|
+
};
|
|
11174
|
+
} catch (error) {
|
|
11175
|
+
logger.error(
|
|
11176
|
+
`Error fetching article content or method schema for ${articleUrl}: ${error}`
|
|
11177
|
+
);
|
|
11178
|
+
return {
|
|
11179
|
+
content: [
|
|
11180
|
+
{
|
|
11181
|
+
type: "text",
|
|
11182
|
+
text: `Could not fetch article content: "${error.message}". You should try completing the task without it.`
|
|
11183
|
+
}
|
|
11184
|
+
]
|
|
11185
|
+
};
|
|
11539
11186
|
}
|
|
11540
|
-
return {
|
|
11541
|
-
content: [
|
|
11542
|
-
{
|
|
11543
|
-
type: "text",
|
|
11544
|
-
text: articleContent
|
|
11545
|
-
},
|
|
11546
|
-
{
|
|
11547
|
-
type: "text",
|
|
11548
|
-
text: [
|
|
11549
|
-
"---",
|
|
11550
|
-
"Next, if you are dealing with a method - you MUST call ReadFullDocsMethodSchema tool - it will give you the full request schema for the method."
|
|
11551
|
-
].join("\n")
|
|
11552
|
-
}
|
|
11553
|
-
]
|
|
11554
|
-
};
|
|
11555
|
-
} catch (error) {
|
|
11556
|
-
logger.error(
|
|
11557
|
-
`Error fetching article content or method schema for ${articleUrl}: ${error}`
|
|
11558
|
-
);
|
|
11559
|
-
return {
|
|
11560
|
-
content: [
|
|
11561
|
-
{
|
|
11562
|
-
type: "text",
|
|
11563
|
-
text: `Could not fetch article content: "${error.message}". You should try completing the task without it.`
|
|
11564
|
-
}
|
|
11565
|
-
]
|
|
11566
|
-
};
|
|
11567
11187
|
}
|
|
11568
|
-
|
|
11569
|
-
|
|
11570
|
-
|
|
11571
|
-
|
|
11572
|
-
[
|
|
11188
|
+
);
|
|
11189
|
+
}
|
|
11190
|
+
if (!disableTools?.includes("ReadFullDocsMethodSchema")) {
|
|
11191
|
+
const defaultMethodSchemaDesc = [
|
|
11573
11192
|
"Fetches the full method schema for a given method. Always use it before calling the method.",
|
|
11574
11193
|
"This will give you the entire request/response schema with all the fields and their descriptions."
|
|
11575
|
-
].join("\n")
|
|
11576
|
-
|
|
11577
|
-
|
|
11578
|
-
|
|
11579
|
-
|
|
11580
|
-
|
|
11581
|
-
|
|
11582
|
-
|
|
11583
|
-
|
|
11584
|
-
|
|
11585
|
-
|
|
11586
|
-
|
|
11587
|
-
|
|
11588
|
-
|
|
11589
|
-
|
|
11194
|
+
].join("\n");
|
|
11195
|
+
server2.tool(
|
|
11196
|
+
"ReadFullDocsMethodSchema",
|
|
11197
|
+
getDescription("ReadFullDocsMethodSchema", defaultMethodSchemaDesc),
|
|
11198
|
+
{
|
|
11199
|
+
articleUrl: z.string().url().describe(
|
|
11200
|
+
"The URL of the documentation to fetch. Should be something like https://dev.wix.com/docs/.../.../..."
|
|
11201
|
+
)
|
|
11202
|
+
},
|
|
11203
|
+
{ readOnlyHint: true, destructiveHint: false, openWorldHint: false },
|
|
11204
|
+
async ({ articleUrl }, { httpClient }) => {
|
|
11205
|
+
try {
|
|
11206
|
+
const articleContent = await fetchArticleContent(
|
|
11207
|
+
httpClient,
|
|
11208
|
+
articleUrl,
|
|
11209
|
+
"methodSchema"
|
|
11210
|
+
);
|
|
11211
|
+
if (!articleContent) {
|
|
11212
|
+
throw new Error("Method schema is empty");
|
|
11213
|
+
}
|
|
11214
|
+
return {
|
|
11215
|
+
content: [
|
|
11216
|
+
{
|
|
11217
|
+
type: "text",
|
|
11218
|
+
text: articleContent
|
|
11219
|
+
}
|
|
11220
|
+
]
|
|
11221
|
+
};
|
|
11222
|
+
} catch (error) {
|
|
11223
|
+
logger.error(
|
|
11224
|
+
`Error fetching method schema for ${articleUrl}: ${error}`
|
|
11225
|
+
);
|
|
11226
|
+
return {
|
|
11227
|
+
content: [
|
|
11228
|
+
{
|
|
11229
|
+
type: "text",
|
|
11230
|
+
text: `Could not fetch method schema: "${error.message}". You should try completing the task without it.`
|
|
11231
|
+
}
|
|
11232
|
+
]
|
|
11233
|
+
};
|
|
11590
11234
|
}
|
|
11591
|
-
return {
|
|
11592
|
-
content: [
|
|
11593
|
-
{
|
|
11594
|
-
type: "text",
|
|
11595
|
-
text: articleContent
|
|
11596
|
-
}
|
|
11597
|
-
]
|
|
11598
|
-
};
|
|
11599
|
-
} catch (error) {
|
|
11600
|
-
logger.error(
|
|
11601
|
-
`Error fetching method schema for ${articleUrl}: ${error}`
|
|
11602
|
-
);
|
|
11603
|
-
return {
|
|
11604
|
-
content: [
|
|
11605
|
-
{
|
|
11606
|
-
type: "text",
|
|
11607
|
-
text: `Could not fetch method schema: "${error.message}". You should try completing the task without it.`
|
|
11608
|
-
}
|
|
11609
|
-
]
|
|
11610
|
-
};
|
|
11611
11235
|
}
|
|
11612
|
-
|
|
11613
|
-
|
|
11236
|
+
);
|
|
11237
|
+
}
|
|
11614
11238
|
};
|
|
11615
11239
|
|
|
11616
11240
|
// src/cli-tools/cli.ts
|
|
@@ -11749,13 +11373,17 @@ function addCliTools(server2, allowedTools = ["CLI_COMMAND"], isWixOne2 = false)
|
|
|
11749
11373
|
}
|
|
11750
11374
|
|
|
11751
11375
|
// src/wix-mcp-server.ts
|
|
11752
|
-
var import_v2 = __toESM(require_v2(), 1);
|
|
11753
11376
|
import { v4 as uuidv4 } from "uuid";
|
|
11754
11377
|
import { captureException as captureException2, setTags } from "@sentry/node";
|
|
11755
11378
|
import {
|
|
11756
11379
|
McpServer
|
|
11757
11380
|
} from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
11758
11381
|
|
|
11382
|
+
// ../../node_modules/@wix/bi-logger-api-infra-data/dist/esm/v2/index.js
|
|
11383
|
+
function wixMcpRequestSrc39Evid1607(params) {
|
|
11384
|
+
return { evid: 1607, src: 39, endpoint: "", params };
|
|
11385
|
+
}
|
|
11386
|
+
|
|
11759
11387
|
// src/infra/panorama.ts
|
|
11760
11388
|
var import_panorama_client_node = __toESM(require_cjs2(), 1);
|
|
11761
11389
|
var packageJson = {
|
|
@@ -11849,121 +11477,134 @@ var WixMcpServer = class extends McpServer {
|
|
|
11849
11477
|
tool(...args) {
|
|
11850
11478
|
const cbIndex = args.findIndex((arg) => typeof arg === "function");
|
|
11851
11479
|
if (cbIndex !== -1) {
|
|
11852
|
-
const originalCb = args[cbIndex];
|
|
11853
11480
|
const toolName = args[0];
|
|
11854
|
-
const
|
|
11855
|
-
|
|
11856
|
-
|
|
11857
|
-
|
|
11858
|
-
|
|
11859
|
-
|
|
11860
|
-
|
|
11861
|
-
|
|
11862
|
-
|
|
11863
|
-
|
|
11864
|
-
|
|
11481
|
+
const originalCb = args[cbIndex];
|
|
11482
|
+
args[cbIndex] = this.wrapToolCallback(toolName, originalCb);
|
|
11483
|
+
}
|
|
11484
|
+
return super.tool.apply(this, args);
|
|
11485
|
+
}
|
|
11486
|
+
registerTool(name, config, cb) {
|
|
11487
|
+
const wrappedCb = this.wrapToolCallback(name, cb);
|
|
11488
|
+
return super.registerTool(
|
|
11489
|
+
name,
|
|
11490
|
+
config,
|
|
11491
|
+
wrappedCb
|
|
11492
|
+
);
|
|
11493
|
+
}
|
|
11494
|
+
wrapToolCallback(toolName, originalCb) {
|
|
11495
|
+
const isDevEnvironment = DEV_ENVIRONMENTS.includes(this.nodeEnv);
|
|
11496
|
+
return async (...cbArgs) => {
|
|
11497
|
+
setTags({
|
|
11498
|
+
panoramaSessionId: this.sessionId
|
|
11499
|
+
});
|
|
11500
|
+
const panorama = createPanoramaClient({
|
|
11501
|
+
environment: this.nodeEnv,
|
|
11502
|
+
sessionId: this.sessionId,
|
|
11503
|
+
componentId: toolName,
|
|
11504
|
+
uuid: this.getUserId?.(),
|
|
11505
|
+
serverInfo: this.serverInfo
|
|
11506
|
+
});
|
|
11507
|
+
const toolInvocationId = uuidv4();
|
|
11508
|
+
const httpClient = new import_http_client.HttpClient({
|
|
11509
|
+
headers: {
|
|
11510
|
+
"x-wix-mcp": `execution-id=${toolInvocationId}`
|
|
11511
|
+
}
|
|
11512
|
+
});
|
|
11513
|
+
let toolBiParams = {};
|
|
11514
|
+
const argsBeforeExtra = cbArgs.slice(0, cbArgs.length - 1);
|
|
11515
|
+
const extra = cbArgs[cbArgs.length - 1];
|
|
11516
|
+
const wrappedExtra = {
|
|
11517
|
+
...extra,
|
|
11518
|
+
panorama: panorama.createClientForComponent(),
|
|
11519
|
+
httpClient,
|
|
11520
|
+
biLogger: this.biLogger,
|
|
11521
|
+
logger,
|
|
11522
|
+
setToolBiParams: (params) => {
|
|
11523
|
+
toolBiParams = params;
|
|
11524
|
+
}
|
|
11525
|
+
};
|
|
11526
|
+
if (!isDevEnvironment) {
|
|
11527
|
+
const userId = this.getUserId?.();
|
|
11528
|
+
this.biLogger.updateDefaults({
|
|
11529
|
+
_uuid: userId ?? ""
|
|
11865
11530
|
});
|
|
11866
|
-
|
|
11867
|
-
|
|
11868
|
-
|
|
11869
|
-
"x-wix-mcp": `execution-id=${toolInvocationId}`
|
|
11870
|
-
}
|
|
11531
|
+
panorama.transaction(toolName).start({
|
|
11532
|
+
toolInvocationId,
|
|
11533
|
+
params: JSON.stringify(argsBeforeExtra)
|
|
11871
11534
|
});
|
|
11872
|
-
|
|
11873
|
-
|
|
11874
|
-
|
|
11875
|
-
|
|
11876
|
-
|
|
11877
|
-
|
|
11878
|
-
|
|
11879
|
-
|
|
11880
|
-
|
|
11881
|
-
|
|
11882
|
-
}
|
|
11883
|
-
|
|
11535
|
+
}
|
|
11536
|
+
const startTime = performance.now();
|
|
11537
|
+
let toolSucceeded, errorBody;
|
|
11538
|
+
try {
|
|
11539
|
+
const cbResult = await originalCb(...argsBeforeExtra, wrappedExtra);
|
|
11540
|
+
toolSucceeded = !cbResult.isError;
|
|
11541
|
+
if (toolSucceeded && !isDevEnvironment) {
|
|
11542
|
+
panorama.transaction(toolName).finish({ toolInvocationId });
|
|
11543
|
+
}
|
|
11544
|
+
if (!toolSucceeded) {
|
|
11545
|
+
panorama.errorMonitor().reportError(new Error(`Tool ${toolName} returned isError: true`), {
|
|
11546
|
+
context: {
|
|
11547
|
+
toolName,
|
|
11548
|
+
toolInvocationId,
|
|
11549
|
+
params: JSON.stringify(argsBeforeExtra),
|
|
11550
|
+
error: JSON.stringify(cbResult, null, 2)
|
|
11551
|
+
}
|
|
11552
|
+
});
|
|
11553
|
+
}
|
|
11554
|
+
return cbResult;
|
|
11555
|
+
} catch (e) {
|
|
11556
|
+
toolSucceeded = false;
|
|
11557
|
+
errorBody = e.message;
|
|
11884
11558
|
if (!isDevEnvironment) {
|
|
11885
|
-
panorama.
|
|
11886
|
-
|
|
11887
|
-
|
|
11559
|
+
panorama.errorMonitor().reportError(e, {
|
|
11560
|
+
context: {
|
|
11561
|
+
toolName,
|
|
11562
|
+
toolInvocationId,
|
|
11563
|
+
params: JSON.stringify(argsBeforeExtra),
|
|
11564
|
+
error: errorBody
|
|
11565
|
+
}
|
|
11566
|
+
});
|
|
11567
|
+
captureException2(e, {
|
|
11568
|
+
tags: {
|
|
11569
|
+
componentId: toolName,
|
|
11570
|
+
toolName
|
|
11571
|
+
}
|
|
11888
11572
|
});
|
|
11889
11573
|
}
|
|
11890
|
-
const
|
|
11891
|
-
|
|
11892
|
-
|
|
11893
|
-
|
|
11894
|
-
|
|
11895
|
-
|
|
11896
|
-
|
|
11897
|
-
|
|
11898
|
-
|
|
11899
|
-
|
|
11900
|
-
|
|
11901
|
-
|
|
11902
|
-
|
|
11903
|
-
|
|
11904
|
-
|
|
11905
|
-
|
|
11906
|
-
|
|
11907
|
-
|
|
11908
|
-
|
|
11909
|
-
|
|
11910
|
-
|
|
11911
|
-
|
|
11912
|
-
|
|
11913
|
-
|
|
11914
|
-
|
|
11915
|
-
|
|
11916
|
-
|
|
11917
|
-
|
|
11918
|
-
|
|
11919
|
-
|
|
11920
|
-
|
|
11921
|
-
error: errorBody
|
|
11922
|
-
}
|
|
11923
|
-
});
|
|
11924
|
-
captureException2(e, {
|
|
11925
|
-
tags: {
|
|
11926
|
-
componentId: toolName,
|
|
11927
|
-
toolName
|
|
11928
|
-
}
|
|
11929
|
-
});
|
|
11930
|
-
}
|
|
11931
|
-
return {
|
|
11932
|
-
isError: true,
|
|
11933
|
-
content: [{ type: "text", text: e.message }]
|
|
11934
|
-
};
|
|
11935
|
-
} finally {
|
|
11936
|
-
const endTime = performance.now();
|
|
11937
|
-
const duration = Math.round(endTime - startTime);
|
|
11938
|
-
const clientName = this.server.getClientVersion()?.name;
|
|
11939
|
-
if (!isDevEnvironment) {
|
|
11940
|
-
const userId = this.getUserId?.();
|
|
11941
|
-
this.biLogger.updateDefaults({
|
|
11942
|
-
_msid: this.context?.siteId ?? toolBiParams.siteId ?? "",
|
|
11943
|
-
_visitorId: toolBiParams.visitorId ?? "",
|
|
11944
|
-
_uuid: userId ?? "",
|
|
11945
|
-
_request_id: toolBiParams.requestId ?? ""
|
|
11946
|
-
});
|
|
11947
|
-
this.biLogger.report(
|
|
11948
|
-
(0, import_v2.wixMcpRequestSrc39Evid1607)({
|
|
11949
|
-
clientName: this.getClientName?.() || clientName,
|
|
11950
|
-
duration,
|
|
11951
|
-
errorBody,
|
|
11952
|
-
toolInvocationId,
|
|
11953
|
-
toolName,
|
|
11954
|
-
params: JSON.stringify(argsBeforeExtra),
|
|
11955
|
-
origin: this.nodeEnv,
|
|
11956
|
-
sessionId: this.sessionId,
|
|
11957
|
-
executionResult: toolSucceeded ? "Success" : "Error",
|
|
11958
|
-
requestId: toolBiParams.requestId
|
|
11959
|
-
})
|
|
11960
|
-
);
|
|
11961
|
-
}
|
|
11574
|
+
const mcpMeta = e.mcpMeta;
|
|
11575
|
+
return {
|
|
11576
|
+
isError: true,
|
|
11577
|
+
content: [{ type: "text", text: e.message }],
|
|
11578
|
+
...mcpMeta && { _meta: mcpMeta }
|
|
11579
|
+
};
|
|
11580
|
+
} finally {
|
|
11581
|
+
const endTime = performance.now();
|
|
11582
|
+
const duration = Math.round(endTime - startTime);
|
|
11583
|
+
const clientName = this.server.getClientVersion()?.name;
|
|
11584
|
+
if (!isDevEnvironment) {
|
|
11585
|
+
this.biLogger.updateDefaults({
|
|
11586
|
+
_msid: this.context?.siteId ?? toolBiParams.siteId ?? "",
|
|
11587
|
+
_visitorId: toolBiParams.visitorId ?? "",
|
|
11588
|
+
_request_id: toolBiParams.requestId ?? ""
|
|
11589
|
+
});
|
|
11590
|
+
this.biLogger.report(
|
|
11591
|
+
wixMcpRequestSrc39Evid1607({
|
|
11592
|
+
clientName: this.getClientName?.() || clientName,
|
|
11593
|
+
duration,
|
|
11594
|
+
errorBody,
|
|
11595
|
+
toolInvocationId,
|
|
11596
|
+
toolName,
|
|
11597
|
+
params: JSON.stringify(argsBeforeExtra),
|
|
11598
|
+
origin: this.nodeEnv,
|
|
11599
|
+
sessionId: this.sessionId,
|
|
11600
|
+
executionResult: toolSucceeded ? "Success" : "Error",
|
|
11601
|
+
requestId: toolBiParams.requestId,
|
|
11602
|
+
jobId: toolBiParams.jobId
|
|
11603
|
+
})
|
|
11604
|
+
);
|
|
11962
11605
|
}
|
|
11963
|
-
}
|
|
11964
|
-
|
|
11965
|
-
}
|
|
11966
|
-
return super.tool.apply(this, args);
|
|
11606
|
+
}
|
|
11607
|
+
};
|
|
11967
11608
|
}
|
|
11968
11609
|
};
|
|
11969
11610
|
|
|
@@ -12089,18 +11730,20 @@ function isApiUrlAllowed(url) {
|
|
|
12089
11730
|
}
|
|
12090
11731
|
|
|
12091
11732
|
// src/api-call/index.ts
|
|
12092
|
-
function addApiCallTool(server2, strategy, allowedTools = ["CallWixSiteAPI", "ListWixSites", "ManageWixSite"]) {
|
|
12093
|
-
|
|
11733
|
+
function addApiCallTool(server2, strategy, allowedTools = ["CallWixSiteAPI", "ListWixSites", "ManageWixSite"], disableTools = [], toolDescriptions) {
|
|
11734
|
+
const getDescription = (toolName, defaultDesc) => toolDescriptions?.[toolName] ?? defaultDesc;
|
|
11735
|
+
if (allowedTools.includes("CallWixSiteAPI") && !disableTools.includes("CallWixSiteAPI")) {
|
|
11736
|
+
const defaultCallApiDesc = [
|
|
11737
|
+
"Call Wix apis on a business or site. Use this to create, read, update, and delete data and other Wix entities in your Wix site,",
|
|
11738
|
+
`You should ALWAYS check the rest docs - "SearchWixRESTDocumentation" for the specific API you want to call, don't just call it without knowing what it does, CHECK THE DOCS`,
|
|
11739
|
+
"Error Handling:",
|
|
11740
|
+
'If the error is related to missing installed app or "WDE0110: Wix Code not enabled", you should install the missing app by using ReadFullDocsArticle tool to fetch the article - https://dev.wix.com/docs/kb-only/MCP_REST_RECIPES_KB_ID/TRAIN_wix.devcenter.apps.installer.v1.AppsInstallerService.InstallApp',
|
|
11741
|
+
"**Note:** there is no need to check if an app is installed/ Wix Code enabled in advance, just call the API and handle the error if it occurs, the API error message will state it clearly.",
|
|
11742
|
+
"For any other error, use your default error handling mechanism"
|
|
11743
|
+
].join("\n");
|
|
12094
11744
|
server2.tool(
|
|
12095
11745
|
"CallWixSiteAPI",
|
|
12096
|
-
|
|
12097
|
-
"Call Wix apis on a business or site. Use this to create, read, update, and delete data and other Wix entities in your Wix site,",
|
|
12098
|
-
`You should ALWAYS check the rest docs - "SearchWixRESTDocumentation" for the specific API you want to call, don't just call it without knowing what it does, CHECK THE DOCS`,
|
|
12099
|
-
"Error Handling:",
|
|
12100
|
-
'If the error is related to missing installed app or "WDE0110: Wix Code not enabled", you should install the missing app by using ReadFullDocsArticle tool to fetch the article - https://dev.wix.com/docs/kb-only/MCP_REST_RECIPES_KB_ID/TRAIN_wix.devcenter.apps.installer.v1.AppsInstallerService.InstallApp',
|
|
12101
|
-
"**Note:** there is no need to check if an app is installed/ Wix Code enabled in advance, just call the API and handle the error if it occurs, the API error message will state it clearly.",
|
|
12102
|
-
"For any other error, use your default error handling mechanism"
|
|
12103
|
-
].join("\n"),
|
|
11746
|
+
getDescription("CallWixSiteAPI", defaultCallApiDesc),
|
|
12104
11747
|
{
|
|
12105
11748
|
siteId: z3.string().describe("The id of the site selected using site selection tool"),
|
|
12106
11749
|
url: z3.string().url().describe(
|
|
@@ -12113,6 +11756,7 @@ function addApiCallTool(server2, strategy, allowedTools = ["CallWixSiteAPI", "Li
|
|
|
12113
11756
|
"A string representing of a valid JSON object to describe the body of the request"
|
|
12114
11757
|
)
|
|
12115
11758
|
},
|
|
11759
|
+
{ readOnlyHint: false, destructiveHint: true, openWorldHint: false },
|
|
12116
11760
|
async ({ url, body, method, siteId }, { httpClient, setToolBiParams }) => {
|
|
12117
11761
|
logger.log(
|
|
12118
11762
|
`Calling Wix Site API: ${siteId} ${url}, body: ${JSON.stringify(body)}`
|
|
@@ -12167,10 +11811,11 @@ function addApiCallTool(server2, strategy, allowedTools = ["CallWixSiteAPI", "Li
|
|
|
12167
11811
|
}
|
|
12168
11812
|
);
|
|
12169
11813
|
}
|
|
12170
|
-
if (allowedTools.includes("ListWixSites")) {
|
|
11814
|
+
if (allowedTools.includes("ListWixSites") && !disableTools.includes("ListWixSites")) {
|
|
11815
|
+
const defaultListSitesDesc = "List Wix sites for the current user, by default it will return all sites, but you can filter by name";
|
|
12171
11816
|
server2.tool(
|
|
12172
11817
|
"ListWixSites",
|
|
12173
|
-
"
|
|
11818
|
+
getDescription("ListWixSites", defaultListSitesDesc),
|
|
12174
11819
|
{
|
|
12175
11820
|
nameSearch: z3.string().optional().describe(
|
|
12176
11821
|
"optional filer by name, if not provided all sites will be returned"
|
|
@@ -12178,6 +11823,7 @@ function addApiCallTool(server2, strategy, allowedTools = ["CallWixSiteAPI", "Li
|
|
|
12178
11823
|
// Hack for Cursor ignoring tools with no params (when nameSearch is optional)
|
|
12179
11824
|
alwaysTrue: z3.boolean().describe("Always pass true to this parameter")
|
|
12180
11825
|
},
|
|
11826
|
+
{ readOnlyHint: true, destructiveHint: false, openWorldHint: false },
|
|
12181
11827
|
async ({ nameSearch }, { httpClient }) => {
|
|
12182
11828
|
const sitesRes = await httpClient.post(
|
|
12183
11829
|
"https://www.wixapis.com/site-list/v2/sites/query",
|
|
@@ -12221,12 +11867,13 @@ function addApiCallTool(server2, strategy, allowedTools = ["CallWixSiteAPI", "Li
|
|
|
12221
11867
|
}
|
|
12222
11868
|
);
|
|
12223
11869
|
}
|
|
12224
|
-
if (allowedTools.includes("ManageWixSite")) {
|
|
11870
|
+
if (allowedTools.includes("ManageWixSite") && !disableTools.includes("ManageWixSite")) {
|
|
11871
|
+
const defaultManageSiteDesc = `Use account level API in order to create a site, update a site and publish site.
|
|
11872
|
+
ALWAYS use "SearchWixRESTDocumentation" to search for the API you should invoke, NEVER GUESS THE SITE API URL
|
|
11873
|
+
You should ALWAYS check the rest docs - "SearchWixRESTDocumentation" for the specific API you want to call, don't just call it without knowing what it does, CHECK THE DOCS`;
|
|
12225
11874
|
server2.tool(
|
|
12226
11875
|
"ManageWixSite",
|
|
12227
|
-
|
|
12228
|
-
ALWAYS use "SearchWixRESTDocumentation" to search for the API you should invoke, NEVER GUESS THE SITE API URL
|
|
12229
|
-
You should ALWAYS check the rest docs - "SearchWixRESTDocumentation" for the specific API you want to call, don't just call it without knowing what it does, CHECK THE DOCS`,
|
|
11876
|
+
getDescription("ManageWixSite", defaultManageSiteDesc),
|
|
12230
11877
|
{
|
|
12231
11878
|
url: z3.string().url().describe(
|
|
12232
11879
|
"The url of the api to call - ALWAYS get the information from the Wix REST docs DONT GUESS IT, the URL MUST BE ABSOLUTE URL"
|
|
@@ -12238,6 +11885,7 @@ function addApiCallTool(server2, strategy, allowedTools = ["CallWixSiteAPI", "Li
|
|
|
12238
11885
|
"A string representing of a valid JSON object to describe the body of the request"
|
|
12239
11886
|
)
|
|
12240
11887
|
},
|
|
11888
|
+
{ readOnlyHint: false, destructiveHint: true, openWorldHint: false },
|
|
12241
11889
|
async ({ url, body, method }, { httpClient }) => {
|
|
12242
11890
|
logger.log(
|
|
12243
11891
|
`Calling Wix Account level API: ${url}, body: ${JSON.stringify(body)}`
|
|
@@ -12291,6 +11939,8 @@ async function addVeloReadmeTools(server2) {
|
|
|
12291
11939
|
server2.tool(
|
|
12292
11940
|
"VeloREADME",
|
|
12293
11941
|
"This tool is set for providing Velo context in order to be used by the agent for executing Velo-related tasks.",
|
|
11942
|
+
{},
|
|
11943
|
+
{ readOnlyHint: true, destructiveHint: false, openWorldHint: false },
|
|
12294
11944
|
async () => {
|
|
12295
11945
|
return {
|
|
12296
11946
|
content: [
|
|
@@ -12352,6 +12002,7 @@ var EXPERIMENTAL_TOOLS = [
|
|
|
12352
12002
|
"WIX_API",
|
|
12353
12003
|
"CLI_COMMAND",
|
|
12354
12004
|
"GET_TO_KNOW_WIX",
|
|
12005
|
+
"CREATE_WIX_BUSINESS_GUIDE",
|
|
12355
12006
|
"VELO_README",
|
|
12356
12007
|
"WIX_API_THROUGH_FS"
|
|
12357
12008
|
];
|
|
@@ -12419,9 +12070,16 @@ logger.log("Active tools:", activeTools);
|
|
|
12419
12070
|
var docsTools = activeTools.filter(
|
|
12420
12071
|
(tool) => VALID_DOCS_TOOLS.includes(tool)
|
|
12421
12072
|
);
|
|
12422
|
-
|
|
12073
|
+
var hasGetToKnowWix = activeTools.includes("GET_TO_KNOW_WIX");
|
|
12074
|
+
var hasCreateWixBusinessGuide = activeTools.includes(
|
|
12075
|
+
"CREATE_WIX_BUSINESS_GUIDE"
|
|
12076
|
+
);
|
|
12077
|
+
if (docsTools.length > 0 || hasGetToKnowWix || hasCreateWixBusinessGuide) {
|
|
12423
12078
|
logger.log("Adding docs tools:", docsTools);
|
|
12424
|
-
addDocsTools(server, docsTools,
|
|
12079
|
+
addDocsTools(server, docsTools, {
|
|
12080
|
+
getToKnowWixEnabled: hasGetToKnowWix,
|
|
12081
|
+
createWixBusinessGuideEnabled: hasCreateWixBusinessGuide
|
|
12082
|
+
});
|
|
12425
12083
|
}
|
|
12426
12084
|
if (activeTools.includes("VELO_README")) {
|
|
12427
12085
|
addVeloReadmeTools(server);
|