@wix/mcp 1.0.15 → 1.0.16
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 +5 -3
- package/build/bin-standalone.js.map +2 -2
- package/build/cjs/index.cjs +5 -3
- package/build/cjs/index.cjs.map +2 -2
- package/build/dts/wix-mcp-server.d.ts.map +1 -1
- package/build/dts/wix-mcp-server.js +5 -3
- package/build/dts/wix-mcp-server.js.map +1 -1
- package/build/esm/index.js +5 -3
- package/build/esm/index.js.map +2 -2
- package/package.json +3 -3
package/build/cjs/index.cjs
CHANGED
|
@@ -23552,6 +23552,7 @@ var WixMcpServer = class extends McpServer {
|
|
|
23552
23552
|
} finally {
|
|
23553
23553
|
const endTime = performance.now();
|
|
23554
23554
|
const duration = Math.round(endTime - startTime);
|
|
23555
|
+
const clientName = this.server.getClientVersion()?.name;
|
|
23555
23556
|
if (!isDevEnvironment) {
|
|
23556
23557
|
if (this.getUserId) {
|
|
23557
23558
|
const userId = this.getUserId();
|
|
@@ -23561,14 +23562,15 @@ var WixMcpServer = class extends McpServer {
|
|
|
23561
23562
|
}
|
|
23562
23563
|
this.biLogger.report(
|
|
23563
23564
|
(0, import_v2.wixMcpRequestSrc39Evid1607)({
|
|
23565
|
+
clientName,
|
|
23566
|
+
duration,
|
|
23567
|
+
errorBody,
|
|
23564
23568
|
toolInvocationId,
|
|
23565
23569
|
toolName,
|
|
23566
23570
|
params: JSON.stringify(argsBeforeExtra),
|
|
23567
23571
|
origin: this.nodeEnv,
|
|
23568
|
-
duration,
|
|
23569
23572
|
sessionId: this.sessionId,
|
|
23570
|
-
executionResult: toolSucceeded ? "Success" : "Error"
|
|
23571
|
-
errorBody
|
|
23573
|
+
executionResult: toolSucceeded ? "Success" : "Error"
|
|
23572
23574
|
})
|
|
23573
23575
|
);
|
|
23574
23576
|
}
|