@wix/mcp 1.0.22 → 1.0.24
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 +1114 -1093
- package/build/bin-standalone.js.map +4 -4
- package/build/cjs/index.cjs +8738 -7238
- package/build/cjs/index.cjs.map +4 -4
- package/build/dts/api-call/index.d.ts +7 -1
- package/build/dts/api-call/index.d.ts.map +1 -1
- package/build/dts/api-call/index.js +115 -39
- package/build/dts/api-call/index.js.map +1 -1
- package/build/dts/api-call/upload-image-tool.d.ts +8 -0
- package/build/dts/api-call/upload-image-tool.d.ts.map +1 -0
- package/build/dts/api-call/upload-image-tool.js +150 -0
- package/build/dts/api-call/upload-image-tool.js.map +1 -0
- package/build/dts/api-call/validation.d.ts +1 -0
- package/build/dts/api-call/validation.d.ts.map +1 -1
- package/build/dts/api-call/validation.js +7 -7
- package/build/dts/api-call/validation.js.map +1 -1
- package/build/dts/bin.d.ts.map +1 -1
- package/build/dts/bin.js.map +1 -1
- package/build/dts/cli-tools/cli.d.ts.map +1 -1
- package/build/dts/cli-tools/cli.js +6 -4
- package/build/dts/cli-tools/cli.js.map +1 -1
- package/build/dts/config/default-config.d.ts +41 -0
- package/build/dts/config/default-config.d.ts.map +1 -0
- package/build/dts/config/default-config.js +169 -0
- package/build/dts/config/default-config.js.map +1 -0
- package/build/dts/docs/create-site-guide.d.ts +1 -1
- package/build/dts/docs/create-site-guide.d.ts.map +1 -1
- package/build/dts/docs/create-site-guide.js +5 -2
- package/build/dts/docs/create-site-guide.js.map +1 -1
- package/build/dts/docs/docs.d.ts +24 -0
- package/build/dts/docs/docs.d.ts.map +1 -1
- package/build/dts/docs/docs.js +117 -167
- package/build/dts/docs/docs.js.map +1 -1
- package/build/dts/docs/fetch-article.d.ts +1 -1
- package/build/dts/docs/fetch-article.d.ts.map +1 -1
- package/build/dts/docs/fetch-article.js +39 -1
- package/build/dts/docs/fetch-article.js.map +1 -1
- package/build/dts/docs/get-to-know.d.ts +16 -2
- package/build/dts/docs/get-to-know.d.ts.map +1 -1
- package/build/dts/docs/get-to-know.js +80 -80
- package/build/dts/docs/get-to-know.js.map +1 -1
- package/build/dts/docs/semanticSearch.d.ts.map +1 -1
- package/build/dts/docs/semanticSearch.js +4 -1
- package/build/dts/docs/semanticSearch.js.map +1 -1
- package/build/dts/docs/semanticSearch.test.js +5 -14
- package/build/dts/docs/semanticSearch.test.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 +5 -2
- package/build/dts/index.d.ts.map +1 -1
- package/build/dts/index.js +4 -0
- package/build/dts/index.js.map +1 -1
- package/build/dts/infra/logger.d.ts +1 -0
- package/build/dts/infra/logger.d.ts.map +1 -1
- package/build/dts/infra/logger.js +4 -0
- package/build/dts/infra/logger.js.map +1 -1
- package/build/dts/infra/widget-payload.d.ts +11 -0
- package/build/dts/infra/widget-payload.d.ts.map +1 -0
- package/build/dts/infra/widget-payload.js +2 -0
- package/build/dts/infra/widget-payload.js.map +1 -0
- package/build/dts/site-widget-tools/constants.d.ts +4 -0
- package/build/dts/site-widget-tools/constants.d.ts.map +1 -0
- package/build/dts/site-widget-tools/constants.js +6 -0
- package/build/dts/site-widget-tools/constants.js.map +1 -0
- package/build/dts/site-widget-tools/edit-site-tool/index.d.ts +4 -0
- package/build/dts/site-widget-tools/edit-site-tool/index.d.ts.map +1 -0
- package/build/dts/site-widget-tools/edit-site-tool/index.js +171 -0
- package/build/dts/site-widget-tools/edit-site-tool/index.js.map +1 -0
- package/build/dts/site-widget-tools/index.d.ts +4 -0
- package/build/dts/site-widget-tools/index.d.ts.map +1 -0
- package/build/dts/site-widget-tools/index.js +4 -0
- package/build/dts/site-widget-tools/index.js.map +1 -0
- package/build/dts/site-widget-tools/pull-site-creation-job-tool/index.d.ts +4 -0
- package/build/dts/site-widget-tools/pull-site-creation-job-tool/index.d.ts.map +1 -0
- package/build/dts/site-widget-tools/pull-site-creation-job-tool/index.js +177 -0
- package/build/dts/site-widget-tools/pull-site-creation-job-tool/index.js.map +1 -0
- package/build/dts/site-widget-tools/pull-site-creation-job-tool/types.d.ts +52 -0
- package/build/dts/site-widget-tools/pull-site-creation-job-tool/types.d.ts.map +1 -0
- package/build/dts/site-widget-tools/pull-site-creation-job-tool/types.js +2 -0
- package/build/dts/site-widget-tools/pull-site-creation-job-tool/types.js.map +1 -0
- package/build/dts/site-widget-tools/site-builder-tool/index.d.ts +4 -0
- package/build/dts/site-widget-tools/site-builder-tool/index.d.ts.map +1 -0
- package/build/dts/site-widget-tools/site-builder-tool/index.js +157 -0
- package/build/dts/site-widget-tools/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 +15 -17
- 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 +18 -3
- package/build/dts/wix-mcp-server.d.ts.map +1 -1
- package/build/dts/wix-mcp-server.js +129 -106
- package/build/dts/wix-mcp-server.js.map +1 -1
- package/build/esm/index.js +8402 -6402
- package/build/esm/index.js.map +4 -4
- package/package.json +49 -25
package/build/bin-standalone.js
CHANGED
|
@@ -45,556 +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.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.astraCmdEnteredSrc11Evid4001 = 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 = exports.triggerValueWasSelected = 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 astraCmdEnteredSrc11Evid4001(params) {
|
|
333
|
-
return { evid: 4001, src: 11, endpoint: "", params };
|
|
334
|
-
}
|
|
335
|
-
exports.astraCmdEnteredSrc11Evid4001 = astraCmdEnteredSrc11Evid4001;
|
|
336
|
-
function headlessQuickStartModalShown(params) {
|
|
337
|
-
return { evid: 11, src: 151, endpoint: "", params };
|
|
338
|
-
}
|
|
339
|
-
exports.headlessQuickStartModalShown = headlessQuickStartModalShown;
|
|
340
|
-
function headlessPlaygroundModalFinishedLoading(params) {
|
|
341
|
-
return { evid: 12, src: 151, endpoint: "", params };
|
|
342
|
-
}
|
|
343
|
-
exports.headlessPlaygroundModalFinishedLoading = headlessPlaygroundModalFinishedLoading;
|
|
344
|
-
function oauthAppClickOnOauthAppAction(params) {
|
|
345
|
-
return { evid: 100, src: 154, endpoint: "", params };
|
|
346
|
-
}
|
|
347
|
-
exports.oauthAppClickOnOauthAppAction = oauthAppClickOnOauthAppAction;
|
|
348
|
-
function oauthAppClickAtTheOauthAppMainPage(params) {
|
|
349
|
-
return { evid: 101, src: 154, endpoint: "", params };
|
|
350
|
-
}
|
|
351
|
-
exports.oauthAppClickAtTheOauthAppMainPage = oauthAppClickAtTheOauthAppMainPage;
|
|
352
|
-
function oauthAppClickNextCloseAtTheCreateOauthAppDialog(params) {
|
|
353
|
-
return { evid: 102, src: 154, endpoint: "", params };
|
|
354
|
-
}
|
|
355
|
-
exports.oauthAppClickNextCloseAtTheCreateOauthAppDialog = oauthAppClickNextCloseAtTheCreateOauthAppDialog;
|
|
356
|
-
function oauthAppClickAtTheCreateEditOauthAppPage(params) {
|
|
357
|
-
return { evid: 103, src: 154, endpoint: "", params };
|
|
358
|
-
}
|
|
359
|
-
exports.oauthAppClickAtTheCreateEditOauthAppPage = oauthAppClickAtTheCreateEditOauthAppPage;
|
|
360
|
-
function oauthAppClickOnCloseFromCreateEditOauthAppPage(params) {
|
|
361
|
-
return { evid: 104, src: 154, endpoint: "", params };
|
|
362
|
-
}
|
|
363
|
-
exports.oauthAppClickOnCloseFromCreateEditOauthAppPage = oauthAppClickOnCloseFromCreateEditOauthAppPage;
|
|
364
|
-
function oauthAppClickOnSaveFromCreateEditOauthAppPage(params) {
|
|
365
|
-
return { evid: 105, src: 154, endpoint: "", params };
|
|
366
|
-
}
|
|
367
|
-
exports.oauthAppClickOnSaveFromCreateEditOauthAppPage = oauthAppClickOnSaveFromCreateEditOauthAppPage;
|
|
368
|
-
function oauthAppClickAtTheDeleteOauthAppDialog(params) {
|
|
369
|
-
return { evid: 106, src: 154, endpoint: "", params };
|
|
370
|
-
}
|
|
371
|
-
exports.oauthAppClickAtTheDeleteOauthAppDialog = oauthAppClickAtTheDeleteOauthAppDialog;
|
|
372
|
-
function oauthAppOauthAppActionWasMade(params) {
|
|
373
|
-
return { evid: 107, src: 154, endpoint: "", params };
|
|
374
|
-
}
|
|
375
|
-
exports.oauthAppOauthAppActionWasMade = oauthAppOauthAppActionWasMade;
|
|
376
|
-
function oauthAppClickAtTheGenerateClientSecretDialog(params) {
|
|
377
|
-
return { evid: 108, src: 154, endpoint: "", params };
|
|
378
|
-
}
|
|
379
|
-
exports.oauthAppClickAtTheGenerateClientSecretDialog = oauthAppClickAtTheGenerateClientSecretDialog;
|
|
380
|
-
function oauthAppOauthAppActionWasMadeServer(params) {
|
|
381
|
-
return { evid: 151, src: 154, endpoint: "", params };
|
|
382
|
-
}
|
|
383
|
-
exports.oauthAppOauthAppActionWasMadeServer = oauthAppOauthAppActionWasMadeServer;
|
|
384
|
-
function apiKeysStartGenerateKey(params) {
|
|
385
|
-
return { evid: 202, src: 154, endpoint: "", params };
|
|
386
|
-
}
|
|
387
|
-
exports.apiKeysStartGenerateKey = apiKeysStartGenerateKey;
|
|
388
|
-
function apiKeysFinishGenerateKey(params) {
|
|
389
|
-
return { evid: 203, src: 154, endpoint: "", params };
|
|
390
|
-
}
|
|
391
|
-
exports.apiKeysFinishGenerateKey = apiKeysFinishGenerateKey;
|
|
392
|
-
function apiKeysClickOnActionFromThe3Dots(params) {
|
|
393
|
-
return { evid: 204, src: 154, endpoint: "", params };
|
|
394
|
-
}
|
|
395
|
-
exports.apiKeysClickOnActionFromThe3Dots = apiKeysClickOnActionFromThe3Dots;
|
|
396
|
-
function apiKeysClickOnGenerateKeyTopButton(params) {
|
|
397
|
-
return { evid: 205, src: 154, endpoint: "", params };
|
|
398
|
-
}
|
|
399
|
-
exports.apiKeysClickOnGenerateKeyTopButton = apiKeysClickOnGenerateKeyTopButton;
|
|
400
|
-
function apiKeysClickOnGenerateKeyEmptyState(params) {
|
|
401
|
-
return { evid: 206, src: 154, endpoint: "", params };
|
|
402
|
-
}
|
|
403
|
-
exports.apiKeysClickOnGenerateKeyEmptyState = apiKeysClickOnGenerateKeyEmptyState;
|
|
404
|
-
function apiKeysClickOnViewApiReferences(params) {
|
|
405
|
-
return { evid: 207, src: 154, endpoint: "", params };
|
|
406
|
-
}
|
|
407
|
-
exports.apiKeysClickOnViewApiReferences = apiKeysClickOnViewApiReferences;
|
|
408
|
-
function apiKeysClickOnCopyAccountId(params) {
|
|
409
|
-
return { evid: 208, src: 154, endpoint: "", params };
|
|
410
|
-
}
|
|
411
|
-
exports.apiKeysClickOnCopyAccountId = apiKeysClickOnCopyAccountId;
|
|
412
|
-
function apiKeysStartEditKey(params) {
|
|
413
|
-
return { evid: 209, src: 154, endpoint: "", params };
|
|
414
|
-
}
|
|
415
|
-
exports.apiKeysStartEditKey = apiKeysStartEditKey;
|
|
416
|
-
function apiKeysFinishEditKey(params) {
|
|
417
|
-
return { evid: 210, src: 154, endpoint: "", params };
|
|
418
|
-
}
|
|
419
|
-
exports.apiKeysFinishEditKey = apiKeysFinishEditKey;
|
|
420
|
-
function apiKeysStartDuplicateKey(params) {
|
|
421
|
-
return { evid: 211, src: 154, endpoint: "", params };
|
|
422
|
-
}
|
|
423
|
-
exports.apiKeysStartDuplicateKey = apiKeysStartDuplicateKey;
|
|
424
|
-
function apiKeysFinishDuplicateKey(params) {
|
|
425
|
-
return { evid: 212, src: 154, endpoint: "", params };
|
|
426
|
-
}
|
|
427
|
-
exports.apiKeysFinishDuplicateKey = apiKeysFinishDuplicateKey;
|
|
428
|
-
function apiKeysStartRotateKey(params) {
|
|
429
|
-
return { evid: 213, src: 154, endpoint: "", params };
|
|
430
|
-
}
|
|
431
|
-
exports.apiKeysStartRotateKey = apiKeysStartRotateKey;
|
|
432
|
-
function apiKeysFinishRotateKey(params) {
|
|
433
|
-
return { evid: 214, src: 154, endpoint: "", params };
|
|
434
|
-
}
|
|
435
|
-
exports.apiKeysFinishRotateKey = apiKeysFinishRotateKey;
|
|
436
|
-
function apiKeysStartDeleteKey(params) {
|
|
437
|
-
return { evid: 215, src: 154, endpoint: "", params };
|
|
438
|
-
}
|
|
439
|
-
exports.apiKeysStartDeleteKey = apiKeysStartDeleteKey;
|
|
440
|
-
function apiKeysFinishDeleteKey(params) {
|
|
441
|
-
return { evid: 216, src: 154, endpoint: "", params };
|
|
442
|
-
}
|
|
443
|
-
exports.apiKeysFinishDeleteKey = apiKeysFinishDeleteKey;
|
|
444
|
-
function apiKeysClickOnSendCode(params) {
|
|
445
|
-
return { evid: 217, src: 154, endpoint: "", params };
|
|
446
|
-
}
|
|
447
|
-
exports.apiKeysClickOnSendCode = apiKeysClickOnSendCode;
|
|
448
|
-
function apiKeysClickOnSendCodeAgain(params) {
|
|
449
|
-
return { evid: 218, src: 154, endpoint: "", params };
|
|
450
|
-
}
|
|
451
|
-
exports.apiKeysClickOnSendCodeAgain = apiKeysClickOnSendCodeAgain;
|
|
452
|
-
function apiKeysClickOnOauthPageLink(params) {
|
|
453
|
-
return { evid: 227, src: 154, endpoint: "", params };
|
|
454
|
-
}
|
|
455
|
-
exports.apiKeysClickOnOauthPageLink = apiKeysClickOnOauthPageLink;
|
|
456
|
-
function triggerValueWasSelected(params) {
|
|
457
|
-
return { evid: 400, src: 154, endpoint: "", params };
|
|
458
|
-
}
|
|
459
|
-
exports.triggerValueWasSelected = triggerValueWasSelected;
|
|
460
|
-
function zapierTestDataClick(params) {
|
|
461
|
-
return { evid: 401, src: 154, endpoint: "", params };
|
|
462
|
-
}
|
|
463
|
-
exports.zapierTestDataClick = zapierTestDataClick;
|
|
464
|
-
function zapierCustomZapCreatedOrDeleted(params) {
|
|
465
|
-
return { evid: 402, src: 154, endpoint: "", params };
|
|
466
|
-
}
|
|
467
|
-
exports.zapierCustomZapCreatedOrDeleted = zapierCustomZapCreatedOrDeleted;
|
|
468
|
-
function headlessMigrationTourModalShown(params) {
|
|
469
|
-
return { evid: 8, src: 154, endpoint: "", params };
|
|
470
|
-
}
|
|
471
|
-
exports.headlessMigrationTourModalShown = headlessMigrationTourModalShown;
|
|
472
|
-
function webhooksDispatcherResponseChannelTopicSrc155Evid3(params) {
|
|
473
|
-
return { evid: 3, src: 155, endpoint: "", params };
|
|
474
|
-
}
|
|
475
|
-
exports.webhooksDispatcherResponseChannelTopicSrc155Evid3 = webhooksDispatcherResponseChannelTopicSrc155Evid3;
|
|
476
|
-
function graphqlCall(params) {
|
|
477
|
-
return { evid: 400, src: 155, endpoint: "", params };
|
|
478
|
-
}
|
|
479
|
-
exports.graphqlCall = graphqlCall;
|
|
480
|
-
function autoVeloSiteCallForAMethod(params) {
|
|
481
|
-
return { evid: 401, src: 155, endpoint: "", params };
|
|
482
|
-
}
|
|
483
|
-
exports.autoVeloSiteCallForAMethod = autoVeloSiteCallForAMethod;
|
|
484
|
-
function appsSettingsDeletionCandidate(params) {
|
|
485
|
-
return { evid: 700, src: 155, endpoint: "", params };
|
|
486
|
-
}
|
|
487
|
-
exports.appsSettingsDeletionCandidate = appsSettingsDeletionCandidate;
|
|
488
|
-
function settingsAccess(params) {
|
|
489
|
-
return { evid: 800, src: 155, endpoint: "", params };
|
|
490
|
-
}
|
|
491
|
-
exports.settingsAccess = settingsAccess;
|
|
492
|
-
function apiBlockGaRule(params) {
|
|
493
|
-
return { evid: 801, src: 155, endpoint: "", params };
|
|
494
|
-
}
|
|
495
|
-
exports.apiBlockGaRule = apiBlockGaRule;
|
|
496
|
-
function headlessAddWixToYourProjectDialogIsShown(params) {
|
|
497
|
-
return { evid: 13, src: 160, endpoint: "", params };
|
|
498
|
-
}
|
|
499
|
-
exports.headlessAddWixToYourProjectDialogIsShown = headlessAddWixToYourProjectDialogIsShown;
|
|
500
|
-
function headlessOAuthInstalled(params) {
|
|
501
|
-
return { evid: 15, src: 160, endpoint: "", params };
|
|
502
|
-
}
|
|
503
|
-
exports.headlessOAuthInstalled = headlessOAuthInstalled;
|
|
504
|
-
function headlessAddWixToYourProjectDialogClick(params) {
|
|
505
|
-
return { evid: 16, src: 160, endpoint: "", params };
|
|
506
|
-
}
|
|
507
|
-
exports.headlessAddWixToYourProjectDialogClick = headlessAddWixToYourProjectDialogClick;
|
|
508
|
-
function headlessDeployThisTemplatePageIsShown(params) {
|
|
509
|
-
return { evid: 17, src: 160, endpoint: "", params };
|
|
510
|
-
}
|
|
511
|
-
exports.headlessDeployThisTemplatePageIsShown = headlessDeployThisTemplatePageIsShown;
|
|
512
|
-
function headlessDeployThisTemplatePageClick(params) {
|
|
513
|
-
return { evid: 18, src: 160, endpoint: "", params };
|
|
514
|
-
}
|
|
515
|
-
exports.headlessDeployThisTemplatePageClick = headlessDeployThisTemplatePageClick;
|
|
516
|
-
function headlessResumeSetUpDialogIsShown(params) {
|
|
517
|
-
return { evid: 19, src: 160, endpoint: "", params };
|
|
518
|
-
}
|
|
519
|
-
exports.headlessResumeSetUpDialogIsShown = headlessResumeSetUpDialogIsShown;
|
|
520
|
-
function copyOfHeadlessResumeSetUpDialogClick(params) {
|
|
521
|
-
return { evid: 20, src: 160, endpoint: "", params };
|
|
522
|
-
}
|
|
523
|
-
exports.copyOfHeadlessResumeSetUpDialogClick = copyOfHeadlessResumeSetUpDialogClick;
|
|
524
|
-
function testSrc184Evid9999(params) {
|
|
525
|
-
return { evid: 9999, src: 184, endpoint: "", params };
|
|
526
|
-
}
|
|
527
|
-
exports.testSrc184Evid9999 = testSrc184Evid9999;
|
|
528
|
-
function wixMcpRequestSrc39Evid16072(params) {
|
|
529
|
-
return { evid: 1607, src: 39, endpoint: "", params };
|
|
530
|
-
}
|
|
531
|
-
exports.wixMcpRequestSrc39Evid1607 = wixMcpRequestSrc39Evid16072;
|
|
532
|
-
function webhooksInDcCodeExampleWindowClicks(params) {
|
|
533
|
-
return { evid: 11905, src: 96, endpoint: "", params };
|
|
534
|
-
}
|
|
535
|
-
exports.webhooksInDcCodeExampleWindowClicks = webhooksInDcCodeExampleWindowClicks;
|
|
536
|
-
function webhooksInDcTriggeredTestModalClicks(params) {
|
|
537
|
-
return { evid: 11906, src: 96, endpoint: "", params };
|
|
538
|
-
}
|
|
539
|
-
exports.webhooksInDcTriggeredTestModalClicks = webhooksInDcTriggeredTestModalClicks;
|
|
540
|
-
function webhooksInDcCodeExampleWindowScroll(params) {
|
|
541
|
-
return { evid: 11907, src: 96, endpoint: "", params };
|
|
542
|
-
}
|
|
543
|
-
exports.webhooksInDcCodeExampleWindowScroll = webhooksInDcCodeExampleWindowScroll;
|
|
544
|
-
function webhooksInDcCreateEventPageClicks(params) {
|
|
545
|
-
return { evid: 11908, src: 96, endpoint: "", params };
|
|
546
|
-
}
|
|
547
|
-
exports.webhooksInDcCreateEventPageClicks = webhooksInDcCreateEventPageClicks;
|
|
548
|
-
function webhooksInDcMainPageClicks(params) {
|
|
549
|
-
return { evid: 12301, src: 96, endpoint: "", params };
|
|
550
|
-
}
|
|
551
|
-
exports.webhooksInDcMainPageClicks = webhooksInDcMainPageClicks;
|
|
552
|
-
function devCenterWebhookSentTriggered(params) {
|
|
553
|
-
return { evid: 1300, src: 96, endpoint: "", params };
|
|
554
|
-
}
|
|
555
|
-
exports.devCenterWebhookSentTriggered = devCenterWebhookSentTriggered;
|
|
556
|
-
function spiExternalInvocationSrc96Evid199(params) {
|
|
557
|
-
return { evid: 199, src: 96, endpoint: "", params };
|
|
558
|
-
}
|
|
559
|
-
exports.spiExternalInvocationSrc96Evid199 = spiExternalInvocationSrc96Evid199;
|
|
560
|
-
}
|
|
561
|
-
});
|
|
562
|
-
|
|
563
|
-
// ../../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
|
|
564
49
|
var require_enum_types = __commonJS({
|
|
565
|
-
"../../node_modules/@wix/panorama-
|
|
50
|
+
"../../node_modules/@wix/panorama-common-shared/dist/cjs/types/enum-types.js"(exports) {
|
|
566
51
|
"use strict";
|
|
567
52
|
exports.__esModule = true;
|
|
568
53
|
exports.TransactionAction = exports.Platform = exports.LogLevel = exports.InternalTransactions = exports.ErrorSeverity = exports.AlertType = exports.AlertStatus = void 0;
|
|
569
|
-
var AlertType = exports.AlertType = /* @__PURE__ */ function(AlertType2) {
|
|
54
|
+
var AlertType = exports.AlertType = /* @__PURE__ */ (function(AlertType2) {
|
|
570
55
|
AlertType2["SuccessRate"] = "SuccessRate";
|
|
571
56
|
AlertType2["SuccessRateQuality"] = "SuccessRateQuality";
|
|
572
57
|
AlertType2["Duration"] = "Duration";
|
|
573
58
|
AlertType2["ErrorRate"] = "ErrorRate";
|
|
574
59
|
return AlertType2;
|
|
575
|
-
}({});
|
|
576
|
-
var AlertStatus = exports.AlertStatus = /* @__PURE__ */ function(AlertStatus2) {
|
|
60
|
+
})({});
|
|
61
|
+
var AlertStatus = exports.AlertStatus = /* @__PURE__ */ (function(AlertStatus2) {
|
|
577
62
|
AlertStatus2["Alerting"] = "alerting";
|
|
578
63
|
AlertStatus2["Ok"] = "ok";
|
|
579
64
|
return AlertStatus2;
|
|
580
|
-
}({});
|
|
581
|
-
var LogLevel = exports.LogLevel = /* @__PURE__ */ function(LogLevel2) {
|
|
65
|
+
})({});
|
|
66
|
+
var LogLevel = exports.LogLevel = /* @__PURE__ */ (function(LogLevel2) {
|
|
582
67
|
LogLevel2["Info"] = "INFO";
|
|
583
68
|
LogLevel2["Warn"] = "WARN";
|
|
584
69
|
LogLevel2["Error"] = "ERROR";
|
|
585
70
|
LogLevel2["Debug"] = "DEBUG";
|
|
586
71
|
return LogLevel2;
|
|
587
|
-
}({});
|
|
588
|
-
var TransactionAction = exports.TransactionAction = /* @__PURE__ */ function(TransactionAction2) {
|
|
72
|
+
})({});
|
|
73
|
+
var TransactionAction = exports.TransactionAction = /* @__PURE__ */ (function(TransactionAction2) {
|
|
589
74
|
TransactionAction2["Start"] = "START";
|
|
590
75
|
TransactionAction2["Finish"] = "FINISH";
|
|
591
76
|
return TransactionAction2;
|
|
592
|
-
}({});
|
|
77
|
+
})({});
|
|
593
78
|
var InternalTransactions = exports.InternalTransactions = {
|
|
594
79
|
ComponentLoad: "PANORAMA_COMPONENT_LOAD",
|
|
595
80
|
ComponentPhase: "PANORAMA_COMPONENT_PHASE"
|
|
596
81
|
};
|
|
597
|
-
var Platform = exports.Platform = /* @__PURE__ */ function(Platform2) {
|
|
82
|
+
var Platform = exports.Platform = /* @__PURE__ */ (function(Platform2) {
|
|
598
83
|
Platform2["Standalone"] = "standalone";
|
|
599
84
|
Platform2["BusinessManager"] = "business-manager";
|
|
600
85
|
Platform2["Viewer"] = "viewer";
|
|
@@ -602,9 +87,10 @@ var require_enum_types = __commonJS({
|
|
|
602
87
|
Platform2["EditorSettings"] = "editor:settings";
|
|
603
88
|
Platform2["Mobile"] = "mobile";
|
|
604
89
|
Platform2["Standards"] = "standards";
|
|
90
|
+
Platform2["DevPortal"] = "dev-portal";
|
|
605
91
|
return Platform2;
|
|
606
|
-
}({});
|
|
607
|
-
var ErrorSeverity = exports.ErrorSeverity = /* @__PURE__ */ function(ErrorSeverity2) {
|
|
92
|
+
})({});
|
|
93
|
+
var ErrorSeverity = exports.ErrorSeverity = /* @__PURE__ */ (function(ErrorSeverity2) {
|
|
608
94
|
ErrorSeverity2["Fatal"] = "fatal";
|
|
609
95
|
ErrorSeverity2["Error"] = "error";
|
|
610
96
|
ErrorSeverity2["Warning"] = "warning";
|
|
@@ -613,29 +99,29 @@ var require_enum_types = __commonJS({
|
|
|
613
99
|
ErrorSeverity2["Debug"] = "debug";
|
|
614
100
|
ErrorSeverity2["Critical"] = "critical";
|
|
615
101
|
return ErrorSeverity2;
|
|
616
|
-
}({});
|
|
102
|
+
})({});
|
|
617
103
|
}
|
|
618
104
|
});
|
|
619
105
|
|
|
620
|
-
// ../../node_modules/@wix/panorama-
|
|
106
|
+
// ../../node_modules/@wix/panorama-common-shared/dist/cjs/types/data-types.js
|
|
621
107
|
var require_data_types = __commonJS({
|
|
622
|
-
"../../node_modules/@wix/panorama-
|
|
108
|
+
"../../node_modules/@wix/panorama-common-shared/dist/cjs/types/data-types.js"(exports) {
|
|
623
109
|
"use strict";
|
|
624
110
|
exports.__esModule = true;
|
|
625
111
|
}
|
|
626
112
|
});
|
|
627
113
|
|
|
628
|
-
// ../../node_modules/@wix/panorama-
|
|
114
|
+
// ../../node_modules/@wix/panorama-common-shared/dist/cjs/types/interface-types.js
|
|
629
115
|
var require_interface_types = __commonJS({
|
|
630
|
-
"../../node_modules/@wix/panorama-
|
|
116
|
+
"../../node_modules/@wix/panorama-common-shared/dist/cjs/types/interface-types.js"(exports) {
|
|
631
117
|
"use strict";
|
|
632
118
|
exports.__esModule = true;
|
|
633
119
|
}
|
|
634
120
|
});
|
|
635
121
|
|
|
636
|
-
// ../../node_modules/@wix/panorama-
|
|
122
|
+
// ../../node_modules/@wix/panorama-common-shared/dist/cjs/types/index.js
|
|
637
123
|
var require_types = __commonJS({
|
|
638
|
-
"../../node_modules/@wix/panorama-
|
|
124
|
+
"../../node_modules/@wix/panorama-common-shared/dist/cjs/types/index.js"(exports) {
|
|
639
125
|
"use strict";
|
|
640
126
|
exports.__esModule = true;
|
|
641
127
|
var _enumTypes = require_enum_types();
|
|
@@ -721,7 +207,7 @@ var require_toPropertyKey = __commonJS({
|
|
|
721
207
|
var require_defineProperty = __commonJS({
|
|
722
208
|
"../../node_modules/@babel/runtime/helpers/defineProperty.js"(exports, module) {
|
|
723
209
|
var toPropertyKey = require_toPropertyKey();
|
|
724
|
-
function
|
|
210
|
+
function _defineProperty2(e, r, t) {
|
|
725
211
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
726
212
|
value: t,
|
|
727
213
|
enumerable: true,
|
|
@@ -729,13 +215,13 @@ var require_defineProperty = __commonJS({
|
|
|
729
215
|
writable: true
|
|
730
216
|
}) : e[r] = t, e;
|
|
731
217
|
}
|
|
732
|
-
module.exports =
|
|
218
|
+
module.exports = _defineProperty2, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
733
219
|
}
|
|
734
220
|
});
|
|
735
221
|
|
|
736
|
-
// ../../node_modules/@wix/panorama-client
|
|
222
|
+
// ../../node_modules/@wix/panorama-client/node_modules/@wix/panorama-common/dist/cjs/duration-tracker/duration-tracker.js
|
|
737
223
|
var require_duration_tracker = __commonJS({
|
|
738
|
-
"../../node_modules/@wix/panorama-client
|
|
224
|
+
"../../node_modules/@wix/panorama-client/node_modules/@wix/panorama-common/dist/cjs/duration-tracker/duration-tracker.js"(exports) {
|
|
739
225
|
"use strict";
|
|
740
226
|
var _interopRequireDefault = require_interopRequireDefault();
|
|
741
227
|
exports.__esModule = true;
|
|
@@ -780,9 +266,9 @@ var require_duration_tracker = __commonJS({
|
|
|
780
266
|
}
|
|
781
267
|
});
|
|
782
268
|
|
|
783
|
-
// ../../node_modules/@wix/panorama-client
|
|
269
|
+
// ../../node_modules/@wix/panorama-client/node_modules/@wix/panorama-common/dist/cjs/duration-tracker/index.js
|
|
784
270
|
var require_duration_tracker2 = __commonJS({
|
|
785
|
-
"../../node_modules/@wix/panorama-client
|
|
271
|
+
"../../node_modules/@wix/panorama-client/node_modules/@wix/panorama-common/dist/cjs/duration-tracker/index.js"(exports) {
|
|
786
272
|
"use strict";
|
|
787
273
|
exports.__esModule = true;
|
|
788
274
|
exports.createDurationTracker = void 0;
|
|
@@ -791,9 +277,9 @@ var require_duration_tracker2 = __commonJS({
|
|
|
791
277
|
}
|
|
792
278
|
});
|
|
793
279
|
|
|
794
|
-
// ../../node_modules/@wix/panorama-client
|
|
280
|
+
// ../../node_modules/@wix/panorama-client/node_modules/@wix/panorama-common/dist/cjs/global-config/global-config.js
|
|
795
281
|
var require_global_config = __commonJS({
|
|
796
|
-
"../../node_modules/@wix/panorama-client
|
|
282
|
+
"../../node_modules/@wix/panorama-client/node_modules/@wix/panorama-common/dist/cjs/global-config/global-config.js"(exports) {
|
|
797
283
|
"use strict";
|
|
798
284
|
var _interopRequireDefault = require_interopRequireDefault();
|
|
799
285
|
exports.__esModule = true;
|
|
@@ -851,9 +337,9 @@ var require_global_config = __commonJS({
|
|
|
851
337
|
}
|
|
852
338
|
});
|
|
853
339
|
|
|
854
|
-
// ../../node_modules/@wix/panorama-client
|
|
340
|
+
// ../../node_modules/@wix/panorama-client/node_modules/@wix/panorama-common/dist/cjs/global-config/index.js
|
|
855
341
|
var require_global_config2 = __commonJS({
|
|
856
|
-
"../../node_modules/@wix/panorama-client
|
|
342
|
+
"../../node_modules/@wix/panorama-client/node_modules/@wix/panorama-common/dist/cjs/global-config/index.js"(exports) {
|
|
857
343
|
"use strict";
|
|
858
344
|
exports.__esModule = true;
|
|
859
345
|
exports.createGlobalConfig = void 0;
|
|
@@ -862,9 +348,9 @@ var require_global_config2 = __commonJS({
|
|
|
862
348
|
}
|
|
863
349
|
});
|
|
864
350
|
|
|
865
|
-
// ../../node_modules/@wix/panorama-client
|
|
351
|
+
// ../../node_modules/@wix/panorama-client/node_modules/@wix/panorama-common/dist/cjs/utils/class-utils.js
|
|
866
352
|
var require_class_utils = __commonJS({
|
|
867
|
-
"../../node_modules/@wix/panorama-client
|
|
353
|
+
"../../node_modules/@wix/panorama-client/node_modules/@wix/panorama-common/dist/cjs/utils/class-utils.js"(exports) {
|
|
868
354
|
"use strict";
|
|
869
355
|
exports.__esModule = true;
|
|
870
356
|
exports.bindPrototypeMethodsToSelf = void 0;
|
|
@@ -882,9 +368,9 @@ var require_class_utils = __commonJS({
|
|
|
882
368
|
}
|
|
883
369
|
});
|
|
884
370
|
|
|
885
|
-
// ../../node_modules/@wix/panorama-client
|
|
371
|
+
// ../../node_modules/@wix/panorama-client/node_modules/@wix/panorama-common/dist/cjs/utils/index.js
|
|
886
372
|
var require_utils = __commonJS({
|
|
887
|
-
"../../node_modules/@wix/panorama-client
|
|
373
|
+
"../../node_modules/@wix/panorama-client/node_modules/@wix/panorama-common/dist/cjs/utils/index.js"(exports) {
|
|
888
374
|
"use strict";
|
|
889
375
|
exports.__esModule = true;
|
|
890
376
|
var _classUtils = require_class_utils();
|
|
@@ -896,9 +382,9 @@ var require_utils = __commonJS({
|
|
|
896
382
|
}
|
|
897
383
|
});
|
|
898
384
|
|
|
899
|
-
// ../../node_modules/@wix/panorama-client
|
|
385
|
+
// ../../node_modules/@wix/panorama-client/dist/cjs/utils/general-utils.js
|
|
900
386
|
var require_general_utils = __commonJS({
|
|
901
|
-
"../../node_modules/@wix/panorama-client
|
|
387
|
+
"../../node_modules/@wix/panorama-client/dist/cjs/utils/general-utils.js"(exports) {
|
|
902
388
|
"use strict";
|
|
903
389
|
exports.__esModule = true;
|
|
904
390
|
exports.union = exports.last = exports.defaults = exports.deepDefaults = void 0;
|
|
@@ -936,9 +422,9 @@ var require_general_utils = __commonJS({
|
|
|
936
422
|
}
|
|
937
423
|
});
|
|
938
424
|
|
|
939
|
-
// ../../node_modules/@wix/panorama-client
|
|
425
|
+
// ../../node_modules/@wix/panorama-client/dist/cjs/panorama-error-monitor.js
|
|
940
426
|
var require_panorama_error_monitor = __commonJS({
|
|
941
|
-
"../../node_modules/@wix/panorama-client
|
|
427
|
+
"../../node_modules/@wix/panorama-client/dist/cjs/panorama-error-monitor.js"(exports) {
|
|
942
428
|
"use strict";
|
|
943
429
|
exports.__esModule = true;
|
|
944
430
|
exports.PanoramaErrorMonitorImpl = void 0;
|
|
@@ -960,9 +446,9 @@ var require_panorama_error_monitor = __commonJS({
|
|
|
960
446
|
}
|
|
961
447
|
});
|
|
962
448
|
|
|
963
|
-
// ../../node_modules/@wix/panorama-client
|
|
449
|
+
// ../../node_modules/@wix/panorama-client/dist/cjs/panorama-logger.js
|
|
964
450
|
var require_panorama_logger = __commonJS({
|
|
965
|
-
"../../node_modules/@wix/panorama-client
|
|
451
|
+
"../../node_modules/@wix/panorama-client/dist/cjs/panorama-logger.js"(exports) {
|
|
966
452
|
"use strict";
|
|
967
453
|
exports.__esModule = true;
|
|
968
454
|
exports.PanoramaLoggerImpl = void 0;
|
|
@@ -990,9 +476,9 @@ var require_panorama_logger = __commonJS({
|
|
|
990
476
|
}
|
|
991
477
|
});
|
|
992
478
|
|
|
993
|
-
// ../../node_modules/@wix/panorama-
|
|
479
|
+
// ../../node_modules/@wix/panorama-common-shared/dist/cjs/utils/transaction-utils.js
|
|
994
480
|
var require_transaction_utils = __commonJS({
|
|
995
|
-
"../../node_modules/@wix/panorama-
|
|
481
|
+
"../../node_modules/@wix/panorama-common-shared/dist/cjs/utils/transaction-utils.js"(exports) {
|
|
996
482
|
"use strict";
|
|
997
483
|
exports.__esModule = true;
|
|
998
484
|
exports.isCustomTransactionName = void 0;
|
|
@@ -1002,9 +488,9 @@ var require_transaction_utils = __commonJS({
|
|
|
1002
488
|
}
|
|
1003
489
|
});
|
|
1004
490
|
|
|
1005
|
-
// ../../node_modules/@wix/panorama-
|
|
491
|
+
// ../../node_modules/@wix/panorama-common-shared/dist/cjs/utils/platform-utils.js
|
|
1006
492
|
var require_platform_utils = __commonJS({
|
|
1007
|
-
"../../node_modules/@wix/panorama-
|
|
493
|
+
"../../node_modules/@wix/panorama-common-shared/dist/cjs/utils/platform-utils.js"(exports) {
|
|
1008
494
|
"use strict";
|
|
1009
495
|
exports.__esModule = true;
|
|
1010
496
|
exports.isSsrEnabledInPlatform = void 0;
|
|
@@ -1014,9 +500,9 @@ var require_platform_utils = __commonJS({
|
|
|
1014
500
|
}
|
|
1015
501
|
});
|
|
1016
502
|
|
|
1017
|
-
// ../../node_modules/@wix/panorama-
|
|
503
|
+
// ../../node_modules/@wix/panorama-common-shared/dist/cjs/utils/guid.js
|
|
1018
504
|
var require_guid = __commonJS({
|
|
1019
|
-
"../../node_modules/@wix/panorama-
|
|
505
|
+
"../../node_modules/@wix/panorama-common-shared/dist/cjs/utils/guid.js"(exports) {
|
|
1020
506
|
"use strict";
|
|
1021
507
|
exports.__esModule = true;
|
|
1022
508
|
exports.generateGuidRegex = void 0;
|
|
@@ -1025,9 +511,9 @@ var require_guid = __commonJS({
|
|
|
1025
511
|
}
|
|
1026
512
|
});
|
|
1027
513
|
|
|
1028
|
-
// ../../node_modules/@wix/panorama-
|
|
514
|
+
// ../../node_modules/@wix/panorama-common-shared/dist/cjs/utils/index.js
|
|
1029
515
|
var require_utils2 = __commonJS({
|
|
1030
|
-
"../../node_modules/@wix/panorama-
|
|
516
|
+
"../../node_modules/@wix/panorama-common-shared/dist/cjs/utils/index.js"(exports) {
|
|
1031
517
|
"use strict";
|
|
1032
518
|
exports.__esModule = true;
|
|
1033
519
|
var _transactionUtils = require_transaction_utils();
|
|
@@ -1051,9 +537,9 @@ var require_utils2 = __commonJS({
|
|
|
1051
537
|
}
|
|
1052
538
|
});
|
|
1053
539
|
|
|
1054
|
-
// ../../node_modules/@wix/panorama-client
|
|
540
|
+
// ../../node_modules/@wix/panorama-client/dist/cjs/panorama-transaction.js
|
|
1055
541
|
var require_panorama_transaction = __commonJS({
|
|
1056
|
-
"../../node_modules/@wix/panorama-client
|
|
542
|
+
"../../node_modules/@wix/panorama-client/dist/cjs/panorama-transaction.js"(exports) {
|
|
1057
543
|
"use strict";
|
|
1058
544
|
exports.__esModule = true;
|
|
1059
545
|
exports.PanoramaTransactionImpl = void 0;
|
|
@@ -1082,9 +568,9 @@ var require_panorama_transaction = __commonJS({
|
|
|
1082
568
|
}
|
|
1083
569
|
});
|
|
1084
570
|
|
|
1085
|
-
// ../../node_modules/@wix/panorama-client
|
|
571
|
+
// ../../node_modules/@wix/panorama-client/dist/cjs/panorama-client-component.js
|
|
1086
572
|
var require_panorama_client_component = __commonJS({
|
|
1087
|
-
"../../node_modules/@wix/panorama-client
|
|
573
|
+
"../../node_modules/@wix/panorama-client/dist/cjs/panorama-client-component.js"(exports) {
|
|
1088
574
|
"use strict";
|
|
1089
575
|
var _interopRequireDefault = require_interopRequireDefault();
|
|
1090
576
|
exports.__esModule = true;
|
|
@@ -1116,15 +602,15 @@ var require_panorama_client_component = __commonJS({
|
|
|
1116
602
|
}
|
|
1117
603
|
});
|
|
1118
604
|
|
|
1119
|
-
// ../../node_modules/@wix/panorama-client
|
|
605
|
+
// ../../node_modules/@wix/panorama-client/dist/cjs/plugins/hooks-manager.js
|
|
1120
606
|
var require_hooks_manager = __commonJS({
|
|
1121
|
-
"../../node_modules/@wix/panorama-client
|
|
607
|
+
"../../node_modules/@wix/panorama-client/dist/cjs/plugins/hooks-manager.js"(exports) {
|
|
1122
608
|
"use strict";
|
|
1123
609
|
var _interopRequireDefault = require_interopRequireDefault();
|
|
1124
610
|
exports.__esModule = true;
|
|
1125
611
|
exports.HooksManager = exports.Hook = void 0;
|
|
1126
612
|
var _defineProperty2 = _interopRequireDefault(require_defineProperty());
|
|
1127
|
-
var Hook = exports.Hook = /* @__PURE__ */ function(Hook2) {
|
|
613
|
+
var Hook = exports.Hook = /* @__PURE__ */ (function(Hook2) {
|
|
1128
614
|
Hook2[Hook2["afterCreateClientForComponent"] = 0] = "afterCreateClientForComponent";
|
|
1129
615
|
Hook2[Hook2["beforeReport"] = 1] = "beforeReport";
|
|
1130
616
|
Hook2[Hook2["beforeReportTransactionStart"] = 2] = "beforeReportTransactionStart";
|
|
@@ -1143,7 +629,7 @@ var require_hooks_manager = __commonJS({
|
|
|
1143
629
|
Hook2[Hook2["afterReportLog"] = 15] = "afterReportLog";
|
|
1144
630
|
Hook2[Hook2["beforeUnhandledError"] = 16] = "beforeUnhandledError";
|
|
1145
631
|
return Hook2;
|
|
1146
|
-
}({});
|
|
632
|
+
})({});
|
|
1147
633
|
var HooksManager = class {
|
|
1148
634
|
constructor() {
|
|
1149
635
|
(0, _defineProperty2.default)(this, "subscribers", {});
|
|
@@ -1169,9 +655,9 @@ var require_hooks_manager = __commonJS({
|
|
|
1169
655
|
}
|
|
1170
656
|
});
|
|
1171
657
|
|
|
1172
|
-
// ../../node_modules/@wix/panorama-client
|
|
658
|
+
// ../../node_modules/@wix/panorama-client/dist/cjs/panorama-phase.js
|
|
1173
659
|
var require_panorama_phase = __commonJS({
|
|
1174
|
-
"../../node_modules/@wix/panorama-client
|
|
660
|
+
"../../node_modules/@wix/panorama-client/dist/cjs/panorama-phase.js"(exports) {
|
|
1175
661
|
"use strict";
|
|
1176
662
|
exports.__esModule = true;
|
|
1177
663
|
exports.PanoramaPhaseImpl = void 0;
|
|
@@ -1194,9 +680,9 @@ var require_panorama_phase = __commonJS({
|
|
|
1194
680
|
}
|
|
1195
681
|
});
|
|
1196
682
|
|
|
1197
|
-
// ../../node_modules/@wix/panorama-client
|
|
683
|
+
// ../../node_modules/@wix/panorama-client/dist/cjs/panorama-client.js
|
|
1198
684
|
var require_panorama_client = __commonJS({
|
|
1199
|
-
"../../node_modules/@wix/panorama-client
|
|
685
|
+
"../../node_modules/@wix/panorama-client/dist/cjs/panorama-client.js"(exports) {
|
|
1200
686
|
"use strict";
|
|
1201
687
|
var _interopRequireDefault = require_interopRequireDefault();
|
|
1202
688
|
exports.__esModule = true;
|
|
@@ -1260,9 +746,9 @@ var require_panorama_client = __commonJS({
|
|
|
1260
746
|
}
|
|
1261
747
|
});
|
|
1262
748
|
|
|
1263
|
-
// ../../node_modules/@wix/panorama-client
|
|
749
|
+
// ../../node_modules/@wix/panorama-client/dist/cjs/utils/error-utils.js
|
|
1264
750
|
var require_error_utils = __commonJS({
|
|
1265
|
-
"../../node_modules/@wix/panorama-client
|
|
751
|
+
"../../node_modules/@wix/panorama-client/dist/cjs/utils/error-utils.js"(exports) {
|
|
1266
752
|
"use strict";
|
|
1267
753
|
exports.__esModule = true;
|
|
1268
754
|
exports.normalizeError = exports.extractWixHttpErrorDetails = exports.createUndedupableError = void 0;
|
|
@@ -1311,9 +797,9 @@ var require_error_utils = __commonJS({
|
|
|
1311
797
|
}
|
|
1312
798
|
});
|
|
1313
799
|
|
|
1314
|
-
// ../../node_modules/@wix/panorama-client
|
|
800
|
+
// ../../node_modules/@wix/panorama-client/dist/cjs/constants.js
|
|
1315
801
|
var require_constants = __commonJS({
|
|
1316
|
-
"../../node_modules/@wix/panorama-client
|
|
802
|
+
"../../node_modules/@wix/panorama-client/dist/cjs/constants.js"(exports) {
|
|
1317
803
|
"use strict";
|
|
1318
804
|
exports.__esModule = true;
|
|
1319
805
|
exports.MAX_STACK_TRACE_SIZE_BYTES = exports.MAX_SESSION_TIME_MS = void 0;
|
|
@@ -1322,9 +808,9 @@ var require_constants = __commonJS({
|
|
|
1322
808
|
}
|
|
1323
809
|
});
|
|
1324
810
|
|
|
1325
|
-
// ../../node_modules/@wix/panorama-client
|
|
811
|
+
// ../../node_modules/@wix/panorama-client/dist/cjs/lib/payload-sanitizer.js
|
|
1326
812
|
var require_payload_sanitizer = __commonJS({
|
|
1327
|
-
"../../node_modules/@wix/panorama-client
|
|
813
|
+
"../../node_modules/@wix/panorama-client/dist/cjs/lib/payload-sanitizer.js"(exports) {
|
|
1328
814
|
"use strict";
|
|
1329
815
|
exports.__esModule = true;
|
|
1330
816
|
exports.sanitizePayload = void 0;
|
|
@@ -1354,9 +840,9 @@ var require_payload_sanitizer = __commonJS({
|
|
|
1354
840
|
}
|
|
1355
841
|
});
|
|
1356
842
|
|
|
1357
|
-
// ../../node_modules/@wix/panorama-client
|
|
843
|
+
// ../../node_modules/@wix/panorama-client/dist/cjs/lib/payload-builder.js
|
|
1358
844
|
var require_payload_builder = __commonJS({
|
|
1359
|
-
"../../node_modules/@wix/panorama-client
|
|
845
|
+
"../../node_modules/@wix/panorama-client/dist/cjs/lib/payload-builder.js"(exports) {
|
|
1360
846
|
"use strict";
|
|
1361
847
|
exports.__esModule = true;
|
|
1362
848
|
exports.buildTransactionPayload = exports.buildPhasePayload = exports.buildLoggerPayload = exports.buildErrorPayload = void 0;
|
|
@@ -1466,9 +952,9 @@ var require_payload_builder = __commonJS({
|
|
|
1466
952
|
}
|
|
1467
953
|
});
|
|
1468
954
|
|
|
1469
|
-
// ../../node_modules/@wix/panorama-client
|
|
955
|
+
// ../../node_modules/@wix/panorama-client/dist/cjs/panorama-client-base.js
|
|
1470
956
|
var require_panorama_client_base = __commonJS({
|
|
1471
|
-
"../../node_modules/@wix/panorama-client
|
|
957
|
+
"../../node_modules/@wix/panorama-client/dist/cjs/panorama-client-base.js"(exports) {
|
|
1472
958
|
"use strict";
|
|
1473
959
|
var _interopRequireDefault = require_interopRequireDefault();
|
|
1474
960
|
exports.__esModule = true;
|
|
@@ -1636,9 +1122,9 @@ var require_panorama_client_base = __commonJS({
|
|
|
1636
1122
|
}
|
|
1637
1123
|
});
|
|
1638
1124
|
|
|
1639
|
-
// ../../node_modules/@wix/panorama-client
|
|
1125
|
+
// ../../node_modules/@wix/panorama-client/dist/cjs/lib/scope.js
|
|
1640
1126
|
var require_scope = __commonJS({
|
|
1641
|
-
"../../node_modules/@wix/panorama-client
|
|
1127
|
+
"../../node_modules/@wix/panorama-client/dist/cjs/lib/scope.js"(exports) {
|
|
1642
1128
|
"use strict";
|
|
1643
1129
|
var _interopRequireDefault = require_interopRequireDefault();
|
|
1644
1130
|
exports.__esModule = true;
|
|
@@ -1670,9 +1156,9 @@ var require_scope = __commonJS({
|
|
|
1670
1156
|
}
|
|
1671
1157
|
});
|
|
1672
1158
|
|
|
1673
|
-
// ../../node_modules/@wix/panorama-client
|
|
1159
|
+
// ../../node_modules/@wix/panorama-client/dist/cjs/panorama-client-factory.js
|
|
1674
1160
|
var require_panorama_client_factory = __commonJS({
|
|
1675
|
-
"../../node_modules/@wix/panorama-client
|
|
1161
|
+
"../../node_modules/@wix/panorama-client/dist/cjs/panorama-client-factory.js"(exports) {
|
|
1676
1162
|
"use strict";
|
|
1677
1163
|
var _interopRequireDefault = require_interopRequireDefault();
|
|
1678
1164
|
exports.__esModule = true;
|
|
@@ -1748,31 +1234,31 @@ var require_panorama_client_factory = __commonJS({
|
|
|
1748
1234
|
}
|
|
1749
1235
|
});
|
|
1750
1236
|
|
|
1751
|
-
// ../../node_modules/@wix/panorama-client
|
|
1237
|
+
// ../../node_modules/@wix/panorama-client/dist/cjs/types.js
|
|
1752
1238
|
var require_types2 = __commonJS({
|
|
1753
|
-
"../../node_modules/@wix/panorama-client
|
|
1239
|
+
"../../node_modules/@wix/panorama-client/dist/cjs/types.js"(exports) {
|
|
1754
1240
|
"use strict";
|
|
1755
1241
|
exports.__esModule = true;
|
|
1756
1242
|
exports.StacktraceScriptType = exports.ExceptionType = void 0;
|
|
1757
|
-
var ExceptionType = exports.ExceptionType = /* @__PURE__ */ function(ExceptionType2) {
|
|
1243
|
+
var ExceptionType = exports.ExceptionType = /* @__PURE__ */ (function(ExceptionType2) {
|
|
1758
1244
|
ExceptionType2["HANDLED"] = "HANDLED";
|
|
1759
1245
|
ExceptionType2["UNHANDLED"] = "UNHANDLED";
|
|
1760
1246
|
return ExceptionType2;
|
|
1761
|
-
}({});
|
|
1762
|
-
var StacktraceScriptType = exports.StacktraceScriptType = /* @__PURE__ */ function(StacktraceScriptType2) {
|
|
1247
|
+
})({});
|
|
1248
|
+
var StacktraceScriptType = exports.StacktraceScriptType = /* @__PURE__ */ (function(StacktraceScriptType2) {
|
|
1763
1249
|
StacktraceScriptType2["WIX_SERVICE"] = "WIX_SERVICE";
|
|
1764
1250
|
StacktraceScriptType2["WIX_APP"] = "WIX_APP";
|
|
1765
1251
|
StacktraceScriptType2["WIX_CLI_APP"] = "WIX_CLI_APP";
|
|
1766
1252
|
StacktraceScriptType2["WIX_CHAT"] = "WIX_CHAT_WIDGET";
|
|
1767
1253
|
StacktraceScriptType2["BROWSER_EXTENSION"] = "BROWSER_EXTENSION";
|
|
1768
1254
|
return StacktraceScriptType2;
|
|
1769
|
-
}({});
|
|
1255
|
+
})({});
|
|
1770
1256
|
}
|
|
1771
1257
|
});
|
|
1772
1258
|
|
|
1773
|
-
// ../../node_modules/@wix/panorama-client
|
|
1259
|
+
// ../../node_modules/@wix/panorama-client/dist/cjs/index.js
|
|
1774
1260
|
var require_cjs = __commonJS({
|
|
1775
|
-
"../../node_modules/@wix/panorama-client
|
|
1261
|
+
"../../node_modules/@wix/panorama-client/dist/cjs/index.js"(exports) {
|
|
1776
1262
|
"use strict";
|
|
1777
1263
|
exports.__esModule = true;
|
|
1778
1264
|
exports.panoramaClient = exports.createGlobalConfig = exports.Platform = exports.ExceptionType = exports.ErrorSeverity = void 0;
|
|
@@ -1788,9 +1274,9 @@ var require_cjs = __commonJS({
|
|
|
1788
1274
|
}
|
|
1789
1275
|
});
|
|
1790
1276
|
|
|
1791
|
-
// ../../node_modules/@wix/panorama-
|
|
1277
|
+
// ../../node_modules/@wix/panorama-common-shared/dist/cjs/constants.js
|
|
1792
1278
|
var require_constants2 = __commonJS({
|
|
1793
|
-
"../../node_modules/@wix/panorama-
|
|
1279
|
+
"../../node_modules/@wix/panorama-common-shared/dist/cjs/constants.js"(exports) {
|
|
1794
1280
|
"use strict";
|
|
1795
1281
|
exports.__esModule = true;
|
|
1796
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;
|
|
@@ -2235,7 +1721,7 @@ function __importStar(mod) {
|
|
|
2235
1721
|
if (mod && mod.__esModule) return mod;
|
|
2236
1722
|
var result = {};
|
|
2237
1723
|
if (mod != null) {
|
|
2238
|
-
for (var k =
|
|
1724
|
+
for (var k = ownKeys2(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
2239
1725
|
}
|
|
2240
1726
|
__setModuleDefault(result, mod);
|
|
2241
1727
|
return result;
|
|
@@ -2319,7 +1805,7 @@ function __rewriteRelativeImportExtension(path3, preserveJsx) {
|
|
|
2319
1805
|
}
|
|
2320
1806
|
return path3;
|
|
2321
1807
|
}
|
|
2322
|
-
var extendStatics, __assign, __createBinding, __setModuleDefault,
|
|
1808
|
+
var extendStatics, __assign, __createBinding, __setModuleDefault, ownKeys2, _SuppressedError, tslib_es6_default;
|
|
2323
1809
|
var init_tslib_es6 = __esm({
|
|
2324
1810
|
"../../node_modules/tslib/tslib.es6.mjs"() {
|
|
2325
1811
|
extendStatics = function(d, b) {
|
|
@@ -2340,7 +1826,7 @@ var init_tslib_es6 = __esm({
|
|
|
2340
1826
|
};
|
|
2341
1827
|
return __assign.apply(this, arguments);
|
|
2342
1828
|
};
|
|
2343
|
-
__createBinding = Object.create ? function(o, m, k, k2) {
|
|
1829
|
+
__createBinding = Object.create ? (function(o, m, k, k2) {
|
|
2344
1830
|
if (k2 === void 0) k2 = k;
|
|
2345
1831
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
2346
1832
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
@@ -2349,22 +1835,22 @@ var init_tslib_es6 = __esm({
|
|
|
2349
1835
|
} };
|
|
2350
1836
|
}
|
|
2351
1837
|
Object.defineProperty(o, k2, desc);
|
|
2352
|
-
} : function(o, m, k, k2) {
|
|
1838
|
+
}) : (function(o, m, k, k2) {
|
|
2353
1839
|
if (k2 === void 0) k2 = k;
|
|
2354
1840
|
o[k2] = m[k];
|
|
2355
|
-
};
|
|
2356
|
-
__setModuleDefault = Object.create ? function(o, v) {
|
|
1841
|
+
});
|
|
1842
|
+
__setModuleDefault = Object.create ? (function(o, v) {
|
|
2357
1843
|
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
2358
|
-
} : function(o, v) {
|
|
1844
|
+
}) : function(o, v) {
|
|
2359
1845
|
o["default"] = v;
|
|
2360
1846
|
};
|
|
2361
|
-
|
|
2362
|
-
|
|
1847
|
+
ownKeys2 = function(o) {
|
|
1848
|
+
ownKeys2 = Object.getOwnPropertyNames || function(o2) {
|
|
2363
1849
|
var ar = [];
|
|
2364
1850
|
for (var k in o2) if (Object.prototype.hasOwnProperty.call(o2, k)) ar[ar.length] = k;
|
|
2365
1851
|
return ar;
|
|
2366
1852
|
};
|
|
2367
|
-
return
|
|
1853
|
+
return ownKeys2(o);
|
|
2368
1854
|
};
|
|
2369
1855
|
_SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
|
|
2370
1856
|
var e = new Error(message);
|
|
@@ -2434,7 +1920,7 @@ var require_assert = __commonJS({
|
|
|
2434
1920
|
subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });
|
|
2435
1921
|
if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
|
|
2436
1922
|
}
|
|
2437
|
-
var AssertionError = function(_Error) {
|
|
1923
|
+
var AssertionError = (function(_Error) {
|
|
2438
1924
|
_inherits(AssertionError2, _Error);
|
|
2439
1925
|
function AssertionError2(message) {
|
|
2440
1926
|
_classCallCheck(this, AssertionError2);
|
|
@@ -2443,7 +1929,7 @@ var require_assert = __commonJS({
|
|
|
2443
1929
|
return _this;
|
|
2444
1930
|
}
|
|
2445
1931
|
return AssertionError2;
|
|
2446
|
-
}(Error);
|
|
1932
|
+
})(Error);
|
|
2447
1933
|
function assertDefined(target, message) {
|
|
2448
1934
|
if (target === void 0) {
|
|
2449
1935
|
throw new AssertionError(message);
|
|
@@ -2615,7 +2101,7 @@ var require_throttle = __commonJS({
|
|
|
2615
2101
|
var require_batch_queue = __commonJS({
|
|
2616
2102
|
"../../node_modules/@wix/wix-bi-logger-client/dist/utils/batch-queue.js"(exports, module) {
|
|
2617
2103
|
"use strict";
|
|
2618
|
-
var _createClass = /* @__PURE__ */ function() {
|
|
2104
|
+
var _createClass = /* @__PURE__ */ (function() {
|
|
2619
2105
|
function defineProperties(target, props) {
|
|
2620
2106
|
for (var i = 0; i < props.length; i++) {
|
|
2621
2107
|
var descriptor = props[i];
|
|
@@ -2630,8 +2116,8 @@ var require_batch_queue = __commonJS({
|
|
|
2630
2116
|
if (staticProps) defineProperties(Constructor, staticProps);
|
|
2631
2117
|
return Constructor;
|
|
2632
2118
|
};
|
|
2633
|
-
}();
|
|
2634
|
-
var _slicedToArray = /* @__PURE__ */ function() {
|
|
2119
|
+
})();
|
|
2120
|
+
var _slicedToArray = /* @__PURE__ */ (function() {
|
|
2635
2121
|
function sliceIterator(arr, i) {
|
|
2636
2122
|
var _arr = [];
|
|
2637
2123
|
var _n = true;
|
|
@@ -2663,7 +2149,7 @@ var require_batch_queue = __commonJS({
|
|
|
2663
2149
|
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
2664
2150
|
}
|
|
2665
2151
|
};
|
|
2666
|
-
}();
|
|
2152
|
+
})();
|
|
2667
2153
|
var _extends = Object.assign || function(target) {
|
|
2668
2154
|
for (var i = 1; i < arguments.length; i++) {
|
|
2669
2155
|
var source = arguments[i];
|
|
@@ -2731,7 +2217,7 @@ var require_batch_queue = __commonJS({
|
|
|
2731
2217
|
g: globalFields
|
|
2732
2218
|
});
|
|
2733
2219
|
};
|
|
2734
|
-
var BatchQueue = function() {
|
|
2220
|
+
var BatchQueue = (function() {
|
|
2735
2221
|
function BatchQueue2() {
|
|
2736
2222
|
_classCallCheck(this, BatchQueue2);
|
|
2737
2223
|
this._initilized = false;
|
|
@@ -2794,7 +2280,7 @@ var require_batch_queue = __commonJS({
|
|
|
2794
2280
|
}
|
|
2795
2281
|
}]);
|
|
2796
2282
|
return BatchQueue2;
|
|
2797
|
-
}();
|
|
2283
|
+
})();
|
|
2798
2284
|
module.exports = BatchQueue;
|
|
2799
2285
|
}
|
|
2800
2286
|
});
|
|
@@ -2846,7 +2332,7 @@ var require_bi_logger = __commonJS({
|
|
|
2846
2332
|
}
|
|
2847
2333
|
return target;
|
|
2848
2334
|
};
|
|
2849
|
-
var _createClass = /* @__PURE__ */ function() {
|
|
2335
|
+
var _createClass = /* @__PURE__ */ (function() {
|
|
2850
2336
|
function defineProperties(target, props) {
|
|
2851
2337
|
for (var i = 0; i < props.length; i++) {
|
|
2852
2338
|
var descriptor = props[i];
|
|
@@ -2861,7 +2347,7 @@ var require_bi_logger = __commonJS({
|
|
|
2861
2347
|
if (staticProps) defineProperties(Constructor, staticProps);
|
|
2862
2348
|
return Constructor;
|
|
2863
2349
|
};
|
|
2864
|
-
}();
|
|
2350
|
+
})();
|
|
2865
2351
|
function _objectWithoutProperties(obj, keys) {
|
|
2866
2352
|
var target = {};
|
|
2867
2353
|
for (var i in obj) {
|
|
@@ -2887,7 +2373,7 @@ var require_bi_logger = __commonJS({
|
|
|
2887
2373
|
var shouldMuteByCategory = _require2.shouldMuteByCategory;
|
|
2888
2374
|
var shouldMuteNonEssentials = _require2.shouldMuteNonEssentials;
|
|
2889
2375
|
var getPolicy = _require2.getPolicy;
|
|
2890
|
-
var BiLogger = function() {
|
|
2376
|
+
var BiLogger = (function() {
|
|
2891
2377
|
function BiLogger2(options, context) {
|
|
2892
2378
|
_classCallCheck(this, BiLogger2);
|
|
2893
2379
|
this._publishers = options.publishers;
|
|
@@ -3146,7 +2632,7 @@ var require_bi_logger = __commonJS({
|
|
|
3146
2632
|
}
|
|
3147
2633
|
}]);
|
|
3148
2634
|
return BiLogger2;
|
|
3149
|
-
}();
|
|
2635
|
+
})();
|
|
3150
2636
|
module.exports = BiLogger;
|
|
3151
2637
|
}
|
|
3152
2638
|
});
|
|
@@ -3155,7 +2641,7 @@ var require_bi_logger = __commonJS({
|
|
|
3155
2641
|
var require_bi_logger_manager = __commonJS({
|
|
3156
2642
|
"../../node_modules/@wix/wix-bi-logger-client/dist/bi-logger-manager.js"(exports, module) {
|
|
3157
2643
|
"use strict";
|
|
3158
|
-
var _createClass = /* @__PURE__ */ function() {
|
|
2644
|
+
var _createClass = /* @__PURE__ */ (function() {
|
|
3159
2645
|
function defineProperties(target, props) {
|
|
3160
2646
|
for (var i = 0; i < props.length; i++) {
|
|
3161
2647
|
var descriptor = props[i];
|
|
@@ -3170,14 +2656,14 @@ var require_bi_logger_manager = __commonJS({
|
|
|
3170
2656
|
if (staticProps) defineProperties(Constructor, staticProps);
|
|
3171
2657
|
return Constructor;
|
|
3172
2658
|
};
|
|
3173
|
-
}();
|
|
2659
|
+
})();
|
|
3174
2660
|
function _classCallCheck(instance, Constructor) {
|
|
3175
2661
|
if (!(instance instanceof Constructor)) {
|
|
3176
2662
|
throw new TypeError("Cannot call a class as a function");
|
|
3177
2663
|
}
|
|
3178
2664
|
}
|
|
3179
2665
|
var assert = require_assert();
|
|
3180
|
-
var BiLoggerManager = function() {
|
|
2666
|
+
var BiLoggerManager = (function() {
|
|
3181
2667
|
function BiLoggerManager2() {
|
|
3182
2668
|
_classCallCheck(this, BiLoggerManager2);
|
|
3183
2669
|
this.reset();
|
|
@@ -3210,7 +2696,7 @@ var require_bi_logger_manager = __commonJS({
|
|
|
3210
2696
|
}
|
|
3211
2697
|
}]);
|
|
3212
2698
|
return BiLoggerManager2;
|
|
3213
|
-
}();
|
|
2699
|
+
})();
|
|
3214
2700
|
module.exports = {
|
|
3215
2701
|
manager: new BiLoggerManager(),
|
|
3216
2702
|
BiLoggerManager
|
|
@@ -3227,7 +2713,7 @@ var require_bi_logger_factory = __commonJS({
|
|
|
3227
2713
|
} : function(obj) {
|
|
3228
2714
|
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
3229
2715
|
};
|
|
3230
|
-
var _createClass = /* @__PURE__ */ function() {
|
|
2716
|
+
var _createClass = /* @__PURE__ */ (function() {
|
|
3231
2717
|
function defineProperties(target, props) {
|
|
3232
2718
|
for (var i = 0; i < props.length; i++) {
|
|
3233
2719
|
var descriptor = props[i];
|
|
@@ -3242,7 +2728,7 @@ var require_bi_logger_factory = __commonJS({
|
|
|
3242
2728
|
if (staticProps) defineProperties(Constructor, staticProps);
|
|
3243
2729
|
return Constructor;
|
|
3244
2730
|
};
|
|
3245
|
-
}();
|
|
2731
|
+
})();
|
|
3246
2732
|
function _classCallCheck(instance, Constructor) {
|
|
3247
2733
|
if (!(instance instanceof Constructor)) {
|
|
3248
2734
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -3252,7 +2738,7 @@ var require_bi_logger_factory = __commonJS({
|
|
|
3252
2738
|
var BiLogger = require_bi_logger();
|
|
3253
2739
|
var biLoggerManager = require_bi_logger_manager();
|
|
3254
2740
|
var BatchQueue = require_batch_queue();
|
|
3255
|
-
var BiLoggerFactory = function() {
|
|
2741
|
+
var BiLoggerFactory = (function() {
|
|
3256
2742
|
function BiLoggerFactory2() {
|
|
3257
2743
|
_classCallCheck(this, BiLoggerFactory2);
|
|
3258
2744
|
this._publishers = [];
|
|
@@ -3413,7 +2899,7 @@ var require_bi_logger_factory = __commonJS({
|
|
|
3413
2899
|
}
|
|
3414
2900
|
}]);
|
|
3415
2901
|
return BiLoggerFactory2;
|
|
3416
|
-
}();
|
|
2902
|
+
})();
|
|
3417
2903
|
module.exports = BiLoggerFactory;
|
|
3418
2904
|
}
|
|
3419
2905
|
});
|
|
@@ -3829,13 +3315,13 @@ var require_domain = __commonJS({
|
|
|
3829
3315
|
"use strict";
|
|
3830
3316
|
exports.__esModule = true;
|
|
3831
3317
|
exports.Brand = void 0;
|
|
3832
|
-
var Brand = exports.Brand = /* @__PURE__ */ function(Brand2) {
|
|
3318
|
+
var Brand = exports.Brand = /* @__PURE__ */ (function(Brand2) {
|
|
3833
3319
|
Brand2[Brand2["wix"] = 0] = "wix";
|
|
3834
3320
|
Brand2[Brand2["editorx"] = 1] = "editorx";
|
|
3835
3321
|
Brand2[Brand2["dayful"] = 2] = "dayful";
|
|
3836
3322
|
Brand2[Brand2["studio"] = 3] = "studio";
|
|
3837
3323
|
return Brand2;
|
|
3838
|
-
}({});
|
|
3324
|
+
})({});
|
|
3839
3325
|
}
|
|
3840
3326
|
});
|
|
3841
3327
|
|
|
@@ -6163,7 +5649,7 @@ var require_cookies2 = __commonJS({
|
|
|
6163
5649
|
var utils = require_utils5();
|
|
6164
5650
|
module.exports = utils.isStandardBrowserEnv() ? (
|
|
6165
5651
|
// Standard browser envs support document.cookie
|
|
6166
|
-
/* @__PURE__ */ function standardBrowserEnv() {
|
|
5652
|
+
/* @__PURE__ */ (function standardBrowserEnv() {
|
|
6167
5653
|
return {
|
|
6168
5654
|
write: function write(name, value, expires, path3, domain, secure) {
|
|
6169
5655
|
var cookie = [];
|
|
@@ -6190,10 +5676,10 @@ var require_cookies2 = __commonJS({
|
|
|
6190
5676
|
this.write(name, "", Date.now() - 864e5);
|
|
6191
5677
|
}
|
|
6192
5678
|
};
|
|
6193
|
-
}()
|
|
5679
|
+
})()
|
|
6194
5680
|
) : (
|
|
6195
5681
|
// Non standard browser env (web workers, react-native) lack needed support.
|
|
6196
|
-
/* @__PURE__ */ function nonStandardBrowserEnv() {
|
|
5682
|
+
/* @__PURE__ */ (function nonStandardBrowserEnv() {
|
|
6197
5683
|
return {
|
|
6198
5684
|
write: function write() {
|
|
6199
5685
|
},
|
|
@@ -6203,7 +5689,7 @@ var require_cookies2 = __commonJS({
|
|
|
6203
5689
|
remove: function remove() {
|
|
6204
5690
|
}
|
|
6205
5691
|
};
|
|
6206
|
-
}()
|
|
5692
|
+
})()
|
|
6207
5693
|
);
|
|
6208
5694
|
}
|
|
6209
5695
|
});
|
|
@@ -6268,7 +5754,7 @@ var require_isURLSameOrigin = __commonJS({
|
|
|
6268
5754
|
module.exports = utils.isStandardBrowserEnv() ? (
|
|
6269
5755
|
// Standard browser envs have full support of the APIs needed to test
|
|
6270
5756
|
// whether the request URL is of the same origin as current location.
|
|
6271
|
-
function standardBrowserEnv() {
|
|
5757
|
+
(function standardBrowserEnv() {
|
|
6272
5758
|
var msie = /(msie|trident)/i.test(navigator.userAgent);
|
|
6273
5759
|
var urlParsingNode = document.createElement("a");
|
|
6274
5760
|
var originURL;
|
|
@@ -6295,14 +5781,14 @@ var require_isURLSameOrigin = __commonJS({
|
|
|
6295
5781
|
var parsed = utils.isString(requestURL) ? resolveURL(requestURL) : requestURL;
|
|
6296
5782
|
return parsed.protocol === originURL.protocol && parsed.host === originURL.host;
|
|
6297
5783
|
};
|
|
6298
|
-
}()
|
|
5784
|
+
})()
|
|
6299
5785
|
) : (
|
|
6300
5786
|
// Non standard browser envs (web workers, react-native) lack needed support.
|
|
6301
|
-
/* @__PURE__ */ function nonStandardBrowserEnv() {
|
|
5787
|
+
/* @__PURE__ */ (function nonStandardBrowserEnv() {
|
|
6302
5788
|
return function isURLSameOrigin() {
|
|
6303
5789
|
return true;
|
|
6304
5790
|
};
|
|
6305
|
-
}()
|
|
5791
|
+
})()
|
|
6306
5792
|
);
|
|
6307
5793
|
}
|
|
6308
5794
|
});
|
|
@@ -7407,7 +6893,7 @@ var require_src2 = __commonJS({
|
|
|
7407
6893
|
};
|
|
7408
6894
|
var StandaloneNodeLogger2 = (
|
|
7409
6895
|
/** @class */
|
|
7410
|
-
function() {
|
|
6896
|
+
(function() {
|
|
7411
6897
|
function StandaloneNodeLogger3() {
|
|
7412
6898
|
}
|
|
7413
6899
|
StandaloneNodeLogger3.prototype.factory = function(options) {
|
|
@@ -7449,7 +6935,7 @@ var require_src2 = __commonJS({
|
|
|
7449
6935
|
return biLoggerFactory;
|
|
7450
6936
|
};
|
|
7451
6937
|
return StandaloneNodeLogger3;
|
|
7452
|
-
}()
|
|
6938
|
+
})()
|
|
7453
6939
|
);
|
|
7454
6940
|
exports.StandaloneNodeLogger = StandaloneNodeLogger2;
|
|
7455
6941
|
exports.default = new StandaloneNodeLogger2();
|
|
@@ -7742,13 +7228,13 @@ var require_domain2 = __commonJS({
|
|
|
7742
7228
|
"use strict";
|
|
7743
7229
|
exports.__esModule = true;
|
|
7744
7230
|
exports.Brand = void 0;
|
|
7745
|
-
var Brand = exports.Brand = /* @__PURE__ */ function(Brand2) {
|
|
7231
|
+
var Brand = exports.Brand = /* @__PURE__ */ (function(Brand2) {
|
|
7746
7232
|
Brand2[Brand2["wix"] = 0] = "wix";
|
|
7747
7233
|
Brand2[Brand2["editorx"] = 1] = "editorx";
|
|
7748
7234
|
Brand2[Brand2["dayful"] = 2] = "dayful";
|
|
7749
7235
|
Brand2[Brand2["studio"] = 3] = "studio";
|
|
7750
7236
|
return Brand2;
|
|
7751
|
-
}({});
|
|
7237
|
+
})({});
|
|
7752
7238
|
}
|
|
7753
7239
|
});
|
|
7754
7240
|
|
|
@@ -8759,7 +8245,7 @@ var require_http2 = __commonJS({
|
|
|
8759
8245
|
var require_helpers = __commonJS({
|
|
8760
8246
|
"../../node_modules/agent-base/dist/helpers.js"(exports) {
|
|
8761
8247
|
"use strict";
|
|
8762
|
-
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) {
|
|
8763
8249
|
if (k2 === void 0) k2 = k;
|
|
8764
8250
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8765
8251
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
@@ -8768,13 +8254,13 @@ var require_helpers = __commonJS({
|
|
|
8768
8254
|
} };
|
|
8769
8255
|
}
|
|
8770
8256
|
Object.defineProperty(o, k2, desc);
|
|
8771
|
-
} : function(o, m, k, k2) {
|
|
8257
|
+
}) : (function(o, m, k, k2) {
|
|
8772
8258
|
if (k2 === void 0) k2 = k;
|
|
8773
8259
|
o[k2] = m[k];
|
|
8774
|
-
});
|
|
8775
|
-
var __setModuleDefault2 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
|
|
8260
|
+
}));
|
|
8261
|
+
var __setModuleDefault2 = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
|
|
8776
8262
|
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
8777
|
-
} : function(o, v) {
|
|
8263
|
+
}) : function(o, v) {
|
|
8778
8264
|
o["default"] = v;
|
|
8779
8265
|
});
|
|
8780
8266
|
var __importStar2 = exports && exports.__importStar || function(mod) {
|
|
@@ -8829,7 +8315,7 @@ var require_helpers = __commonJS({
|
|
|
8829
8315
|
var require_dist2 = __commonJS({
|
|
8830
8316
|
"../../node_modules/agent-base/dist/index.js"(exports) {
|
|
8831
8317
|
"use strict";
|
|
8832
|
-
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) {
|
|
8833
8319
|
if (k2 === void 0) k2 = k;
|
|
8834
8320
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8835
8321
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
@@ -8838,13 +8324,13 @@ var require_dist2 = __commonJS({
|
|
|
8838
8324
|
} };
|
|
8839
8325
|
}
|
|
8840
8326
|
Object.defineProperty(o, k2, desc);
|
|
8841
|
-
} : function(o, m, k, k2) {
|
|
8327
|
+
}) : (function(o, m, k, k2) {
|
|
8842
8328
|
if (k2 === void 0) k2 = k;
|
|
8843
8329
|
o[k2] = m[k];
|
|
8844
|
-
});
|
|
8845
|
-
var __setModuleDefault2 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
|
|
8330
|
+
}));
|
|
8331
|
+
var __setModuleDefault2 = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
|
|
8846
8332
|
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
8847
|
-
} : function(o, v) {
|
|
8333
|
+
}) : function(o, v) {
|
|
8848
8334
|
o["default"] = v;
|
|
8849
8335
|
});
|
|
8850
8336
|
var __importStar2 = exports && exports.__importStar || function(mod) {
|
|
@@ -8985,7 +8471,7 @@ var require_dist2 = __commonJS({
|
|
|
8985
8471
|
var require_dist3 = __commonJS({
|
|
8986
8472
|
"../../node_modules/http-proxy-agent/dist/index.js"(exports) {
|
|
8987
8473
|
"use strict";
|
|
8988
|
-
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) {
|
|
8989
8475
|
if (k2 === void 0) k2 = k;
|
|
8990
8476
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8991
8477
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
@@ -8994,13 +8480,13 @@ var require_dist3 = __commonJS({
|
|
|
8994
8480
|
} };
|
|
8995
8481
|
}
|
|
8996
8482
|
Object.defineProperty(o, k2, desc);
|
|
8997
|
-
} : function(o, m, k, k2) {
|
|
8483
|
+
}) : (function(o, m, k, k2) {
|
|
8998
8484
|
if (k2 === void 0) k2 = k;
|
|
8999
8485
|
o[k2] = m[k];
|
|
9000
|
-
});
|
|
9001
|
-
var __setModuleDefault2 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
|
|
8486
|
+
}));
|
|
8487
|
+
var __setModuleDefault2 = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
|
|
9002
8488
|
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
9003
|
-
} : function(o, v) {
|
|
8489
|
+
}) : function(o, v) {
|
|
9004
8490
|
o["default"] = v;
|
|
9005
8491
|
});
|
|
9006
8492
|
var __importStar2 = exports && exports.__importStar || function(mod) {
|
|
@@ -9211,7 +8697,7 @@ var require_parse_proxy_response = __commonJS({
|
|
|
9211
8697
|
var require_dist4 = __commonJS({
|
|
9212
8698
|
"../../node_modules/@wix/http-client/node_modules/https-proxy-agent/dist/index.js"(exports) {
|
|
9213
8699
|
"use strict";
|
|
9214
|
-
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) {
|
|
9215
8701
|
if (k2 === void 0) k2 = k;
|
|
9216
8702
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9217
8703
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
@@ -9220,13 +8706,13 @@ var require_dist4 = __commonJS({
|
|
|
9220
8706
|
} };
|
|
9221
8707
|
}
|
|
9222
8708
|
Object.defineProperty(o, k2, desc);
|
|
9223
|
-
} : function(o, m, k, k2) {
|
|
8709
|
+
}) : (function(o, m, k, k2) {
|
|
9224
8710
|
if (k2 === void 0) k2 = k;
|
|
9225
8711
|
o[k2] = m[k];
|
|
9226
|
-
});
|
|
9227
|
-
var __setModuleDefault2 = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
|
|
8712
|
+
}));
|
|
8713
|
+
var __setModuleDefault2 = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
|
|
9228
8714
|
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
9229
|
-
} : function(o, v) {
|
|
8715
|
+
}) : function(o, v) {
|
|
9230
8716
|
o["default"] = v;
|
|
9231
8717
|
});
|
|
9232
8718
|
var __importStar2 = exports && exports.__importStar || function(mod) {
|
|
@@ -9413,7 +8899,7 @@ var require_cookies4 = __commonJS({
|
|
|
9413
8899
|
var utils = require_utils8();
|
|
9414
8900
|
module.exports = utils.isStandardBrowserEnv() ? (
|
|
9415
8901
|
// Standard browser envs support document.cookie
|
|
9416
|
-
/* @__PURE__ */ function standardBrowserEnv() {
|
|
8902
|
+
/* @__PURE__ */ (function standardBrowserEnv() {
|
|
9417
8903
|
return {
|
|
9418
8904
|
write: function write(name, value, expires, path3, domain, secure) {
|
|
9419
8905
|
var cookie = [];
|
|
@@ -9440,10 +8926,10 @@ var require_cookies4 = __commonJS({
|
|
|
9440
8926
|
this.write(name, "", Date.now() - 864e5);
|
|
9441
8927
|
}
|
|
9442
8928
|
};
|
|
9443
|
-
}()
|
|
8929
|
+
})()
|
|
9444
8930
|
) : (
|
|
9445
8931
|
// Non standard browser env (web workers, react-native) lack needed support.
|
|
9446
|
-
/* @__PURE__ */ function nonStandardBrowserEnv() {
|
|
8932
|
+
/* @__PURE__ */ (function nonStandardBrowserEnv() {
|
|
9447
8933
|
return {
|
|
9448
8934
|
write: function write() {
|
|
9449
8935
|
},
|
|
@@ -9453,7 +8939,7 @@ var require_cookies4 = __commonJS({
|
|
|
9453
8939
|
remove: function remove() {
|
|
9454
8940
|
}
|
|
9455
8941
|
};
|
|
9456
|
-
}()
|
|
8942
|
+
})()
|
|
9457
8943
|
);
|
|
9458
8944
|
}
|
|
9459
8945
|
});
|
|
@@ -9518,7 +9004,7 @@ var require_isURLSameOrigin2 = __commonJS({
|
|
|
9518
9004
|
module.exports = utils.isStandardBrowserEnv() ? (
|
|
9519
9005
|
// Standard browser envs have full support of the APIs needed to test
|
|
9520
9006
|
// whether the request URL is of the same origin as current location.
|
|
9521
|
-
function standardBrowserEnv() {
|
|
9007
|
+
(function standardBrowserEnv() {
|
|
9522
9008
|
var msie = /(msie|trident)/i.test(navigator.userAgent);
|
|
9523
9009
|
var urlParsingNode = document.createElement("a");
|
|
9524
9010
|
var originURL;
|
|
@@ -9545,14 +9031,14 @@ var require_isURLSameOrigin2 = __commonJS({
|
|
|
9545
9031
|
var parsed = utils.isString(requestURL) ? resolveURL(requestURL) : requestURL;
|
|
9546
9032
|
return parsed.protocol === originURL.protocol && parsed.host === originURL.host;
|
|
9547
9033
|
};
|
|
9548
|
-
}()
|
|
9034
|
+
})()
|
|
9549
9035
|
) : (
|
|
9550
9036
|
// Non standard browser envs (web workers, react-native) lack needed support.
|
|
9551
|
-
/* @__PURE__ */ function nonStandardBrowserEnv() {
|
|
9037
|
+
/* @__PURE__ */ (function nonStandardBrowserEnv() {
|
|
9552
9038
|
return function isURLSameOrigin() {
|
|
9553
9039
|
return true;
|
|
9554
9040
|
};
|
|
9555
|
-
}()
|
|
9041
|
+
})()
|
|
9556
9042
|
);
|
|
9557
9043
|
}
|
|
9558
9044
|
});
|
|
@@ -10831,7 +10317,6 @@ var runSemanticSearch = async (toolName, toolParams, maxResults = 20, rerank = f
|
|
|
10831
10317
|
url.searchParams.append("kbName", "REST_METHODS_KB_ID");
|
|
10832
10318
|
}
|
|
10833
10319
|
url.searchParams.append("kbName", "REST_DOCS_KB_ID");
|
|
10834
|
-
url.searchParams.append("kbName", "MCP_REST_RECIPES_KB_ID");
|
|
10835
10320
|
} else if (toolName === "WDS") {
|
|
10836
10321
|
url.searchParams.append("kbName", "WDS_DOCS_KB_ID");
|
|
10837
10322
|
} else if (toolName === "BUILD_APPS") {
|
|
@@ -10946,6 +10431,22 @@ var GET_ARTICLE_CONTENT_URL = `${RAW_DOCS_API_URL}/get-article-content`;
|
|
|
10946
10431
|
var PORTAL_INDEX_URL = `${RAW_DOCS_API_URL}/portal-index`;
|
|
10947
10432
|
|
|
10948
10433
|
// src/docs/fetch-article.ts
|
|
10434
|
+
var PICASSO_URL_PREFIX = "https://dev.wix.com/docs/picasso/";
|
|
10435
|
+
function applyPicassoUrlOverride(articleUrl, picassoPortalUrl) {
|
|
10436
|
+
if (!picassoPortalUrl) {
|
|
10437
|
+
return articleUrl;
|
|
10438
|
+
}
|
|
10439
|
+
if (articleUrl.startsWith(PICASSO_URL_PREFIX)) {
|
|
10440
|
+
const baseUrl = picassoPortalUrl.replace(/\/$/, "");
|
|
10441
|
+
const pathAfterPicasso = articleUrl.slice(PICASSO_URL_PREFIX.length);
|
|
10442
|
+
const overriddenUrl = `${baseUrl}/${pathAfterPicasso}`;
|
|
10443
|
+
logger.log(
|
|
10444
|
+
`[Picasso URL Override] Redirecting ${articleUrl} to ${overriddenUrl}`
|
|
10445
|
+
);
|
|
10446
|
+
return overriddenUrl;
|
|
10447
|
+
}
|
|
10448
|
+
return articleUrl;
|
|
10449
|
+
}
|
|
10949
10450
|
async function fetchArticleContentFromDigor(httpClient, articleUrl, mode, stripHeader = false) {
|
|
10950
10451
|
const url = new URL(GET_ARTICLE_CONTENT_URL);
|
|
10951
10452
|
url.searchParams.set("articleUrl", articleUrl);
|
|
@@ -10965,7 +10466,20 @@ async function fetchArticleContentFromDigor(httpClient, articleUrl, mode, stripH
|
|
|
10965
10466
|
}
|
|
10966
10467
|
return data.articleContent;
|
|
10967
10468
|
}
|
|
10968
|
-
async function fetchArticleContent(httpClient, articleUrl, mode, stripHeader = false) {
|
|
10469
|
+
async function fetchArticleContent(httpClient, articleUrl, mode, stripHeader = false, picassoPortalUrl) {
|
|
10470
|
+
const effectiveUrl = applyPicassoUrlOverride(articleUrl, picassoPortalUrl);
|
|
10471
|
+
const isOverridden = effectiveUrl !== articleUrl;
|
|
10472
|
+
if (isOverridden) {
|
|
10473
|
+
try {
|
|
10474
|
+
const { data: doc } = await httpClient.get(effectiveUrl);
|
|
10475
|
+
return doc;
|
|
10476
|
+
} catch (error) {
|
|
10477
|
+
console.warn(
|
|
10478
|
+
`[fetch] Override failed for ${effectiveUrl}, falling back to ${articleUrl}:`,
|
|
10479
|
+
error instanceof Error ? error.message : error
|
|
10480
|
+
);
|
|
10481
|
+
}
|
|
10482
|
+
}
|
|
10969
10483
|
if (mode === "raw") {
|
|
10970
10484
|
let parsedUrl;
|
|
10971
10485
|
try {
|
|
@@ -10990,109 +10504,367 @@ async function fetchArticleContent(httpClient, articleUrl, mode, stripHeader = f
|
|
|
10990
10504
|
);
|
|
10991
10505
|
}
|
|
10992
10506
|
|
|
10993
|
-
//
|
|
10994
|
-
|
|
10507
|
+
// ../../node_modules/dedent/dist/dedent.mjs
|
|
10508
|
+
function ownKeys(object, enumerableOnly) {
|
|
10509
|
+
var keys = Object.keys(object);
|
|
10510
|
+
if (Object.getOwnPropertySymbols) {
|
|
10511
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
10512
|
+
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
10513
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
10514
|
+
})), keys.push.apply(keys, symbols);
|
|
10515
|
+
}
|
|
10516
|
+
return keys;
|
|
10517
|
+
}
|
|
10518
|
+
function _objectSpread(target) {
|
|
10519
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
10520
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
10521
|
+
i % 2 ? ownKeys(Object(source), true).forEach(function(key) {
|
|
10522
|
+
_defineProperty(target, key, source[key]);
|
|
10523
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
|
10524
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10525
|
+
});
|
|
10526
|
+
}
|
|
10527
|
+
return target;
|
|
10528
|
+
}
|
|
10529
|
+
function _defineProperty(obj, key, value) {
|
|
10530
|
+
key = _toPropertyKey(key);
|
|
10531
|
+
if (key in obj) {
|
|
10532
|
+
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
10533
|
+
} else {
|
|
10534
|
+
obj[key] = value;
|
|
10535
|
+
}
|
|
10536
|
+
return obj;
|
|
10537
|
+
}
|
|
10538
|
+
function _toPropertyKey(arg) {
|
|
10539
|
+
var key = _toPrimitive(arg, "string");
|
|
10540
|
+
return typeof key === "symbol" ? key : String(key);
|
|
10541
|
+
}
|
|
10542
|
+
function _toPrimitive(input, hint) {
|
|
10543
|
+
if (typeof input !== "object" || input === null) return input;
|
|
10544
|
+
var prim = input[Symbol.toPrimitive];
|
|
10545
|
+
if (prim !== void 0) {
|
|
10546
|
+
var res = prim.call(input, hint || "default");
|
|
10547
|
+
if (typeof res !== "object") return res;
|
|
10548
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
10549
|
+
}
|
|
10550
|
+
return (hint === "string" ? String : Number)(input);
|
|
10551
|
+
}
|
|
10552
|
+
var dedent = createDedent({});
|
|
10553
|
+
var dedent_default = dedent;
|
|
10554
|
+
function createDedent(options) {
|
|
10555
|
+
dedent2.withOptions = (newOptions) => createDedent(_objectSpread(_objectSpread({}, options), newOptions));
|
|
10556
|
+
return dedent2;
|
|
10557
|
+
function dedent2(strings, ...values) {
|
|
10558
|
+
const raw = typeof strings === "string" ? [strings] : strings.raw;
|
|
10559
|
+
const {
|
|
10560
|
+
alignValues = false,
|
|
10561
|
+
escapeSpecialCharacters = Array.isArray(strings),
|
|
10562
|
+
trimWhitespace = true
|
|
10563
|
+
} = options;
|
|
10564
|
+
let result = "";
|
|
10565
|
+
for (let i = 0; i < raw.length; i++) {
|
|
10566
|
+
let next = raw[i];
|
|
10567
|
+
if (escapeSpecialCharacters) {
|
|
10568
|
+
next = next.replace(/\\\n[ \t]*/g, "").replace(/\\`/g, "`").replace(/\\\$/g, "$").replace(/\\\{/g, "{");
|
|
10569
|
+
}
|
|
10570
|
+
result += next;
|
|
10571
|
+
if (i < values.length) {
|
|
10572
|
+
const value = alignValues ? alignValue(values[i], result) : values[i];
|
|
10573
|
+
result += value;
|
|
10574
|
+
}
|
|
10575
|
+
}
|
|
10576
|
+
const lines = result.split("\n");
|
|
10577
|
+
let mindent = null;
|
|
10578
|
+
for (const l of lines) {
|
|
10579
|
+
const m = l.match(/^(\s+)\S+/);
|
|
10580
|
+
if (m) {
|
|
10581
|
+
const indent = m[1].length;
|
|
10582
|
+
if (!mindent) {
|
|
10583
|
+
mindent = indent;
|
|
10584
|
+
} else {
|
|
10585
|
+
mindent = Math.min(mindent, indent);
|
|
10586
|
+
}
|
|
10587
|
+
}
|
|
10588
|
+
}
|
|
10589
|
+
if (mindent !== null) {
|
|
10590
|
+
const m = mindent;
|
|
10591
|
+
result = lines.map((l) => l[0] === " " || l[0] === " " ? l.slice(m) : l).join("\n");
|
|
10592
|
+
}
|
|
10593
|
+
if (trimWhitespace) {
|
|
10594
|
+
result = result.trim();
|
|
10595
|
+
}
|
|
10596
|
+
if (escapeSpecialCharacters) {
|
|
10597
|
+
result = result.replace(/\\n/g, "\n");
|
|
10598
|
+
}
|
|
10599
|
+
if (typeof Bun !== "undefined") {
|
|
10600
|
+
result = result.replace(
|
|
10601
|
+
// Matches e.g. \\u{1f60a} or \\u5F1F
|
|
10602
|
+
/\\u(?:\{([\da-fA-F]{1,6})\}|([\da-fA-F]{4}))/g,
|
|
10603
|
+
(_, braced, unbraced) => {
|
|
10604
|
+
var _ref;
|
|
10605
|
+
const hex = (_ref = braced !== null && braced !== void 0 ? braced : unbraced) !== null && _ref !== void 0 ? _ref : "";
|
|
10606
|
+
return String.fromCodePoint(parseInt(hex, 16));
|
|
10607
|
+
}
|
|
10608
|
+
);
|
|
10609
|
+
}
|
|
10610
|
+
return result;
|
|
10611
|
+
}
|
|
10612
|
+
}
|
|
10613
|
+
function alignValue(value, precedingText) {
|
|
10614
|
+
if (typeof value !== "string" || !value.includes("\n")) {
|
|
10615
|
+
return value;
|
|
10616
|
+
}
|
|
10617
|
+
const currentLine = precedingText.slice(precedingText.lastIndexOf("\n") + 1);
|
|
10618
|
+
const indentMatch = currentLine.match(/^(\s+)/);
|
|
10619
|
+
if (indentMatch) {
|
|
10620
|
+
const indent = indentMatch[1];
|
|
10621
|
+
return value.replace(/\n/g, `
|
|
10622
|
+
${indent}`);
|
|
10623
|
+
}
|
|
10624
|
+
return value;
|
|
10625
|
+
}
|
|
10626
|
+
|
|
10627
|
+
// src/config/default-config.ts
|
|
10628
|
+
var SYSTEM_REMINDER = dedent_default`
|
|
10629
|
+
<system-reminder>
|
|
10630
|
+
Wix MCP Site Management Flows:
|
|
10631
|
+
- RECIPE BASED (PREFERRED!): WixREADME() -> find relevant recipe for the user's prompt/task -> read recipe using ReadFullDocsArticle() -> call API using CallWixSiteAPI() based on the recipe
|
|
10632
|
+
- EXAMPLE BASED: WixREADME() -> no relevant recipe found for user's prompt/task -> SearchWixRESTDocumentation() -> find relevant method -> read method article using ReadFullDocsArticle() to get method code examples -> call API using CallWixSiteAPI() based on the method code examples
|
|
10633
|
+
- SCHEMA BASED, FALLBACK: WixREADME() -> no relevant recipe found for user's prompt/task -> SearchWixRESTDocumentation() -> find relevant method -> read method article using ReadFullDocsArticle() -> no method code examples found -> read method schema using ReadFullDocsMethodSchema() -> call API using CallWixSiteAPI() based on the schema
|
|
10634
|
+
</system-reminder>
|
|
10635
|
+
`;
|
|
10636
|
+
var defaultToolDescriptions = {
|
|
10637
|
+
WixREADME: dedent_default`
|
|
10638
|
+
# Tool: WixREADME
|
|
10639
|
+
**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**.
|
|
10640
|
+
${SYSTEM_REMINDER}
|
|
10641
|
+
`,
|
|
10642
|
+
SearchWixRESTDocumentation: dedent_default`
|
|
10643
|
+
Searches the official Wix REST API documentation.
|
|
10644
|
+
Use this tool whenever you need to to interact with the Wix platform via HTTP requests.
|
|
10645
|
+
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').
|
|
10646
|
+
If you can't find what you need, try to rephrase your search term or use bigger maxResults value.
|
|
10647
|
+
${SYSTEM_REMINDER}
|
|
10648
|
+
`,
|
|
10649
|
+
ReadFullDocsArticle: dedent_default`
|
|
10650
|
+
Fetches the full Wix docs article or method article with code examples for using the method.
|
|
10651
|
+
Docs articles looks like this: https://dev.wix.com/docs/... and they can either be general docs articles or method articles.
|
|
10652
|
+
${SYSTEM_REMINDER}
|
|
10653
|
+
`,
|
|
10654
|
+
ReadFullDocsMethodSchema: dedent_default`
|
|
10655
|
+
Fetches the full method schema for a given method.
|
|
10656
|
+
This will give you the entire request/response schema with all the fields and their descriptions.
|
|
10657
|
+
${SYSTEM_REMINDER}
|
|
10658
|
+
`,
|
|
10659
|
+
CallWixSiteAPI: dedent_default`
|
|
10660
|
+
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,
|
|
10661
|
+
The API endpoint url param MUST ALWAYS be taken from the conversation context.
|
|
10662
|
+
By conversation context we mean the endpoint url was given in the user prompt or got into the conversation context by the "WixREADME" tool or by the "SearchWixRESTDocumentation" tool or by the "ReadFullDocsArticle" tool.
|
|
10663
|
+
Error Handling:
|
|
10664
|
+
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
|
|
10665
|
+
**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.
|
|
10666
|
+
For any other error, use your default error handling mechanism
|
|
10667
|
+
Allowed API urls are: wix.com, dev.wix.com, manage.wix.com, editor.wix.com, wixapis.com
|
|
10668
|
+
Docs urls like https://dev.wix.com/docs/... are not api urls, if you want to read the docs, use the "ReadFullDocsArticle" tool
|
|
10669
|
+
${SYSTEM_REMINDER}
|
|
10670
|
+
`,
|
|
10671
|
+
ListWixSites: dedent_default`
|
|
10672
|
+
List Wix sites for the current user, by default it will return all sites, but you can filter by name
|
|
10673
|
+
${SYSTEM_REMINDER}
|
|
10674
|
+
`,
|
|
10675
|
+
ManageWixSite: dedent_default`
|
|
10676
|
+
Use account level API in order to create a site, update a site and publish site.
|
|
10677
|
+
The API endpoint url param MUST ALWAYS be taken from the conversation context.
|
|
10678
|
+
By conversation context we mean the endpoint url was given in the user prompt or got into the conversation context by the "WixREADME" tool or by the "SearchWixRESTDocumentation" tool or by the "ReadFullDocsArticle" tool.
|
|
10679
|
+
${SYSTEM_REMINDER}
|
|
10680
|
+
`,
|
|
10681
|
+
UploadImageToWixSite: dedent_default`
|
|
10682
|
+
Upload an image file to a Wix site Media Manager.
|
|
10683
|
+
This tool accepts an image from the user and uploads it to the specified Wix site.
|
|
10684
|
+
Returns the uploaded file URL (wixstatic.com) and media ID that can be used in other Wix APIs.
|
|
10685
|
+
Use this when the user wants to upload a local image to their Wix site.
|
|
10686
|
+
`,
|
|
10687
|
+
SupportAndFeedback: dedent_default`
|
|
10688
|
+
If the user would like to provide Wix with some feedback (good or bad), about the tools in Wix MCP,
|
|
10689
|
+
for example they used the tools provided, and they reflected satisfaction or dissatisfaction with the tools.
|
|
10690
|
+
Also, if you encounter too many errors tyring to call the Wix API, you can also suggest the user to provide feedback to Wix using this tool.
|
|
10691
|
+
**IMPORTANT NOTE**
|
|
10692
|
+
This tool is not sending the message, but formats it in order to another tool to actually send it
|
|
10693
|
+
`
|
|
10694
|
+
};
|
|
10695
|
+
var defaultReadmeDocs = [
|
|
10995
10696
|
{
|
|
10996
|
-
|
|
10997
|
-
|
|
10697
|
+
action: "text",
|
|
10698
|
+
content: dedent_default`
|
|
10699
|
+
<system>
|
|
10700
|
+
|
|
10701
|
+
The main goal of the WixREADME tool is to help you manage your Wix business by making API calls to the Wix API.
|
|
10702
|
+
|
|
10703
|
+
A common flow would be:
|
|
10704
|
+
1. User asks you to do something,
|
|
10705
|
+
2. You use the "WixREADME" tool to get the context,
|
|
10706
|
+
3. You find a relevant recipe in the recipes index,
|
|
10707
|
+
4. You use the "ReadFullDocsArticle" tool to get the full recipe,
|
|
10708
|
+
5. You use the "CallWixSiteAPI" tool to call the API (No need to search or read the full schema, just call the API according to the recipe)
|
|
10709
|
+
|
|
10710
|
+
Another flow would be:
|
|
10711
|
+
1. User asks you to do something,
|
|
10712
|
+
2. You use the "WixREADME" tool to get the context,
|
|
10713
|
+
3. You do not find a relevant recipe in the recipes index,
|
|
10714
|
+
4. You use the "SearchWixRESTDocumentation" tool to search for the API you should invoke,
|
|
10715
|
+
5. You read the relevant articles using the "ReadFullDocsArticle" tool,
|
|
10716
|
+
6. You find a relevant code example in the articles,
|
|
10717
|
+
7. You use the "CallWixSiteAPI" tool to call the API. (No need to read the full schema, just call the API according to the code example)
|
|
10718
|
+
|
|
10719
|
+
Fallback flow (No relevant recipe or code example found, or you failed using the other flows):
|
|
10720
|
+
1. User asks you to do something,
|
|
10721
|
+
2. You use the "WixREADME" tool to get the context,
|
|
10722
|
+
3. You do not find a relevant recipe in the recipes index,
|
|
10723
|
+
4. You use the "SearchWixRESTDocumentation" tool to search for the API you should invoke,
|
|
10724
|
+
5. You read the relevant articles using the "ReadFullDocsArticle" tool,
|
|
10725
|
+
6. You do not find a relevant code example in the articles,
|
|
10726
|
+
7. You use the "ReadFullDocsMethodSchema" tool to get the full method schema,
|
|
10727
|
+
8. You use the "CallWixSiteAPI" tool to call the API. (No need to search or read the full schema, just call the API according to the method schema)
|
|
10728
|
+
</system>
|
|
10729
|
+
`
|
|
10998
10730
|
},
|
|
10999
10731
|
{
|
|
11000
|
-
url: "https://dev.wix.com/docs/picasso/wix-ai-docs/
|
|
10732
|
+
url: "https://dev.wix.com/docs/picasso/wix-ai-docs/recipes-v2/manage/management-recipes-index",
|
|
11001
10733
|
action: "include"
|
|
11002
10734
|
},
|
|
11003
10735
|
{
|
|
11004
10736
|
url: "https://dev.wix.com/docs/picasso/wix-ai-docs/index/wix-business-solutions",
|
|
11005
10737
|
action: "index",
|
|
11006
10738
|
title: "Wix Business Solutions",
|
|
11007
|
-
description: `
|
|
11008
|
-
|
|
11009
|
-
|
|
11010
|
-
|
|
11011
|
-
|
|
11012
|
-
|
|
11013
|
-
|
|
11014
|
-
|
|
11015
|
-
|
|
11016
|
-
|
|
11017
|
-
url: "https://dev.wix.com/docs/picasso/wix-ai-docs/index/wix-business-solutions-recipes",
|
|
11018
|
-
action: "include"
|
|
10739
|
+
description: dedent_default`
|
|
10740
|
+
This document provides an overview of the all business solutions available in Wix.
|
|
10741
|
+
|
|
10742
|
+
Use this document under the following scenarios:
|
|
10743
|
+
1. The user asks general questions about Wix business solutions.
|
|
10744
|
+
2. The user asks about a specific business solution, and you want to provide a high-level overview of it.
|
|
10745
|
+
3. The user looks for a specific business solution, and you want to provide a list of all available solutions.
|
|
10746
|
+
|
|
10747
|
+
Please note that this is a large document. Only use it for the scenarios mentioned above.
|
|
10748
|
+
`
|
|
11019
10749
|
}
|
|
11020
10750
|
];
|
|
11021
|
-
|
|
11022
|
-
|
|
11023
|
-
|
|
11024
|
-
|
|
11025
|
-
|
|
11026
|
-
|
|
11027
|
-
|
|
11028
|
-
|
|
11029
|
-
|
|
11030
|
-
|
|
11031
|
-
|
|
11032
|
-
|
|
11033
|
-
|
|
11034
|
-
* **Outcome:** A list of *relevant* document URLs. If no links are found in \`<urls>\` tags or none are deemed relevant, note this and proceed to Step 4.
|
|
11035
|
-
|
|
11036
|
-
3. **Fetch Relevant Documents (via \`ReadFullDocsArticle\`):**
|
|
11037
|
-
* **Condition:** ONLY if Step 2B identified one or more *relevant* URLs.
|
|
11038
|
-
* **Action:** For EACH *relevant* URL, invoke \`ReadFullDocsArticle\` to fetch its full content.
|
|
11039
|
-
* **Constraint:** All *relevant* documents MUST be fetched before Step 4.
|
|
11040
|
-
|
|
11041
|
-
4. **Proceed with Other Wix Tools:**
|
|
11042
|
-
* **Condition:** ONLY after completing Steps 1, 2, and 3 (if Step 3 was applicable).
|
|
11043
|
-
* **Action:** Use other Wix tools as needed, utilizing the full context from \`WixREADME\` and fetched relevant documents.
|
|
11044
|
-
|
|
11045
|
-
**Summary of Critical Rules:**
|
|
11046
|
-
* \`WixREADME\` is **ALWAYS FIRST**.
|
|
11047
|
-
* Analyze \`WixREADME\` output: Extract links *only* from \`<urls>{urls}</urls>\` tags.
|
|
11048
|
-
* Assess relevance of *each* extracted link against the user's current task.
|
|
11049
|
-
* Fetch **ONLY RELEVANT** linked documents using \`ReadFullDocsArticle\` before any other Wix tool.
|
|
11050
|
-
* **FAILURE TO FOLLOW THIS EXACT SEQUENCE WILL LEAD TO ERRORS.** Strict adherence is mandatory.`;
|
|
11051
|
-
var WixREADME_DEPENDENT_DESCRIPTION = "**Dependency:** Must be used after 'WixREADME' has successfully run.";
|
|
11052
|
-
async function addGetToKnowTools(server2) {
|
|
11053
|
-
server2.tool("WixREADME", DESCRIPTION, async ({ httpClient }) => {
|
|
11054
|
-
try {
|
|
10751
|
+
|
|
10752
|
+
// src/docs/get-to-know.ts
|
|
10753
|
+
async function addGetToKnowTools(server2, disableTools = [], toolDescriptions, readmeDocs, authStrategy, picassoPortalUrl) {
|
|
10754
|
+
if (disableTools.includes("WixREADME")) {
|
|
10755
|
+
return;
|
|
10756
|
+
}
|
|
10757
|
+
const docsToUse = readmeDocs ?? defaultReadmeDocs;
|
|
10758
|
+
server2.tool(
|
|
10759
|
+
"WixREADME",
|
|
10760
|
+
toolDescriptions?.["WixREADME"] ?? defaultToolDescriptions.WixREADME,
|
|
10761
|
+
{},
|
|
10762
|
+
{ readOnlyHint: true, destructiveHint: false, openWorldHint: false },
|
|
10763
|
+
async (_, { httpClient }) => {
|
|
11055
10764
|
const contents = await Promise.all(
|
|
11056
|
-
|
|
11057
|
-
|
|
11058
|
-
|
|
11059
|
-
|
|
11060
|
-
|
|
10765
|
+
docsToUse.map(
|
|
10766
|
+
async ({
|
|
10767
|
+
url,
|
|
10768
|
+
action,
|
|
10769
|
+
description,
|
|
10770
|
+
title,
|
|
10771
|
+
content,
|
|
10772
|
+
method,
|
|
10773
|
+
body
|
|
10774
|
+
}) => {
|
|
10775
|
+
try {
|
|
10776
|
+
if (action === "index") {
|
|
10777
|
+
return {
|
|
10778
|
+
type: "text",
|
|
10779
|
+
text: `## ${title}
|
|
11061
10780
|
|
|
11062
10781
|
<urls>
|
|
11063
10782
|
${url}
|
|
11064
10783
|
</urls>
|
|
11065
10784
|
|
|
11066
|
-
${description}`
|
|
11067
|
-
|
|
10785
|
+
${description ?? ""}`
|
|
10786
|
+
};
|
|
10787
|
+
}
|
|
10788
|
+
if (action === "text") {
|
|
10789
|
+
const textContent = title ? `## ${title}
|
|
10790
|
+
|
|
10791
|
+
${content ?? ""}` : content ?? "";
|
|
10792
|
+
return {
|
|
10793
|
+
type: "text",
|
|
10794
|
+
text: textContent
|
|
10795
|
+
};
|
|
10796
|
+
}
|
|
10797
|
+
if (action === "api") {
|
|
10798
|
+
if (!url) {
|
|
10799
|
+
throw new Error('URL is required for "api" action');
|
|
10800
|
+
}
|
|
10801
|
+
if (!authStrategy) {
|
|
10802
|
+
throw new Error(
|
|
10803
|
+
'Authentication strategy is required for "api" action. The "api" action cannot be used without proper authentication configuration.'
|
|
10804
|
+
);
|
|
10805
|
+
}
|
|
10806
|
+
const httpMethod = method ?? "GET";
|
|
10807
|
+
const accountHeaders = await authStrategy.getAccountAuthHeaders();
|
|
10808
|
+
const response = await httpClient.request({
|
|
10809
|
+
url,
|
|
10810
|
+
method: httpMethod,
|
|
10811
|
+
headers: {
|
|
10812
|
+
...accountHeaders,
|
|
10813
|
+
...body ? { "Content-Type": "application/json" } : {}
|
|
10814
|
+
},
|
|
10815
|
+
data: httpMethod === "GET" ? void 0 : body
|
|
10816
|
+
});
|
|
10817
|
+
const responseText = typeof response.data === "string" ? response.data : JSON.stringify(response.data, null, 2);
|
|
10818
|
+
const textContent = title ? `## ${title}
|
|
10819
|
+
|
|
10820
|
+
${responseText}` : responseText;
|
|
10821
|
+
return {
|
|
10822
|
+
type: "text",
|
|
10823
|
+
text: textContent
|
|
10824
|
+
};
|
|
10825
|
+
}
|
|
10826
|
+
if (!url) {
|
|
10827
|
+
throw new Error('URL is required for "include" action');
|
|
10828
|
+
}
|
|
10829
|
+
const fetchedContent = await fetchArticleContent(
|
|
10830
|
+
httpClient,
|
|
10831
|
+
url,
|
|
10832
|
+
"article",
|
|
10833
|
+
true,
|
|
10834
|
+
picassoPortalUrl
|
|
10835
|
+
);
|
|
10836
|
+
return {
|
|
10837
|
+
type: "text",
|
|
10838
|
+
text: fetchedContent
|
|
10839
|
+
};
|
|
10840
|
+
} catch (error) {
|
|
10841
|
+
const errorMsg = error.message;
|
|
10842
|
+
const identifier = title ?? url ?? action;
|
|
10843
|
+
if (action === "api") {
|
|
10844
|
+
console.error(
|
|
10845
|
+
`[WixREADME] API call failed for "${identifier}": ${errorMsg}`
|
|
10846
|
+
);
|
|
10847
|
+
return null;
|
|
10848
|
+
}
|
|
10849
|
+
return {
|
|
10850
|
+
type: "text",
|
|
10851
|
+
text: `## Error loading "${identifier}"
|
|
10852
|
+
|
|
10853
|
+
Failed to fetch content: ${errorMsg}`
|
|
10854
|
+
};
|
|
10855
|
+
}
|
|
11068
10856
|
}
|
|
11069
|
-
|
|
11070
|
-
httpClient,
|
|
11071
|
-
url,
|
|
11072
|
-
"article",
|
|
11073
|
-
true
|
|
11074
|
-
);
|
|
11075
|
-
return {
|
|
11076
|
-
type: "text",
|
|
11077
|
-
text: content
|
|
11078
|
-
};
|
|
11079
|
-
})
|
|
10857
|
+
)
|
|
11080
10858
|
);
|
|
10859
|
+
const filteredContents = contents.filter(
|
|
10860
|
+
(item) => item !== null
|
|
10861
|
+
);
|
|
10862
|
+
const concatenatedText = filteredContents.map((item) => item.text).join("\n\n");
|
|
11081
10863
|
return {
|
|
11082
|
-
content:
|
|
11083
|
-
};
|
|
11084
|
-
} catch (error) {
|
|
11085
|
-
return {
|
|
11086
|
-
isError: true,
|
|
11087
|
-
content: [
|
|
11088
|
-
{
|
|
11089
|
-
type: "text",
|
|
11090
|
-
text: `Error fetching the document: ${error.message}`
|
|
11091
|
-
}
|
|
11092
|
-
]
|
|
10864
|
+
content: [{ type: "text", text: concatenatedText }]
|
|
11093
10865
|
};
|
|
11094
10866
|
}
|
|
11095
|
-
|
|
10867
|
+
);
|
|
11096
10868
|
}
|
|
11097
10869
|
|
|
11098
10870
|
// src/docs/create-site-guide.ts
|
|
@@ -11134,11 +10906,15 @@ This tool provides complete documentation including:
|
|
|
11134
10906
|
2. Use CallWixSiteAPI to install apps (if needed)
|
|
11135
10907
|
|
|
11136
10908
|
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.`;
|
|
11137
|
-
async function addCreateWixBusinessGuideTools(server2) {
|
|
10909
|
+
async function addCreateWixBusinessGuideTools(server2, disableTools = [], toolDescriptions) {
|
|
10910
|
+
if (disableTools.includes("CreateWixBusinessGuide")) {
|
|
10911
|
+
return;
|
|
10912
|
+
}
|
|
11138
10913
|
server2.tool(
|
|
11139
10914
|
"CreateWixBusinessGuide",
|
|
11140
|
-
CREATE_SITE_DESCRIPTION,
|
|
10915
|
+
toolDescriptions?.["CreateWixBusinessGuide"] ?? CREATE_SITE_DESCRIPTION,
|
|
11141
10916
|
{},
|
|
10917
|
+
{ readOnlyHint: true, destructiveHint: false, openWorldHint: false },
|
|
11142
10918
|
async (_args, { httpClient }) => {
|
|
11143
10919
|
try {
|
|
11144
10920
|
const contents = await Promise.all(
|
|
@@ -11194,23 +10970,40 @@ var addDocsTools = (server2, allowedTools = [
|
|
|
11194
10970
|
"WIX_HEADLESS",
|
|
11195
10971
|
"BUSINESS_SOLUTIONS"
|
|
11196
10972
|
], options = {}) => {
|
|
11197
|
-
const {
|
|
11198
|
-
|
|
11199
|
-
|
|
10973
|
+
const {
|
|
10974
|
+
getToKnowWixEnabled = false,
|
|
10975
|
+
createWixBusinessGuideEnabled = true,
|
|
10976
|
+
disableTools,
|
|
10977
|
+
toolDescriptions,
|
|
10978
|
+
readmeDocs,
|
|
10979
|
+
authStrategy,
|
|
10980
|
+
picassoPortalUrl
|
|
10981
|
+
} = options;
|
|
10982
|
+
const getDescription = (toolName, defaultDesc) => toolDescriptions?.[toolName] ?? defaultDesc;
|
|
10983
|
+
if (getToKnowWixEnabled && !disableTools?.includes("WixREADME")) {
|
|
10984
|
+
addGetToKnowTools(
|
|
10985
|
+
server2,
|
|
10986
|
+
disableTools || [],
|
|
10987
|
+
toolDescriptions,
|
|
10988
|
+
readmeDocs,
|
|
10989
|
+
authStrategy,
|
|
10990
|
+
picassoPortalUrl
|
|
10991
|
+
);
|
|
11200
10992
|
}
|
|
11201
|
-
if (createWixBusinessGuideEnabled) {
|
|
11202
|
-
addCreateWixBusinessGuideTools(
|
|
10993
|
+
if (createWixBusinessGuideEnabled && !disableTools?.includes("CreateWixBusinessGuide")) {
|
|
10994
|
+
addCreateWixBusinessGuideTools(
|
|
10995
|
+
server2,
|
|
10996
|
+
disableTools || [],
|
|
10997
|
+
toolDescriptions
|
|
10998
|
+
);
|
|
11203
10999
|
}
|
|
11204
|
-
if (allowedTools.includes("WDS")) {
|
|
11000
|
+
if (allowedTools.includes("WDS") && !disableTools?.includes("SearchWixWDSDocumentation")) {
|
|
11205
11001
|
server2.tool(
|
|
11206
11002
|
"SearchWixWDSDocumentation",
|
|
11207
|
-
|
|
11208
|
-
"
|
|
11209
|
-
|
|
11210
|
-
|
|
11211
|
-
"If you can't find what you need, try to rephrase your search term or use bigger maxResults value.",
|
|
11212
|
-
getToKnowWixEnabled ? WixREADME_DEPENDENT_DESCRIPTION : ""
|
|
11213
|
-
].join("\n"),
|
|
11003
|
+
getDescription(
|
|
11004
|
+
"SearchWixWDSDocumentation",
|
|
11005
|
+
defaultToolDescriptions.SearchWixWDSDocumentation ?? ""
|
|
11006
|
+
),
|
|
11214
11007
|
{
|
|
11215
11008
|
searchTerm: z.string().describe(
|
|
11216
11009
|
"The search term to search for in the Wix Design System Documentation"
|
|
@@ -11219,6 +11012,7 @@ var addDocsTools = (server2, allowedTools = [
|
|
|
11219
11012
|
"The maximum number of results to return, default is 5, max is 15"
|
|
11220
11013
|
).min(1).max(15).optional().default(10)
|
|
11221
11014
|
},
|
|
11015
|
+
{ readOnlyHint: true, destructiveHint: false, openWorldHint: false },
|
|
11222
11016
|
async ({ searchTerm, maxResults }, { panorama }) => {
|
|
11223
11017
|
try {
|
|
11224
11018
|
logger.log(`Searching for ${searchTerm} in Wix WDS`);
|
|
@@ -11256,16 +11050,13 @@ var addDocsTools = (server2, allowedTools = [
|
|
|
11256
11050
|
}
|
|
11257
11051
|
);
|
|
11258
11052
|
}
|
|
11259
|
-
if (allowedTools.includes("REST")) {
|
|
11053
|
+
if (allowedTools.includes("REST") && !disableTools?.includes("SearchWixRESTDocumentation")) {
|
|
11260
11054
|
server2.tool(
|
|
11261
11055
|
"SearchWixRESTDocumentation",
|
|
11262
|
-
|
|
11263
|
-
"
|
|
11264
|
-
|
|
11265
|
-
|
|
11266
|
-
"If you can't find what you need, try to rephrase your search term or use bigger maxResults value.",
|
|
11267
|
-
getToKnowWixEnabled ? WixREADME_DEPENDENT_DESCRIPTION : ""
|
|
11268
|
-
].join("\n"),
|
|
11056
|
+
getDescription(
|
|
11057
|
+
"SearchWixRESTDocumentation",
|
|
11058
|
+
defaultToolDescriptions.SearchWixRESTDocumentation
|
|
11059
|
+
),
|
|
11269
11060
|
{
|
|
11270
11061
|
searchTerm: z.string().describe(
|
|
11271
11062
|
"The search term to search for in the Wix REST API Documentation"
|
|
@@ -11274,6 +11065,7 @@ var addDocsTools = (server2, allowedTools = [
|
|
|
11274
11065
|
"The maximum number of results to return, default is 5, max is 15"
|
|
11275
11066
|
).min(1).max(15).optional().default(10)
|
|
11276
11067
|
},
|
|
11068
|
+
{ readOnlyHint: true, destructiveHint: false, openWorldHint: false },
|
|
11277
11069
|
async ({ searchTerm, maxResults }, { panorama }) => {
|
|
11278
11070
|
try {
|
|
11279
11071
|
logger.log(`Searching for ${searchTerm} in Wix REST API`);
|
|
@@ -11290,10 +11082,6 @@ var addDocsTools = (server2, allowedTools = [
|
|
|
11290
11082
|
{
|
|
11291
11083
|
type: "text",
|
|
11292
11084
|
text: result
|
|
11293
|
-
},
|
|
11294
|
-
{
|
|
11295
|
-
type: "text",
|
|
11296
|
-
text: "Next, you MUST use the ReadFullDocsArticle tool if you want to read the full documentation for a specific article or method."
|
|
11297
11085
|
}
|
|
11298
11086
|
]
|
|
11299
11087
|
};
|
|
@@ -11316,19 +11104,13 @@ var addDocsTools = (server2, allowedTools = [
|
|
|
11316
11104
|
}
|
|
11317
11105
|
);
|
|
11318
11106
|
}
|
|
11319
|
-
if (allowedTools.includes("BUSINESS_SOLUTIONS") && !getToKnowWixEnabled) {
|
|
11107
|
+
if (allowedTools.includes("BUSINESS_SOLUTIONS") && !getToKnowWixEnabled && !disableTools?.includes("WixBusinessFlowsDocumentation")) {
|
|
11320
11108
|
server2.tool(
|
|
11321
11109
|
"WixBusinessFlowsDocumentation",
|
|
11322
|
-
|
|
11323
|
-
"
|
|
11324
|
-
|
|
11325
|
-
|
|
11326
|
-
"It searches the Wix Business Solutions documentation for these integrated workflows involving services, bookings, payments, stores, blogs, and more.",
|
|
11327
|
-
"This tool returns a list of articles that are potentially relevant to the input search term.",
|
|
11328
|
-
"**IMPORTANT NOTES:**",
|
|
11329
|
-
"1. Before attempting to implement a multi step API calls on Wix, YOU MUST TRY THIS TOOL FIRST.",
|
|
11330
|
-
"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."
|
|
11331
|
-
].join("\n"),
|
|
11110
|
+
getDescription(
|
|
11111
|
+
"WixBusinessFlowsDocumentation",
|
|
11112
|
+
defaultToolDescriptions.WixBusinessFlowsDocumentation ?? ""
|
|
11113
|
+
),
|
|
11332
11114
|
{
|
|
11333
11115
|
searchTerm: z.string().describe(
|
|
11334
11116
|
'The search term for the required sample flow (e.g. "setup a new business")'
|
|
@@ -11337,6 +11119,7 @@ var addDocsTools = (server2, allowedTools = [
|
|
|
11337
11119
|
"The maximum number of results to return, default is 5, max is 15"
|
|
11338
11120
|
).min(1).max(15).optional().default(5)
|
|
11339
11121
|
},
|
|
11122
|
+
{ readOnlyHint: true, destructiveHint: false, openWorldHint: false },
|
|
11340
11123
|
async ({ searchTerm, maxResults }, { panorama }) => {
|
|
11341
11124
|
try {
|
|
11342
11125
|
logger.log(`Searching for ${searchTerm} in Wix Sample Flows`);
|
|
@@ -11351,11 +11134,10 @@ var addDocsTools = (server2, allowedTools = [
|
|
|
11351
11134
|
content: [
|
|
11352
11135
|
{
|
|
11353
11136
|
type: "text",
|
|
11354
|
-
text:
|
|
11355
|
-
|
|
11356
|
-
|
|
11357
|
-
|
|
11358
|
-
text: `Out of the included list of articles, you **MUST** select the one that is most relevant to the user's request and use the ReadFullDocsArticle tool to fetch it.`
|
|
11137
|
+
text: [
|
|
11138
|
+
result,
|
|
11139
|
+
`Out of the included list of articles, you **MUST** select the one that is most relevant to the user's request and use the ReadFullDocsArticle tool to fetch it.`
|
|
11140
|
+
].join("\n\n")
|
|
11359
11141
|
}
|
|
11360
11142
|
]
|
|
11361
11143
|
};
|
|
@@ -11378,16 +11160,13 @@ var addDocsTools = (server2, allowedTools = [
|
|
|
11378
11160
|
}
|
|
11379
11161
|
);
|
|
11380
11162
|
}
|
|
11381
|
-
if (allowedTools.includes("SDK")) {
|
|
11163
|
+
if (allowedTools.includes("SDK") && !disableTools?.includes("SearchWixSDKDocumentation")) {
|
|
11382
11164
|
server2.tool(
|
|
11383
11165
|
"SearchWixSDKDocumentation",
|
|
11384
|
-
|
|
11385
|
-
"
|
|
11386
|
-
|
|
11387
|
-
|
|
11388
|
-
"If you can't find what you need, try to rephrase your search term or use bigger maxResults value.",
|
|
11389
|
-
getToKnowWixEnabled ? WixREADME_DEPENDENT_DESCRIPTION : ""
|
|
11390
|
-
].join("\n"),
|
|
11166
|
+
getDescription(
|
|
11167
|
+
"SearchWixSDKDocumentation",
|
|
11168
|
+
defaultToolDescriptions.SearchWixSDKDocumentation ?? ""
|
|
11169
|
+
),
|
|
11391
11170
|
{
|
|
11392
11171
|
searchTerm: z.string().describe(
|
|
11393
11172
|
"The search term to search for in the Wix SDK Documentation"
|
|
@@ -11396,6 +11175,7 @@ var addDocsTools = (server2, allowedTools = [
|
|
|
11396
11175
|
"The maximum number of results to return, default is 5, max is 15"
|
|
11397
11176
|
).min(1).max(15).optional().default(5)
|
|
11398
11177
|
},
|
|
11178
|
+
{ readOnlyHint: true, destructiveHint: false, openWorldHint: false },
|
|
11399
11179
|
async ({ searchTerm, maxResults }, { panorama }) => {
|
|
11400
11180
|
try {
|
|
11401
11181
|
logger.log(`Searching for ${searchTerm} in Wix SDK`);
|
|
@@ -11413,11 +11193,10 @@ var addDocsTools = (server2, allowedTools = [
|
|
|
11413
11193
|
content: [
|
|
11414
11194
|
{
|
|
11415
11195
|
type: "text",
|
|
11416
|
-
text:
|
|
11417
|
-
|
|
11418
|
-
|
|
11419
|
-
|
|
11420
|
-
text: "Next, you MUST use ReadFullDocsArticle tool if you want to read full documentation for a specific article or method."
|
|
11196
|
+
text: [
|
|
11197
|
+
result,
|
|
11198
|
+
"you should use ReadFullDocsArticle tool if you want to read full documentation for a specific article or method."
|
|
11199
|
+
].join("\n---\n")
|
|
11421
11200
|
}
|
|
11422
11201
|
]
|
|
11423
11202
|
};
|
|
@@ -11440,16 +11219,13 @@ var addDocsTools = (server2, allowedTools = [
|
|
|
11440
11219
|
}
|
|
11441
11220
|
);
|
|
11442
11221
|
}
|
|
11443
|
-
if (allowedTools.includes("BUILD_APPS")) {
|
|
11222
|
+
if (allowedTools.includes("BUILD_APPS") && !disableTools?.includes("SearchBuildAppsDocumentation")) {
|
|
11444
11223
|
server2.tool(
|
|
11445
11224
|
"SearchBuildAppsDocumentation",
|
|
11446
|
-
|
|
11447
|
-
"
|
|
11448
|
-
|
|
11449
|
-
|
|
11450
|
-
"If you can't find what you need, try to rephrase your search term or use bigger maxResults value.",
|
|
11451
|
-
getToKnowWixEnabled ? WixREADME_DEPENDENT_DESCRIPTION : ""
|
|
11452
|
-
].join("\n"),
|
|
11225
|
+
getDescription(
|
|
11226
|
+
"SearchBuildAppsDocumentation",
|
|
11227
|
+
defaultToolDescriptions.SearchBuildAppsDocumentation ?? ""
|
|
11228
|
+
),
|
|
11453
11229
|
{
|
|
11454
11230
|
searchTerm: z.string().describe(
|
|
11455
11231
|
"The search term to search for in the Build Apps Documentation"
|
|
@@ -11458,6 +11234,7 @@ var addDocsTools = (server2, allowedTools = [
|
|
|
11458
11234
|
"The maximum number of results to return, default is 5, max is 15"
|
|
11459
11235
|
).min(1).max(15).optional().default(5)
|
|
11460
11236
|
},
|
|
11237
|
+
{ readOnlyHint: true, destructiveHint: false, openWorldHint: false },
|
|
11461
11238
|
async ({ searchTerm, maxResults }, { panorama }) => {
|
|
11462
11239
|
try {
|
|
11463
11240
|
logger.log(`Searching for ${searchTerm} in Build Apps`);
|
|
@@ -11494,16 +11271,13 @@ var addDocsTools = (server2, allowedTools = [
|
|
|
11494
11271
|
}
|
|
11495
11272
|
);
|
|
11496
11273
|
}
|
|
11497
|
-
if (allowedTools.includes("WIX_HEADLESS")) {
|
|
11274
|
+
if (allowedTools.includes("WIX_HEADLESS") && !disableTools?.includes("SearchWixHeadlessDocumentation")) {
|
|
11498
11275
|
server2.tool(
|
|
11499
11276
|
"SearchWixHeadlessDocumentation",
|
|
11500
|
-
|
|
11501
|
-
"
|
|
11502
|
-
|
|
11503
|
-
|
|
11504
|
-
"If you can't find what you need, try to rephrase your search term or use bigger maxResults value.",
|
|
11505
|
-
getToKnowWixEnabled ? WixREADME_DEPENDENT_DESCRIPTION : ""
|
|
11506
|
-
].join("\n"),
|
|
11277
|
+
getDescription(
|
|
11278
|
+
"SearchWixHeadlessDocumentation",
|
|
11279
|
+
defaultToolDescriptions.SearchWixHeadlessDocumentation ?? ""
|
|
11280
|
+
),
|
|
11507
11281
|
{
|
|
11508
11282
|
searchTerm: z.string().describe(
|
|
11509
11283
|
"The search term to search for in the Headless Documentation"
|
|
@@ -11512,6 +11286,7 @@ var addDocsTools = (server2, allowedTools = [
|
|
|
11512
11286
|
"The maximum number of results to return, default is 5, max is 15"
|
|
11513
11287
|
).min(1).max(15).optional().default(5)
|
|
11514
11288
|
},
|
|
11289
|
+
{ readOnlyHint: true, destructiveHint: false, openWorldHint: false },
|
|
11515
11290
|
async ({ searchTerm, maxResults }, { panorama }) => {
|
|
11516
11291
|
try {
|
|
11517
11292
|
logger.log(`Searching for ${searchTerm} in Headless`);
|
|
@@ -11548,22 +11323,20 @@ var addDocsTools = (server2, allowedTools = [
|
|
|
11548
11323
|
}
|
|
11549
11324
|
);
|
|
11550
11325
|
}
|
|
11551
|
-
if (allowedTools.includes("VELO")) {
|
|
11326
|
+
if (allowedTools.includes("VELO") && !disableTools?.includes("SearchWixVeloDocumentation")) {
|
|
11552
11327
|
server2.tool(
|
|
11553
11328
|
"SearchWixVeloDocumentation",
|
|
11554
|
-
|
|
11555
|
-
"
|
|
11556
|
-
|
|
11557
|
-
|
|
11558
|
-
"If you can't find what you need, try to rephrase your search term or use bigger maxResults value.",
|
|
11559
|
-
getToKnowWixEnabled ? WixREADME_DEPENDENT_DESCRIPTION : ""
|
|
11560
|
-
].join("\n"),
|
|
11329
|
+
getDescription(
|
|
11330
|
+
"SearchWixVeloDocumentation",
|
|
11331
|
+
defaultToolDescriptions.SearchWixVeloDocumentation ?? ""
|
|
11332
|
+
),
|
|
11561
11333
|
{
|
|
11562
11334
|
searchTerm: z.string().describe("The search term to search for in the Velo Documentation"),
|
|
11563
11335
|
maxResults: z.number().describe(
|
|
11564
11336
|
"The maximum number of results to return, default is 5, max is 15"
|
|
11565
11337
|
).min(1).max(15).optional().default(5)
|
|
11566
11338
|
},
|
|
11339
|
+
{ readOnlyHint: true, destructiveHint: false, openWorldHint: false },
|
|
11567
11340
|
async ({ searchTerm, maxResults }, { panorama }) => {
|
|
11568
11341
|
try {
|
|
11569
11342
|
logger.log(`Searching for ${searchTerm} in Velo`);
|
|
@@ -11581,11 +11354,10 @@ var addDocsTools = (server2, allowedTools = [
|
|
|
11581
11354
|
content: [
|
|
11582
11355
|
{
|
|
11583
11356
|
type: "text",
|
|
11584
|
-
text:
|
|
11585
|
-
|
|
11586
|
-
|
|
11587
|
-
|
|
11588
|
-
text: "Next, you MUST use ReadFullDocsArticle tool if you want to read full documentation for a specific article or method."
|
|
11357
|
+
text: [
|
|
11358
|
+
result,
|
|
11359
|
+
"you should use ReadFullDocsArticle tool if you want to read full documentation for a specific article or method."
|
|
11360
|
+
].join("\n---\n")
|
|
11589
11361
|
}
|
|
11590
11362
|
]
|
|
11591
11363
|
};
|
|
@@ -11606,102 +11378,104 @@ var addDocsTools = (server2, allowedTools = [
|
|
|
11606
11378
|
}
|
|
11607
11379
|
);
|
|
11608
11380
|
}
|
|
11609
|
-
|
|
11610
|
-
|
|
11611
|
-
|
|
11612
|
-
|
|
11613
|
-
|
|
11614
|
-
|
|
11615
|
-
|
|
11616
|
-
|
|
11617
|
-
|
|
11618
|
-
|
|
11619
|
-
|
|
11620
|
-
|
|
11621
|
-
|
|
11622
|
-
|
|
11623
|
-
|
|
11624
|
-
|
|
11625
|
-
|
|
11626
|
-
|
|
11627
|
-
|
|
11628
|
-
|
|
11629
|
-
|
|
11381
|
+
if (!disableTools?.includes("ReadFullDocsArticle")) {
|
|
11382
|
+
server2.tool(
|
|
11383
|
+
"ReadFullDocsArticle",
|
|
11384
|
+
getDescription(
|
|
11385
|
+
"ReadFullDocsArticle",
|
|
11386
|
+
defaultToolDescriptions.ReadFullDocsArticle
|
|
11387
|
+
),
|
|
11388
|
+
{
|
|
11389
|
+
articleUrl: z.string().url().describe(
|
|
11390
|
+
"The URL of the docs article or method article to fetch. Should be something like https://dev.wix.com/docs/.../.../..."
|
|
11391
|
+
)
|
|
11392
|
+
},
|
|
11393
|
+
{ readOnlyHint: true, destructiveHint: false, openWorldHint: false },
|
|
11394
|
+
async ({ articleUrl }, { httpClient }) => {
|
|
11395
|
+
try {
|
|
11396
|
+
const articleContent = await fetchArticleContent(
|
|
11397
|
+
httpClient,
|
|
11398
|
+
articleUrl,
|
|
11399
|
+
"article",
|
|
11400
|
+
false,
|
|
11401
|
+
picassoPortalUrl
|
|
11402
|
+
);
|
|
11403
|
+
if (!articleContent) {
|
|
11404
|
+
throw new Error("Article content is empty");
|
|
11405
|
+
}
|
|
11406
|
+
return {
|
|
11407
|
+
content: [
|
|
11408
|
+
{
|
|
11409
|
+
type: "text",
|
|
11410
|
+
text: articleContent
|
|
11411
|
+
}
|
|
11412
|
+
]
|
|
11413
|
+
};
|
|
11414
|
+
} catch (error) {
|
|
11415
|
+
logger.error(
|
|
11416
|
+
`Error fetching article content or method schema for ${articleUrl}: ${error}`
|
|
11417
|
+
);
|
|
11418
|
+
return {
|
|
11419
|
+
content: [
|
|
11420
|
+
{
|
|
11421
|
+
type: "text",
|
|
11422
|
+
text: `Could not fetch article content: "${error.message}". You should try completing the task without it.`
|
|
11423
|
+
}
|
|
11424
|
+
]
|
|
11425
|
+
};
|
|
11630
11426
|
}
|
|
11631
|
-
return {
|
|
11632
|
-
content: [
|
|
11633
|
-
{
|
|
11634
|
-
type: "text",
|
|
11635
|
-
text: articleContent
|
|
11636
|
-
},
|
|
11637
|
-
{
|
|
11638
|
-
type: "text",
|
|
11639
|
-
text: [
|
|
11640
|
-
"---",
|
|
11641
|
-
"Next, if you are dealing with a method - you MUST call ReadFullDocsMethodSchema tool - it will give you the full request schema for the method."
|
|
11642
|
-
].join("\n")
|
|
11643
|
-
}
|
|
11644
|
-
]
|
|
11645
|
-
};
|
|
11646
|
-
} catch (error) {
|
|
11647
|
-
logger.error(
|
|
11648
|
-
`Error fetching article content or method schema for ${articleUrl}: ${error}`
|
|
11649
|
-
);
|
|
11650
|
-
return {
|
|
11651
|
-
content: [
|
|
11652
|
-
{
|
|
11653
|
-
type: "text",
|
|
11654
|
-
text: `Could not fetch article content: "${error.message}". You should try completing the task without it.`
|
|
11655
|
-
}
|
|
11656
|
-
]
|
|
11657
|
-
};
|
|
11658
11427
|
}
|
|
11659
|
-
|
|
11660
|
-
|
|
11661
|
-
|
|
11662
|
-
|
|
11663
|
-
|
|
11664
|
-
|
|
11665
|
-
|
|
11666
|
-
|
|
11667
|
-
|
|
11668
|
-
|
|
11669
|
-
|
|
11670
|
-
|
|
11671
|
-
|
|
11672
|
-
|
|
11673
|
-
|
|
11674
|
-
|
|
11675
|
-
|
|
11676
|
-
|
|
11677
|
-
|
|
11678
|
-
|
|
11679
|
-
|
|
11680
|
-
|
|
11428
|
+
);
|
|
11429
|
+
}
|
|
11430
|
+
if (!disableTools?.includes("ReadFullDocsMethodSchema")) {
|
|
11431
|
+
server2.tool(
|
|
11432
|
+
"ReadFullDocsMethodSchema",
|
|
11433
|
+
getDescription(
|
|
11434
|
+
"ReadFullDocsMethodSchema",
|
|
11435
|
+
defaultToolDescriptions.ReadFullDocsMethodSchema
|
|
11436
|
+
),
|
|
11437
|
+
{
|
|
11438
|
+
articleUrl: z.string().url().describe(
|
|
11439
|
+
"The URL of the documentation to fetch. Should be something like https://dev.wix.com/docs/.../.../..."
|
|
11440
|
+
)
|
|
11441
|
+
},
|
|
11442
|
+
{ readOnlyHint: true, destructiveHint: false, openWorldHint: false },
|
|
11443
|
+
async ({ articleUrl }, { httpClient }) => {
|
|
11444
|
+
try {
|
|
11445
|
+
const articleContent = await fetchArticleContent(
|
|
11446
|
+
httpClient,
|
|
11447
|
+
articleUrl,
|
|
11448
|
+
"methodSchema",
|
|
11449
|
+
false,
|
|
11450
|
+
picassoPortalUrl
|
|
11451
|
+
);
|
|
11452
|
+
if (!articleContent) {
|
|
11453
|
+
throw new Error("Method schema is empty");
|
|
11454
|
+
}
|
|
11455
|
+
return {
|
|
11456
|
+
content: [
|
|
11457
|
+
{
|
|
11458
|
+
type: "text",
|
|
11459
|
+
text: articleContent
|
|
11460
|
+
}
|
|
11461
|
+
]
|
|
11462
|
+
};
|
|
11463
|
+
} catch (error) {
|
|
11464
|
+
logger.error(
|
|
11465
|
+
`Error fetching method schema for ${articleUrl}: ${error}`
|
|
11466
|
+
);
|
|
11467
|
+
return {
|
|
11468
|
+
content: [
|
|
11469
|
+
{
|
|
11470
|
+
type: "text",
|
|
11471
|
+
text: `Could not fetch method schema: "${error.message}". You should try completing the task without it.`
|
|
11472
|
+
}
|
|
11473
|
+
]
|
|
11474
|
+
};
|
|
11681
11475
|
}
|
|
11682
|
-
return {
|
|
11683
|
-
content: [
|
|
11684
|
-
{
|
|
11685
|
-
type: "text",
|
|
11686
|
-
text: articleContent
|
|
11687
|
-
}
|
|
11688
|
-
]
|
|
11689
|
-
};
|
|
11690
|
-
} catch (error) {
|
|
11691
|
-
logger.error(
|
|
11692
|
-
`Error fetching method schema for ${articleUrl}: ${error}`
|
|
11693
|
-
);
|
|
11694
|
-
return {
|
|
11695
|
-
content: [
|
|
11696
|
-
{
|
|
11697
|
-
type: "text",
|
|
11698
|
-
text: `Could not fetch method schema: "${error.message}". You should try completing the task without it.`
|
|
11699
|
-
}
|
|
11700
|
-
]
|
|
11701
|
-
};
|
|
11702
11476
|
}
|
|
11703
|
-
|
|
11704
|
-
|
|
11477
|
+
);
|
|
11478
|
+
}
|
|
11705
11479
|
};
|
|
11706
11480
|
|
|
11707
11481
|
// src/cli-tools/cli.ts
|
|
@@ -11823,8 +11597,10 @@ function addCliTools(server2, allowedTools = ["CLI_COMMAND"], isWixOne2 = false)
|
|
|
11823
11597
|
logger.log(`RunWixCliCommand: stderr: ${stderr}`);
|
|
11824
11598
|
return {
|
|
11825
11599
|
content: [
|
|
11826
|
-
{
|
|
11827
|
-
|
|
11600
|
+
{
|
|
11601
|
+
type: "text",
|
|
11602
|
+
text: stderr ? [stdout, `Error: ${stderr}`].join("\n\n") : stdout
|
|
11603
|
+
}
|
|
11828
11604
|
]
|
|
11829
11605
|
};
|
|
11830
11606
|
} catch (error) {
|
|
@@ -11840,13 +11616,17 @@ function addCliTools(server2, allowedTools = ["CLI_COMMAND"], isWixOne2 = false)
|
|
|
11840
11616
|
}
|
|
11841
11617
|
|
|
11842
11618
|
// src/wix-mcp-server.ts
|
|
11843
|
-
var import_v2 = __toESM(require_v2(), 1);
|
|
11844
11619
|
import { v4 as uuidv4 } from "uuid";
|
|
11845
11620
|
import { captureException as captureException2, setTags } from "@sentry/node";
|
|
11846
11621
|
import {
|
|
11847
11622
|
McpServer
|
|
11848
11623
|
} from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
11849
11624
|
|
|
11625
|
+
// ../../node_modules/@wix/bi-logger-api-infra-data/dist/esm/v2/index.js
|
|
11626
|
+
function wixMcpRequestSrc39Evid1607(params) {
|
|
11627
|
+
return { evid: 1607, src: 39, endpoint: "", params };
|
|
11628
|
+
}
|
|
11629
|
+
|
|
11850
11630
|
// src/infra/panorama.ts
|
|
11851
11631
|
var import_panorama_client_node = __toESM(require_cjs2(), 1);
|
|
11852
11632
|
var packageJson = {
|
|
@@ -11937,124 +11717,145 @@ var WixMcpServer = class extends McpServer {
|
|
|
11937
11717
|
setClientNameGetter(getClientName) {
|
|
11938
11718
|
this.getClientName = getClientName;
|
|
11939
11719
|
}
|
|
11720
|
+
getWidgetExtras() {
|
|
11721
|
+
return {
|
|
11722
|
+
biContext: {
|
|
11723
|
+
userId: this.getUserId?.() ?? "",
|
|
11724
|
+
sessionId: this.sessionId
|
|
11725
|
+
}
|
|
11726
|
+
};
|
|
11727
|
+
}
|
|
11940
11728
|
tool(...args) {
|
|
11941
11729
|
const cbIndex = args.findIndex((arg) => typeof arg === "function");
|
|
11942
11730
|
if (cbIndex !== -1) {
|
|
11943
|
-
const originalCb = args[cbIndex];
|
|
11944
11731
|
const toolName = args[0];
|
|
11945
|
-
const
|
|
11946
|
-
|
|
11947
|
-
|
|
11948
|
-
|
|
11949
|
-
|
|
11950
|
-
|
|
11951
|
-
|
|
11952
|
-
|
|
11953
|
-
|
|
11954
|
-
|
|
11955
|
-
|
|
11732
|
+
const originalCb = args[cbIndex];
|
|
11733
|
+
args[cbIndex] = this.wrapToolCallback(toolName, originalCb);
|
|
11734
|
+
}
|
|
11735
|
+
return super.tool.apply(this, args);
|
|
11736
|
+
}
|
|
11737
|
+
registerTool(name, config, cb) {
|
|
11738
|
+
const wrappedCb = this.wrapToolCallback(name, cb);
|
|
11739
|
+
return super.registerTool(
|
|
11740
|
+
name,
|
|
11741
|
+
config,
|
|
11742
|
+
wrappedCb
|
|
11743
|
+
);
|
|
11744
|
+
}
|
|
11745
|
+
wrapToolCallback(toolName, originalCb) {
|
|
11746
|
+
const isDevEnvironment = DEV_ENVIRONMENTS.includes(this.nodeEnv);
|
|
11747
|
+
return async (...cbArgs) => {
|
|
11748
|
+
setTags({
|
|
11749
|
+
panoramaSessionId: this.sessionId
|
|
11750
|
+
});
|
|
11751
|
+
const panorama = createPanoramaClient({
|
|
11752
|
+
environment: this.nodeEnv,
|
|
11753
|
+
sessionId: this.sessionId,
|
|
11754
|
+
componentId: toolName,
|
|
11755
|
+
uuid: this.getUserId?.(),
|
|
11756
|
+
serverInfo: this.serverInfo
|
|
11757
|
+
});
|
|
11758
|
+
const toolInvocationId = uuidv4();
|
|
11759
|
+
const httpClient = new import_http_client.HttpClient({
|
|
11760
|
+
headers: {
|
|
11761
|
+
"x-wix-mcp": `execution-id=${toolInvocationId}`
|
|
11762
|
+
}
|
|
11763
|
+
});
|
|
11764
|
+
let toolBiParams = {};
|
|
11765
|
+
const argsBeforeExtra = cbArgs.slice(0, cbArgs.length - 1);
|
|
11766
|
+
const extra = cbArgs[cbArgs.length - 1];
|
|
11767
|
+
const wrappedExtra = {
|
|
11768
|
+
...extra,
|
|
11769
|
+
panorama: panorama.createClientForComponent(),
|
|
11770
|
+
httpClient,
|
|
11771
|
+
biLogger: this.biLogger,
|
|
11772
|
+
logger,
|
|
11773
|
+
setToolBiParams: (params) => {
|
|
11774
|
+
toolBiParams = params;
|
|
11775
|
+
}
|
|
11776
|
+
};
|
|
11777
|
+
if (!isDevEnvironment) {
|
|
11778
|
+
const userId = this.getUserId?.();
|
|
11779
|
+
this.biLogger.updateDefaults({
|
|
11780
|
+
_uuid: userId ?? ""
|
|
11956
11781
|
});
|
|
11957
|
-
|
|
11958
|
-
|
|
11959
|
-
|
|
11960
|
-
"x-wix-mcp": `execution-id=${toolInvocationId}`
|
|
11961
|
-
}
|
|
11782
|
+
panorama.transaction(toolName).start({
|
|
11783
|
+
toolInvocationId,
|
|
11784
|
+
params: JSON.stringify(argsBeforeExtra)
|
|
11962
11785
|
});
|
|
11963
|
-
|
|
11964
|
-
|
|
11965
|
-
|
|
11966
|
-
|
|
11967
|
-
|
|
11968
|
-
|
|
11969
|
-
|
|
11970
|
-
|
|
11971
|
-
|
|
11972
|
-
|
|
11973
|
-
}
|
|
11974
|
-
|
|
11786
|
+
}
|
|
11787
|
+
const startTime = performance.now();
|
|
11788
|
+
let toolSucceeded, errorBody;
|
|
11789
|
+
try {
|
|
11790
|
+
const cbResult = await originalCb(...argsBeforeExtra, wrappedExtra);
|
|
11791
|
+
toolSucceeded = !cbResult.isError;
|
|
11792
|
+
if (toolSucceeded && !isDevEnvironment) {
|
|
11793
|
+
panorama.transaction(toolName).finish({ toolInvocationId });
|
|
11794
|
+
}
|
|
11795
|
+
if (!toolSucceeded) {
|
|
11796
|
+
panorama.errorMonitor().reportError(new Error(`Tool ${toolName} returned isError: true`), {
|
|
11797
|
+
context: {
|
|
11798
|
+
toolName,
|
|
11799
|
+
toolInvocationId,
|
|
11800
|
+
params: JSON.stringify(argsBeforeExtra),
|
|
11801
|
+
error: JSON.stringify(cbResult, null, 2)
|
|
11802
|
+
}
|
|
11803
|
+
});
|
|
11804
|
+
}
|
|
11805
|
+
return cbResult;
|
|
11806
|
+
} catch (e) {
|
|
11807
|
+
toolSucceeded = false;
|
|
11808
|
+
errorBody = e.message;
|
|
11975
11809
|
if (!isDevEnvironment) {
|
|
11976
|
-
panorama.
|
|
11977
|
-
|
|
11978
|
-
|
|
11810
|
+
panorama.errorMonitor().reportError(e, {
|
|
11811
|
+
context: {
|
|
11812
|
+
toolName,
|
|
11813
|
+
toolInvocationId,
|
|
11814
|
+
params: JSON.stringify(argsBeforeExtra),
|
|
11815
|
+
error: errorBody
|
|
11816
|
+
}
|
|
11817
|
+
});
|
|
11818
|
+
captureException2(e, {
|
|
11819
|
+
tags: {
|
|
11820
|
+
componentId: toolName,
|
|
11821
|
+
toolName
|
|
11822
|
+
}
|
|
11979
11823
|
});
|
|
11980
11824
|
}
|
|
11981
|
-
const
|
|
11982
|
-
|
|
11983
|
-
|
|
11984
|
-
|
|
11985
|
-
|
|
11986
|
-
|
|
11987
|
-
|
|
11988
|
-
|
|
11989
|
-
|
|
11990
|
-
|
|
11991
|
-
|
|
11992
|
-
|
|
11993
|
-
|
|
11994
|
-
|
|
11995
|
-
|
|
11996
|
-
|
|
11997
|
-
|
|
11998
|
-
|
|
11999
|
-
|
|
12000
|
-
|
|
12001
|
-
|
|
12002
|
-
|
|
12003
|
-
|
|
12004
|
-
|
|
12005
|
-
|
|
12006
|
-
|
|
12007
|
-
|
|
12008
|
-
|
|
12009
|
-
|
|
12010
|
-
|
|
12011
|
-
|
|
12012
|
-
error: errorBody
|
|
12013
|
-
}
|
|
12014
|
-
});
|
|
12015
|
-
captureException2(e, {
|
|
12016
|
-
tags: {
|
|
12017
|
-
componentId: toolName,
|
|
12018
|
-
toolName
|
|
12019
|
-
}
|
|
12020
|
-
});
|
|
12021
|
-
}
|
|
12022
|
-
return {
|
|
12023
|
-
isError: true,
|
|
12024
|
-
content: [{ type: "text", text: e.message }]
|
|
12025
|
-
};
|
|
12026
|
-
} finally {
|
|
12027
|
-
const endTime = performance.now();
|
|
12028
|
-
const duration = Math.round(endTime - startTime);
|
|
12029
|
-
const clientName = this.server.getClientVersion()?.name;
|
|
12030
|
-
if (!isDevEnvironment) {
|
|
12031
|
-
const userId = this.getUserId?.();
|
|
12032
|
-
this.biLogger.updateDefaults({
|
|
12033
|
-
_msid: this.context?.siteId ?? toolBiParams.siteId ?? "",
|
|
12034
|
-
_visitorId: toolBiParams.visitorId ?? "",
|
|
12035
|
-
_uuid: userId ?? "",
|
|
12036
|
-
_request_id: toolBiParams.requestId ?? ""
|
|
12037
|
-
});
|
|
12038
|
-
this.biLogger.report(
|
|
12039
|
-
(0, import_v2.wixMcpRequestSrc39Evid1607)({
|
|
12040
|
-
clientName: this.getClientName?.() || clientName,
|
|
12041
|
-
duration,
|
|
12042
|
-
errorBody,
|
|
12043
|
-
toolInvocationId,
|
|
12044
|
-
toolName,
|
|
12045
|
-
params: JSON.stringify(argsBeforeExtra),
|
|
12046
|
-
origin: this.nodeEnv,
|
|
12047
|
-
sessionId: this.sessionId,
|
|
12048
|
-
executionResult: toolSucceeded ? "Success" : "Error",
|
|
12049
|
-
requestId: toolBiParams.requestId
|
|
12050
|
-
})
|
|
12051
|
-
);
|
|
12052
|
-
}
|
|
11825
|
+
const mcpMeta = e.mcpMeta;
|
|
11826
|
+
return {
|
|
11827
|
+
isError: true,
|
|
11828
|
+
content: [{ type: "text", text: e.message }],
|
|
11829
|
+
...mcpMeta && { _meta: mcpMeta }
|
|
11830
|
+
};
|
|
11831
|
+
} finally {
|
|
11832
|
+
const endTime = performance.now();
|
|
11833
|
+
const duration = Math.round(endTime - startTime);
|
|
11834
|
+
const clientName = this.server.getClientVersion()?.name;
|
|
11835
|
+
if (!isDevEnvironment) {
|
|
11836
|
+
this.biLogger.updateDefaults({
|
|
11837
|
+
_msid: this.context?.siteId ?? toolBiParams.siteId ?? "",
|
|
11838
|
+
_visitorId: toolBiParams.visitorId ?? "",
|
|
11839
|
+
_request_id: toolBiParams.requestId ?? ""
|
|
11840
|
+
});
|
|
11841
|
+
this.biLogger.report(
|
|
11842
|
+
wixMcpRequestSrc39Evid1607({
|
|
11843
|
+
clientName: this.getClientName?.() || clientName,
|
|
11844
|
+
duration,
|
|
11845
|
+
errorBody,
|
|
11846
|
+
toolInvocationId,
|
|
11847
|
+
toolName,
|
|
11848
|
+
params: JSON.stringify(argsBeforeExtra),
|
|
11849
|
+
origin: this.nodeEnv,
|
|
11850
|
+
sessionId: this.sessionId,
|
|
11851
|
+
executionResult: toolSucceeded ? "Success" : "Error",
|
|
11852
|
+
requestId: toolBiParams.requestId,
|
|
11853
|
+
jobId: toolBiParams.jobId
|
|
11854
|
+
})
|
|
11855
|
+
);
|
|
12053
11856
|
}
|
|
12054
|
-
}
|
|
12055
|
-
|
|
12056
|
-
}
|
|
12057
|
-
return super.tool.apply(this, args);
|
|
11857
|
+
}
|
|
11858
|
+
};
|
|
12058
11859
|
}
|
|
12059
11860
|
};
|
|
12060
11861
|
|
|
@@ -12106,7 +11907,7 @@ var addDocsResources = async (server2, portals) => {
|
|
|
12106
11907
|
|
|
12107
11908
|
// src/api-call/index.ts
|
|
12108
11909
|
var import_http_client2 = __toESM(require_index_node2(), 1);
|
|
12109
|
-
import { z as
|
|
11910
|
+
import { z as z4 } from "zod";
|
|
12110
11911
|
|
|
12111
11912
|
// src/tool-utils.ts
|
|
12112
11913
|
var safeParseJSON = (text) => {
|
|
@@ -12147,6 +11948,13 @@ var handleWixAPIResponse = async (response) => {
|
|
|
12147
11948
|
};
|
|
12148
11949
|
|
|
12149
11950
|
// src/api-call/validation.ts
|
|
11951
|
+
var ALLOWED_HOSTNAMES = [
|
|
11952
|
+
"wix.com",
|
|
11953
|
+
"dev.wix.com",
|
|
11954
|
+
"manage.wix.com",
|
|
11955
|
+
"editor.wix.com",
|
|
11956
|
+
"wixapis.com"
|
|
11957
|
+
];
|
|
12150
11958
|
function isApiUrlAllowed(url) {
|
|
12151
11959
|
let parsedUrl;
|
|
12152
11960
|
try {
|
|
@@ -12157,13 +11965,6 @@ function isApiUrlAllowed(url) {
|
|
|
12157
11965
|
error: `Invalid URL format: ${url}`
|
|
12158
11966
|
};
|
|
12159
11967
|
}
|
|
12160
|
-
const ALLOWED_HOSTNAMES = [
|
|
12161
|
-
"wix.com",
|
|
12162
|
-
"dev.wix.com",
|
|
12163
|
-
"manage.wix.com",
|
|
12164
|
-
"editor.wix.com",
|
|
12165
|
-
"wixapis.com"
|
|
12166
|
-
];
|
|
12167
11968
|
const hostname = parsedUrl.hostname.replace("www.", "");
|
|
12168
11969
|
const isAllowedHostname = ALLOWED_HOSTNAMES.some(
|
|
12169
11970
|
(domain) => hostname === domain
|
|
@@ -12179,35 +11980,219 @@ function isApiUrlAllowed(url) {
|
|
|
12179
11980
|
};
|
|
12180
11981
|
}
|
|
12181
11982
|
|
|
11983
|
+
// src/api-call/upload-image-tool.ts
|
|
11984
|
+
import { z as z3 } from "zod";
|
|
11985
|
+
var TOOL_NAME = "UploadImageToWixSite";
|
|
11986
|
+
var POLL_TIMEOUT_MS = 1e4;
|
|
11987
|
+
var POLL_INTERVAL_MS = 1e3;
|
|
11988
|
+
async function waitForFileReady(httpClient, fileId, authHeaders, timeoutMs = POLL_TIMEOUT_MS) {
|
|
11989
|
+
const startTime = Date.now();
|
|
11990
|
+
while (Date.now() - startTime < timeoutMs) {
|
|
11991
|
+
await new Promise((resolve) => setTimeout(resolve, POLL_INTERVAL_MS));
|
|
11992
|
+
try {
|
|
11993
|
+
const response = await httpClient.get(
|
|
11994
|
+
`https://www.wixapis.com/site-media/v1/files/get-file-by-id?fileId=${encodeURIComponent(fileId)}`,
|
|
11995
|
+
{ headers: authHeaders }
|
|
11996
|
+
);
|
|
11997
|
+
const file = response.data?.file;
|
|
11998
|
+
if (file && file.operationStatus !== "PENDING") {
|
|
11999
|
+
return file;
|
|
12000
|
+
}
|
|
12001
|
+
} catch {
|
|
12002
|
+
return null;
|
|
12003
|
+
}
|
|
12004
|
+
}
|
|
12005
|
+
return null;
|
|
12006
|
+
}
|
|
12007
|
+
function addUploadImageTool(server2, strategy, options) {
|
|
12008
|
+
const description = options?.description ?? defaultToolDescriptions.UploadImageToWixSite;
|
|
12009
|
+
const hints = {
|
|
12010
|
+
readOnlyHint: options?.hints?.readOnlyHint ?? false,
|
|
12011
|
+
destructiveHint: options?.hints?.destructiveHint ?? false,
|
|
12012
|
+
openWorldHint: options?.hints?.openWorldHint ?? false
|
|
12013
|
+
};
|
|
12014
|
+
server2.registerTool(
|
|
12015
|
+
TOOL_NAME,
|
|
12016
|
+
{
|
|
12017
|
+
title: "Upload Image to Wix Site",
|
|
12018
|
+
description,
|
|
12019
|
+
inputSchema: {
|
|
12020
|
+
siteId: z3.string().describe("The ID of the Wix site to upload to"),
|
|
12021
|
+
image: z3.object({
|
|
12022
|
+
download_url: z3.string().url(),
|
|
12023
|
+
file_id: z3.string()
|
|
12024
|
+
}).describe("The image file provided by the user"),
|
|
12025
|
+
displayName: z3.string().optional().describe(
|
|
12026
|
+
"Optional display name for the file in Media Manager. If not provided, uses the original filename."
|
|
12027
|
+
)
|
|
12028
|
+
},
|
|
12029
|
+
_meta: {
|
|
12030
|
+
"openai/fileParams": ["image"],
|
|
12031
|
+
"openai/toolInvocation/invoking": "Uploading image to Wix Media Manager...",
|
|
12032
|
+
"openai/toolInvocation/invoked": "Image uploaded successfully"
|
|
12033
|
+
},
|
|
12034
|
+
annotations: hints
|
|
12035
|
+
},
|
|
12036
|
+
async ({
|
|
12037
|
+
siteId,
|
|
12038
|
+
image,
|
|
12039
|
+
displayName
|
|
12040
|
+
}, { httpClient, setToolBiParams }) => {
|
|
12041
|
+
logger.log(
|
|
12042
|
+
`Uploading image to Wix site: ${siteId}, file_id: ${image.file_id}`
|
|
12043
|
+
);
|
|
12044
|
+
setToolBiParams({ siteId });
|
|
12045
|
+
try {
|
|
12046
|
+
const importResponse = await httpClient.post(
|
|
12047
|
+
"https://www.wixapis.com/site-media/v1/files/import",
|
|
12048
|
+
{
|
|
12049
|
+
url: image.download_url,
|
|
12050
|
+
...displayName ? { displayName } : {}
|
|
12051
|
+
},
|
|
12052
|
+
{
|
|
12053
|
+
headers: {
|
|
12054
|
+
...await strategy.getSiteAuthHeaders(siteId),
|
|
12055
|
+
"Content-Type": "application/json"
|
|
12056
|
+
}
|
|
12057
|
+
}
|
|
12058
|
+
);
|
|
12059
|
+
let file = importResponse.data?.file;
|
|
12060
|
+
if (!file) {
|
|
12061
|
+
return {
|
|
12062
|
+
isError: true,
|
|
12063
|
+
content: [
|
|
12064
|
+
{
|
|
12065
|
+
type: "text",
|
|
12066
|
+
text: "Failed to upload image: No file returned from Wix API"
|
|
12067
|
+
}
|
|
12068
|
+
]
|
|
12069
|
+
};
|
|
12070
|
+
}
|
|
12071
|
+
if (file.operationStatus === "PENDING") {
|
|
12072
|
+
const authHeaders = await strategy.getSiteAuthHeaders(siteId);
|
|
12073
|
+
const updatedFile = await waitForFileReady(
|
|
12074
|
+
httpClient,
|
|
12075
|
+
file.id,
|
|
12076
|
+
authHeaders
|
|
12077
|
+
);
|
|
12078
|
+
if (updatedFile) {
|
|
12079
|
+
file = updatedFile;
|
|
12080
|
+
}
|
|
12081
|
+
}
|
|
12082
|
+
const result = {
|
|
12083
|
+
id: file.id,
|
|
12084
|
+
displayName: file.displayName,
|
|
12085
|
+
url: file.url,
|
|
12086
|
+
operationStatus: file.operationStatus,
|
|
12087
|
+
mediaType: file.mediaType,
|
|
12088
|
+
sourceUrl: file.sourceUrl,
|
|
12089
|
+
...file.media?.image?.image ? {
|
|
12090
|
+
width: file.media.image.image.width,
|
|
12091
|
+
height: file.media.image.image.height
|
|
12092
|
+
} : {}
|
|
12093
|
+
};
|
|
12094
|
+
logger.log(`Image uploaded successfully: ${JSON.stringify(result)}`);
|
|
12095
|
+
let responseText = `Image uploaded successfully!
|
|
12096
|
+
|
|
12097
|
+
`;
|
|
12098
|
+
responseText += `**Media ID:** ${result.id}
|
|
12099
|
+
`;
|
|
12100
|
+
responseText += `**URL:** ${result.url}
|
|
12101
|
+
`;
|
|
12102
|
+
responseText += `**Status:** ${result.operationStatus}
|
|
12103
|
+
`;
|
|
12104
|
+
if (result.width && result.height) {
|
|
12105
|
+
responseText += `**Dimensions:** ${result.width}x${result.height}
|
|
12106
|
+
`;
|
|
12107
|
+
}
|
|
12108
|
+
if (result.operationStatus === "PENDING") {
|
|
12109
|
+
responseText += `
|
|
12110
|
+
**Note:** The file is still being processed (timeout reached). `;
|
|
12111
|
+
responseText += `You can use the URL immediately, but some operations may require waiting for status to become READY.`;
|
|
12112
|
+
}
|
|
12113
|
+
return {
|
|
12114
|
+
content: [
|
|
12115
|
+
{
|
|
12116
|
+
type: "text",
|
|
12117
|
+
text: responseText
|
|
12118
|
+
}
|
|
12119
|
+
],
|
|
12120
|
+
structuredContent: result
|
|
12121
|
+
};
|
|
12122
|
+
} catch (error) {
|
|
12123
|
+
const errorMessage = `Failed to upload image to Wix: ${error}`;
|
|
12124
|
+
logger.error(errorMessage);
|
|
12125
|
+
return {
|
|
12126
|
+
isError: true,
|
|
12127
|
+
content: [
|
|
12128
|
+
{
|
|
12129
|
+
type: "text",
|
|
12130
|
+
text: errorMessage
|
|
12131
|
+
}
|
|
12132
|
+
]
|
|
12133
|
+
};
|
|
12134
|
+
}
|
|
12135
|
+
}
|
|
12136
|
+
);
|
|
12137
|
+
}
|
|
12138
|
+
|
|
12182
12139
|
// src/api-call/index.ts
|
|
12183
|
-
|
|
12184
|
-
|
|
12140
|
+
var MAX_RESPONSE_SIZE = 5e4;
|
|
12141
|
+
function formatApiResponse(responseData) {
|
|
12142
|
+
if (typeof responseData === "string" && responseData.trim().startsWith("<!DOCTYPE")) {
|
|
12143
|
+
return {
|
|
12144
|
+
text: "Error: API returned HTML instead of JSON. This usually means the URL is incorrect or points to a web page instead of an API endpoint. Please verify the URL.",
|
|
12145
|
+
isError: true
|
|
12146
|
+
};
|
|
12147
|
+
}
|
|
12148
|
+
let responseText = JSON.stringify(responseData);
|
|
12149
|
+
if (responseText.length > MAX_RESPONSE_SIZE) {
|
|
12150
|
+
responseText = responseText.slice(0, MAX_RESPONSE_SIZE) + `
|
|
12151
|
+
...[TRUNCATED - response was ${responseText.length} chars, showing first ${MAX_RESPONSE_SIZE}]`;
|
|
12152
|
+
}
|
|
12153
|
+
return { text: responseText, isError: false };
|
|
12154
|
+
}
|
|
12155
|
+
function addApiCallTool(server2, strategy, allowedTools = ["CallWixSiteAPI", "ListWixSites", "ManageWixSite"], disableTools = [], enableTools = [], toolDescriptions, toolHints) {
|
|
12156
|
+
const effectiveAllowedTools = [
|
|
12157
|
+
.../* @__PURE__ */ new Set([...allowedTools, ...enableTools])
|
|
12158
|
+
].filter((tool) => !disableTools.includes(tool));
|
|
12159
|
+
const getHints = (toolName, defaults) => ({
|
|
12160
|
+
readOnlyHint: toolHints?.[toolName]?.readOnlyHint ?? defaults.readOnlyHint,
|
|
12161
|
+
destructiveHint: toolHints?.[toolName]?.destructiveHint ?? defaults.destructiveHint,
|
|
12162
|
+
openWorldHint: toolHints?.[toolName]?.openWorldHint ?? defaults.openWorldHint
|
|
12163
|
+
});
|
|
12164
|
+
const getDescription = (toolName, defaultDesc) => toolDescriptions?.[toolName] ?? defaultDesc;
|
|
12165
|
+
if (effectiveAllowedTools.includes("CallWixSiteAPI") && !disableTools.includes("CallWixSiteAPI")) {
|
|
12185
12166
|
server2.tool(
|
|
12186
12167
|
"CallWixSiteAPI",
|
|
12187
|
-
|
|
12188
|
-
"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,",
|
|
12189
|
-
`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`,
|
|
12190
|
-
"Error Handling:",
|
|
12191
|
-
'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',
|
|
12192
|
-
"**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.",
|
|
12193
|
-
"For any other error, use your default error handling mechanism"
|
|
12194
|
-
].join("\n"),
|
|
12168
|
+
getDescription("CallWixSiteAPI", defaultToolDescriptions.CallWixSiteAPI),
|
|
12195
12169
|
{
|
|
12196
|
-
siteId:
|
|
12197
|
-
url:
|
|
12198
|
-
|
|
12170
|
+
siteId: z4.string().describe("The id of the site selected using site selection tool"),
|
|
12171
|
+
url: z4.string().url().describe(
|
|
12172
|
+
[
|
|
12173
|
+
"The url of the api to call - ALWAYS get the API url from the Wix REST docs or from the conversation context, the URL MUST BE ABSOLUTE URL",
|
|
12174
|
+
'NEVER guess the API url, ALWAYS get it from the conversation context, i.e from the user prompt or from the "WixREADME" tool or from the "SearchWixRESTDocumentation" tool or from the "ReadFullDocsArticle" tool',
|
|
12175
|
+
`Allowed API urls are: ${ALLOWED_HOSTNAMES.join(", ")}`,
|
|
12176
|
+
`Docs urls like https://dev.wix.com/docs/... are not API urls, if you want to read the docs, use the "ReadFullDocsArticle" tool`
|
|
12177
|
+
].join("\n")
|
|
12199
12178
|
),
|
|
12200
|
-
method:
|
|
12179
|
+
method: z4.string().describe(
|
|
12201
12180
|
"The HTTP method to use for the API call (e.g. GET, POST, PUT, DELETE)"
|
|
12202
12181
|
),
|
|
12203
|
-
body:
|
|
12204
|
-
|
|
12182
|
+
body: z4.object({}).passthrough().optional().describe(
|
|
12183
|
+
'The request body object. YOU MUST NEVER MAKE UP A BODY - this should be based on the conversation context, i.e from the user prompt or from the "WixREADME" tool or from the "SearchWixRESTDocumentation" tool or from the "ReadFullDocsArticle" tool or from the "ReadFullDocsMethodSchema" tool - i.e based on the API docs. YOU MUST NEVER ASSUME YOU KNOW WHAT THE SCHEMA IS WITHOUT CONCRETE EXAMPLES OR SCHEMA DEFINITIONS FROM THE CONVERSATION CONTEXT.'
|
|
12205
12184
|
)
|
|
12206
12185
|
},
|
|
12186
|
+
getHints("CallWixSiteAPI", {
|
|
12187
|
+
readOnlyHint: false,
|
|
12188
|
+
destructiveHint: true,
|
|
12189
|
+
openWorldHint: false
|
|
12190
|
+
}),
|
|
12207
12191
|
async ({ url, body, method, siteId }, { httpClient, setToolBiParams }) => {
|
|
12208
|
-
|
|
12209
|
-
|
|
12210
|
-
|
|
12192
|
+
const requestHeaders = {
|
|
12193
|
+
...await strategy.getSiteAuthHeaders(siteId),
|
|
12194
|
+
...body ? { "Content-Type": "application/json" } : {}
|
|
12195
|
+
};
|
|
12211
12196
|
const { isAllowed, error: urlError } = isApiUrlAllowed(url);
|
|
12212
12197
|
if (!isAllowed) {
|
|
12213
12198
|
return {
|
|
@@ -12224,20 +12209,29 @@ function addApiCallTool(server2, strategy, allowedTools = ["CallWixSiteAPI", "Li
|
|
|
12224
12209
|
const response = await httpClient.request({
|
|
12225
12210
|
url,
|
|
12226
12211
|
method,
|
|
12227
|
-
headers:
|
|
12228
|
-
...await strategy.getSiteAuthHeaders(siteId),
|
|
12229
|
-
...body ? { "Content-Type": "application/json" } : {}
|
|
12230
|
-
},
|
|
12212
|
+
headers: requestHeaders,
|
|
12231
12213
|
data: method === "GET" ? void 0 : body
|
|
12232
12214
|
});
|
|
12233
12215
|
const requestId = response.headers?.["x-wix-request-id"];
|
|
12234
12216
|
setToolBiParams({ requestId, siteId });
|
|
12235
12217
|
const responseData = await handleWixAPIResponse(response);
|
|
12218
|
+
const formatted = formatApiResponse(responseData);
|
|
12219
|
+
if (formatted.isError) {
|
|
12220
|
+
return {
|
|
12221
|
+
content: [
|
|
12222
|
+
{
|
|
12223
|
+
type: "text",
|
|
12224
|
+
text: formatted.text
|
|
12225
|
+
}
|
|
12226
|
+
],
|
|
12227
|
+
isError: true
|
|
12228
|
+
};
|
|
12229
|
+
}
|
|
12236
12230
|
return {
|
|
12237
12231
|
content: [
|
|
12238
12232
|
{
|
|
12239
12233
|
type: "text",
|
|
12240
|
-
text: `Wix Site API call successful: ${
|
|
12234
|
+
text: `Wix Site API call successful: ${formatted.text}`
|
|
12241
12235
|
}
|
|
12242
12236
|
]
|
|
12243
12237
|
};
|
|
@@ -12247,9 +12241,9 @@ function addApiCallTool(server2, strategy, allowedTools = ["CallWixSiteAPI", "Li
|
|
|
12247
12241
|
requestId = error.requestId;
|
|
12248
12242
|
}
|
|
12249
12243
|
setToolBiParams({ requestId, siteId });
|
|
12244
|
+
const response = error.response;
|
|
12250
12245
|
const errorMessage = `Failed to call Wix Site API: ${error}. ${requestId ? `Request ID: ${requestId}` : ""}`;
|
|
12251
12246
|
logger.error(errorMessage);
|
|
12252
|
-
const response = error.response;
|
|
12253
12247
|
if (!response) {
|
|
12254
12248
|
throw new Error(errorMessage);
|
|
12255
12249
|
}
|
|
@@ -12258,17 +12252,22 @@ function addApiCallTool(server2, strategy, allowedTools = ["CallWixSiteAPI", "Li
|
|
|
12258
12252
|
}
|
|
12259
12253
|
);
|
|
12260
12254
|
}
|
|
12261
|
-
if (
|
|
12255
|
+
if (effectiveAllowedTools.includes("ListWixSites") && !disableTools.includes("ListWixSites")) {
|
|
12262
12256
|
server2.tool(
|
|
12263
12257
|
"ListWixSites",
|
|
12264
|
-
"
|
|
12258
|
+
getDescription("ListWixSites", defaultToolDescriptions.ListWixSites),
|
|
12265
12259
|
{
|
|
12266
|
-
nameSearch:
|
|
12260
|
+
nameSearch: z4.string().optional().describe(
|
|
12267
12261
|
"optional filer by name, if not provided all sites will be returned"
|
|
12268
12262
|
),
|
|
12269
12263
|
// Hack for Cursor ignoring tools with no params (when nameSearch is optional)
|
|
12270
|
-
alwaysTrue:
|
|
12264
|
+
alwaysTrue: z4.boolean().describe("Always pass true to this parameter")
|
|
12271
12265
|
},
|
|
12266
|
+
getHints("ListWixSites", {
|
|
12267
|
+
readOnlyHint: true,
|
|
12268
|
+
destructiveHint: false,
|
|
12269
|
+
openWorldHint: false
|
|
12270
|
+
}),
|
|
12272
12271
|
async ({ nameSearch }, { httpClient }) => {
|
|
12273
12272
|
const sitesRes = await httpClient.post(
|
|
12274
12273
|
"https://www.wixapis.com/site-list/v2/sites/query",
|
|
@@ -12301,34 +12300,36 @@ function addApiCallTool(server2, strategy, allowedTools = ["CallWixSiteAPI", "Li
|
|
|
12301
12300
|
content: [
|
|
12302
12301
|
{
|
|
12303
12302
|
type: "text",
|
|
12304
|
-
text:
|
|
12305
|
-
|
|
12306
|
-
|
|
12307
|
-
|
|
12308
|
-
text: "if there is more than one site returned, the user should pick one from a list, list the sites (only name) for the user and ask them to pick one,If more than 20 are found you should list all 20 and suggest to search by the name of the site they are looking for"
|
|
12303
|
+
text: [
|
|
12304
|
+
JSON.stringify(result),
|
|
12305
|
+
"if there is more than one site returned, the user should pick one from a list, list the sites (only name) for the user and ask them to pick one, If more than 20 are found you should list all 20 and suggest to search by the name of the site they are looking for"
|
|
12306
|
+
].join("\n\n")
|
|
12309
12307
|
}
|
|
12310
12308
|
]
|
|
12311
12309
|
};
|
|
12312
12310
|
}
|
|
12313
12311
|
);
|
|
12314
12312
|
}
|
|
12315
|
-
if (
|
|
12313
|
+
if (effectiveAllowedTools.includes("ManageWixSite") && !disableTools.includes("ManageWixSite")) {
|
|
12316
12314
|
server2.tool(
|
|
12317
12315
|
"ManageWixSite",
|
|
12318
|
-
|
|
12319
|
-
ALWAYS use "SearchWixRESTDocumentation" to search for the API you should invoke, NEVER GUESS THE SITE API URL
|
|
12320
|
-
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`,
|
|
12316
|
+
getDescription("ManageWixSite", defaultToolDescriptions.ManageWixSite),
|
|
12321
12317
|
{
|
|
12322
|
-
url:
|
|
12318
|
+
url: z4.string().url().describe(
|
|
12323
12319
|
"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"
|
|
12324
12320
|
),
|
|
12325
|
-
method:
|
|
12321
|
+
method: z4.string().describe(
|
|
12326
12322
|
"The HTTP method to use for the API call (e.g. GET, POST, PUT, DELETE)"
|
|
12327
12323
|
),
|
|
12328
|
-
body:
|
|
12329
|
-
|
|
12324
|
+
body: z4.object({}).passthrough().optional().describe(
|
|
12325
|
+
'The request body object. YOU MUST NEVER MAKE UP A BODY - this should be based on the conversation context, i.e from the user prompt or from the "WixREADME" tool or from the "SearchWixRESTDocumentation" tool or from the "ReadFullDocsArticle" tool or from the "ReadFullDocsMethodSchema" tool - i.e based on the API docs. YOU MUST NEVER ASSUME YOU KNOW WHAT THE SCHEMA IS WITHOUT CONCRETE EXAMPLES OR SCHEMA DEFINITIONS FROM THE CONVERSATION CONTEXT.'
|
|
12330
12326
|
)
|
|
12331
12327
|
},
|
|
12328
|
+
getHints("ManageWixSite", {
|
|
12329
|
+
readOnlyHint: false,
|
|
12330
|
+
destructiveHint: true,
|
|
12331
|
+
openWorldHint: false
|
|
12332
|
+
}),
|
|
12332
12333
|
async ({ url, body, method }, { httpClient }) => {
|
|
12333
12334
|
logger.log(
|
|
12334
12335
|
`Calling Wix Account level API: ${url}, body: ${JSON.stringify(body)}`
|
|
@@ -12356,11 +12357,23 @@ function addApiCallTool(server2, strategy, allowedTools = ["CallWixSiteAPI", "Li
|
|
|
12356
12357
|
data: method === "GET" ? void 0 : body
|
|
12357
12358
|
});
|
|
12358
12359
|
const responseData = await handleWixAPIResponse(response);
|
|
12360
|
+
const formatted = formatApiResponse(responseData);
|
|
12361
|
+
if (formatted.isError) {
|
|
12362
|
+
return {
|
|
12363
|
+
content: [
|
|
12364
|
+
{
|
|
12365
|
+
type: "text",
|
|
12366
|
+
text: formatted.text
|
|
12367
|
+
}
|
|
12368
|
+
],
|
|
12369
|
+
isError: true
|
|
12370
|
+
};
|
|
12371
|
+
}
|
|
12359
12372
|
return {
|
|
12360
12373
|
content: [
|
|
12361
12374
|
{
|
|
12362
12375
|
type: "text",
|
|
12363
|
-
text: `Wix Account API call successful: ${
|
|
12376
|
+
text: `Wix Account API call successful: ${formatted.text}`
|
|
12364
12377
|
}
|
|
12365
12378
|
]
|
|
12366
12379
|
};
|
|
@@ -12375,6 +12388,12 @@ function addApiCallTool(server2, strategy, allowedTools = ["CallWixSiteAPI", "Li
|
|
|
12375
12388
|
}
|
|
12376
12389
|
);
|
|
12377
12390
|
}
|
|
12391
|
+
if (effectiveAllowedTools.includes("UploadImageToWixSite") && !disableTools.includes("UploadImageToWixSite")) {
|
|
12392
|
+
addUploadImageTool(server2, strategy, {
|
|
12393
|
+
description: getDescription("UploadImageToWixSite", ""),
|
|
12394
|
+
hints: toolHints?.["UploadImageToWixSite"]
|
|
12395
|
+
});
|
|
12396
|
+
}
|
|
12378
12397
|
}
|
|
12379
12398
|
|
|
12380
12399
|
// src/docs/velo-readme.ts
|
|
@@ -12382,6 +12401,8 @@ async function addVeloReadmeTools(server2) {
|
|
|
12382
12401
|
server2.tool(
|
|
12383
12402
|
"VeloREADME",
|
|
12384
12403
|
"This tool is set for providing Velo context in order to be used by the agent for executing Velo-related tasks.",
|
|
12404
|
+
{},
|
|
12405
|
+
{ readOnlyHint: true, destructiveHint: false, openWorldHint: false },
|
|
12385
12406
|
async () => {
|
|
12386
12407
|
return {
|
|
12387
12408
|
content: [
|