decord/source/__polyfill/00xxx/module_800.js
github-actions 20a21ad13f chore: update source for alpha 346.5
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4791.js (118.4 MB)
2026-09-11 19:12:58 +00:00

88 lines
2.8 KiB
JavaScript

// Module ID: 800
// Function ID: 801
// Dependencies: [5, 801, 713, 687, 802, 813]
// Exports: wrapMcpServerWithSentry
// Module 800
import asyncGeneratorStep from "asyncGeneratorStep" /* 5 */;
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const weakSet = new WeakSet();
export const wrapMcpServerWithSentry = function wrapMcpServerWithSentry(arg0, recordInputs) {
if (weakSet.has(arg0)) {
return arg0;
} else {
if (obj2.validateMcpServerInstance(arg0)) {
const client = tmp(713).getClient();
let sendDefaultPii;
if (client != null) {
sendDefaultPii = client.getOptions().sendDefaultPii;
}
const BooleanResult = Boolean(sendDefaultPii);
recordInputs = undefined;
if (recordInputs != null) {
recordInputs = recordInputs.recordInputs;
}
if (recordInputs == null) {
recordInputs = BooleanResult;
}
const obj3 = { recordInputs, recordOutputs: null };
let recordOutputs;
if (recordInputs != null) {
recordOutputs = recordInputs.recordOutputs;
}
if (recordOutputs == null) {
recordOutputs = BooleanResult;
}
obj3.recordOutputs = recordOutputs;
const tmpResult = tmp(713);
tmp(687).fill(arg0, "connect", (arg0) => {
closure_0 = asyncGeneratorStep(async function(arg0) {
const self = this;
closure_1 = arg0;
closure_2 = [...arguments].slice();
c6 = 0;
c7 = 0;
const iter = (async (arg0) => {
closure_5 = self;
closure_4 = self;
closure_3 = tmp2;
closure_131_0 = closure_1;
closure_131_1 = closure_2;
await "PX_16";
const call = self.call;
const items = [closure_5, closure_131_0];
HermesBuiltin.arraySpread(closure_131_1, 2);
closure_131_2 = await HermesBuiltin.apply(items, self);
const result = obj3(802).wrapTransportOnMessage(closure_131_0, closure_0);
obj3(802).wrapTransportSend(closure_131_0, closure_0);
obj3(802).wrapTransportOnClose(closure_131_0);
obj3(802).wrapTransportError(closure_131_0);
return closure_131_2;
})();
iter.next();
return iter;
});
return function(arg0) {
const self = this;
const apply = closure_0.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
};
});
const tmpResult3 = tmp(687);
tmp(813).wrapAllMCPHandlers(arg0);
obj.add(arg0);
return arg0;
} else {
return arg0;
}
obj2 = obj3(801);
}
obj = weakSet;
};