@sentry/mcp-server 0.8.0 → 0.10.0
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/README.md +14 -6
- package/dist/api-client/client.cjs +2 -2
- package/dist/api-client/client.d.cts +3 -3
- package/dist/api-client/client.d.ts +3 -3
- package/dist/api-client/client.js +2 -2
- package/dist/api-client/client.test.cjs +3 -3
- package/dist/api-client/client.test.js +3 -3
- package/dist/api-client/index.cjs +3 -2
- package/dist/api-client/index.d.cts +4 -4
- package/dist/api-client/index.d.ts +4 -4
- package/dist/api-client/index.js +3 -3
- package/dist/api-client/schema.cjs +2 -1
- package/dist/api-client/schema.d.cts +2 -2
- package/dist/api-client/schema.d.ts +2 -2
- package/dist/api-client/schema.js +2 -2
- package/dist/api-client/types.d.cts +2 -2
- package/dist/api-client/types.d.ts +2 -2
- package/dist/{client-Cp-Y1PHr.cjs → client-B4Ux5Zdg.cjs} +7 -4
- package/dist/client-B4Ux5Zdg.cjs.map +1 -0
- package/dist/{client-CXUzhM1I.js → client-Bz_PNC8o.js} +7 -4
- package/dist/client-Bz_PNC8o.js.map +1 -0
- package/dist/{client-CRlGzHly.d.ts → client-J6VSRmQS.d.ts} +10 -8
- package/dist/client-J6VSRmQS.d.ts.map +1 -0
- package/dist/{client-TjRMJC41.d.cts → client-tE6FD__9.d.cts} +6 -4
- package/dist/client-tE6FD__9.d.cts.map +1 -0
- package/dist/{formatting-BmbJ5-Uh.cjs → formatting-B0SJqiqX.cjs} +33 -11
- package/dist/formatting-B0SJqiqX.cjs.map +1 -0
- package/dist/formatting-ggD6YRYR.js +68 -0
- package/dist/formatting-ggD6YRYR.js.map +1 -0
- package/dist/index.cjs +13 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +13 -13
- package/dist/index.js.map +1 -1
- package/dist/internal/formatting.cjs +1 -1
- package/dist/internal/formatting.d.cts +3 -3
- package/dist/internal/formatting.d.cts.map +1 -1
- package/dist/internal/formatting.d.ts +3 -3
- package/dist/internal/formatting.d.ts.map +1 -1
- package/dist/internal/formatting.js +1 -1
- package/dist/internal/issue-helpers.test.cjs +3 -3
- package/dist/internal/issue-helpers.test.cjs.map +1 -1
- package/dist/internal/issue-helpers.test.js +3 -3
- package/dist/internal/issue-helpers.test.js.map +1 -1
- package/dist/{promptDefinitions-Dcz3d9wL.d.cts → promptDefinitions-BR7PxWcH.d.cts} +3 -3
- package/dist/promptDefinitions-BR7PxWcH.d.cts.map +1 -0
- package/dist/{promptDefinitions-CPTadtuI.js → promptDefinitions-DBNOeSg-.js} +5 -5
- package/dist/promptDefinitions-DBNOeSg-.js.map +1 -0
- package/dist/{promptDefinitions-5jiZMBg5.cjs → promptDefinitions-pHRpPOpJ.cjs} +5 -5
- package/dist/promptDefinitions-pHRpPOpJ.cjs.map +1 -0
- package/dist/{promptDefinitions-DrGK-v8n.d.ts → promptDefinitions-tpKruPny.d.ts} +3 -3
- package/dist/promptDefinitions-tpKruPny.d.ts.map +1 -0
- package/dist/promptDefinitions.cjs +2 -2
- package/dist/promptDefinitions.d.cts +1 -1
- package/dist/promptDefinitions.d.ts +1 -1
- package/dist/promptDefinitions.js +2 -2
- package/dist/prompts.d.cts +5 -5
- package/dist/prompts.d.ts +5 -5
- package/dist/{schema-BuByiEkr.cjs → schema-3VLYcf4D.cjs} +19 -2
- package/dist/schema-3VLYcf4D.cjs.map +1 -0
- package/dist/{schema-BzLH7LPa.d.ts → schema-B7A-FyIi.d.ts} +176 -88
- package/dist/schema-B7A-FyIi.d.ts.map +1 -0
- package/dist/schema-BKa41TQ4.js +17 -0
- package/dist/schema-BKa41TQ4.js.map +1 -0
- package/dist/{schema-Drnljuwf.js → schema-Dltbjui7.js} +14 -3
- package/dist/schema-Dltbjui7.js.map +1 -0
- package/dist/{schema-DpID9ztC.d.cts → schema-PvgLrC1b.d.cts} +358 -270
- package/dist/schema-PvgLrC1b.d.cts.map +1 -0
- package/dist/schema-jk88gqOu.cjs +78 -0
- package/dist/schema-jk88gqOu.cjs.map +1 -0
- package/dist/schema.cjs +3 -1
- package/dist/schema.d.cts +3 -1
- package/dist/schema.d.cts.map +1 -1
- package/dist/schema.d.ts +3 -1
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +2 -2
- package/dist/{server-fYrkDOmy.cjs → server-VwFSUPQn.cjs} +5 -5
- package/dist/{server-fYrkDOmy.cjs.map → server-VwFSUPQn.cjs.map} +1 -1
- package/dist/{server-BCmPE_Kt.js → server-yb4PkNyo.js} +5 -5
- package/dist/{server-BCmPE_Kt.js.map → server-yb4PkNyo.js.map} +1 -1
- package/dist/server.cjs +8 -8
- package/dist/server.d.cts +3 -3
- package/dist/server.d.ts +3 -3
- package/dist/server.js +8 -8
- package/dist/{stdio-BxJq3OU7.cjs → stdio-65sYKLOk.cjs} +2 -2
- package/dist/{stdio-BxJq3OU7.cjs.map → stdio-65sYKLOk.cjs.map} +1 -1
- package/dist/{stdio-QBN7-Am6.js → stdio-DkU2-spy.js} +2 -2
- package/dist/{stdio-QBN7-Am6.js.map → stdio-DkU2-spy.js.map} +1 -1
- package/dist/test-setup.cjs +1338 -1142
- package/dist/test-setup.cjs.map +1 -1
- package/dist/test-setup.js +1338 -1141
- package/dist/test-setup.js.map +1 -1
- package/dist/{toolDefinitions-Z-JGBEIN.d.cts → toolDefinitions-B94CNDbt.d.cts} +33 -51
- package/dist/toolDefinitions-B94CNDbt.d.cts.map +1 -0
- package/dist/{toolDefinitions-D13S3vQE.js → toolDefinitions-Bb_1ejkl.js} +83 -100
- package/dist/toolDefinitions-Bb_1ejkl.js.map +1 -0
- package/dist/{toolDefinitions-1SnflztE.cjs → toolDefinitions-DIhvw3vk.cjs} +83 -100
- package/dist/toolDefinitions-DIhvw3vk.cjs.map +1 -0
- package/dist/{toolDefinitions-DkO9-iEg.d.ts → toolDefinitions-q_1-70fG.d.ts} +33 -51
- package/dist/toolDefinitions-q_1-70fG.d.ts.map +1 -0
- package/dist/toolDefinitions.cjs +2 -2
- package/dist/toolDefinitions.d.cts +1 -1
- package/dist/toolDefinitions.d.ts +1 -1
- package/dist/toolDefinitions.js +2 -2
- package/dist/toolDefinitions.test.cjs +2 -2
- package/dist/toolDefinitions.test.js +2 -2
- package/dist/{tools-BgrGdS8I.cjs → tools-BdkmyaZo.cjs} +36 -77
- package/dist/tools-BdkmyaZo.cjs.map +1 -0
- package/dist/{tools-CnVttgaS.js → tools-CMFpMPpD.js} +36 -77
- package/dist/tools-CMFpMPpD.js.map +1 -0
- package/dist/tools.cjs +4 -4
- package/dist/tools.d.cts +35 -50
- package/dist/tools.d.cts.map +1 -1
- package/dist/tools.d.ts +38 -53
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +4 -4
- package/dist/tools.test.cjs +128 -88
- package/dist/tools.test.cjs.map +1 -1
- package/dist/tools.test.js +128 -88
- package/dist/tools.test.js.map +1 -1
- package/dist/transports/stdio.cjs +9 -9
- package/dist/transports/stdio.d.cts +3 -3
- package/dist/transports/stdio.d.ts +3 -3
- package/dist/transports/stdio.js +9 -9
- package/dist/{types-CczA6AH1.d.cts → types-B03G337q.d.cts} +2 -2
- package/dist/{types-CczA6AH1.d.cts.map → types-B03G337q.d.cts.map} +1 -1
- package/dist/{types-X5Epdrlo.d.ts → types-CN4NEway.d.ts} +2 -2
- package/dist/{types-X5Epdrlo.d.ts.map → types-CN4NEway.d.ts.map} +1 -1
- package/dist/{types-BO0mZ8vj.d.cts → types-OeoNXRm-.d.cts} +3 -3
- package/dist/{types-BO0mZ8vj.d.cts.map → types-OeoNXRm-.d.cts.map} +1 -1
- package/dist/{types-Cis1PiVW.d.ts → types-jftb-CP9.d.ts} +3 -3
- package/dist/{types-Cis1PiVW.d.ts.map → types-jftb-CP9.d.ts.map} +1 -1
- package/dist/types.d.cts +3 -3
- package/dist/types.d.ts +3 -3
- package/dist/{version-sY-gY_s6.cjs → version-CDnh7DyW.cjs} +2 -2
- package/dist/{version-sY-gY_s6.cjs.map → version-CDnh7DyW.cjs.map} +1 -1
- package/dist/version-TjO7fHpC.js +6 -0
- package/dist/{version-DtWIv-x9.js.map → version-TjO7fHpC.js.map} +1 -1
- package/dist/version.cjs +1 -1
- package/dist/version.js +1 -1
- package/dist/{vi.ClIskdbk-TqmAThAO.cjs → vi.ClIskdbk-Bs263gvI.cjs} +5 -5
- package/dist/{vi.ClIskdbk-TqmAThAO.cjs.map → vi.ClIskdbk-Bs263gvI.cjs.map} +1 -1
- package/dist/{vi.ClIskdbk-BbUmO3mx.js → vi.ClIskdbk-De9q3829.js} +5 -5
- package/dist/{vi.ClIskdbk-BbUmO3mx.js.map → vi.ClIskdbk-De9q3829.js.map} +1 -1
- package/package.json +6 -6
- package/dist/client-CRlGzHly.d.ts.map +0 -1
- package/dist/client-CXUzhM1I.js.map +0 -1
- package/dist/client-Cp-Y1PHr.cjs.map +0 -1
- package/dist/client-TjRMJC41.d.cts.map +0 -1
- package/dist/formatting-BmbJ5-Uh.cjs.map +0 -1
- package/dist/formatting-C6Py2iOz.js +0 -46
- package/dist/formatting-C6Py2iOz.js.map +0 -1
- package/dist/promptDefinitions-5jiZMBg5.cjs.map +0 -1
- package/dist/promptDefinitions-CPTadtuI.js.map +0 -1
- package/dist/promptDefinitions-Dcz3d9wL.d.cts.map +0 -1
- package/dist/promptDefinitions-DrGK-v8n.d.ts.map +0 -1
- package/dist/schema-BCkBPgjj.cjs +0 -64
- package/dist/schema-BCkBPgjj.cjs.map +0 -1
- package/dist/schema-BuByiEkr.cjs.map +0 -1
- package/dist/schema-BzLH7LPa.d.ts.map +0 -1
- package/dist/schema-CJrk_GUH.js +0 -15
- package/dist/schema-CJrk_GUH.js.map +0 -1
- package/dist/schema-DpID9ztC.d.cts.map +0 -1
- package/dist/schema-Drnljuwf.js.map +0 -1
- package/dist/toolDefinitions-1SnflztE.cjs.map +0 -1
- package/dist/toolDefinitions-D13S3vQE.js.map +0 -1
- package/dist/toolDefinitions-DkO9-iEg.d.ts.map +0 -1
- package/dist/toolDefinitions-Z-JGBEIN.d.cts.map +0 -1
- package/dist/tools-BgrGdS8I.cjs.map +0 -1
- package/dist/tools-CnVttgaS.js.map +0 -1
- package/dist/version-DtWIv-x9.js +0 -6
package/dist/test-setup.js
CHANGED
|
@@ -24,10 +24,10 @@ function serializePositional(positional, flag) {
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
function format(message$
|
|
28
|
-
if (positionals.length === 0) return message$
|
|
27
|
+
function format(message$3, ...positionals) {
|
|
28
|
+
if (positionals.length === 0) return message$3;
|
|
29
29
|
let positionalIndex = 0;
|
|
30
|
-
let formattedMessage = message$
|
|
30
|
+
let formattedMessage = message$3.replace(POSITIONALS_EXP, (match$1, isEscaped, _, flag) => {
|
|
31
31
|
const positional = positionals[positionalIndex];
|
|
32
32
|
const value = serializePositional(positional, flag);
|
|
33
33
|
if (!isEscaped) {
|
|
@@ -48,20 +48,20 @@ function cleanErrorStack(error$2) {
|
|
|
48
48
|
error$2.stack = nextStack.join("\n");
|
|
49
49
|
}
|
|
50
50
|
var InvariantError = class extends Error {
|
|
51
|
-
constructor(message$
|
|
52
|
-
super(message$
|
|
53
|
-
this.message = message$
|
|
51
|
+
constructor(message$3, ...positionals) {
|
|
52
|
+
super(message$3);
|
|
53
|
+
this.message = message$3;
|
|
54
54
|
this.name = "Invariant Violation";
|
|
55
|
-
this.message = format(message$
|
|
55
|
+
this.message = format(message$3, ...positionals);
|
|
56
56
|
cleanErrorStack(this);
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
|
-
var invariant = (predicate, message$
|
|
60
|
-
if (!predicate) throw new InvariantError(message$
|
|
59
|
+
var invariant = (predicate, message$3, ...positionals) => {
|
|
60
|
+
if (!predicate) throw new InvariantError(message$3, ...positionals);
|
|
61
61
|
};
|
|
62
|
-
invariant.as = (ErrorConstructor, predicate, message$
|
|
62
|
+
invariant.as = (ErrorConstructor, predicate, message$3, ...positionals) => {
|
|
63
63
|
if (!predicate) {
|
|
64
|
-
const formatMessage$1 = positionals.length === 0 ? message$
|
|
64
|
+
const formatMessage$1 = positionals.length === 0 ? message$3 : format(message$3, ...positionals);
|
|
65
65
|
let error$2;
|
|
66
66
|
try {
|
|
67
67
|
error$2 = Reflect.construct(ErrorConstructor, [formatMessage$1]);
|
|
@@ -161,8 +161,8 @@ var until = async (promise) => {
|
|
|
161
161
|
//#endregion
|
|
162
162
|
//#region ../../node_modules/.pnpm/@mswjs+interceptors@0.37.6/node_modules/@mswjs/interceptors/lib/node/chunk-5KMS5CTP.mjs
|
|
163
163
|
var InterceptorError = class extends Error {
|
|
164
|
-
constructor(message$
|
|
165
|
-
super(message$
|
|
164
|
+
constructor(message$3) {
|
|
165
|
+
super(message$3);
|
|
166
166
|
this.name = "InterceptorError";
|
|
167
167
|
Object.setPrototypeOf(this, InterceptorError.prototype);
|
|
168
168
|
}
|
|
@@ -302,8 +302,8 @@ async function handleRequest$1(options) {
|
|
|
302
302
|
function isNodeProcess() {
|
|
303
303
|
if (typeof navigator !== "undefined" && navigator.product === "ReactNative") return true;
|
|
304
304
|
if (typeof process !== "undefined") {
|
|
305
|
-
const type = process.type;
|
|
306
|
-
if (type === "renderer" || type === "worker") return false;
|
|
305
|
+
const type$2 = process.type;
|
|
306
|
+
if (type$2 === "renderer" || type$2 === "worker") return false;
|
|
307
307
|
return !!(process.versions && process.versions.node);
|
|
308
308
|
}
|
|
309
309
|
return false;
|
|
@@ -372,10 +372,10 @@ var Logger = class {
|
|
|
372
372
|
* @example
|
|
373
373
|
* logger.debug('no duplicates found, creating a document...')
|
|
374
374
|
*/
|
|
375
|
-
debug(message$
|
|
375
|
+
debug(message$3, ...positionals) {
|
|
376
376
|
this.logEntry({
|
|
377
377
|
level: "debug",
|
|
378
|
-
message: gray(message$
|
|
378
|
+
message: gray(message$3),
|
|
379
379
|
positionals,
|
|
380
380
|
prefix: this.prefix,
|
|
381
381
|
colors: { prefix: "gray" }
|
|
@@ -386,10 +386,10 @@ var Logger = class {
|
|
|
386
386
|
* @example
|
|
387
387
|
* logger.info('start parsing...')
|
|
388
388
|
*/
|
|
389
|
-
info(message$
|
|
389
|
+
info(message$3, ...positionals) {
|
|
390
390
|
this.logEntry({
|
|
391
391
|
level: "info",
|
|
392
|
-
message: message$
|
|
392
|
+
message: message$3,
|
|
393
393
|
positionals,
|
|
394
394
|
prefix: this.prefix,
|
|
395
395
|
colors: { prefix: "blue" }
|
|
@@ -411,10 +411,10 @@ var Logger = class {
|
|
|
411
411
|
* @example
|
|
412
412
|
* logger.success('successfully created document')
|
|
413
413
|
*/
|
|
414
|
-
success(message$
|
|
414
|
+
success(message$3, ...positionals) {
|
|
415
415
|
this.logEntry({
|
|
416
416
|
level: "info",
|
|
417
|
-
message: message$
|
|
417
|
+
message: message$3,
|
|
418
418
|
positionals,
|
|
419
419
|
prefix: `\u2714 ${this.prefix}`,
|
|
420
420
|
colors: {
|
|
@@ -428,10 +428,10 @@ var Logger = class {
|
|
|
428
428
|
* @example
|
|
429
429
|
* logger.warning('found legacy document format')
|
|
430
430
|
*/
|
|
431
|
-
warning(message$
|
|
431
|
+
warning(message$3, ...positionals) {
|
|
432
432
|
this.logEntry({
|
|
433
433
|
level: "warning",
|
|
434
|
-
message: message$
|
|
434
|
+
message: message$3,
|
|
435
435
|
positionals,
|
|
436
436
|
prefix: `\u26A0 ${this.prefix}`,
|
|
437
437
|
colors: {
|
|
@@ -445,10 +445,10 @@ var Logger = class {
|
|
|
445
445
|
* @example
|
|
446
446
|
* logger.error('something went wrong')
|
|
447
447
|
*/
|
|
448
|
-
error(message$
|
|
448
|
+
error(message$3, ...positionals) {
|
|
449
449
|
this.logEntry({
|
|
450
450
|
level: "error",
|
|
451
|
-
message: message$
|
|
451
|
+
message: message$3,
|
|
452
452
|
positionals,
|
|
453
453
|
prefix: `\u2716 ${this.prefix}`,
|
|
454
454
|
colors: {
|
|
@@ -469,30 +469,30 @@ var Logger = class {
|
|
|
469
469
|
only(callback) {
|
|
470
470
|
callback();
|
|
471
471
|
}
|
|
472
|
-
createEntry(level, message$
|
|
472
|
+
createEntry(level$1, message$3) {
|
|
473
473
|
return {
|
|
474
474
|
timestamp: /* @__PURE__ */ new Date(),
|
|
475
|
-
level,
|
|
476
|
-
message: message$
|
|
475
|
+
level: level$1,
|
|
476
|
+
message: message$3
|
|
477
477
|
};
|
|
478
478
|
}
|
|
479
479
|
logEntry(args) {
|
|
480
|
-
const { level, message: message$
|
|
481
|
-
const entry = this.createEntry(level, message$
|
|
480
|
+
const { level: level$1, message: message$3, prefix, colors: customColors, positionals = [] } = args;
|
|
481
|
+
const entry = this.createEntry(level$1, message$3);
|
|
482
482
|
const timestampColor = customColors?.timestamp || "gray";
|
|
483
483
|
const prefixColor = customColors?.prefix || "gray";
|
|
484
484
|
const colorize = {
|
|
485
485
|
timestamp: colors_exports[timestampColor],
|
|
486
486
|
prefix: colors_exports[prefixColor]
|
|
487
487
|
};
|
|
488
|
-
const write = this.getWriter(level);
|
|
489
|
-
write([colorize.timestamp(this.formatTimestamp(entry.timestamp))].concat(prefix != null ? colorize.prefix(prefix) : []).concat(serializeInput(message$
|
|
488
|
+
const write = this.getWriter(level$1);
|
|
489
|
+
write([colorize.timestamp(this.formatTimestamp(entry.timestamp))].concat(prefix != null ? colorize.prefix(prefix) : []).concat(serializeInput(message$3)).join(" "), ...positionals.map(serializeInput));
|
|
490
490
|
}
|
|
491
491
|
formatTimestamp(timestamp) {
|
|
492
492
|
return `${timestamp.toLocaleTimeString("en-GB")}:${timestamp.getMilliseconds()}`;
|
|
493
493
|
}
|
|
494
|
-
getWriter(level) {
|
|
495
|
-
switch (level) {
|
|
494
|
+
getWriter(level$1) {
|
|
495
|
+
switch (level$1) {
|
|
496
496
|
case "debug":
|
|
497
497
|
case "success":
|
|
498
498
|
case "info": return log;
|
|
@@ -515,26 +515,26 @@ var PerformanceEntry = class {
|
|
|
515
515
|
}
|
|
516
516
|
};
|
|
517
517
|
var noop = () => void 0;
|
|
518
|
-
function log(message$
|
|
518
|
+
function log(message$3, ...positionals) {
|
|
519
519
|
if (IS_NODE$1) {
|
|
520
|
-
process.stdout.write(format(message$
|
|
520
|
+
process.stdout.write(format(message$3, ...positionals) + "\n");
|
|
521
521
|
return;
|
|
522
522
|
}
|
|
523
|
-
console.log(message$
|
|
523
|
+
console.log(message$3, ...positionals);
|
|
524
524
|
}
|
|
525
|
-
function warn$1(message$
|
|
525
|
+
function warn$1(message$3, ...positionals) {
|
|
526
526
|
if (IS_NODE$1) {
|
|
527
|
-
process.stderr.write(format(message$
|
|
527
|
+
process.stderr.write(format(message$3, ...positionals) + "\n");
|
|
528
528
|
return;
|
|
529
529
|
}
|
|
530
|
-
console.warn(message$
|
|
530
|
+
console.warn(message$3, ...positionals);
|
|
531
531
|
}
|
|
532
|
-
function error$1(message$
|
|
532
|
+
function error$1(message$3, ...positionals) {
|
|
533
533
|
if (IS_NODE$1) {
|
|
534
|
-
process.stderr.write(format(message$
|
|
534
|
+
process.stderr.write(format(message$3, ...positionals) + "\n");
|
|
535
535
|
return;
|
|
536
536
|
}
|
|
537
|
-
console.error(message$
|
|
537
|
+
console.error(message$3, ...positionals);
|
|
538
538
|
}
|
|
539
539
|
function getVariable(variableName) {
|
|
540
540
|
if (IS_NODE$1) return process.env[variableName];
|
|
@@ -543,22 +543,22 @@ function getVariable(variableName) {
|
|
|
543
543
|
function isDefinedAndNotEquals(value, expected) {
|
|
544
544
|
return value !== void 0 && value !== expected;
|
|
545
545
|
}
|
|
546
|
-
function serializeInput(message$
|
|
547
|
-
if (typeof message$
|
|
548
|
-
if (message$
|
|
549
|
-
if (typeof message$
|
|
550
|
-
if (typeof message$
|
|
551
|
-
return message$
|
|
546
|
+
function serializeInput(message$3) {
|
|
547
|
+
if (typeof message$3 === "undefined") return "undefined";
|
|
548
|
+
if (message$3 === null) return "null";
|
|
549
|
+
if (typeof message$3 === "string") return message$3;
|
|
550
|
+
if (typeof message$3 === "object") return JSON.stringify(message$3);
|
|
551
|
+
return message$3.toString();
|
|
552
552
|
}
|
|
553
553
|
|
|
554
554
|
//#endregion
|
|
555
555
|
//#region ../../node_modules/.pnpm/strict-event-emitter@0.5.1/node_modules/strict-event-emitter/lib/index.mjs
|
|
556
556
|
var MemoryLeakError = class extends Error {
|
|
557
|
-
constructor(emitter, type, count) {
|
|
558
|
-
super(`Possible EventEmitter memory leak detected. ${count} ${type.toString()} listeners added. Use emitter.setMaxListeners() to increase limit`);
|
|
557
|
+
constructor(emitter, type$2, count$1) {
|
|
558
|
+
super(`Possible EventEmitter memory leak detected. ${count$1} ${type$2.toString()} listeners added. Use emitter.setMaxListeners() to increase limit`);
|
|
559
559
|
this.emitter = emitter;
|
|
560
|
-
this.type = type;
|
|
561
|
-
this.count = count;
|
|
560
|
+
this.type = type$2;
|
|
561
|
+
this.count = count$1;
|
|
562
562
|
this.name = "MaxListenersExceededWarning";
|
|
563
563
|
}
|
|
564
564
|
};
|
|
@@ -737,34 +737,34 @@ var Interceptor$1 = class {
|
|
|
737
737
|
* Returns an already running interceptor instance if it's present.
|
|
738
738
|
*/
|
|
739
739
|
apply() {
|
|
740
|
-
const logger$
|
|
741
|
-
logger$
|
|
740
|
+
const logger$2 = this.logger.extend("apply");
|
|
741
|
+
logger$2.info("applying the interceptor...");
|
|
742
742
|
if (this.readyState === "APPLIED") {
|
|
743
|
-
logger$
|
|
743
|
+
logger$2.info("intercepted already applied!");
|
|
744
744
|
return;
|
|
745
745
|
}
|
|
746
746
|
const shouldApply = this.checkEnvironment();
|
|
747
747
|
if (!shouldApply) {
|
|
748
|
-
logger$
|
|
748
|
+
logger$2.info("the interceptor cannot be applied in this environment!");
|
|
749
749
|
return;
|
|
750
750
|
}
|
|
751
751
|
this.readyState = "APPLYING";
|
|
752
752
|
const runningInstance = this.getInstance();
|
|
753
753
|
if (runningInstance) {
|
|
754
|
-
logger$
|
|
754
|
+
logger$2.info("found a running instance, reusing...");
|
|
755
755
|
this.on = (event, listener) => {
|
|
756
|
-
logger$
|
|
756
|
+
logger$2.info("proxying the \"%s\" listener", event);
|
|
757
757
|
runningInstance.emitter.addListener(event, listener);
|
|
758
758
|
this.subscriptions.push(() => {
|
|
759
759
|
runningInstance.emitter.removeListener(event, listener);
|
|
760
|
-
logger$
|
|
760
|
+
logger$2.info("removed proxied \"%s\" listener!", event);
|
|
761
761
|
});
|
|
762
762
|
return this;
|
|
763
763
|
};
|
|
764
764
|
this.readyState = "APPLIED";
|
|
765
765
|
return;
|
|
766
766
|
}
|
|
767
|
-
logger$
|
|
767
|
+
logger$2.info("no running instance found, setting up a new instance...");
|
|
768
768
|
this.setup();
|
|
769
769
|
this.setInstance();
|
|
770
770
|
this.readyState = "APPLIED";
|
|
@@ -779,12 +779,12 @@ var Interceptor$1 = class {
|
|
|
779
779
|
* Listen to the interceptor's public events.
|
|
780
780
|
*/
|
|
781
781
|
on(event, listener) {
|
|
782
|
-
const logger$
|
|
782
|
+
const logger$2 = this.logger.extend("on");
|
|
783
783
|
if (this.readyState === "DISPOSING" || this.readyState === "DISPOSED") {
|
|
784
|
-
logger$
|
|
784
|
+
logger$2.info("cannot listen to events, already disposed!");
|
|
785
785
|
return this;
|
|
786
786
|
}
|
|
787
|
-
logger$
|
|
787
|
+
logger$2.info("adding \"%s\" event listener:", event, listener);
|
|
788
788
|
this.emitter.on(event, listener);
|
|
789
789
|
return this;
|
|
790
790
|
}
|
|
@@ -804,27 +804,27 @@ var Interceptor$1 = class {
|
|
|
804
804
|
* Disposes of any side-effects this interceptor has introduced.
|
|
805
805
|
*/
|
|
806
806
|
dispose() {
|
|
807
|
-
const logger$
|
|
807
|
+
const logger$2 = this.logger.extend("dispose");
|
|
808
808
|
if (this.readyState === "DISPOSED") {
|
|
809
|
-
logger$
|
|
809
|
+
logger$2.info("cannot dispose, already disposed!");
|
|
810
810
|
return;
|
|
811
811
|
}
|
|
812
|
-
logger$
|
|
812
|
+
logger$2.info("disposing the interceptor...");
|
|
813
813
|
this.readyState = "DISPOSING";
|
|
814
814
|
if (!this.getInstance()) {
|
|
815
|
-
logger$
|
|
815
|
+
logger$2.info("no interceptors running, skipping dispose...");
|
|
816
816
|
return;
|
|
817
817
|
}
|
|
818
818
|
this.clearInstance();
|
|
819
|
-
logger$
|
|
819
|
+
logger$2.info("global symbol deleted:", getGlobalSymbol$1(this.symbol));
|
|
820
820
|
if (this.subscriptions.length > 0) {
|
|
821
|
-
logger$
|
|
821
|
+
logger$2.info("disposing of %d subscriptions...", this.subscriptions.length);
|
|
822
822
|
for (const dispose of this.subscriptions) dispose();
|
|
823
823
|
this.subscriptions = [];
|
|
824
|
-
logger$
|
|
824
|
+
logger$2.info("disposed of all subscriptions!", this.subscriptions.length);
|
|
825
825
|
}
|
|
826
826
|
this.emitter.removeAllListeners();
|
|
827
|
-
logger$
|
|
827
|
+
logger$2.info("destroyed the listener!");
|
|
828
828
|
this.readyState = "DISPOSED";
|
|
829
829
|
}
|
|
830
830
|
getInstance() {
|
|
@@ -846,18 +846,18 @@ function createRequestId$1() {
|
|
|
846
846
|
return Math.random().toString(16).slice(2);
|
|
847
847
|
}
|
|
848
848
|
var _FetchResponse = class extends Response {
|
|
849
|
-
static isConfigurableStatusCode(status) {
|
|
850
|
-
return status >= 200 && status <= 599;
|
|
849
|
+
static isConfigurableStatusCode(status$1) {
|
|
850
|
+
return status$1 >= 200 && status$1 <= 599;
|
|
851
851
|
}
|
|
852
|
-
static isRedirectResponse(status) {
|
|
853
|
-
return _FetchResponse.STATUS_CODES_WITH_REDIRECT.includes(status);
|
|
852
|
+
static isRedirectResponse(status$1) {
|
|
853
|
+
return _FetchResponse.STATUS_CODES_WITH_REDIRECT.includes(status$1);
|
|
854
854
|
}
|
|
855
855
|
/**
|
|
856
856
|
* Returns a boolean indicating whether the given response status
|
|
857
857
|
* code represents a response that can have a body.
|
|
858
858
|
*/
|
|
859
|
-
static isResponseWithBody(status) {
|
|
860
|
-
return !_FetchResponse.STATUS_CODES_WITHOUT_BODY.includes(status);
|
|
859
|
+
static isResponseWithBody(status$1) {
|
|
860
|
+
return !_FetchResponse.STATUS_CODES_WITHOUT_BODY.includes(status$1);
|
|
861
861
|
}
|
|
862
862
|
static setUrl(url, response) {
|
|
863
863
|
if (!url) return;
|
|
@@ -879,20 +879,20 @@ var _FetchResponse = class extends Response {
|
|
|
879
879
|
}
|
|
880
880
|
constructor(body, init = {}) {
|
|
881
881
|
var _a$1;
|
|
882
|
-
const status = (_a$1 = init.status) != null ? _a$1 : 200;
|
|
883
|
-
const safeStatus = _FetchResponse.isConfigurableStatusCode(status) ? status : 200;
|
|
884
|
-
const finalBody = _FetchResponse.isResponseWithBody(status) ? body : null;
|
|
882
|
+
const status$1 = (_a$1 = init.status) != null ? _a$1 : 200;
|
|
883
|
+
const safeStatus = _FetchResponse.isConfigurableStatusCode(status$1) ? status$1 : 200;
|
|
884
|
+
const finalBody = _FetchResponse.isResponseWithBody(status$1) ? body : null;
|
|
885
885
|
super(finalBody, {
|
|
886
886
|
...init,
|
|
887
887
|
status: safeStatus
|
|
888
888
|
});
|
|
889
|
-
if (status !== safeStatus) {
|
|
889
|
+
if (status$1 !== safeStatus) {
|
|
890
890
|
const stateSymbol = Object.getOwnPropertySymbols(this).find((symbol) => symbol.description === "state");
|
|
891
891
|
if (stateSymbol) {
|
|
892
892
|
const state = Reflect.get(this, stateSymbol);
|
|
893
|
-
Reflect.set(state, "status", status);
|
|
893
|
+
Reflect.set(state, "status", status$1);
|
|
894
894
|
} else Object.defineProperty(this, "status", {
|
|
895
|
-
value: status,
|
|
895
|
+
value: status$1,
|
|
896
896
|
enumerable: true,
|
|
897
897
|
configurable: true,
|
|
898
898
|
writable: false
|
|
@@ -1139,7 +1139,7 @@ var MockHttpSocket = class extends MockSocket {
|
|
|
1139
1139
|
socket: this
|
|
1140
1140
|
});
|
|
1141
1141
|
};
|
|
1142
|
-
this.onResponseStart = (versionMajor, versionMinor, rawHeaders, method, url, status, statusText) => {
|
|
1142
|
+
this.onResponseStart = (versionMajor, versionMinor, rawHeaders, method, url, status$1, statusText) => {
|
|
1143
1143
|
const headers = FetchResponse.parseRawHeaders(rawHeaders);
|
|
1144
1144
|
const response = new FetchResponse(
|
|
1145
1145
|
/**
|
|
@@ -1149,10 +1149,10 @@ var MockHttpSocket = class extends MockSocket {
|
|
|
1149
1149
|
* in response listener while the Socket instance delays the emission
|
|
1150
1150
|
* of "end" and other events until those response listeners are finished.
|
|
1151
1151
|
*/
|
|
1152
|
-
FetchResponse.isResponseWithBody(status) ? Readable.toWeb(this.responseStream = new Readable({ read() {} })) : null,
|
|
1152
|
+
FetchResponse.isResponseWithBody(status$1) ? Readable.toWeb(this.responseStream = new Readable({ read() {} })) : null,
|
|
1153
1153
|
{
|
|
1154
1154
|
url,
|
|
1155
|
-
status,
|
|
1155
|
+
status: status$1,
|
|
1156
1156
|
statusText,
|
|
1157
1157
|
headers
|
|
1158
1158
|
}
|
|
@@ -1404,7 +1404,7 @@ var MockHttpsAgent = class extends https2.Agent {
|
|
|
1404
1404
|
return socket;
|
|
1405
1405
|
}
|
|
1406
1406
|
};
|
|
1407
|
-
var logger = new Logger("utils getUrlByRequestOptions");
|
|
1407
|
+
var logger$1 = new Logger("utils getUrlByRequestOptions");
|
|
1408
1408
|
var DEFAULT_PATH = "/";
|
|
1409
1409
|
var DEFAULT_PROTOCOL = "http:";
|
|
1410
1410
|
var DEFAULT_HOSTNAME = "localhost";
|
|
@@ -1450,29 +1450,29 @@ function getHostname(options) {
|
|
|
1450
1450
|
return DEFAULT_HOSTNAME;
|
|
1451
1451
|
}
|
|
1452
1452
|
function getUrlByRequestOptions(options) {
|
|
1453
|
-
logger.info("request options", options);
|
|
1453
|
+
logger$1.info("request options", options);
|
|
1454
1454
|
if (options.uri) {
|
|
1455
|
-
logger.info("constructing url from explicitly provided \"options.uri\": %s", options.uri);
|
|
1455
|
+
logger$1.info("constructing url from explicitly provided \"options.uri\": %s", options.uri);
|
|
1456
1456
|
return new URL(options.uri.href);
|
|
1457
1457
|
}
|
|
1458
|
-
logger.info("figuring out url from request options...");
|
|
1458
|
+
logger$1.info("figuring out url from request options...");
|
|
1459
1459
|
const protocol = getProtocolByRequestOptions(options);
|
|
1460
|
-
logger.info("protocol", protocol);
|
|
1460
|
+
logger$1.info("protocol", protocol);
|
|
1461
1461
|
const port = getPortByRequestOptions(options);
|
|
1462
|
-
logger.info("port", port);
|
|
1462
|
+
logger$1.info("port", port);
|
|
1463
1463
|
const hostname = getHostname(options);
|
|
1464
|
-
logger.info("hostname", hostname);
|
|
1464
|
+
logger$1.info("hostname", hostname);
|
|
1465
1465
|
const path = options.path || DEFAULT_PATH;
|
|
1466
|
-
logger.info("path", path);
|
|
1466
|
+
logger$1.info("path", path);
|
|
1467
1467
|
const credentials = getAuthByRequestOptions(options);
|
|
1468
|
-
logger.info("credentials", credentials);
|
|
1468
|
+
logger$1.info("credentials", credentials);
|
|
1469
1469
|
const authString = credentials ? `${credentials.username}:${credentials.password}@` : "";
|
|
1470
|
-
logger.info("auth string:", authString);
|
|
1470
|
+
logger$1.info("auth string:", authString);
|
|
1471
1471
|
const portString = typeof port !== "undefined" ? `:${port}` : "";
|
|
1472
1472
|
const url = new URL(`${protocol}//${hostname}${portString}${path}`);
|
|
1473
1473
|
url.username = (credentials == null ? void 0 : credentials.username) || "";
|
|
1474
1474
|
url.password = (credentials == null ? void 0 : credentials.password) || "";
|
|
1475
|
-
logger.info("created url:", url);
|
|
1475
|
+
logger$1.info("created url:", url);
|
|
1476
1476
|
return url;
|
|
1477
1477
|
}
|
|
1478
1478
|
var logger2 = new Logger("cloneObject");
|
|
@@ -1754,7 +1754,7 @@ function concatArrayBuffer(left, right) {
|
|
|
1754
1754
|
return result;
|
|
1755
1755
|
}
|
|
1756
1756
|
var EventPolyfill = class {
|
|
1757
|
-
constructor(type, options) {
|
|
1757
|
+
constructor(type$2, options) {
|
|
1758
1758
|
this.NONE = 0;
|
|
1759
1759
|
this.CAPTURING_PHASE = 1;
|
|
1760
1760
|
this.AT_TARGET = 2;
|
|
@@ -1773,7 +1773,7 @@ var EventPolyfill = class {
|
|
|
1773
1773
|
this.total = 0;
|
|
1774
1774
|
this.cancelBubble = false;
|
|
1775
1775
|
this.returnValue = true;
|
|
1776
|
-
this.type = type;
|
|
1776
|
+
this.type = type$2;
|
|
1777
1777
|
this.target = (options == null ? void 0 : options.target) || null;
|
|
1778
1778
|
this.currentTarget = (options == null ? void 0 : options.currentTarget) || null;
|
|
1779
1779
|
this.timeStamp = Date.now();
|
|
@@ -1781,8 +1781,8 @@ var EventPolyfill = class {
|
|
|
1781
1781
|
composedPath() {
|
|
1782
1782
|
return [];
|
|
1783
1783
|
}
|
|
1784
|
-
initEvent(type, bubbles, cancelable) {
|
|
1785
|
-
this.type = type;
|
|
1784
|
+
initEvent(type$2, bubbles, cancelable) {
|
|
1785
|
+
this.type = type$2;
|
|
1786
1786
|
this.bubbles = !!bubbles;
|
|
1787
1787
|
this.cancelable = !!cancelable;
|
|
1788
1788
|
}
|
|
@@ -1793,8 +1793,8 @@ var EventPolyfill = class {
|
|
|
1793
1793
|
stopImmediatePropagation() {}
|
|
1794
1794
|
};
|
|
1795
1795
|
var ProgressEventPolyfill = class extends EventPolyfill {
|
|
1796
|
-
constructor(type, init) {
|
|
1797
|
-
super(type);
|
|
1796
|
+
constructor(type$2, init) {
|
|
1797
|
+
super(type$2);
|
|
1798
1798
|
this.lengthComputable = (init == null ? void 0 : init.lengthComputable) || false;
|
|
1799
1799
|
this.composed = (init == null ? void 0 : init.composed) || false;
|
|
1800
1800
|
this.loaded = (init == null ? void 0 : init.loaded) || 0;
|
|
@@ -1802,7 +1802,7 @@ var ProgressEventPolyfill = class extends EventPolyfill {
|
|
|
1802
1802
|
}
|
|
1803
1803
|
};
|
|
1804
1804
|
var SUPPORTS_PROGRESS_EVENT = typeof ProgressEvent !== "undefined";
|
|
1805
|
-
function createEvent(target, type, init) {
|
|
1805
|
+
function createEvent(target, type$2, init) {
|
|
1806
1806
|
const progressEvents = [
|
|
1807
1807
|
"error",
|
|
1808
1808
|
"progress",
|
|
@@ -1813,11 +1813,11 @@ function createEvent(target, type, init) {
|
|
|
1813
1813
|
"abort"
|
|
1814
1814
|
];
|
|
1815
1815
|
const ProgressEventClass = SUPPORTS_PROGRESS_EVENT ? ProgressEvent : ProgressEventPolyfill;
|
|
1816
|
-
const event = progressEvents.includes(type) ? new ProgressEventClass(type, {
|
|
1816
|
+
const event = progressEvents.includes(type$2) ? new ProgressEventClass(type$2, {
|
|
1817
1817
|
lengthComputable: true,
|
|
1818
1818
|
loaded: (init == null ? void 0 : init.loaded) || 0,
|
|
1819
1819
|
total: (init == null ? void 0 : init.total) || 0
|
|
1820
|
-
}) : new EventPolyfill(type, {
|
|
1820
|
+
}) : new EventPolyfill(type$2, {
|
|
1821
1821
|
target,
|
|
1822
1822
|
currentTarget: target
|
|
1823
1823
|
});
|
|
@@ -1871,7 +1871,7 @@ function optionsToProxyHandler(options) {
|
|
|
1871
1871
|
};
|
|
1872
1872
|
return handler;
|
|
1873
1873
|
}
|
|
1874
|
-
function isDomParserSupportedType(type) {
|
|
1874
|
+
function isDomParserSupportedType(type$2) {
|
|
1875
1875
|
const supportedTypes = [
|
|
1876
1876
|
"application/xhtml+xml",
|
|
1877
1877
|
"application/xml",
|
|
@@ -1880,7 +1880,7 @@ function isDomParserSupportedType(type) {
|
|
|
1880
1880
|
"text/xml"
|
|
1881
1881
|
];
|
|
1882
1882
|
return supportedTypes.some((supportedType) => {
|
|
1883
|
-
return type.startsWith(supportedType);
|
|
1883
|
+
return type$2.startsWith(supportedType);
|
|
1884
1884
|
});
|
|
1885
1885
|
}
|
|
1886
1886
|
function parseJson(data) {
|
|
@@ -1921,9 +1921,9 @@ var kIsRequestHandled = Symbol("kIsRequestHandled");
|
|
|
1921
1921
|
var IS_NODE = isNodeProcess();
|
|
1922
1922
|
var kFetchRequest = Symbol("kFetchRequest");
|
|
1923
1923
|
var XMLHttpRequestController = class {
|
|
1924
|
-
constructor(initialRequest, logger$
|
|
1924
|
+
constructor(initialRequest, logger$2) {
|
|
1925
1925
|
this.initialRequest = initialRequest;
|
|
1926
|
-
this.logger = logger$
|
|
1926
|
+
this.logger = logger$2;
|
|
1927
1927
|
this.method = "GET";
|
|
1928
1928
|
this.url = null;
|
|
1929
1929
|
this[kIsRequestHandled] = false;
|
|
@@ -2296,13 +2296,13 @@ function define(target, property, value) {
|
|
|
2296
2296
|
value
|
|
2297
2297
|
});
|
|
2298
2298
|
}
|
|
2299
|
-
function createXMLHttpRequestProxy({ emitter, logger: logger$
|
|
2299
|
+
function createXMLHttpRequestProxy({ emitter, logger: logger$2 }) {
|
|
2300
2300
|
const XMLHttpRequestProxy = new Proxy(globalThis.XMLHttpRequest, { construct(target, args, newTarget) {
|
|
2301
|
-
logger$
|
|
2301
|
+
logger$2.info("constructed new XMLHttpRequest");
|
|
2302
2302
|
const originalRequest = Reflect.construct(target, args, newTarget);
|
|
2303
2303
|
const prototypeDescriptors = Object.getOwnPropertyDescriptors(target.prototype);
|
|
2304
2304
|
for (const propertyName in prototypeDescriptors) Reflect.defineProperty(originalRequest, propertyName, prototypeDescriptors[propertyName]);
|
|
2305
|
-
const xhrRequestController = new XMLHttpRequestController(originalRequest, logger$
|
|
2305
|
+
const xhrRequestController = new XMLHttpRequestController(originalRequest, logger$2);
|
|
2306
2306
|
xhrRequestController.onRequest = async function({ request, requestId }) {
|
|
2307
2307
|
const controller = new RequestController(request);
|
|
2308
2308
|
this.logger.info("awaiting mocked response...");
|
|
@@ -2346,15 +2346,15 @@ var _XMLHttpRequestInterceptor = class extends Interceptor$1 {
|
|
|
2346
2346
|
return hasConfigurableGlobal$1("XMLHttpRequest");
|
|
2347
2347
|
}
|
|
2348
2348
|
setup() {
|
|
2349
|
-
const logger$
|
|
2350
|
-
logger$
|
|
2349
|
+
const logger$2 = this.logger.extend("setup");
|
|
2350
|
+
logger$2.info("patching \"XMLHttpRequest\" module...");
|
|
2351
2351
|
const PureXMLHttpRequest = globalThis.XMLHttpRequest;
|
|
2352
2352
|
invariant(!PureXMLHttpRequest[IS_PATCHED_MODULE], "Failed to patch the \"XMLHttpRequest\" module: already patched.");
|
|
2353
2353
|
globalThis.XMLHttpRequest = createXMLHttpRequestProxy({
|
|
2354
2354
|
emitter: this.emitter,
|
|
2355
2355
|
logger: this.logger
|
|
2356
2356
|
});
|
|
2357
|
-
logger$
|
|
2357
|
+
logger$2.info("native \"XMLHttpRequest\" module patched!", globalThis.XMLHttpRequest.name);
|
|
2358
2358
|
Object.defineProperty(globalThis.XMLHttpRequest, IS_PATCHED_MODULE, {
|
|
2359
2359
|
enumerable: true,
|
|
2360
2360
|
configurable: true,
|
|
@@ -2363,7 +2363,7 @@ var _XMLHttpRequestInterceptor = class extends Interceptor$1 {
|
|
|
2363
2363
|
this.subscriptions.push(() => {
|
|
2364
2364
|
Object.defineProperty(globalThis.XMLHttpRequest, IS_PATCHED_MODULE, { value: void 0 });
|
|
2365
2365
|
globalThis.XMLHttpRequest = PureXMLHttpRequest;
|
|
2366
|
-
logger$
|
|
2366
|
+
logger$2.info("native \"XMLHttpRequest\" module restored!", globalThis.XMLHttpRequest.name);
|
|
2367
2367
|
});
|
|
2368
2368
|
}
|
|
2369
2369
|
};
|
|
@@ -2588,12 +2588,12 @@ var BatchInterceptor = class extends Interceptor$1 {
|
|
|
2588
2588
|
this.interceptors = options.interceptors;
|
|
2589
2589
|
}
|
|
2590
2590
|
setup() {
|
|
2591
|
-
const logger$
|
|
2592
|
-
logger$
|
|
2591
|
+
const logger$2 = this.logger.extend("setup");
|
|
2592
|
+
logger$2.info("applying all %d interceptors...", this.interceptors.length);
|
|
2593
2593
|
for (const interceptor of this.interceptors) {
|
|
2594
|
-
logger$
|
|
2594
|
+
logger$2.info("applying \"%s\" interceptor...", interceptor.constructor.name);
|
|
2595
2595
|
interceptor.apply();
|
|
2596
|
-
logger$
|
|
2596
|
+
logger$2.info("adding interceptor dispose subscription");
|
|
2597
2597
|
this.subscriptions.push(() => interceptor.dispose());
|
|
2598
2598
|
}
|
|
2599
2599
|
}
|
|
@@ -2624,15 +2624,15 @@ function getCleanUrl(url, isAbsolute = true) {
|
|
|
2624
2624
|
//#endregion
|
|
2625
2625
|
//#region ../../node_modules/.pnpm/msw@2.7.6_@types+node@22.15.15_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/devUtils.mjs
|
|
2626
2626
|
const LIBRARY_PREFIX = "[MSW]";
|
|
2627
|
-
function formatMessage(message$
|
|
2628
|
-
const interpolatedMessage = format(message$
|
|
2627
|
+
function formatMessage(message$3, ...positionals) {
|
|
2628
|
+
const interpolatedMessage = format(message$3, ...positionals);
|
|
2629
2629
|
return `${LIBRARY_PREFIX} ${interpolatedMessage}`;
|
|
2630
2630
|
}
|
|
2631
|
-
function warn(message$
|
|
2632
|
-
console.warn(formatMessage(message$
|
|
2631
|
+
function warn(message$3, ...positionals) {
|
|
2632
|
+
console.warn(formatMessage(message$3, ...positionals));
|
|
2633
2633
|
}
|
|
2634
|
-
function error(message$
|
|
2635
|
-
console.error(formatMessage(message$
|
|
2634
|
+
function error(message$3, ...positionals) {
|
|
2635
|
+
console.error(formatMessage(message$3, ...positionals));
|
|
2636
2636
|
}
|
|
2637
2637
|
const devUtils = {
|
|
2638
2638
|
formatMessage,
|
|
@@ -2640,8 +2640,8 @@ const devUtils = {
|
|
|
2640
2640
|
error
|
|
2641
2641
|
};
|
|
2642
2642
|
var InternalError = class extends Error {
|
|
2643
|
-
constructor(message$
|
|
2644
|
-
super(message$
|
|
2643
|
+
constructor(message$3) {
|
|
2644
|
+
super(message$3);
|
|
2645
2645
|
this.name = "InternalError";
|
|
2646
2646
|
}
|
|
2647
2647
|
};
|
|
@@ -2875,7 +2875,7 @@ var require_punycode = __commonJS$4({ "node_modules/punycode/punycode.js"(export
|
|
|
2875
2875
|
var regexPunycode = /^xn--/;
|
|
2876
2876
|
var regexNonASCII = /[^\0-\x7F]/;
|
|
2877
2877
|
var regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g;
|
|
2878
|
-
var errors = {
|
|
2878
|
+
var errors$1 = {
|
|
2879
2879
|
"overflow": "Overflow: input needs wider integers to process",
|
|
2880
2880
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
2881
2881
|
"invalid-input": "Invalid input"
|
|
@@ -2883,8 +2883,8 @@ var require_punycode = __commonJS$4({ "node_modules/punycode/punycode.js"(export
|
|
|
2883
2883
|
var baseMinusTMin = base - tMin;
|
|
2884
2884
|
var floor = Math.floor;
|
|
2885
2885
|
var stringFromCharCode = String.fromCharCode;
|
|
2886
|
-
function error$2(type) {
|
|
2887
|
-
throw new RangeError(errors[type]);
|
|
2886
|
+
function error$2(type$2) {
|
|
2887
|
+
throw new RangeError(errors$1[type$2]);
|
|
2888
2888
|
}
|
|
2889
2889
|
function map(array, callback) {
|
|
2890
2890
|
const result = [];
|
|
@@ -3155,14 +3155,14 @@ var require_url_parse = __commonJS$4({ "node_modules/url-parse/index.js"(exports
|
|
|
3155
3155
|
else if (typeof global !== "undefined") globalVar = global;
|
|
3156
3156
|
else if (typeof self !== "undefined") globalVar = self;
|
|
3157
3157
|
else globalVar = {};
|
|
3158
|
-
var location$
|
|
3159
|
-
loc = loc || location$
|
|
3160
|
-
var finaldestination = {}, type = typeof loc, key;
|
|
3158
|
+
var location$2 = globalVar.location || {};
|
|
3159
|
+
loc = loc || location$2;
|
|
3160
|
+
var finaldestination = {}, type$2 = typeof loc, key;
|
|
3161
3161
|
if ("blob:" === loc.protocol) finaldestination = new Url(unescape(loc.pathname), {});
|
|
3162
|
-
else if ("string" === type) {
|
|
3162
|
+
else if ("string" === type$2) {
|
|
3163
3163
|
finaldestination = new Url(loc, {});
|
|
3164
3164
|
for (key in ignore) delete finaldestination[key];
|
|
3165
|
-
} else if ("object" === type) {
|
|
3165
|
+
} else if ("object" === type$2) {
|
|
3166
3166
|
for (key in loc) {
|
|
3167
3167
|
if (key in ignore) continue;
|
|
3168
3168
|
finaldestination[key] = loc[key];
|
|
@@ -3174,10 +3174,10 @@ var require_url_parse = __commonJS$4({ "node_modules/url-parse/index.js"(exports
|
|
|
3174
3174
|
function isSpecial(scheme) {
|
|
3175
3175
|
return scheme === "file:" || scheme === "ftp:" || scheme === "http:" || scheme === "https:" || scheme === "ws:" || scheme === "wss:";
|
|
3176
3176
|
}
|
|
3177
|
-
function extractProtocol(address, location$
|
|
3177
|
+
function extractProtocol(address, location$2) {
|
|
3178
3178
|
address = trimLeft(address);
|
|
3179
3179
|
address = address.replace(CRHTLF, "");
|
|
3180
|
-
location$
|
|
3180
|
+
location$2 = location$2 || {};
|
|
3181
3181
|
var match$1 = protocolre.exec(address);
|
|
3182
3182
|
var protocol = match$1[1] ? match$1[1].toLowerCase() : "";
|
|
3183
3183
|
var forwardSlashes = !!match$1[2];
|
|
@@ -3200,7 +3200,7 @@ var require_url_parse = __commonJS$4({ "node_modules/url-parse/index.js"(exports
|
|
|
3200
3200
|
} else if (isSpecial(protocol)) rest = match$1[4];
|
|
3201
3201
|
else if (protocol) {
|
|
3202
3202
|
if (forwardSlashes) rest = rest.slice(2);
|
|
3203
|
-
} else if (slashesCount >= 2 && isSpecial(location$
|
|
3203
|
+
} else if (slashesCount >= 2 && isSpecial(location$2.protocol)) rest = match$1[4];
|
|
3204
3204
|
return {
|
|
3205
3205
|
protocol,
|
|
3206
3206
|
slashes: forwardSlashes || isSpecial(protocol),
|
|
@@ -3224,21 +3224,21 @@ var require_url_parse = __commonJS$4({ "node_modules/url-parse/index.js"(exports
|
|
|
3224
3224
|
if (last === "." || last === "..") path.push("");
|
|
3225
3225
|
return path.join("/");
|
|
3226
3226
|
}
|
|
3227
|
-
function Url(address, location$
|
|
3227
|
+
function Url(address, location$2, parser) {
|
|
3228
3228
|
address = trimLeft(address);
|
|
3229
3229
|
address = address.replace(CRHTLF, "");
|
|
3230
|
-
if (!(this instanceof Url)) return new Url(address, location$
|
|
3231
|
-
var relative, extracted, parse$2, instruction, index, key, instructions = rules.slice(), type = typeof location$
|
|
3232
|
-
if ("object" !== type && "string" !== type) {
|
|
3233
|
-
parser = location$
|
|
3234
|
-
location$
|
|
3230
|
+
if (!(this instanceof Url)) return new Url(address, location$2, parser);
|
|
3231
|
+
var relative, extracted, parse$2, instruction, index, key, instructions = rules.slice(), type$2 = typeof location$2, url = this, i = 0;
|
|
3232
|
+
if ("object" !== type$2 && "string" !== type$2) {
|
|
3233
|
+
parser = location$2;
|
|
3234
|
+
location$2 = null;
|
|
3235
3235
|
}
|
|
3236
3236
|
if (parser && "function" !== typeof parser) parser = qs.parse;
|
|
3237
|
-
location$
|
|
3238
|
-
extracted = extractProtocol(address || "", location$
|
|
3237
|
+
location$2 = lolcation(location$2);
|
|
3238
|
+
extracted = extractProtocol(address || "", location$2);
|
|
3239
3239
|
relative = !extracted.protocol && !extracted.slashes;
|
|
3240
|
-
url.slashes = extracted.slashes || relative && location$
|
|
3241
|
-
url.protocol = extracted.protocol || location$
|
|
3240
|
+
url.slashes = extracted.slashes || relative && location$2.slashes;
|
|
3241
|
+
url.protocol = extracted.protocol || location$2.protocol || "";
|
|
3242
3242
|
address = extracted.rest;
|
|
3243
3243
|
if (extracted.protocol === "file:" && (extracted.slashesCount !== 2 || windowsDriveLetter.test(address)) || !extracted.slashes && (extracted.protocol || extracted.slashesCount < 2 || !isSpecial(url.protocol))) instructions[3] = [/(.*)/, "pathname"];
|
|
3244
3244
|
for (; i < instructions.length; i++) {
|
|
@@ -3263,11 +3263,11 @@ var require_url_parse = __commonJS$4({ "node_modules/url-parse/index.js"(exports
|
|
|
3263
3263
|
url[key] = index[1];
|
|
3264
3264
|
address = address.slice(0, index.index);
|
|
3265
3265
|
}
|
|
3266
|
-
url[key] = url[key] || (relative && instruction[3] ? location$
|
|
3266
|
+
url[key] = url[key] || (relative && instruction[3] ? location$2[key] || "" : "");
|
|
3267
3267
|
if (instruction[4]) url[key] = url[key].toLowerCase();
|
|
3268
3268
|
}
|
|
3269
3269
|
if (parser) url.query = parser(url.query);
|
|
3270
|
-
if (relative && location$
|
|
3270
|
+
if (relative && location$2.slashes && url.pathname.charAt(0) !== "/" && (url.pathname !== "" || location$2.pathname !== "")) url.pathname = resolve(url.pathname, location$2.pathname);
|
|
3271
3271
|
if (url.pathname.charAt(0) !== "/" && isSpecial(url.protocol)) url.pathname = "/" + url.pathname;
|
|
3272
3272
|
if (!required(url.port, url.protocol)) {
|
|
3273
3273
|
url.host = url.hostname;
|
|
@@ -13265,8 +13265,8 @@ var require_cookie$1 = __commonJS$4({ "node_modules/tough-cookie/lib/cookie.js"(
|
|
|
13265
13265
|
var SAME_SITE_CONTEXT_VAL_ERR = "Invalid sameSiteContext option for getCookies(); expected one of \"strict\", \"lax\", or \"none\"";
|
|
13266
13266
|
function checkSameSiteContext(value) {
|
|
13267
13267
|
validators.validate(validators.isNonEmptyString(value), value);
|
|
13268
|
-
const context = String(value).toLowerCase();
|
|
13269
|
-
if (context === "none" || context === "lax" || context === "strict") return context;
|
|
13268
|
+
const context$1 = String(value).toLowerCase();
|
|
13269
|
+
if (context$1 === "none" || context$1 === "lax" || context$1 === "strict") return context$1;
|
|
13270
13270
|
else return null;
|
|
13271
13271
|
}
|
|
13272
13272
|
var PrefixSecurityEnum = Object.freeze({
|
|
@@ -13289,15 +13289,15 @@ var require_cookie$1 = __commonJS$4({ "node_modules/tough-cookie/lib/cookie.js"(
|
|
|
13289
13289
|
`.replace(/\s*\/\/.*$/gm, "").replace(/\n/g, "").trim();
|
|
13290
13290
|
var IP_V6_REGEX_OBJECT = new RegExp(`^${IP_V6_REGEX}$`);
|
|
13291
13291
|
function parseDigits(token, minDigits, maxDigits, trailingOK) {
|
|
13292
|
-
let count = 0;
|
|
13293
|
-
while (count < token.length) {
|
|
13294
|
-
const c = token.charCodeAt(count);
|
|
13292
|
+
let count$1 = 0;
|
|
13293
|
+
while (count$1 < token.length) {
|
|
13294
|
+
const c = token.charCodeAt(count$1);
|
|
13295
13295
|
if (c <= 47 || c >= 58) break;
|
|
13296
|
-
count++;
|
|
13296
|
+
count$1++;
|
|
13297
13297
|
}
|
|
13298
|
-
if (count < minDigits || count > maxDigits) return null;
|
|
13299
|
-
if (!trailingOK && count != token.length) return null;
|
|
13300
|
-
return parseInt(token.substr(0, count), 10);
|
|
13298
|
+
if (count$1 < minDigits || count$1 > maxDigits) return null;
|
|
13299
|
+
if (!trailingOK && count$1 != token.length) return null;
|
|
13300
|
+
return parseInt(token.substr(0, count$1), 10);
|
|
13301
13301
|
}
|
|
13302
13302
|
function parseTime(token) {
|
|
13303
13303
|
const parts = token.split(":");
|
|
@@ -13764,14 +13764,14 @@ var require_cookie$1 = __commonJS$4({ "node_modules/tough-cookie/lib/cookie.js"(
|
|
|
13764
13764
|
cb = url;
|
|
13765
13765
|
return cb(new Error("No URL was specified"));
|
|
13766
13766
|
}
|
|
13767
|
-
const context = getCookieContext(url);
|
|
13767
|
+
const context$1 = getCookieContext(url);
|
|
13768
13768
|
if (validators.isFunction(options)) {
|
|
13769
13769
|
cb = options;
|
|
13770
13770
|
options = {};
|
|
13771
13771
|
}
|
|
13772
13772
|
validators.validate(validators.isFunction(cb), cb);
|
|
13773
13773
|
if (!validators.isNonEmptyString(cookie) && !validators.isObject(cookie) && cookie instanceof String && cookie.length == 0) return cb(null);
|
|
13774
|
-
const host = canonicalDomain(context.hostname);
|
|
13774
|
+
const host = canonicalDomain(context$1.hostname);
|
|
13775
13775
|
const loose = options.loose || this.enableLooseMode;
|
|
13776
13776
|
let sameSiteContext = null;
|
|
13777
13777
|
if (options.sameSiteContext) {
|
|
@@ -13810,7 +13810,7 @@ var require_cookie$1 = __commonJS$4({ "node_modules/tough-cookie/lib/cookie.js"(
|
|
|
13810
13810
|
cookie.domain = host;
|
|
13811
13811
|
}
|
|
13812
13812
|
if (!cookie.path || cookie.path[0] !== "/") {
|
|
13813
|
-
cookie.path = defaultPath(context.pathname);
|
|
13813
|
+
cookie.path = defaultPath(context$1.pathname);
|
|
13814
13814
|
cookie.pathIsDefault = true;
|
|
13815
13815
|
}
|
|
13816
13816
|
if (options.http === false && cookie.httpOnly) {
|
|
@@ -13865,17 +13865,17 @@ var require_cookie$1 = __commonJS$4({ "node_modules/tough-cookie/lib/cookie.js"(
|
|
|
13865
13865
|
}
|
|
13866
13866
|
getCookies(url, options, cb) {
|
|
13867
13867
|
validators.validate(validators.isUrlStringOrObject(url), cb, url);
|
|
13868
|
-
const context = getCookieContext(url);
|
|
13868
|
+
const context$1 = getCookieContext(url);
|
|
13869
13869
|
if (validators.isFunction(options)) {
|
|
13870
13870
|
cb = options;
|
|
13871
13871
|
options = {};
|
|
13872
13872
|
}
|
|
13873
13873
|
validators.validate(validators.isObject(options), cb, options);
|
|
13874
13874
|
validators.validate(validators.isFunction(cb), cb);
|
|
13875
|
-
const host = canonicalDomain(context.hostname);
|
|
13876
|
-
const path = context.pathname || "/";
|
|
13875
|
+
const host = canonicalDomain(context$1.hostname);
|
|
13876
|
+
const path = context$1.pathname || "/";
|
|
13877
13877
|
let secure = options.secure;
|
|
13878
|
-
if (secure == null && context.protocol && (context.protocol == "https:" || context.protocol == "wss:")) secure = true;
|
|
13878
|
+
if (secure == null && context$1.protocol && (context$1.protocol == "https:" || context$1.protocol == "wss:")) secure = true;
|
|
13879
13879
|
let sameSiteLevel = 0;
|
|
13880
13880
|
if (options.sameSiteContext) {
|
|
13881
13881
|
const sameSiteContext = checkSameSiteContext(options.sameSiteContext);
|
|
@@ -13938,11 +13938,11 @@ var require_cookie$1 = __commonJS$4({ "node_modules/tough-cookie/lib/cookie.js"(
|
|
|
13938
13938
|
}
|
|
13939
13939
|
serialize(cb) {
|
|
13940
13940
|
validators.validate(validators.isFunction(cb), cb);
|
|
13941
|
-
let type = this.store.constructor.name;
|
|
13942
|
-
if (validators.isObject(type)) type = null;
|
|
13941
|
+
let type$2 = this.store.constructor.name;
|
|
13942
|
+
if (validators.isObject(type$2)) type$2 = null;
|
|
13943
13943
|
const serialized = {
|
|
13944
13944
|
version: `tough-cookie@${VERSION}`,
|
|
13945
|
-
storeType: type,
|
|
13945
|
+
storeType: type$2,
|
|
13946
13946
|
rejectPublicSuffixes: !!this.rejectPublicSuffixes,
|
|
13947
13947
|
enableLooseMode: !!this.enableLooseMode,
|
|
13948
13948
|
allowSpecialUseDomain: !!this.allowSpecialUseDomain,
|
|
@@ -14547,9 +14547,9 @@ var require_statuses = __commonJS$3({ "node_modules/statuses/index.js"(exports$1
|
|
|
14547
14547
|
function createMessageToStatusCodeMap(codes2) {
|
|
14548
14548
|
var map = {};
|
|
14549
14549
|
Object.keys(codes2).forEach(function forEachCode(code) {
|
|
14550
|
-
var message$
|
|
14550
|
+
var message$3 = codes2[code];
|
|
14551
14551
|
var status3 = Number(code);
|
|
14552
|
-
map[message$
|
|
14552
|
+
map[message$3.toLowerCase()] = status3;
|
|
14553
14553
|
});
|
|
14554
14554
|
return map;
|
|
14555
14555
|
}
|
|
@@ -14558,9 +14558,9 @@ var require_statuses = __commonJS$3({ "node_modules/statuses/index.js"(exports$1
|
|
|
14558
14558
|
return Number(code);
|
|
14559
14559
|
});
|
|
14560
14560
|
}
|
|
14561
|
-
function getStatusCode(message$
|
|
14562
|
-
var msg = message$
|
|
14563
|
-
if (!Object.prototype.hasOwnProperty.call(status2.code, msg)) throw new Error("invalid status message: \"" + message$
|
|
14561
|
+
function getStatusCode(message$3) {
|
|
14562
|
+
var msg = message$3.toLowerCase();
|
|
14563
|
+
if (!Object.prototype.hasOwnProperty.call(status2.code, msg)) throw new Error("invalid status message: \"" + message$3 + "\"");
|
|
14564
14564
|
return status2.code[msg];
|
|
14565
14565
|
}
|
|
14566
14566
|
function getStatusMessage(code) {
|
|
@@ -14904,16 +14904,16 @@ var Headers$1 = class _Headers {
|
|
|
14904
14904
|
|
|
14905
14905
|
//#endregion
|
|
14906
14906
|
//#region ../../node_modules/.pnpm/msw@2.7.6_@types+node@22.15.15_typescript@5.8.3/node_modules/msw/lib/core/utils/HttpResponse/decorators.mjs
|
|
14907
|
-
const { message: message$
|
|
14907
|
+
const { message: message$2 } = source_default$1;
|
|
14908
14908
|
const kSetCookie = Symbol("kSetCookie");
|
|
14909
14909
|
function normalizeResponseInit(init = {}) {
|
|
14910
|
-
const status = init?.status || 200;
|
|
14911
|
-
const statusText = init?.statusText || message$
|
|
14910
|
+
const status$1 = init?.status || 200;
|
|
14911
|
+
const statusText = init?.statusText || message$2[status$1] || "";
|
|
14912
14912
|
const headers = new Headers(init?.headers);
|
|
14913
14913
|
return {
|
|
14914
14914
|
...init,
|
|
14915
14915
|
headers,
|
|
14916
|
-
status,
|
|
14916
|
+
status: status$1,
|
|
14917
14917
|
statusText
|
|
14918
14918
|
};
|
|
14919
14919
|
}
|
|
@@ -15110,7 +15110,7 @@ var require_dist = __commonJS({ "../../node_modules/.pnpm/path-to-regexp@6.3.0/n
|
|
|
15110
15110
|
continue;
|
|
15111
15111
|
}
|
|
15112
15112
|
if (char === "(") {
|
|
15113
|
-
var count = 1;
|
|
15113
|
+
var count$1 = 1;
|
|
15114
15114
|
var pattern = "";
|
|
15115
15115
|
var j = i + 1;
|
|
15116
15116
|
if (str[j] === "?") throw new TypeError("Pattern cannot start with \"?\" at ".concat(j));
|
|
@@ -15120,18 +15120,18 @@ var require_dist = __commonJS({ "../../node_modules/.pnpm/path-to-regexp@6.3.0/n
|
|
|
15120
15120
|
continue;
|
|
15121
15121
|
}
|
|
15122
15122
|
if (str[j] === ")") {
|
|
15123
|
-
count--;
|
|
15124
|
-
if (count === 0) {
|
|
15123
|
+
count$1--;
|
|
15124
|
+
if (count$1 === 0) {
|
|
15125
15125
|
j++;
|
|
15126
15126
|
break;
|
|
15127
15127
|
}
|
|
15128
15128
|
} else if (str[j] === "(") {
|
|
15129
|
-
count++;
|
|
15129
|
+
count$1++;
|
|
15130
15130
|
if (str[j + 1] !== "?") throw new TypeError("Capturing groups are not allowed at ".concat(j));
|
|
15131
15131
|
}
|
|
15132
15132
|
pattern += str[j++];
|
|
15133
15133
|
}
|
|
15134
|
-
if (count) throw new TypeError("Unbalanced pattern at ".concat(i));
|
|
15134
|
+
if (count$1) throw new TypeError("Unbalanced pattern at ".concat(i));
|
|
15135
15135
|
if (!pattern) throw new TypeError("Missing pattern at ".concat(i));
|
|
15136
15136
|
tokens.push({
|
|
15137
15137
|
type: "PATTERN",
|
|
@@ -15165,14 +15165,14 @@ var require_dist = __commonJS({ "../../node_modules/.pnpm/path-to-regexp@6.3.0/n
|
|
|
15165
15165
|
var key = 0;
|
|
15166
15166
|
var i = 0;
|
|
15167
15167
|
var path = "";
|
|
15168
|
-
var tryConsume = function(type) {
|
|
15169
|
-
if (i < tokens.length && tokens[i].type === type) return tokens[i++].value;
|
|
15168
|
+
var tryConsume = function(type$2) {
|
|
15169
|
+
if (i < tokens.length && tokens[i].type === type$2) return tokens[i++].value;
|
|
15170
15170
|
};
|
|
15171
|
-
var mustConsume = function(type) {
|
|
15172
|
-
var value$1 = tryConsume(type);
|
|
15171
|
+
var mustConsume = function(type$2) {
|
|
15172
|
+
var value$1 = tryConsume(type$2);
|
|
15173
15173
|
if (value$1 !== void 0) return value$1;
|
|
15174
15174
|
var _a$2 = tokens[i], nextType = _a$2.type, index = _a$2.index;
|
|
15175
|
-
throw new TypeError("Unexpected ".concat(nextType, " at ").concat(index, ", expected ").concat(type));
|
|
15175
|
+
throw new TypeError("Unexpected ".concat(nextType, " at ").concat(index, ", expected ").concat(type$2));
|
|
15176
15176
|
};
|
|
15177
15177
|
var consumeText = function() {
|
|
15178
15178
|
var result$1 = "";
|
|
@@ -15637,34 +15637,34 @@ var Interceptor = class {
|
|
|
15637
15637
|
* Returns an already running interceptor instance if it's present.
|
|
15638
15638
|
*/
|
|
15639
15639
|
apply() {
|
|
15640
|
-
const logger$
|
|
15641
|
-
logger$
|
|
15640
|
+
const logger$2 = this.logger.extend("apply");
|
|
15641
|
+
logger$2.info("applying the interceptor...");
|
|
15642
15642
|
if (this.readyState === "APPLIED") {
|
|
15643
|
-
logger$
|
|
15643
|
+
logger$2.info("intercepted already applied!");
|
|
15644
15644
|
return;
|
|
15645
15645
|
}
|
|
15646
15646
|
const shouldApply = this.checkEnvironment();
|
|
15647
15647
|
if (!shouldApply) {
|
|
15648
|
-
logger$
|
|
15648
|
+
logger$2.info("the interceptor cannot be applied in this environment!");
|
|
15649
15649
|
return;
|
|
15650
15650
|
}
|
|
15651
15651
|
this.readyState = "APPLYING";
|
|
15652
15652
|
const runningInstance = this.getInstance();
|
|
15653
15653
|
if (runningInstance) {
|
|
15654
|
-
logger$
|
|
15654
|
+
logger$2.info("found a running instance, reusing...");
|
|
15655
15655
|
this.on = (event, listener) => {
|
|
15656
|
-
logger$
|
|
15656
|
+
logger$2.info("proxying the \"%s\" listener", event);
|
|
15657
15657
|
runningInstance.emitter.addListener(event, listener);
|
|
15658
15658
|
this.subscriptions.push(() => {
|
|
15659
15659
|
runningInstance.emitter.removeListener(event, listener);
|
|
15660
|
-
logger$
|
|
15660
|
+
logger$2.info("removed proxied \"%s\" listener!", event);
|
|
15661
15661
|
});
|
|
15662
15662
|
return this;
|
|
15663
15663
|
};
|
|
15664
15664
|
this.readyState = "APPLIED";
|
|
15665
15665
|
return;
|
|
15666
15666
|
}
|
|
15667
|
-
logger$
|
|
15667
|
+
logger$2.info("no running instance found, setting up a new instance...");
|
|
15668
15668
|
this.setup();
|
|
15669
15669
|
this.setInstance();
|
|
15670
15670
|
this.readyState = "APPLIED";
|
|
@@ -15679,12 +15679,12 @@ var Interceptor = class {
|
|
|
15679
15679
|
* Listen to the interceptor's public events.
|
|
15680
15680
|
*/
|
|
15681
15681
|
on(event, listener) {
|
|
15682
|
-
const logger$
|
|
15682
|
+
const logger$2 = this.logger.extend("on");
|
|
15683
15683
|
if (this.readyState === "DISPOSING" || this.readyState === "DISPOSED") {
|
|
15684
|
-
logger$
|
|
15684
|
+
logger$2.info("cannot listen to events, already disposed!");
|
|
15685
15685
|
return this;
|
|
15686
15686
|
}
|
|
15687
|
-
logger$
|
|
15687
|
+
logger$2.info("adding \"%s\" event listener:", event, listener);
|
|
15688
15688
|
this.emitter.on(event, listener);
|
|
15689
15689
|
return this;
|
|
15690
15690
|
}
|
|
@@ -15704,27 +15704,27 @@ var Interceptor = class {
|
|
|
15704
15704
|
* Disposes of any side-effects this interceptor has introduced.
|
|
15705
15705
|
*/
|
|
15706
15706
|
dispose() {
|
|
15707
|
-
const logger$
|
|
15707
|
+
const logger$2 = this.logger.extend("dispose");
|
|
15708
15708
|
if (this.readyState === "DISPOSED") {
|
|
15709
|
-
logger$
|
|
15709
|
+
logger$2.info("cannot dispose, already disposed!");
|
|
15710
15710
|
return;
|
|
15711
15711
|
}
|
|
15712
|
-
logger$
|
|
15712
|
+
logger$2.info("disposing the interceptor...");
|
|
15713
15713
|
this.readyState = "DISPOSING";
|
|
15714
15714
|
if (!this.getInstance()) {
|
|
15715
|
-
logger$
|
|
15715
|
+
logger$2.info("no interceptors running, skipping dispose...");
|
|
15716
15716
|
return;
|
|
15717
15717
|
}
|
|
15718
15718
|
this.clearInstance();
|
|
15719
|
-
logger$
|
|
15719
|
+
logger$2.info("global symbol deleted:", getGlobalSymbol(this.symbol));
|
|
15720
15720
|
if (this.subscriptions.length > 0) {
|
|
15721
|
-
logger$
|
|
15721
|
+
logger$2.info("disposing of %d subscriptions...", this.subscriptions.length);
|
|
15722
15722
|
for (const dispose of this.subscriptions) dispose();
|
|
15723
15723
|
this.subscriptions = [];
|
|
15724
|
-
logger$
|
|
15724
|
+
logger$2.info("disposed of all subscriptions!", this.subscriptions.length);
|
|
15725
15725
|
}
|
|
15726
15726
|
this.emitter.removeAllListeners();
|
|
15727
|
-
logger$
|
|
15727
|
+
logger$2.info("destroyed the listener!");
|
|
15728
15728
|
this.readyState = "DISPOSED";
|
|
15729
15729
|
}
|
|
15730
15730
|
getInstance() {
|
|
@@ -15766,8 +15766,8 @@ function bindEvent(target, event) {
|
|
|
15766
15766
|
var kCancelable = Symbol("kCancelable");
|
|
15767
15767
|
var kDefaultPrevented = Symbol("kDefaultPrevented");
|
|
15768
15768
|
var CancelableMessageEvent = class extends MessageEvent {
|
|
15769
|
-
constructor(type, init) {
|
|
15770
|
-
super(type, init);
|
|
15769
|
+
constructor(type$2, init) {
|
|
15770
|
+
super(type$2, init);
|
|
15771
15771
|
this[kCancelable] = !!init.cancelable;
|
|
15772
15772
|
this[kDefaultPrevented] = false;
|
|
15773
15773
|
}
|
|
@@ -15788,16 +15788,16 @@ var CancelableMessageEvent = class extends MessageEvent {
|
|
|
15788
15788
|
}
|
|
15789
15789
|
};
|
|
15790
15790
|
var CloseEvent = class extends Event {
|
|
15791
|
-
constructor(type, init = {}) {
|
|
15792
|
-
super(type, init);
|
|
15791
|
+
constructor(type$2, init = {}) {
|
|
15792
|
+
super(type$2, init);
|
|
15793
15793
|
this.code = init.code === void 0 ? 0 : init.code;
|
|
15794
15794
|
this.reason = init.reason === void 0 ? "" : init.reason;
|
|
15795
15795
|
this.wasClean = init.wasClean === void 0 ? false : init.wasClean;
|
|
15796
15796
|
}
|
|
15797
15797
|
};
|
|
15798
15798
|
var CancelableCloseEvent = class extends CloseEvent {
|
|
15799
|
-
constructor(type, init = {}) {
|
|
15800
|
-
super(type, init);
|
|
15799
|
+
constructor(type$2, init = {}) {
|
|
15800
|
+
super(type$2, init);
|
|
15801
15801
|
this[kCancelable] = !!init.cancelable;
|
|
15802
15802
|
this[kDefaultPrevented] = false;
|
|
15803
15803
|
}
|
|
@@ -15827,13 +15827,13 @@ var WebSocketClientConnection = class {
|
|
|
15827
15827
|
this.url = new URL(socket.url);
|
|
15828
15828
|
this[kEmitter] = new EventTarget();
|
|
15829
15829
|
this.transport.addEventListener("outgoing", (event) => {
|
|
15830
|
-
const message$
|
|
15830
|
+
const message$3 = bindEvent(this.socket, new CancelableMessageEvent("message", {
|
|
15831
15831
|
data: event.data,
|
|
15832
15832
|
origin: event.origin,
|
|
15833
15833
|
cancelable: true
|
|
15834
15834
|
}));
|
|
15835
|
-
this[kEmitter].dispatchEvent(message$
|
|
15836
|
-
if (message$
|
|
15835
|
+
this[kEmitter].dispatchEvent(message$3);
|
|
15836
|
+
if (message$3.defaultPrevented) event.preventDefault();
|
|
15837
15837
|
});
|
|
15838
15838
|
this.transport.addEventListener("close", (event) => {
|
|
15839
15839
|
this[kEmitter].dispatchEvent(bindEvent(this.socket, new CloseEvent("close", event)));
|
|
@@ -15842,7 +15842,7 @@ var WebSocketClientConnection = class {
|
|
|
15842
15842
|
/**
|
|
15843
15843
|
* Listen for the outgoing events from the connected WebSocket client.
|
|
15844
15844
|
*/
|
|
15845
|
-
addEventListener(type, listener, options) {
|
|
15845
|
+
addEventListener(type$2, listener, options) {
|
|
15846
15846
|
if (!Reflect.has(listener, kBoundListener)) {
|
|
15847
15847
|
const boundListener = listener.bind(this.socket);
|
|
15848
15848
|
Object.defineProperty(listener, kBoundListener, {
|
|
@@ -15851,7 +15851,7 @@ var WebSocketClientConnection = class {
|
|
|
15851
15851
|
configurable: false
|
|
15852
15852
|
});
|
|
15853
15853
|
}
|
|
15854
|
-
this[kEmitter].addEventListener(type, Reflect.get(listener, kBoundListener), options);
|
|
15854
|
+
this[kEmitter].addEventListener(type$2, Reflect.get(listener, kBoundListener), options);
|
|
15855
15855
|
}
|
|
15856
15856
|
/**
|
|
15857
15857
|
* Removes the listener for the given event.
|
|
@@ -15974,11 +15974,11 @@ var WebSocketOverride = class extends EventTarget {
|
|
|
15974
15974
|
this._onclose = null;
|
|
15975
15975
|
});
|
|
15976
15976
|
}
|
|
15977
|
-
addEventListener(type, listener, options) {
|
|
15978
|
-
return super.addEventListener(type, listener, options);
|
|
15977
|
+
addEventListener(type$2, listener, options) {
|
|
15978
|
+
return super.addEventListener(type$2, listener, options);
|
|
15979
15979
|
}
|
|
15980
|
-
removeEventListener(type, callback, options) {
|
|
15981
|
-
return super.removeEventListener(type, callback, options);
|
|
15980
|
+
removeEventListener(type$2, callback, options) {
|
|
15981
|
+
return super.removeEventListener(type$2, callback, options);
|
|
15982
15982
|
}
|
|
15983
15983
|
};
|
|
15984
15984
|
WebSocketOverride.CONNECTING = 0;
|
|
@@ -16160,8 +16160,8 @@ var WebSocketClassTransport = class extends EventTarget {
|
|
|
16160
16160
|
));
|
|
16161
16161
|
};
|
|
16162
16162
|
}
|
|
16163
|
-
addEventListener(type, callback, options) {
|
|
16164
|
-
return super.addEventListener(type, callback, options);
|
|
16163
|
+
addEventListener(type$2, callback, options) {
|
|
16164
|
+
return super.addEventListener(type$2, callback, options);
|
|
16165
16165
|
}
|
|
16166
16166
|
dispatchEvent(event) {
|
|
16167
16167
|
return super.dispatchEvent(event);
|
|
@@ -16377,9 +16377,9 @@ var AsyncHandlersController = class {
|
|
|
16377
16377
|
this.context.handlers.unshift(...runtimeHandlers);
|
|
16378
16378
|
}
|
|
16379
16379
|
reset(nextHandlers) {
|
|
16380
|
-
const context = this.context;
|
|
16381
|
-
context.handlers = [];
|
|
16382
|
-
context.initialHandlers = nextHandlers.length > 0 ? nextHandlers : context.initialHandlers;
|
|
16380
|
+
const context$1 = this.context;
|
|
16381
|
+
context$1.handlers = [];
|
|
16382
|
+
context$1.initialHandlers = nextHandlers.length > 0 ? nextHandlers : context$1.initialHandlers;
|
|
16383
16383
|
}
|
|
16384
16384
|
currentHandlers() {
|
|
16385
16385
|
const { initialHandlers, handlers } = this.context;
|
|
@@ -16558,9 +16558,9 @@ function isStringEqual(actual, expected) {
|
|
|
16558
16558
|
|
|
16559
16559
|
//#endregion
|
|
16560
16560
|
//#region ../../node_modules/.pnpm/msw@2.7.6_@types+node@22.15.15_typescript@5.8.3/node_modules/msw/lib/core/utils/logging/getStatusCodeColor.mjs
|
|
16561
|
-
function getStatusCodeColor(status) {
|
|
16562
|
-
if (status < 300) return "#69AB32";
|
|
16563
|
-
if (status < 400) return "#F0BB4B";
|
|
16561
|
+
function getStatusCodeColor(status$1) {
|
|
16562
|
+
if (status$1 < 300) return "#69AB32";
|
|
16563
|
+
if (status$1 < 400) return "#F0BB4B";
|
|
16564
16564
|
return "#E95F5D";
|
|
16565
16565
|
}
|
|
16566
16566
|
|
|
@@ -16588,12 +16588,12 @@ async function serializeRequest(request) {
|
|
|
16588
16588
|
|
|
16589
16589
|
//#endregion
|
|
16590
16590
|
//#region ../../node_modules/.pnpm/msw@2.7.6_@types+node@22.15.15_typescript@5.8.3/node_modules/msw/lib/core/utils/logging/serializeResponse.mjs
|
|
16591
|
-
const { message } = source_default$1;
|
|
16591
|
+
const { message: message$1 } = source_default$1;
|
|
16592
16592
|
async function serializeResponse(response) {
|
|
16593
16593
|
const responseClone = response.clone();
|
|
16594
16594
|
const responseText = await responseClone.text();
|
|
16595
16595
|
const responseStatus = responseClone.status || 200;
|
|
16596
|
-
const responseStatusText = responseClone.statusText || message[responseStatus] || "OK";
|
|
16596
|
+
const responseStatusText = responseClone.statusText || message$1[responseStatus] || "OK";
|
|
16597
16597
|
return {
|
|
16598
16598
|
status: responseStatus,
|
|
16599
16599
|
statusText: responseStatusText,
|
|
@@ -16722,8 +16722,8 @@ var require_cookie = __commonJS$1({ "node_modules/cookie/index.js"(exports$1) {
|
|
|
16722
16722
|
if (opt.secure) str += "; Secure";
|
|
16723
16723
|
if (opt.partitioned) str += "; Partitioned";
|
|
16724
16724
|
if (opt.priority) {
|
|
16725
|
-
var priority = typeof opt.priority === "string" ? opt.priority.toLowerCase() : opt.priority;
|
|
16726
|
-
switch (priority) {
|
|
16725
|
+
var priority$1 = typeof opt.priority === "string" ? opt.priority.toLowerCase() : opt.priority;
|
|
16726
|
+
switch (priority$1) {
|
|
16727
16727
|
case "low":
|
|
16728
16728
|
str += "; Priority=Low";
|
|
16729
16729
|
break;
|
|
@@ -17441,113 +17441,709 @@ var autofix = {
|
|
|
17441
17441
|
var autofix_state_default = { autofix };
|
|
17442
17442
|
|
|
17443
17443
|
//#endregion
|
|
17444
|
-
//#region ../mcp-server-mocks/dist/
|
|
17445
|
-
|
|
17446
|
-
|
|
17447
|
-
|
|
17448
|
-
|
|
17449
|
-
|
|
17450
|
-
|
|
17451
|
-
|
|
17444
|
+
//#region ../mcp-server-mocks/dist/fixtures/issue.json
|
|
17445
|
+
var id$1 = "6507376925";
|
|
17446
|
+
var shareId = null;
|
|
17447
|
+
var shortId = "CLOUDFLARE-MCP-41";
|
|
17448
|
+
var title$1 = "Error: Tool list_organizations is already registered";
|
|
17449
|
+
var culprit$1 = "Object.fetch(index)";
|
|
17450
|
+
var permalink = "https://sentry-mcp-evals.sentry.io/issues/6507376925/";
|
|
17451
|
+
var logger = null;
|
|
17452
|
+
var level = "error";
|
|
17453
|
+
var status = "unresolved";
|
|
17454
|
+
var statusDetails = {};
|
|
17455
|
+
var substatus = "ongoing";
|
|
17456
|
+
var isPublic = false;
|
|
17457
|
+
var platform$1 = "javascript";
|
|
17458
|
+
var project = {
|
|
17459
|
+
"id": "4509062593708032",
|
|
17460
|
+
"name": "CLOUDFLARE-MCP",
|
|
17461
|
+
"slug": "CLOUDFLARE-MCP",
|
|
17462
|
+
"platform": "bun"
|
|
17463
|
+
};
|
|
17464
|
+
var type$1 = "error";
|
|
17465
|
+
var metadata$1 = {
|
|
17466
|
+
"value": "Tool list_organizations is already registered",
|
|
17467
|
+
"type": "Error",
|
|
17468
|
+
"filename": "index.js",
|
|
17469
|
+
"function": "Object.fetch",
|
|
17470
|
+
"in_app_frame_mix": "in-app-only",
|
|
17471
|
+
"sdk": {
|
|
17472
|
+
"name": "sentry.javascript.cloudflare",
|
|
17473
|
+
"name_normalized": "sentry.javascript.cloudflare"
|
|
17474
|
+
},
|
|
17475
|
+
"severity": 0,
|
|
17476
|
+
"severity_reason": "ml",
|
|
17477
|
+
"initial_priority": 50,
|
|
17478
|
+
"title": null
|
|
17479
|
+
};
|
|
17480
|
+
var numComments = 0;
|
|
17481
|
+
var assignedTo = null;
|
|
17482
|
+
var isBookmarked = false;
|
|
17483
|
+
var isSubscribed = false;
|
|
17484
|
+
var subscriptionDetails = null;
|
|
17485
|
+
var hasSeen = true;
|
|
17486
|
+
var annotations = [];
|
|
17487
|
+
var issueType = "error";
|
|
17488
|
+
var issueCategory = "error";
|
|
17489
|
+
var priority = "medium";
|
|
17490
|
+
var priorityLockedAt = null;
|
|
17491
|
+
var isUnhandled = true;
|
|
17492
|
+
var count = "25";
|
|
17493
|
+
var userCount = 1;
|
|
17494
|
+
var firstSeen = "2025-04-03T22:51:19.403000Z";
|
|
17495
|
+
var lastSeen = "2025-04-12T11:34:11Z";
|
|
17496
|
+
var firstRelease = null;
|
|
17497
|
+
var lastRelease = null;
|
|
17498
|
+
var activity = [{
|
|
17499
|
+
"id": "4633815464",
|
|
17500
|
+
"user": null,
|
|
17501
|
+
"type": "auto_set_ongoing",
|
|
17502
|
+
"data": { "after_days": 7 },
|
|
17503
|
+
"dateCreated": "2025-04-10T22:55:22.411699Z"
|
|
17504
|
+
}, {
|
|
17505
|
+
"id": "0",
|
|
17506
|
+
"user": null,
|
|
17507
|
+
"type": "first_seen",
|
|
17508
|
+
"data": { "priority": "medium" },
|
|
17509
|
+
"dateCreated": "2025-04-03T22:51:19.403000Z"
|
|
17510
|
+
}];
|
|
17511
|
+
var openPeriods = [{
|
|
17512
|
+
"start": "2025-04-03T22:51:19.403000Z",
|
|
17513
|
+
"end": null,
|
|
17514
|
+
"duration": null,
|
|
17515
|
+
"isOpen": true,
|
|
17516
|
+
"lastChecked": "2025-04-12T11:34:11.310000Z"
|
|
17517
|
+
}];
|
|
17518
|
+
var seenBy = [{
|
|
17519
|
+
"id": "1",
|
|
17520
|
+
"name": "David Cramer",
|
|
17521
|
+
"username": "david@example.com",
|
|
17522
|
+
"email": "david@example.com",
|
|
17523
|
+
"avatarUrl": null,
|
|
17524
|
+
"isActive": true,
|
|
17525
|
+
"hasPasswordAuth": true,
|
|
17526
|
+
"isManaged": false,
|
|
17527
|
+
"dateJoined": "2012-01-14T22:08:29.270831Z",
|
|
17528
|
+
"lastLogin": "2025-04-13T14:00:11.516852Z",
|
|
17529
|
+
"has2fa": true,
|
|
17530
|
+
"lastActive": "2025-04-13T18:10:49.177605Z",
|
|
17531
|
+
"isSuperuser": true,
|
|
17532
|
+
"isStaff": true,
|
|
17533
|
+
"experiments": {},
|
|
17534
|
+
"emails": [{
|
|
17535
|
+
"id": "87429",
|
|
17536
|
+
"email": "david@example.com",
|
|
17537
|
+
"is_verified": true
|
|
17538
|
+
}],
|
|
17539
|
+
"options": {
|
|
17540
|
+
"theme": "light",
|
|
17541
|
+
"language": "en",
|
|
17542
|
+
"stacktraceOrder": 2,
|
|
17543
|
+
"defaultIssueEvent": "recommended",
|
|
17544
|
+
"timezone": "US/Pacific",
|
|
17545
|
+
"clock24Hours": false
|
|
17546
|
+
},
|
|
17547
|
+
"flags": { "newsletter_consent_prompt": false },
|
|
17548
|
+
"avatar": {
|
|
17549
|
+
"avatarType": "upload",
|
|
17550
|
+
"avatarUuid": "51e63edabf31412aa2a955e9cf2c1ca0",
|
|
17551
|
+
"avatarUrl": "https://sentry.io/avatar/51e63edabf31412aa2a955e9cf2c1ca0/"
|
|
17552
|
+
},
|
|
17553
|
+
"identities": [],
|
|
17554
|
+
"lastSeen": "2025-04-08T23:15:26.569455Z"
|
|
17555
|
+
}];
|
|
17556
|
+
var pluginActions = [];
|
|
17557
|
+
var pluginIssues = [];
|
|
17558
|
+
var pluginContexts = [];
|
|
17559
|
+
var userReportCount = 0;
|
|
17560
|
+
var stats = {
|
|
17561
|
+
"24h": [
|
|
17562
|
+
[1744480800, 0],
|
|
17563
|
+
[1744484400, 0],
|
|
17564
|
+
[1744488e3, 0],
|
|
17565
|
+
[1744491600, 0],
|
|
17566
|
+
[1744495200, 0],
|
|
17567
|
+
[1744498800, 0],
|
|
17568
|
+
[1744502400, 0],
|
|
17569
|
+
[1744506e3, 0],
|
|
17570
|
+
[1744509600, 0],
|
|
17571
|
+
[1744513200, 0],
|
|
17572
|
+
[1744516800, 0],
|
|
17573
|
+
[1744520400, 0],
|
|
17574
|
+
[1744524e3, 0],
|
|
17575
|
+
[1744527600, 0],
|
|
17576
|
+
[1744531200, 0],
|
|
17577
|
+
[1744534800, 0],
|
|
17578
|
+
[1744538400, 0],
|
|
17579
|
+
[1744542e3, 0],
|
|
17580
|
+
[1744545600, 0],
|
|
17581
|
+
[1744549200, 0],
|
|
17582
|
+
[1744552800, 0],
|
|
17583
|
+
[1744556400, 0],
|
|
17584
|
+
[174456e4, 0],
|
|
17585
|
+
[1744563600, 0],
|
|
17586
|
+
[1744567200, 0]
|
|
17587
|
+
],
|
|
17588
|
+
"30d": [
|
|
17589
|
+
[1741910400, 0],
|
|
17590
|
+
[1741996800, 0],
|
|
17591
|
+
[1742083200, 0],
|
|
17592
|
+
[1742169600, 0],
|
|
17593
|
+
[1742256e3, 0],
|
|
17594
|
+
[1742342400, 0],
|
|
17595
|
+
[1742428800, 0],
|
|
17596
|
+
[1742515200, 0],
|
|
17597
|
+
[1742601600, 0],
|
|
17598
|
+
[1742688e3, 0],
|
|
17599
|
+
[1742774400, 0],
|
|
17600
|
+
[1742860800, 0],
|
|
17601
|
+
[1742947200, 0],
|
|
17602
|
+
[1743033600, 0],
|
|
17603
|
+
[174312e4, 0],
|
|
17604
|
+
[1743206400, 0],
|
|
17605
|
+
[1743292800, 0],
|
|
17606
|
+
[1743379200, 0],
|
|
17607
|
+
[1743465600, 0],
|
|
17608
|
+
[1743552e3, 0],
|
|
17609
|
+
[1743638400, 1],
|
|
17610
|
+
[1743724800, 0],
|
|
17611
|
+
[1743811200, 0],
|
|
17612
|
+
[1743897600, 0],
|
|
17613
|
+
[1743984e3, 0],
|
|
17614
|
+
[1744070400, 20],
|
|
17615
|
+
[1744156800, 1],
|
|
17616
|
+
[1744243200, 1],
|
|
17617
|
+
[1744329600, 0],
|
|
17618
|
+
[1744416e3, 2],
|
|
17619
|
+
[1744502400, 0]
|
|
17620
|
+
]
|
|
17621
|
+
};
|
|
17622
|
+
var participants = [];
|
|
17623
|
+
var issue_default = {
|
|
17624
|
+
id: id$1,
|
|
17625
|
+
shareId,
|
|
17626
|
+
shortId,
|
|
17627
|
+
title: title$1,
|
|
17628
|
+
culprit: culprit$1,
|
|
17629
|
+
permalink,
|
|
17630
|
+
logger,
|
|
17631
|
+
level,
|
|
17632
|
+
status,
|
|
17633
|
+
statusDetails,
|
|
17634
|
+
substatus,
|
|
17635
|
+
isPublic,
|
|
17636
|
+
platform: platform$1,
|
|
17637
|
+
project,
|
|
17638
|
+
type: type$1,
|
|
17639
|
+
metadata: metadata$1,
|
|
17640
|
+
numComments,
|
|
17641
|
+
assignedTo,
|
|
17642
|
+
isBookmarked,
|
|
17643
|
+
isSubscribed,
|
|
17644
|
+
subscriptionDetails,
|
|
17645
|
+
hasSeen,
|
|
17646
|
+
annotations,
|
|
17647
|
+
issueType,
|
|
17648
|
+
issueCategory,
|
|
17649
|
+
priority,
|
|
17650
|
+
priorityLockedAt,
|
|
17651
|
+
isUnhandled,
|
|
17652
|
+
count,
|
|
17653
|
+
userCount,
|
|
17654
|
+
firstSeen,
|
|
17655
|
+
lastSeen,
|
|
17656
|
+
firstRelease,
|
|
17657
|
+
lastRelease,
|
|
17658
|
+
activity,
|
|
17659
|
+
openPeriods,
|
|
17660
|
+
seenBy,
|
|
17661
|
+
pluginActions,
|
|
17662
|
+
pluginIssues,
|
|
17663
|
+
pluginContexts,
|
|
17664
|
+
userReportCount,
|
|
17665
|
+
stats,
|
|
17666
|
+
participants
|
|
17667
|
+
};
|
|
17668
|
+
|
|
17669
|
+
//#endregion
|
|
17670
|
+
//#region ../mcp-server-mocks/dist/fixtures/event.json
|
|
17671
|
+
var id = "7ca573c0f4814912aaa9bdc77d1a7d51";
|
|
17672
|
+
var groupID = "6507376925";
|
|
17673
|
+
var eventID = "7ca573c0f4814912aaa9bdc77d1a7d51";
|
|
17674
|
+
var projectID = "4509062593708032";
|
|
17675
|
+
var size = 5891;
|
|
17676
|
+
var entries = [{
|
|
17677
|
+
"data": {
|
|
17678
|
+
"values": [{
|
|
17679
|
+
"type": "Error",
|
|
17680
|
+
"value": "Tool list_organizations is already registered",
|
|
17681
|
+
"mechanism": {
|
|
17682
|
+
"type": "cloudflare",
|
|
17683
|
+
"handled": false
|
|
17684
|
+
},
|
|
17685
|
+
"threadId": null,
|
|
17686
|
+
"module": null,
|
|
17687
|
+
"stacktrace": {
|
|
17688
|
+
"frames": [
|
|
17689
|
+
{
|
|
17690
|
+
"filename": "index.js",
|
|
17691
|
+
"absPath": "/index.js",
|
|
17692
|
+
"module": "index",
|
|
17693
|
+
"package": null,
|
|
17694
|
+
"platform": null,
|
|
17695
|
+
"instructionAddr": null,
|
|
17696
|
+
"symbolAddr": null,
|
|
17697
|
+
"function": null,
|
|
17698
|
+
"rawFunction": null,
|
|
17699
|
+
"symbol": null,
|
|
17700
|
+
"context": [],
|
|
17701
|
+
"lineNo": 7809,
|
|
17702
|
+
"colNo": 27,
|
|
17703
|
+
"inApp": true,
|
|
17704
|
+
"trust": null,
|
|
17705
|
+
"errors": null,
|
|
17706
|
+
"lock": null,
|
|
17707
|
+
"sourceLink": null,
|
|
17708
|
+
"vars": null
|
|
17709
|
+
},
|
|
17710
|
+
{
|
|
17711
|
+
"filename": "index.js",
|
|
17712
|
+
"absPath": "/index.js",
|
|
17713
|
+
"module": "index",
|
|
17714
|
+
"package": null,
|
|
17715
|
+
"platform": null,
|
|
17716
|
+
"instructionAddr": null,
|
|
17717
|
+
"symbolAddr": null,
|
|
17718
|
+
"function": "OAuthProviderImpl.fetch",
|
|
17719
|
+
"rawFunction": null,
|
|
17720
|
+
"symbol": null,
|
|
17721
|
+
"context": [],
|
|
17722
|
+
"lineNo": 8029,
|
|
17723
|
+
"colNo": 24,
|
|
17724
|
+
"inApp": true,
|
|
17725
|
+
"trust": null,
|
|
17726
|
+
"errors": null,
|
|
17727
|
+
"lock": null,
|
|
17728
|
+
"sourceLink": null,
|
|
17729
|
+
"vars": null
|
|
17730
|
+
},
|
|
17731
|
+
{
|
|
17732
|
+
"filename": "index.js",
|
|
17733
|
+
"absPath": "/index.js",
|
|
17734
|
+
"module": "index",
|
|
17735
|
+
"package": null,
|
|
17736
|
+
"platform": null,
|
|
17737
|
+
"instructionAddr": null,
|
|
17738
|
+
"symbolAddr": null,
|
|
17739
|
+
"function": "Object.fetch",
|
|
17740
|
+
"rawFunction": null,
|
|
17741
|
+
"symbol": null,
|
|
17742
|
+
"context": [],
|
|
17743
|
+
"lineNo": 19631,
|
|
17744
|
+
"colNo": 28,
|
|
17745
|
+
"inApp": true,
|
|
17746
|
+
"trust": null,
|
|
17747
|
+
"errors": null,
|
|
17748
|
+
"lock": null,
|
|
17749
|
+
"sourceLink": null,
|
|
17750
|
+
"vars": null
|
|
17751
|
+
}
|
|
17752
|
+
],
|
|
17753
|
+
"framesOmitted": null,
|
|
17754
|
+
"registers": null,
|
|
17755
|
+
"hasSystemFrames": true
|
|
17756
|
+
},
|
|
17757
|
+
"rawStacktrace": {
|
|
17758
|
+
"frames": [
|
|
17759
|
+
{
|
|
17760
|
+
"filename": "index.js",
|
|
17761
|
+
"absPath": "/index.js",
|
|
17762
|
+
"module": "index",
|
|
17763
|
+
"package": null,
|
|
17764
|
+
"platform": null,
|
|
17765
|
+
"instructionAddr": null,
|
|
17766
|
+
"symbolAddr": null,
|
|
17767
|
+
"function": null,
|
|
17768
|
+
"rawFunction": null,
|
|
17769
|
+
"symbol": null,
|
|
17770
|
+
"context": [],
|
|
17771
|
+
"lineNo": 7809,
|
|
17772
|
+
"colNo": 27,
|
|
17773
|
+
"inApp": true,
|
|
17774
|
+
"trust": null,
|
|
17775
|
+
"errors": null,
|
|
17776
|
+
"lock": null,
|
|
17777
|
+
"sourceLink": null,
|
|
17778
|
+
"vars": null
|
|
17779
|
+
},
|
|
17780
|
+
{
|
|
17781
|
+
"filename": "index.js",
|
|
17782
|
+
"absPath": "/index.js",
|
|
17783
|
+
"module": "index",
|
|
17784
|
+
"package": null,
|
|
17785
|
+
"platform": null,
|
|
17786
|
+
"instructionAddr": null,
|
|
17787
|
+
"symbolAddr": null,
|
|
17788
|
+
"function": "OAuthProviderImpl.fetch",
|
|
17789
|
+
"rawFunction": null,
|
|
17790
|
+
"symbol": null,
|
|
17791
|
+
"context": [],
|
|
17792
|
+
"lineNo": 8029,
|
|
17793
|
+
"colNo": 24,
|
|
17794
|
+
"inApp": true,
|
|
17795
|
+
"trust": null,
|
|
17796
|
+
"errors": null,
|
|
17797
|
+
"lock": null,
|
|
17798
|
+
"sourceLink": null,
|
|
17799
|
+
"vars": null
|
|
17800
|
+
},
|
|
17801
|
+
{
|
|
17802
|
+
"filename": "index.js",
|
|
17803
|
+
"absPath": "/index.js",
|
|
17804
|
+
"module": "index",
|
|
17805
|
+
"package": null,
|
|
17806
|
+
"platform": null,
|
|
17807
|
+
"instructionAddr": null,
|
|
17808
|
+
"symbolAddr": null,
|
|
17809
|
+
"function": "Object.fetch",
|
|
17810
|
+
"rawFunction": null,
|
|
17811
|
+
"symbol": null,
|
|
17812
|
+
"context": [],
|
|
17813
|
+
"lineNo": 19631,
|
|
17814
|
+
"colNo": 28,
|
|
17815
|
+
"inApp": true,
|
|
17816
|
+
"trust": null,
|
|
17817
|
+
"errors": null,
|
|
17818
|
+
"lock": null,
|
|
17819
|
+
"sourceLink": null,
|
|
17820
|
+
"vars": null
|
|
17821
|
+
}
|
|
17822
|
+
],
|
|
17823
|
+
"framesOmitted": null,
|
|
17824
|
+
"registers": null,
|
|
17825
|
+
"hasSystemFrames": true
|
|
17826
|
+
}
|
|
17827
|
+
}],
|
|
17828
|
+
"hasSystemFrames": true,
|
|
17829
|
+
"excOmitted": null
|
|
17830
|
+
},
|
|
17831
|
+
"type": "exception"
|
|
17832
|
+
}, {
|
|
17833
|
+
"data": {
|
|
17834
|
+
"apiTarget": null,
|
|
17835
|
+
"method": "GET",
|
|
17836
|
+
"url": "https://mcp.sentry.dev/sse",
|
|
17837
|
+
"query": [],
|
|
17838
|
+
"fragment": null,
|
|
17839
|
+
"data": null,
|
|
17840
|
+
"headers": [
|
|
17841
|
+
["Accept", "text/event-stream"],
|
|
17842
|
+
["Accept-Encoding", "gzip, br"],
|
|
17843
|
+
["Accept-Language", "*"],
|
|
17844
|
+
["Authorization", "[Filtered]"],
|
|
17845
|
+
["Cache-Control", "no-cache"],
|
|
17846
|
+
["Cf-Ipcountry", "GB"],
|
|
17847
|
+
["Cf-Ray", "92d4c7266c8f48c9"],
|
|
17848
|
+
["Cf-Visitor", "{\"scheme\":\"https\"}"],
|
|
17849
|
+
["Connection", "Keep-Alive"],
|
|
17850
|
+
["Host", "mcp.sentry.dev"],
|
|
17851
|
+
["Pragma", "no-cache"],
|
|
17852
|
+
["Sec-Fetch-Mode", "cors"],
|
|
17853
|
+
["User-Agent", "node"],
|
|
17854
|
+
["X-Forwarded-Proto", "https"]
|
|
17855
|
+
],
|
|
17856
|
+
"cookies": [],
|
|
17857
|
+
"env": null,
|
|
17858
|
+
"inferredContentType": null
|
|
17859
|
+
},
|
|
17860
|
+
"type": "request"
|
|
17861
|
+
}];
|
|
17862
|
+
var dist = null;
|
|
17863
|
+
var message = "";
|
|
17864
|
+
var title = "Error: Tool list_organizations is already registered";
|
|
17865
|
+
var location$1 = "index.js";
|
|
17866
|
+
var user = {
|
|
17867
|
+
"id": null,
|
|
17868
|
+
"email": null,
|
|
17869
|
+
"username": null,
|
|
17870
|
+
"ip_address": "2a06:98c0:3600::103",
|
|
17871
|
+
"name": null,
|
|
17872
|
+
"geo": {
|
|
17873
|
+
"country_code": "US",
|
|
17874
|
+
"region": "United States"
|
|
17875
|
+
},
|
|
17876
|
+
"data": null
|
|
17877
|
+
};
|
|
17878
|
+
var contexts = {
|
|
17879
|
+
"cloud_resource": {
|
|
17880
|
+
"cloud.provider": "cloudflare",
|
|
17881
|
+
"type": "default"
|
|
17882
|
+
},
|
|
17883
|
+
"culture": {
|
|
17884
|
+
"timezone": "Europe/London",
|
|
17885
|
+
"type": "default"
|
|
17886
|
+
},
|
|
17887
|
+
"runtime": {
|
|
17888
|
+
"name": "cloudflare",
|
|
17889
|
+
"type": "runtime"
|
|
17890
|
+
},
|
|
17891
|
+
"trace": {
|
|
17892
|
+
"trace_id": "3032af8bcdfe4423b937fc5c041d5d82",
|
|
17893
|
+
"span_id": "953da703d2a6f4c7",
|
|
17894
|
+
"status": "unknown",
|
|
17895
|
+
"client_sample_rate": 1,
|
|
17896
|
+
"sampled": true,
|
|
17897
|
+
"type": "trace"
|
|
17452
17898
|
}
|
|
17453
17899
|
};
|
|
17454
|
-
|
|
17900
|
+
var sdk = {
|
|
17901
|
+
"name": "sentry.javascript.cloudflare",
|
|
17902
|
+
"version": "9.12.0"
|
|
17903
|
+
};
|
|
17904
|
+
var context = {};
|
|
17905
|
+
var packages = {};
|
|
17906
|
+
var type = "error";
|
|
17907
|
+
var metadata = {
|
|
17908
|
+
"filename": "index.js",
|
|
17909
|
+
"function": "Object.fetch",
|
|
17910
|
+
"in_app_frame_mix": "in-app-only",
|
|
17911
|
+
"type": "Error",
|
|
17912
|
+
"value": "Tool list_organizations is already registered"
|
|
17913
|
+
};
|
|
17914
|
+
var tags = [
|
|
17915
|
+
{
|
|
17916
|
+
"key": "environment",
|
|
17917
|
+
"value": "development"
|
|
17918
|
+
},
|
|
17919
|
+
{
|
|
17920
|
+
"key": "handled",
|
|
17921
|
+
"value": "no"
|
|
17922
|
+
},
|
|
17455
17923
|
{
|
|
17456
|
-
key: "
|
|
17457
|
-
|
|
17458
|
-
totalValues: 1080
|
|
17924
|
+
"key": "level",
|
|
17925
|
+
"value": "error"
|
|
17459
17926
|
},
|
|
17460
17927
|
{
|
|
17461
|
-
key: "
|
|
17462
|
-
|
|
17463
|
-
totalValues: 1080
|
|
17928
|
+
"key": "mechanism",
|
|
17929
|
+
"value": "cloudflare"
|
|
17464
17930
|
},
|
|
17465
17931
|
{
|
|
17466
|
-
key: "
|
|
17467
|
-
|
|
17468
|
-
totalValues: 1144
|
|
17932
|
+
"key": "runtime.name",
|
|
17933
|
+
"value": "cloudflare"
|
|
17469
17934
|
},
|
|
17470
17935
|
{
|
|
17471
|
-
key: "
|
|
17472
|
-
|
|
17473
|
-
|
|
17936
|
+
"key": "url",
|
|
17937
|
+
"value": "https://mcp.sentry.dev/sse"
|
|
17938
|
+
}
|
|
17939
|
+
];
|
|
17940
|
+
var platform = "javascript";
|
|
17941
|
+
var dateReceived = "2025-04-08T21:15:04.700878Z";
|
|
17942
|
+
var errors = [{
|
|
17943
|
+
"type": "js_no_source",
|
|
17944
|
+
"message": "Source code was not found",
|
|
17945
|
+
"data": {
|
|
17946
|
+
"symbolicator_type": "missing_source",
|
|
17947
|
+
"url": "/index.js"
|
|
17948
|
+
}
|
|
17949
|
+
}];
|
|
17950
|
+
var occurrence = null;
|
|
17951
|
+
var _meta = {
|
|
17952
|
+
"entries": { "1": { "data": {
|
|
17953
|
+
"": null,
|
|
17954
|
+
"apiTarget": null,
|
|
17955
|
+
"method": null,
|
|
17956
|
+
"url": null,
|
|
17957
|
+
"query": null,
|
|
17958
|
+
"data": null,
|
|
17959
|
+
"headers": { "3": { "1": { "": {
|
|
17960
|
+
"rem": [[
|
|
17961
|
+
"@password:filter",
|
|
17962
|
+
"s",
|
|
17963
|
+
0,
|
|
17964
|
+
10
|
|
17965
|
+
]],
|
|
17966
|
+
"len": 64,
|
|
17967
|
+
"chunks": [{
|
|
17968
|
+
"type": "redaction",
|
|
17969
|
+
"text": "[Filtered]",
|
|
17970
|
+
"rule_id": "@password:filter",
|
|
17971
|
+
"remark": "s"
|
|
17972
|
+
}]
|
|
17973
|
+
} } } },
|
|
17974
|
+
"cookies": null,
|
|
17975
|
+
"env": null
|
|
17976
|
+
} } },
|
|
17977
|
+
"message": null,
|
|
17978
|
+
"user": null,
|
|
17979
|
+
"contexts": null,
|
|
17980
|
+
"sdk": null,
|
|
17981
|
+
"context": null,
|
|
17982
|
+
"packages": null,
|
|
17983
|
+
"tags": {}
|
|
17984
|
+
};
|
|
17985
|
+
var crashFile = null;
|
|
17986
|
+
var culprit = "Object.fetch(index)";
|
|
17987
|
+
var dateCreated = "2025-04-08T21:15:04Z";
|
|
17988
|
+
var fingerprints = ["60d1c667b173018c004e399b29dc927d"];
|
|
17989
|
+
var groupingConfig = {
|
|
17990
|
+
"enhancements": "KLUv_SAYwQAAkwKRs25ld3N0eWxlOjIwMjMtMDEtMTGQ",
|
|
17991
|
+
"id": "newstyle:2023-01-11"
|
|
17992
|
+
};
|
|
17993
|
+
var release = null;
|
|
17994
|
+
var userReport = null;
|
|
17995
|
+
var sdkUpdates = [];
|
|
17996
|
+
var resolvedWith = [null];
|
|
17997
|
+
var nextEventID = null;
|
|
17998
|
+
var previousEventID = "b7ed18493f4f4817a217b03839d4c017";
|
|
17999
|
+
var event_default = {
|
|
18000
|
+
id,
|
|
18001
|
+
groupID,
|
|
18002
|
+
eventID,
|
|
18003
|
+
projectID,
|
|
18004
|
+
size,
|
|
18005
|
+
entries,
|
|
18006
|
+
dist,
|
|
18007
|
+
message,
|
|
18008
|
+
title,
|
|
18009
|
+
location: location$1,
|
|
18010
|
+
user,
|
|
18011
|
+
contexts,
|
|
18012
|
+
sdk,
|
|
18013
|
+
context,
|
|
18014
|
+
packages,
|
|
18015
|
+
type,
|
|
18016
|
+
metadata,
|
|
18017
|
+
tags,
|
|
18018
|
+
platform,
|
|
18019
|
+
dateReceived,
|
|
18020
|
+
errors,
|
|
18021
|
+
occurrence,
|
|
18022
|
+
_meta,
|
|
18023
|
+
crashFile,
|
|
18024
|
+
culprit,
|
|
18025
|
+
dateCreated,
|
|
18026
|
+
fingerprints,
|
|
18027
|
+
groupingConfig,
|
|
18028
|
+
release,
|
|
18029
|
+
userReport,
|
|
18030
|
+
sdkUpdates,
|
|
18031
|
+
resolvedWith,
|
|
18032
|
+
nextEventID,
|
|
18033
|
+
previousEventID
|
|
18034
|
+
};
|
|
18035
|
+
|
|
18036
|
+
//#endregion
|
|
18037
|
+
//#region ../mcp-server-mocks/dist/fixtures/tags.json
|
|
18038
|
+
var tags_default = [
|
|
18039
|
+
{
|
|
18040
|
+
"key": "transaction",
|
|
18041
|
+
"name": "Transaction",
|
|
18042
|
+
"totalValues": 1080
|
|
17474
18043
|
},
|
|
17475
18044
|
{
|
|
17476
|
-
key: "
|
|
17477
|
-
name: "
|
|
17478
|
-
totalValues:
|
|
18045
|
+
"key": "runtime.name",
|
|
18046
|
+
"name": "Runtime.Name",
|
|
18047
|
+
"totalValues": 1080
|
|
17479
18048
|
},
|
|
17480
18049
|
{
|
|
17481
|
-
key: "
|
|
17482
|
-
name: "
|
|
17483
|
-
totalValues:
|
|
18050
|
+
"key": "level",
|
|
18051
|
+
"name": "Level",
|
|
18052
|
+
"totalValues": 1144
|
|
17484
18053
|
},
|
|
17485
18054
|
{
|
|
17486
|
-
key: "
|
|
17487
|
-
name: "
|
|
17488
|
-
totalValues:
|
|
18055
|
+
"key": "device",
|
|
18056
|
+
"name": "Device",
|
|
18057
|
+
"totalValues": 25
|
|
17489
18058
|
},
|
|
17490
18059
|
{
|
|
17491
|
-
key: "
|
|
17492
|
-
name: "
|
|
17493
|
-
totalValues:
|
|
18060
|
+
"key": "os",
|
|
18061
|
+
"name": "OS",
|
|
18062
|
+
"totalValues": 1133
|
|
17494
18063
|
},
|
|
17495
18064
|
{
|
|
17496
|
-
key: "
|
|
17497
|
-
name: "
|
|
17498
|
-
totalValues: 1080
|
|
18065
|
+
"key": "user",
|
|
18066
|
+
"name": "User",
|
|
18067
|
+
"totalValues": 1080
|
|
17499
18068
|
},
|
|
17500
18069
|
{
|
|
17501
|
-
key: "
|
|
17502
|
-
name: "
|
|
17503
|
-
totalValues:
|
|
18070
|
+
"key": "runtime",
|
|
18071
|
+
"name": "Runtime",
|
|
18072
|
+
"totalValues": 1080
|
|
17504
18073
|
},
|
|
17505
18074
|
{
|
|
17506
|
-
key: "
|
|
17507
|
-
name: "
|
|
17508
|
-
totalValues:
|
|
18075
|
+
"key": "release",
|
|
18076
|
+
"name": "Release",
|
|
18077
|
+
"totalValues": 1135
|
|
17509
18078
|
},
|
|
17510
18079
|
{
|
|
17511
|
-
key: "
|
|
17512
|
-
name: "
|
|
17513
|
-
totalValues:
|
|
18080
|
+
"key": "url",
|
|
18081
|
+
"name": "URL",
|
|
18082
|
+
"totalValues": 1080
|
|
17514
18083
|
},
|
|
17515
18084
|
{
|
|
17516
|
-
key: "
|
|
17517
|
-
name: "
|
|
17518
|
-
totalValues:
|
|
18085
|
+
"key": "uptime_rule",
|
|
18086
|
+
"name": "Uptime Rule",
|
|
18087
|
+
"totalValues": 9
|
|
17519
18088
|
},
|
|
17520
18089
|
{
|
|
17521
|
-
key: "
|
|
17522
|
-
name: "
|
|
17523
|
-
totalValues:
|
|
18090
|
+
"key": "server_name",
|
|
18091
|
+
"name": "Server",
|
|
18092
|
+
"totalValues": 1080
|
|
17524
18093
|
},
|
|
17525
18094
|
{
|
|
17526
|
-
key: "
|
|
17527
|
-
name: "
|
|
17528
|
-
totalValues:
|
|
18095
|
+
"key": "browser",
|
|
18096
|
+
"name": "Browser",
|
|
18097
|
+
"totalValues": 56
|
|
17529
18098
|
},
|
|
17530
18099
|
{
|
|
17531
|
-
key: "
|
|
17532
|
-
name: "
|
|
17533
|
-
totalValues:
|
|
18100
|
+
"key": "os.name",
|
|
18101
|
+
"name": "Os.Name",
|
|
18102
|
+
"totalValues": 1135
|
|
17534
18103
|
},
|
|
17535
18104
|
{
|
|
17536
|
-
key: "
|
|
17537
|
-
name: "
|
|
17538
|
-
totalValues:
|
|
18105
|
+
"key": "device.family",
|
|
18106
|
+
"name": "Device.Family",
|
|
18107
|
+
"totalValues": 25
|
|
17539
18108
|
},
|
|
17540
18109
|
{
|
|
17541
|
-
key: "
|
|
17542
|
-
name: "
|
|
17543
|
-
totalValues:
|
|
18110
|
+
"key": "replayId",
|
|
18111
|
+
"name": "Replayid",
|
|
18112
|
+
"totalValues": 55
|
|
17544
18113
|
},
|
|
17545
18114
|
{
|
|
17546
|
-
key: "
|
|
17547
|
-
name: "
|
|
17548
|
-
totalValues:
|
|
18115
|
+
"key": "client_os.name",
|
|
18116
|
+
"name": "Client Os.Name",
|
|
18117
|
+
"totalValues": 1
|
|
18118
|
+
},
|
|
18119
|
+
{
|
|
18120
|
+
"key": "environment",
|
|
18121
|
+
"name": "Environment",
|
|
18122
|
+
"totalValues": 1144
|
|
18123
|
+
},
|
|
18124
|
+
{
|
|
18125
|
+
"key": "service",
|
|
18126
|
+
"name": "Service",
|
|
18127
|
+
"totalValues": 1135
|
|
18128
|
+
},
|
|
18129
|
+
{
|
|
18130
|
+
"key": "browser.name",
|
|
18131
|
+
"name": "Browser.Name",
|
|
18132
|
+
"totalValues": 56
|
|
17549
18133
|
}
|
|
17550
18134
|
];
|
|
18135
|
+
|
|
18136
|
+
//#endregion
|
|
18137
|
+
//#region ../mcp-server-mocks/dist/index.js
|
|
18138
|
+
const OrganizationPayload = {
|
|
18139
|
+
id: "4509106740723712",
|
|
18140
|
+
slug: "sentry-mcp-evals",
|
|
18141
|
+
name: "sentry-mcp-evals",
|
|
18142
|
+
links: {
|
|
18143
|
+
regionUrl: "https://us.sentry.io",
|
|
18144
|
+
organizationUrl: "https://sentry.io/sentry-mcp-evals"
|
|
18145
|
+
}
|
|
18146
|
+
};
|
|
17551
18147
|
const ReleasePayload = {
|
|
17552
18148
|
id: 1402755016,
|
|
17553
18149
|
version: "8ce89484-0fec-4913-a2cd-e8e2d41dee36",
|
|
@@ -17618,188 +18214,8 @@ const ClientKeyPayload = {
|
|
|
17618
18214
|
hasDebug: false
|
|
17619
18215
|
}
|
|
17620
18216
|
};
|
|
17621
|
-
const
|
|
17622
|
-
|
|
17623
|
-
shareId: null,
|
|
17624
|
-
shortId: "CLOUDFLARE-MCP-41",
|
|
17625
|
-
title: "Error: Tool list_organizations is already registered",
|
|
17626
|
-
culprit: "Object.fetch(index)",
|
|
17627
|
-
permalink: "https://sentry-mcp-evals.sentry.io/issues/6507376925/",
|
|
17628
|
-
logger: null,
|
|
17629
|
-
level: "error",
|
|
17630
|
-
status: "unresolved",
|
|
17631
|
-
statusDetails: {},
|
|
17632
|
-
substatus: "ongoing",
|
|
17633
|
-
isPublic: false,
|
|
17634
|
-
platform: "javascript",
|
|
17635
|
-
project: {
|
|
17636
|
-
id: "4509062593708032",
|
|
17637
|
-
name: "CLOUDFLARE-MCP",
|
|
17638
|
-
slug: "CLOUDFLARE-MCP",
|
|
17639
|
-
platform: "bun"
|
|
17640
|
-
},
|
|
17641
|
-
type: "error",
|
|
17642
|
-
metadata: {
|
|
17643
|
-
value: "Tool list_organizations is already registered",
|
|
17644
|
-
type: "Error",
|
|
17645
|
-
filename: "index.js",
|
|
17646
|
-
function: "Object.fetch",
|
|
17647
|
-
in_app_frame_mix: "in-app-only",
|
|
17648
|
-
sdk: {
|
|
17649
|
-
name: "sentry.javascript.cloudflare",
|
|
17650
|
-
name_normalized: "sentry.javascript.cloudflare"
|
|
17651
|
-
},
|
|
17652
|
-
severity: 0,
|
|
17653
|
-
severity_reason: "ml",
|
|
17654
|
-
initial_priority: 50,
|
|
17655
|
-
title: null
|
|
17656
|
-
},
|
|
17657
|
-
numComments: 0,
|
|
17658
|
-
assignedTo: null,
|
|
17659
|
-
isBookmarked: false,
|
|
17660
|
-
isSubscribed: false,
|
|
17661
|
-
subscriptionDetails: null,
|
|
17662
|
-
hasSeen: true,
|
|
17663
|
-
annotations: [],
|
|
17664
|
-
issueType: "error",
|
|
17665
|
-
issueCategory: "error",
|
|
17666
|
-
priority: "medium",
|
|
17667
|
-
priorityLockedAt: null,
|
|
17668
|
-
isUnhandled: true,
|
|
17669
|
-
count: "25",
|
|
17670
|
-
userCount: 1,
|
|
17671
|
-
firstSeen: "2025-04-03T22:51:19.403000Z",
|
|
17672
|
-
lastSeen: "2025-04-12T11:34:11Z",
|
|
17673
|
-
firstRelease: null,
|
|
17674
|
-
lastRelease: null,
|
|
17675
|
-
activity: [{
|
|
17676
|
-
id: "4633815464",
|
|
17677
|
-
user: null,
|
|
17678
|
-
type: "auto_set_ongoing",
|
|
17679
|
-
data: { after_days: 7 },
|
|
17680
|
-
dateCreated: "2025-04-10T22:55:22.411699Z"
|
|
17681
|
-
}, {
|
|
17682
|
-
id: "0",
|
|
17683
|
-
user: null,
|
|
17684
|
-
type: "first_seen",
|
|
17685
|
-
data: { priority: "medium" },
|
|
17686
|
-
dateCreated: "2025-04-03T22:51:19.403000Z"
|
|
17687
|
-
}],
|
|
17688
|
-
openPeriods: [{
|
|
17689
|
-
start: "2025-04-03T22:51:19.403000Z",
|
|
17690
|
-
end: null,
|
|
17691
|
-
duration: null,
|
|
17692
|
-
isOpen: true,
|
|
17693
|
-
lastChecked: "2025-04-12T11:34:11.310000Z"
|
|
17694
|
-
}],
|
|
17695
|
-
seenBy: [{
|
|
17696
|
-
id: "1",
|
|
17697
|
-
name: "David Cramer",
|
|
17698
|
-
username: "david@example.com",
|
|
17699
|
-
email: "david@example.com",
|
|
17700
|
-
avatarUrl: null,
|
|
17701
|
-
isActive: true,
|
|
17702
|
-
hasPasswordAuth: true,
|
|
17703
|
-
isManaged: false,
|
|
17704
|
-
dateJoined: "2012-01-14T22:08:29.270831Z",
|
|
17705
|
-
lastLogin: "2025-04-13T14:00:11.516852Z",
|
|
17706
|
-
has2fa: true,
|
|
17707
|
-
lastActive: "2025-04-13T18:10:49.177605Z",
|
|
17708
|
-
isSuperuser: true,
|
|
17709
|
-
isStaff: true,
|
|
17710
|
-
experiments: {},
|
|
17711
|
-
emails: [{
|
|
17712
|
-
id: "87429",
|
|
17713
|
-
email: "david@example.com",
|
|
17714
|
-
is_verified: true
|
|
17715
|
-
}],
|
|
17716
|
-
options: {
|
|
17717
|
-
theme: "light",
|
|
17718
|
-
language: "en",
|
|
17719
|
-
stacktraceOrder: 2,
|
|
17720
|
-
defaultIssueEvent: "recommended",
|
|
17721
|
-
timezone: "US/Pacific",
|
|
17722
|
-
clock24Hours: false
|
|
17723
|
-
},
|
|
17724
|
-
flags: { newsletter_consent_prompt: false },
|
|
17725
|
-
avatar: {
|
|
17726
|
-
avatarType: "upload",
|
|
17727
|
-
avatarUuid: "51e63edabf31412aa2a955e9cf2c1ca0",
|
|
17728
|
-
avatarUrl: "https://sentry.io/avatar/51e63edabf31412aa2a955e9cf2c1ca0/"
|
|
17729
|
-
},
|
|
17730
|
-
identities: [],
|
|
17731
|
-
lastSeen: "2025-04-08T23:15:26.569455Z"
|
|
17732
|
-
}],
|
|
17733
|
-
pluginActions: [],
|
|
17734
|
-
pluginIssues: [],
|
|
17735
|
-
pluginContexts: [],
|
|
17736
|
-
userReportCount: 0,
|
|
17737
|
-
stats: {
|
|
17738
|
-
"24h": [
|
|
17739
|
-
[1744480800, 0],
|
|
17740
|
-
[1744484400, 0],
|
|
17741
|
-
[1744488e3, 0],
|
|
17742
|
-
[1744491600, 0],
|
|
17743
|
-
[1744495200, 0],
|
|
17744
|
-
[1744498800, 0],
|
|
17745
|
-
[1744502400, 0],
|
|
17746
|
-
[1744506e3, 0],
|
|
17747
|
-
[1744509600, 0],
|
|
17748
|
-
[1744513200, 0],
|
|
17749
|
-
[1744516800, 0],
|
|
17750
|
-
[1744520400, 0],
|
|
17751
|
-
[1744524e3, 0],
|
|
17752
|
-
[1744527600, 0],
|
|
17753
|
-
[1744531200, 0],
|
|
17754
|
-
[1744534800, 0],
|
|
17755
|
-
[1744538400, 0],
|
|
17756
|
-
[1744542e3, 0],
|
|
17757
|
-
[1744545600, 0],
|
|
17758
|
-
[1744549200, 0],
|
|
17759
|
-
[1744552800, 0],
|
|
17760
|
-
[1744556400, 0],
|
|
17761
|
-
[174456e4, 0],
|
|
17762
|
-
[1744563600, 0],
|
|
17763
|
-
[1744567200, 0]
|
|
17764
|
-
],
|
|
17765
|
-
"30d": [
|
|
17766
|
-
[1741910400, 0],
|
|
17767
|
-
[1741996800, 0],
|
|
17768
|
-
[1742083200, 0],
|
|
17769
|
-
[1742169600, 0],
|
|
17770
|
-
[1742256e3, 0],
|
|
17771
|
-
[1742342400, 0],
|
|
17772
|
-
[1742428800, 0],
|
|
17773
|
-
[1742515200, 0],
|
|
17774
|
-
[1742601600, 0],
|
|
17775
|
-
[1742688e3, 0],
|
|
17776
|
-
[1742774400, 0],
|
|
17777
|
-
[1742860800, 0],
|
|
17778
|
-
[1742947200, 0],
|
|
17779
|
-
[1743033600, 0],
|
|
17780
|
-
[174312e4, 0],
|
|
17781
|
-
[1743206400, 0],
|
|
17782
|
-
[1743292800, 0],
|
|
17783
|
-
[1743379200, 0],
|
|
17784
|
-
[1743465600, 0],
|
|
17785
|
-
[1743552e3, 0],
|
|
17786
|
-
[1743638400, 1],
|
|
17787
|
-
[1743724800, 0],
|
|
17788
|
-
[1743811200, 0],
|
|
17789
|
-
[1743897600, 0],
|
|
17790
|
-
[1743984e3, 0],
|
|
17791
|
-
[1744070400, 20],
|
|
17792
|
-
[1744156800, 1],
|
|
17793
|
-
[1744243200, 1],
|
|
17794
|
-
[1744329600, 0],
|
|
17795
|
-
[1744416e3, 2],
|
|
17796
|
-
[1744502400, 0]
|
|
17797
|
-
]
|
|
17798
|
-
},
|
|
17799
|
-
participants: []
|
|
17800
|
-
};
|
|
17801
|
-
const IssuePayload2 = {
|
|
17802
|
-
...IssuePayload,
|
|
18217
|
+
const issueFixture2 = {
|
|
18218
|
+
...issue_default,
|
|
17803
18219
|
id: 6507376926,
|
|
17804
18220
|
shortId: "CLOUDFLARE-MCP-42",
|
|
17805
18221
|
count: 1,
|
|
@@ -17807,336 +18223,6 @@ const IssuePayload2 = {
|
|
|
17807
18223
|
firstSeen: "2025-04-11T22:51:19.403000Z",
|
|
17808
18224
|
lastSeen: "2025-04-12T11:34:11Z"
|
|
17809
18225
|
};
|
|
17810
|
-
const EventPayload = {
|
|
17811
|
-
id: "7ca573c0f4814912aaa9bdc77d1a7d51",
|
|
17812
|
-
groupID: "6507376925",
|
|
17813
|
-
eventID: "7ca573c0f4814912aaa9bdc77d1a7d51",
|
|
17814
|
-
projectID: "4509062593708032",
|
|
17815
|
-
size: 5891,
|
|
17816
|
-
entries: [{
|
|
17817
|
-
data: {
|
|
17818
|
-
values: [{
|
|
17819
|
-
type: "Error",
|
|
17820
|
-
value: "Tool list_organizations is already registered",
|
|
17821
|
-
mechanism: {
|
|
17822
|
-
type: "cloudflare",
|
|
17823
|
-
handled: false
|
|
17824
|
-
},
|
|
17825
|
-
threadId: null,
|
|
17826
|
-
module: null,
|
|
17827
|
-
stacktrace: {
|
|
17828
|
-
frames: [
|
|
17829
|
-
{
|
|
17830
|
-
filename: "index.js",
|
|
17831
|
-
absPath: "/index.js",
|
|
17832
|
-
module: "index",
|
|
17833
|
-
package: null,
|
|
17834
|
-
platform: null,
|
|
17835
|
-
instructionAddr: null,
|
|
17836
|
-
symbolAddr: null,
|
|
17837
|
-
function: null,
|
|
17838
|
-
rawFunction: null,
|
|
17839
|
-
symbol: null,
|
|
17840
|
-
context: [],
|
|
17841
|
-
lineNo: 7809,
|
|
17842
|
-
colNo: 27,
|
|
17843
|
-
inApp: true,
|
|
17844
|
-
trust: null,
|
|
17845
|
-
errors: null,
|
|
17846
|
-
lock: null,
|
|
17847
|
-
sourceLink: null,
|
|
17848
|
-
vars: null
|
|
17849
|
-
},
|
|
17850
|
-
{
|
|
17851
|
-
filename: "index.js",
|
|
17852
|
-
absPath: "/index.js",
|
|
17853
|
-
module: "index",
|
|
17854
|
-
package: null,
|
|
17855
|
-
platform: null,
|
|
17856
|
-
instructionAddr: null,
|
|
17857
|
-
symbolAddr: null,
|
|
17858
|
-
function: "OAuthProviderImpl.fetch",
|
|
17859
|
-
rawFunction: null,
|
|
17860
|
-
symbol: null,
|
|
17861
|
-
context: [],
|
|
17862
|
-
lineNo: 8029,
|
|
17863
|
-
colNo: 24,
|
|
17864
|
-
inApp: true,
|
|
17865
|
-
trust: null,
|
|
17866
|
-
errors: null,
|
|
17867
|
-
lock: null,
|
|
17868
|
-
sourceLink: null,
|
|
17869
|
-
vars: null
|
|
17870
|
-
},
|
|
17871
|
-
{
|
|
17872
|
-
filename: "index.js",
|
|
17873
|
-
absPath: "/index.js",
|
|
17874
|
-
module: "index",
|
|
17875
|
-
package: null,
|
|
17876
|
-
platform: null,
|
|
17877
|
-
instructionAddr: null,
|
|
17878
|
-
symbolAddr: null,
|
|
17879
|
-
function: "Object.fetch",
|
|
17880
|
-
rawFunction: null,
|
|
17881
|
-
symbol: null,
|
|
17882
|
-
context: [],
|
|
17883
|
-
lineNo: 19631,
|
|
17884
|
-
colNo: 28,
|
|
17885
|
-
inApp: true,
|
|
17886
|
-
trust: null,
|
|
17887
|
-
errors: null,
|
|
17888
|
-
lock: null,
|
|
17889
|
-
sourceLink: null,
|
|
17890
|
-
vars: null
|
|
17891
|
-
}
|
|
17892
|
-
],
|
|
17893
|
-
framesOmitted: null,
|
|
17894
|
-
registers: null,
|
|
17895
|
-
hasSystemFrames: true
|
|
17896
|
-
},
|
|
17897
|
-
rawStacktrace: {
|
|
17898
|
-
frames: [
|
|
17899
|
-
{
|
|
17900
|
-
filename: "index.js",
|
|
17901
|
-
absPath: "/index.js",
|
|
17902
|
-
module: "index",
|
|
17903
|
-
package: null,
|
|
17904
|
-
platform: null,
|
|
17905
|
-
instructionAddr: null,
|
|
17906
|
-
symbolAddr: null,
|
|
17907
|
-
function: null,
|
|
17908
|
-
rawFunction: null,
|
|
17909
|
-
symbol: null,
|
|
17910
|
-
context: [],
|
|
17911
|
-
lineNo: 7809,
|
|
17912
|
-
colNo: 27,
|
|
17913
|
-
inApp: true,
|
|
17914
|
-
trust: null,
|
|
17915
|
-
errors: null,
|
|
17916
|
-
lock: null,
|
|
17917
|
-
sourceLink: null,
|
|
17918
|
-
vars: null
|
|
17919
|
-
},
|
|
17920
|
-
{
|
|
17921
|
-
filename: "index.js",
|
|
17922
|
-
absPath: "/index.js",
|
|
17923
|
-
module: "index",
|
|
17924
|
-
package: null,
|
|
17925
|
-
platform: null,
|
|
17926
|
-
instructionAddr: null,
|
|
17927
|
-
symbolAddr: null,
|
|
17928
|
-
function: "OAuthProviderImpl.fetch",
|
|
17929
|
-
rawFunction: null,
|
|
17930
|
-
symbol: null,
|
|
17931
|
-
context: [],
|
|
17932
|
-
lineNo: 8029,
|
|
17933
|
-
colNo: 24,
|
|
17934
|
-
inApp: true,
|
|
17935
|
-
trust: null,
|
|
17936
|
-
errors: null,
|
|
17937
|
-
lock: null,
|
|
17938
|
-
sourceLink: null,
|
|
17939
|
-
vars: null
|
|
17940
|
-
},
|
|
17941
|
-
{
|
|
17942
|
-
filename: "index.js",
|
|
17943
|
-
absPath: "/index.js",
|
|
17944
|
-
module: "index",
|
|
17945
|
-
package: null,
|
|
17946
|
-
platform: null,
|
|
17947
|
-
instructionAddr: null,
|
|
17948
|
-
symbolAddr: null,
|
|
17949
|
-
function: "Object.fetch",
|
|
17950
|
-
rawFunction: null,
|
|
17951
|
-
symbol: null,
|
|
17952
|
-
context: [],
|
|
17953
|
-
lineNo: 19631,
|
|
17954
|
-
colNo: 28,
|
|
17955
|
-
inApp: true,
|
|
17956
|
-
trust: null,
|
|
17957
|
-
errors: null,
|
|
17958
|
-
lock: null,
|
|
17959
|
-
sourceLink: null,
|
|
17960
|
-
vars: null
|
|
17961
|
-
}
|
|
17962
|
-
],
|
|
17963
|
-
framesOmitted: null,
|
|
17964
|
-
registers: null,
|
|
17965
|
-
hasSystemFrames: true
|
|
17966
|
-
}
|
|
17967
|
-
}],
|
|
17968
|
-
hasSystemFrames: true,
|
|
17969
|
-
excOmitted: null
|
|
17970
|
-
},
|
|
17971
|
-
type: "exception"
|
|
17972
|
-
}, {
|
|
17973
|
-
data: {
|
|
17974
|
-
apiTarget: null,
|
|
17975
|
-
method: "GET",
|
|
17976
|
-
url: "https://mcp.sentry.dev/sse",
|
|
17977
|
-
query: [],
|
|
17978
|
-
fragment: null,
|
|
17979
|
-
data: null,
|
|
17980
|
-
headers: [
|
|
17981
|
-
["Accept", "text/event-stream"],
|
|
17982
|
-
["Accept-Encoding", "gzip, br"],
|
|
17983
|
-
["Accept-Language", "*"],
|
|
17984
|
-
["Authorization", "[Filtered]"],
|
|
17985
|
-
["Cache-Control", "no-cache"],
|
|
17986
|
-
["Cf-Ipcountry", "GB"],
|
|
17987
|
-
["Cf-Ray", "92d4c7266c8f48c9"],
|
|
17988
|
-
["Cf-Visitor", "{\"scheme\":\"https\"}"],
|
|
17989
|
-
["Connection", "Keep-Alive"],
|
|
17990
|
-
["Host", "mcp.sentry.dev"],
|
|
17991
|
-
["Pragma", "no-cache"],
|
|
17992
|
-
["Sec-Fetch-Mode", "cors"],
|
|
17993
|
-
["User-Agent", "node"],
|
|
17994
|
-
["X-Forwarded-Proto", "https"]
|
|
17995
|
-
],
|
|
17996
|
-
cookies: [],
|
|
17997
|
-
env: null,
|
|
17998
|
-
inferredContentType: null
|
|
17999
|
-
},
|
|
18000
|
-
type: "request"
|
|
18001
|
-
}],
|
|
18002
|
-
dist: null,
|
|
18003
|
-
message: "",
|
|
18004
|
-
title: "Error: Tool list_organizations is already registered",
|
|
18005
|
-
location: "index.js",
|
|
18006
|
-
user: {
|
|
18007
|
-
id: null,
|
|
18008
|
-
email: null,
|
|
18009
|
-
username: null,
|
|
18010
|
-
ip_address: "2a06:98c0:3600::103",
|
|
18011
|
-
name: null,
|
|
18012
|
-
geo: {
|
|
18013
|
-
country_code: "US",
|
|
18014
|
-
region: "United States"
|
|
18015
|
-
},
|
|
18016
|
-
data: null
|
|
18017
|
-
},
|
|
18018
|
-
contexts: {
|
|
18019
|
-
cloud_resource: {
|
|
18020
|
-
"cloud.provider": "cloudflare",
|
|
18021
|
-
type: "default"
|
|
18022
|
-
},
|
|
18023
|
-
culture: {
|
|
18024
|
-
timezone: "Europe/London",
|
|
18025
|
-
type: "default"
|
|
18026
|
-
},
|
|
18027
|
-
runtime: {
|
|
18028
|
-
name: "cloudflare",
|
|
18029
|
-
type: "runtime"
|
|
18030
|
-
},
|
|
18031
|
-
trace: {
|
|
18032
|
-
trace_id: "3032af8bcdfe4423b937fc5c041d5d82",
|
|
18033
|
-
span_id: "953da703d2a6f4c7",
|
|
18034
|
-
status: "unknown",
|
|
18035
|
-
client_sample_rate: 1,
|
|
18036
|
-
sampled: true,
|
|
18037
|
-
type: "trace"
|
|
18038
|
-
}
|
|
18039
|
-
},
|
|
18040
|
-
sdk: {
|
|
18041
|
-
name: "sentry.javascript.cloudflare",
|
|
18042
|
-
version: "9.12.0"
|
|
18043
|
-
},
|
|
18044
|
-
context: {},
|
|
18045
|
-
packages: {},
|
|
18046
|
-
type: "error",
|
|
18047
|
-
metadata: {
|
|
18048
|
-
filename: "index.js",
|
|
18049
|
-
function: "Object.fetch",
|
|
18050
|
-
in_app_frame_mix: "in-app-only",
|
|
18051
|
-
type: "Error",
|
|
18052
|
-
value: "Tool list_organizations is already registered"
|
|
18053
|
-
},
|
|
18054
|
-
tags: [
|
|
18055
|
-
{
|
|
18056
|
-
key: "environment",
|
|
18057
|
-
value: "development"
|
|
18058
|
-
},
|
|
18059
|
-
{
|
|
18060
|
-
key: "handled",
|
|
18061
|
-
value: "no"
|
|
18062
|
-
},
|
|
18063
|
-
{
|
|
18064
|
-
key: "level",
|
|
18065
|
-
value: "error"
|
|
18066
|
-
},
|
|
18067
|
-
{
|
|
18068
|
-
key: "mechanism",
|
|
18069
|
-
value: "cloudflare"
|
|
18070
|
-
},
|
|
18071
|
-
{
|
|
18072
|
-
key: "runtime.name",
|
|
18073
|
-
value: "cloudflare"
|
|
18074
|
-
},
|
|
18075
|
-
{
|
|
18076
|
-
key: "url",
|
|
18077
|
-
value: "https://mcp.sentry.dev/sse"
|
|
18078
|
-
}
|
|
18079
|
-
],
|
|
18080
|
-
platform: "javascript",
|
|
18081
|
-
dateReceived: "2025-04-08T21:15:04.700878Z",
|
|
18082
|
-
errors: [{
|
|
18083
|
-
type: "js_no_source",
|
|
18084
|
-
message: "Source code was not found",
|
|
18085
|
-
data: {
|
|
18086
|
-
symbolicator_type: "missing_source",
|
|
18087
|
-
url: "/index.js"
|
|
18088
|
-
}
|
|
18089
|
-
}],
|
|
18090
|
-
occurrence: null,
|
|
18091
|
-
_meta: {
|
|
18092
|
-
entries: { "1": { data: {
|
|
18093
|
-
"": null,
|
|
18094
|
-
apiTarget: null,
|
|
18095
|
-
method: null,
|
|
18096
|
-
url: null,
|
|
18097
|
-
query: null,
|
|
18098
|
-
data: null,
|
|
18099
|
-
headers: { "3": { "1": { "": {
|
|
18100
|
-
rem: [[
|
|
18101
|
-
"@password:filter",
|
|
18102
|
-
"s",
|
|
18103
|
-
0,
|
|
18104
|
-
10
|
|
18105
|
-
]],
|
|
18106
|
-
len: 64,
|
|
18107
|
-
chunks: [{
|
|
18108
|
-
type: "redaction",
|
|
18109
|
-
text: "[Filtered]",
|
|
18110
|
-
rule_id: "@password:filter",
|
|
18111
|
-
remark: "s"
|
|
18112
|
-
}]
|
|
18113
|
-
} } } },
|
|
18114
|
-
cookies: null,
|
|
18115
|
-
env: null
|
|
18116
|
-
} } },
|
|
18117
|
-
message: null,
|
|
18118
|
-
user: null,
|
|
18119
|
-
contexts: null,
|
|
18120
|
-
sdk: null,
|
|
18121
|
-
context: null,
|
|
18122
|
-
packages: null,
|
|
18123
|
-
tags: {}
|
|
18124
|
-
},
|
|
18125
|
-
crashFile: null,
|
|
18126
|
-
culprit: "Object.fetch(index)",
|
|
18127
|
-
dateCreated: "2025-04-08T21:15:04Z",
|
|
18128
|
-
fingerprints: ["60d1c667b173018c004e399b29dc927d"],
|
|
18129
|
-
groupingConfig: {
|
|
18130
|
-
enhancements: "KLUv_SAYwQAAkwKRs25ld3N0eWxlOjIwMjMtMDEtMTGQ",
|
|
18131
|
-
id: "newstyle:2023-01-11"
|
|
18132
|
-
},
|
|
18133
|
-
release: null,
|
|
18134
|
-
userReport: null,
|
|
18135
|
-
sdkUpdates: [],
|
|
18136
|
-
resolvedWith: [null],
|
|
18137
|
-
nextEventID: null,
|
|
18138
|
-
previousEventID: "b7ed18493f4f4817a217b03839d4c017"
|
|
18139
|
-
};
|
|
18140
18226
|
const EventsErrorsMeta = {
|
|
18141
18227
|
fields: {
|
|
18142
18228
|
"issue.id": "integer",
|
|
@@ -18298,344 +18384,455 @@ const EventsSpansPayload = {
|
|
|
18298
18384
|
{}
|
|
18299
18385
|
]
|
|
18300
18386
|
};
|
|
18301
|
-
|
|
18302
|
-
http.
|
|
18303
|
-
|
|
18304
|
-
|
|
18305
|
-
|
|
18306
|
-
|
|
18307
|
-
|
|
18308
|
-
|
|
18309
|
-
|
|
18310
|
-
|
|
18311
|
-
|
|
18312
|
-
|
|
18313
|
-
|
|
18314
|
-
|
|
18315
|
-
|
|
18316
|
-
|
|
18317
|
-
|
|
18318
|
-
|
|
18319
|
-
|
|
18320
|
-
|
|
18321
|
-
|
|
18322
|
-
|
|
18323
|
-
|
|
18324
|
-
|
|
18325
|
-
"member:read",
|
|
18326
|
-
"project:admin",
|
|
18327
|
-
"project:write",
|
|
18328
|
-
"org:integrations",
|
|
18329
|
-
"project:releases",
|
|
18330
|
-
"alerts:write",
|
|
18331
|
-
"event:admin",
|
|
18332
|
-
"project:read"
|
|
18333
|
-
],
|
|
18334
|
-
hasAccess: true,
|
|
18335
|
-
isPending: false,
|
|
18336
|
-
memberCount: 1,
|
|
18337
|
-
avatar: {
|
|
18338
|
-
avatarType: "letter_avatar",
|
|
18339
|
-
avatarUuid: null
|
|
18340
|
-
},
|
|
18341
|
-
externalTeams: [],
|
|
18342
|
-
projects: []
|
|
18343
|
-
}]);
|
|
18344
|
-
}),
|
|
18345
|
-
http.get("https://sentry.io/api/0/organizations/sentry-mcp-evals/projects/", () => {
|
|
18346
|
-
return HttpResponse.json([{
|
|
18347
|
-
team: {
|
|
18348
|
-
id: "4509106733776896",
|
|
18387
|
+
function buildHandlers(handlers) {
|
|
18388
|
+
return [...handlers.map((handler) => http[handler.method](`https://us.sentry.io${handler.path}`, handler.fetch)), ...handlers.map((handler) => http[handler.method](`https://sentry.io${handler.path}`, handler.fetch))];
|
|
18389
|
+
}
|
|
18390
|
+
const restHandlers = buildHandlers([
|
|
18391
|
+
{
|
|
18392
|
+
method: "get",
|
|
18393
|
+
path: "/api/0/organizations/",
|
|
18394
|
+
fetch: () => {
|
|
18395
|
+
return HttpResponse.json([OrganizationPayload]);
|
|
18396
|
+
}
|
|
18397
|
+
},
|
|
18398
|
+
{
|
|
18399
|
+
method: "get",
|
|
18400
|
+
path: "/api/0/organizations/sentry-mcp-evals/",
|
|
18401
|
+
fetch: () => {
|
|
18402
|
+
return HttpResponse.json(OrganizationPayload);
|
|
18403
|
+
}
|
|
18404
|
+
},
|
|
18405
|
+
{
|
|
18406
|
+
method: "get",
|
|
18407
|
+
path: "/api/0/organizations/sentry-mcp-evals/teams/",
|
|
18408
|
+
fetch: () => {
|
|
18409
|
+
return HttpResponse.json([{
|
|
18410
|
+
id: "4509106740854784",
|
|
18349
18411
|
slug: "the-goats",
|
|
18350
|
-
name: "the-goats"
|
|
18351
|
-
|
|
18352
|
-
|
|
18353
|
-
|
|
18412
|
+
name: "the-goats",
|
|
18413
|
+
dateCreated: "2025-04-06T14:11:23.961739Z",
|
|
18414
|
+
isMember: true,
|
|
18415
|
+
teamRole: "admin",
|
|
18416
|
+
flags: { "idp:provisioned": false },
|
|
18417
|
+
access: [
|
|
18418
|
+
"team:read",
|
|
18419
|
+
"alerts:read",
|
|
18420
|
+
"event:write",
|
|
18421
|
+
"team:write",
|
|
18422
|
+
"team:admin",
|
|
18423
|
+
"event:read",
|
|
18424
|
+
"org:read",
|
|
18425
|
+
"member:read",
|
|
18426
|
+
"project:admin",
|
|
18427
|
+
"project:write",
|
|
18428
|
+
"org:integrations",
|
|
18429
|
+
"project:releases",
|
|
18430
|
+
"alerts:write",
|
|
18431
|
+
"event:admin",
|
|
18432
|
+
"project:read"
|
|
18433
|
+
],
|
|
18434
|
+
hasAccess: true,
|
|
18435
|
+
isPending: false,
|
|
18436
|
+
memberCount: 1,
|
|
18437
|
+
avatar: {
|
|
18438
|
+
avatarType: "letter_avatar",
|
|
18439
|
+
avatarUuid: null
|
|
18440
|
+
},
|
|
18441
|
+
externalTeams: [],
|
|
18442
|
+
projects: []
|
|
18443
|
+
}]);
|
|
18444
|
+
}
|
|
18445
|
+
},
|
|
18446
|
+
{
|
|
18447
|
+
method: "get",
|
|
18448
|
+
path: "/api/0/organizations/sentry-mcp-evals/projects/",
|
|
18449
|
+
fetch: () => {
|
|
18450
|
+
return HttpResponse.json([{
|
|
18451
|
+
team: {
|
|
18452
|
+
id: "4509106733776896",
|
|
18453
|
+
slug: "the-goats",
|
|
18454
|
+
name: "the-goats"
|
|
18455
|
+
},
|
|
18456
|
+
teams: [{
|
|
18457
|
+
id: "4509106733776896",
|
|
18458
|
+
slug: "the-goats",
|
|
18459
|
+
name: "the-goats"
|
|
18460
|
+
}],
|
|
18461
|
+
id: "4509106749636608",
|
|
18462
|
+
name: "cloudflare-mcp",
|
|
18463
|
+
slug: "cloudflare-mcp",
|
|
18464
|
+
isBookmarked: false,
|
|
18465
|
+
isMember: true,
|
|
18466
|
+
access: [
|
|
18467
|
+
"event:admin",
|
|
18468
|
+
"alerts:read",
|
|
18469
|
+
"project:write",
|
|
18470
|
+
"org:integrations",
|
|
18471
|
+
"alerts:write",
|
|
18472
|
+
"member:read",
|
|
18473
|
+
"team:write",
|
|
18474
|
+
"project:read",
|
|
18475
|
+
"event:read",
|
|
18476
|
+
"event:write",
|
|
18477
|
+
"project:admin",
|
|
18478
|
+
"org:read",
|
|
18479
|
+
"team:admin",
|
|
18480
|
+
"project:releases",
|
|
18481
|
+
"team:read"
|
|
18482
|
+
],
|
|
18483
|
+
hasAccess: true,
|
|
18484
|
+
dateCreated: "2025-04-06T14:13:37.825970Z",
|
|
18485
|
+
environments: [],
|
|
18486
|
+
eventProcessing: { symbolicationDegraded: false },
|
|
18487
|
+
features: [
|
|
18488
|
+
"discard-groups",
|
|
18489
|
+
"alert-filters",
|
|
18490
|
+
"similarity-embeddings",
|
|
18491
|
+
"similarity-indexing",
|
|
18492
|
+
"similarity-view"
|
|
18493
|
+
],
|
|
18494
|
+
firstEvent: null,
|
|
18495
|
+
firstTransactionEvent: false,
|
|
18496
|
+
hasSessions: false,
|
|
18497
|
+
hasProfiles: false,
|
|
18498
|
+
hasReplays: false,
|
|
18499
|
+
hasFeedbacks: false,
|
|
18500
|
+
hasNewFeedbacks: false,
|
|
18501
|
+
hasMonitors: false,
|
|
18502
|
+
hasMinifiedStackTrace: false,
|
|
18503
|
+
hasInsightsHttp: false,
|
|
18504
|
+
hasInsightsDb: false,
|
|
18505
|
+
hasInsightsAssets: false,
|
|
18506
|
+
hasInsightsAppStart: false,
|
|
18507
|
+
hasInsightsScreenLoad: false,
|
|
18508
|
+
hasInsightsVitals: false,
|
|
18509
|
+
hasInsightsCaches: false,
|
|
18510
|
+
hasInsightsQueues: false,
|
|
18511
|
+
hasInsightsLlmMonitoring: false,
|
|
18512
|
+
platform: "node",
|
|
18513
|
+
platforms: [],
|
|
18514
|
+
latestRelease: null,
|
|
18515
|
+
hasUserReports: false,
|
|
18516
|
+
hasFlags: false,
|
|
18517
|
+
latestDeploys: null
|
|
18518
|
+
}]);
|
|
18519
|
+
}
|
|
18520
|
+
},
|
|
18521
|
+
{
|
|
18522
|
+
method: "post",
|
|
18523
|
+
path: "/api/0/organizations/sentry-mcp-evals/teams/",
|
|
18524
|
+
fetch: () => {
|
|
18525
|
+
return HttpResponse.json({
|
|
18526
|
+
id: "4509109078196224",
|
|
18354
18527
|
slug: "the-goats",
|
|
18355
|
-
name: "the-goats"
|
|
18356
|
-
|
|
18357
|
-
|
|
18358
|
-
|
|
18359
|
-
|
|
18360
|
-
|
|
18361
|
-
|
|
18362
|
-
|
|
18363
|
-
|
|
18364
|
-
|
|
18365
|
-
|
|
18366
|
-
|
|
18367
|
-
|
|
18368
|
-
|
|
18369
|
-
|
|
18370
|
-
|
|
18371
|
-
|
|
18372
|
-
|
|
18373
|
-
|
|
18374
|
-
|
|
18375
|
-
|
|
18376
|
-
|
|
18377
|
-
|
|
18378
|
-
|
|
18379
|
-
|
|
18380
|
-
|
|
18381
|
-
|
|
18382
|
-
|
|
18383
|
-
|
|
18384
|
-
|
|
18385
|
-
|
|
18386
|
-
|
|
18387
|
-
|
|
18388
|
-
|
|
18389
|
-
|
|
18390
|
-
|
|
18391
|
-
|
|
18392
|
-
|
|
18393
|
-
|
|
18394
|
-
|
|
18395
|
-
|
|
18396
|
-
|
|
18397
|
-
|
|
18398
|
-
|
|
18399
|
-
|
|
18400
|
-
|
|
18401
|
-
|
|
18402
|
-
|
|
18403
|
-
|
|
18404
|
-
|
|
18405
|
-
|
|
18406
|
-
|
|
18407
|
-
|
|
18408
|
-
|
|
18409
|
-
|
|
18410
|
-
|
|
18411
|
-
|
|
18412
|
-
|
|
18413
|
-
|
|
18414
|
-
|
|
18415
|
-
|
|
18416
|
-
|
|
18417
|
-
|
|
18418
|
-
|
|
18419
|
-
|
|
18420
|
-
|
|
18421
|
-
|
|
18422
|
-
|
|
18423
|
-
|
|
18424
|
-
|
|
18425
|
-
|
|
18426
|
-
|
|
18427
|
-
|
|
18428
|
-
|
|
18429
|
-
|
|
18430
|
-
|
|
18431
|
-
|
|
18432
|
-
|
|
18433
|
-
|
|
18434
|
-
|
|
18435
|
-
|
|
18436
|
-
|
|
18437
|
-
|
|
18438
|
-
|
|
18439
|
-
|
|
18440
|
-
|
|
18441
|
-
|
|
18442
|
-
|
|
18443
|
-
|
|
18444
|
-
|
|
18445
|
-
|
|
18446
|
-
|
|
18447
|
-
|
|
18528
|
+
name: "the-goats",
|
|
18529
|
+
dateCreated: "2025-04-07T00:05:48.196710Z",
|
|
18530
|
+
isMember: true,
|
|
18531
|
+
teamRole: "admin",
|
|
18532
|
+
flags: { "idp:provisioned": false },
|
|
18533
|
+
access: [
|
|
18534
|
+
"event:read",
|
|
18535
|
+
"org:integrations",
|
|
18536
|
+
"org:read",
|
|
18537
|
+
"member:read",
|
|
18538
|
+
"alerts:write",
|
|
18539
|
+
"event:admin",
|
|
18540
|
+
"team:admin",
|
|
18541
|
+
"project:releases",
|
|
18542
|
+
"team:read",
|
|
18543
|
+
"project:write",
|
|
18544
|
+
"event:write",
|
|
18545
|
+
"team:write",
|
|
18546
|
+
"project:read",
|
|
18547
|
+
"project:admin",
|
|
18548
|
+
"alerts:read"
|
|
18549
|
+
],
|
|
18550
|
+
hasAccess: true,
|
|
18551
|
+
isPending: false,
|
|
18552
|
+
memberCount: 1,
|
|
18553
|
+
avatar: {
|
|
18554
|
+
avatarType: "letter_avatar",
|
|
18555
|
+
avatarUuid: null
|
|
18556
|
+
}
|
|
18557
|
+
});
|
|
18558
|
+
}
|
|
18559
|
+
},
|
|
18560
|
+
{
|
|
18561
|
+
method: "post",
|
|
18562
|
+
path: "/api/0/teams/sentry-mcp-evals/the-goats/projects/",
|
|
18563
|
+
fetch: () => {
|
|
18564
|
+
return HttpResponse.json({
|
|
18565
|
+
id: "4509109104082945",
|
|
18566
|
+
slug: "cloudflare-mcp",
|
|
18567
|
+
name: "cloudflare-mcp",
|
|
18568
|
+
platform: "javascript",
|
|
18569
|
+
dateCreated: "2025-04-07T00:12:23.143074Z",
|
|
18570
|
+
isBookmarked: false,
|
|
18571
|
+
isMember: true,
|
|
18572
|
+
features: [
|
|
18573
|
+
"discard-groups",
|
|
18574
|
+
"alert-filters",
|
|
18575
|
+
"similarity-embeddings",
|
|
18576
|
+
"similarity-indexing",
|
|
18577
|
+
"similarity-view"
|
|
18578
|
+
],
|
|
18579
|
+
firstEvent: null,
|
|
18580
|
+
firstTransactionEvent: false,
|
|
18581
|
+
access: [
|
|
18582
|
+
"team:write",
|
|
18583
|
+
"alerts:write",
|
|
18584
|
+
"event:write",
|
|
18585
|
+
"org:read",
|
|
18586
|
+
"alerts:read",
|
|
18587
|
+
"event:admin",
|
|
18588
|
+
"project:admin",
|
|
18589
|
+
"event:read",
|
|
18590
|
+
"org:integrations",
|
|
18591
|
+
"project:read",
|
|
18592
|
+
"project:releases",
|
|
18593
|
+
"project:write",
|
|
18594
|
+
"member:read",
|
|
18595
|
+
"team:read",
|
|
18596
|
+
"team:admin"
|
|
18597
|
+
],
|
|
18598
|
+
hasAccess: true,
|
|
18599
|
+
hasMinifiedStackTrace: false,
|
|
18600
|
+
hasMonitors: false,
|
|
18601
|
+
hasProfiles: false,
|
|
18602
|
+
hasReplays: false,
|
|
18603
|
+
hasFeedbacks: false,
|
|
18604
|
+
hasFlags: false,
|
|
18605
|
+
hasNewFeedbacks: false,
|
|
18606
|
+
hasSessions: false,
|
|
18607
|
+
hasInsightsHttp: false,
|
|
18608
|
+
hasInsightsDb: false,
|
|
18609
|
+
hasInsightsAssets: false,
|
|
18610
|
+
hasInsightsAppStart: false,
|
|
18611
|
+
hasInsightsScreenLoad: false,
|
|
18612
|
+
hasInsightsVitals: false,
|
|
18613
|
+
hasInsightsCaches: false,
|
|
18614
|
+
hasInsightsQueues: false,
|
|
18615
|
+
hasInsightsLlmMonitoring: false,
|
|
18616
|
+
isInternal: false,
|
|
18617
|
+
isPublic: false,
|
|
18618
|
+
avatar: {
|
|
18619
|
+
avatarType: "letter_avatar",
|
|
18620
|
+
avatarUuid: null
|
|
18621
|
+
},
|
|
18622
|
+
color: "#bf3f55",
|
|
18623
|
+
status: "active"
|
|
18624
|
+
});
|
|
18625
|
+
}
|
|
18626
|
+
},
|
|
18627
|
+
{
|
|
18628
|
+
method: "post",
|
|
18629
|
+
path: "/api/0/projects/sentry-mcp-evals/cloudflare-mcp/keys/",
|
|
18630
|
+
fetch: () => {
|
|
18631
|
+
return HttpResponse.json(ClientKeyPayload);
|
|
18632
|
+
}
|
|
18633
|
+
},
|
|
18634
|
+
{
|
|
18635
|
+
method: "get",
|
|
18636
|
+
path: "/api/0/projects/sentry-mcp-evals/cloudflare-mcp/keys/",
|
|
18637
|
+
fetch: () => {
|
|
18638
|
+
return HttpResponse.json([ClientKeyPayload]);
|
|
18639
|
+
}
|
|
18640
|
+
},
|
|
18641
|
+
{
|
|
18642
|
+
method: "get",
|
|
18643
|
+
path: "/api/0/organizations/sentry-mcp-evals/events/",
|
|
18644
|
+
fetch: async ({ request }) => {
|
|
18645
|
+
const url = new URL(request.url);
|
|
18646
|
+
const dataset = url.searchParams.get("dataset");
|
|
18647
|
+
const query = url.searchParams.get("query");
|
|
18648
|
+
const fields = url.searchParams.getAll("field");
|
|
18649
|
+
if (dataset === "spans") {
|
|
18650
|
+
if (query !== "is_transaction:true") return HttpResponse.json(EmptyEventsSpansPayload);
|
|
18651
|
+
if (url.searchParams.get("useRpc") !== "1") return HttpResponse.json("Invalid useRpc", { status: 400 });
|
|
18652
|
+
if (!fields.includes("id") || !fields.includes("trace") || !fields.includes("span.op") || !fields.includes("span.description") || !fields.includes("span.duration")) return HttpResponse.json("Invalid fields", { status: 400 });
|
|
18653
|
+
return HttpResponse.json(EventsSpansPayload);
|
|
18448
18654
|
}
|
|
18449
|
-
|
|
18450
|
-
|
|
18451
|
-
|
|
18452
|
-
|
|
18453
|
-
|
|
18454
|
-
|
|
18455
|
-
|
|
18456
|
-
|
|
18457
|
-
|
|
18458
|
-
|
|
18459
|
-
|
|
18460
|
-
|
|
18461
|
-
|
|
18462
|
-
|
|
18463
|
-
|
|
18464
|
-
|
|
18465
|
-
|
|
18466
|
-
|
|
18467
|
-
firstEvent: null,
|
|
18468
|
-
firstTransactionEvent: false,
|
|
18469
|
-
access: [
|
|
18470
|
-
"team:write",
|
|
18471
|
-
"alerts:write",
|
|
18472
|
-
"event:write",
|
|
18473
|
-
"org:read",
|
|
18474
|
-
"alerts:read",
|
|
18475
|
-
"event:admin",
|
|
18476
|
-
"project:admin",
|
|
18477
|
-
"event:read",
|
|
18478
|
-
"org:integrations",
|
|
18479
|
-
"project:read",
|
|
18480
|
-
"project:releases",
|
|
18481
|
-
"project:write",
|
|
18482
|
-
"member:read",
|
|
18483
|
-
"team:read",
|
|
18484
|
-
"team:admin"
|
|
18485
|
-
],
|
|
18486
|
-
hasAccess: true,
|
|
18487
|
-
hasMinifiedStackTrace: false,
|
|
18488
|
-
hasMonitors: false,
|
|
18489
|
-
hasProfiles: false,
|
|
18490
|
-
hasReplays: false,
|
|
18491
|
-
hasFeedbacks: false,
|
|
18492
|
-
hasFlags: false,
|
|
18493
|
-
hasNewFeedbacks: false,
|
|
18494
|
-
hasSessions: false,
|
|
18495
|
-
hasInsightsHttp: false,
|
|
18496
|
-
hasInsightsDb: false,
|
|
18497
|
-
hasInsightsAssets: false,
|
|
18498
|
-
hasInsightsAppStart: false,
|
|
18499
|
-
hasInsightsScreenLoad: false,
|
|
18500
|
-
hasInsightsVitals: false,
|
|
18501
|
-
hasInsightsCaches: false,
|
|
18502
|
-
hasInsightsQueues: false,
|
|
18503
|
-
hasInsightsLlmMonitoring: false,
|
|
18504
|
-
isInternal: false,
|
|
18505
|
-
isPublic: false,
|
|
18506
|
-
avatar: {
|
|
18507
|
-
avatarType: "letter_avatar",
|
|
18508
|
-
avatarUuid: null
|
|
18509
|
-
},
|
|
18510
|
-
color: "#bf3f55",
|
|
18511
|
-
status: "active"
|
|
18512
|
-
});
|
|
18513
|
-
}),
|
|
18514
|
-
http.post("https://sentry.io/api/0/projects/sentry-mcp-evals/cloudflare-mcp/keys/", () => {
|
|
18515
|
-
return HttpResponse.json(ClientKeyPayload);
|
|
18516
|
-
}),
|
|
18517
|
-
http.get("https://sentry.io/api/0/projects/sentry-mcp-evals/cloudflare-mcp/keys/", () => {
|
|
18518
|
-
return HttpResponse.json([ClientKeyPayload]);
|
|
18519
|
-
}),
|
|
18520
|
-
http.get("https://sentry.io/api/0/organizations/sentry-mcp-evals/events/", async ({ request }) => {
|
|
18521
|
-
const url = new URL(request.url);
|
|
18522
|
-
const dataset = url.searchParams.get("dataset");
|
|
18523
|
-
const query = url.searchParams.get("query");
|
|
18524
|
-
const fields = url.searchParams.getAll("field");
|
|
18525
|
-
if (dataset === "spans") {
|
|
18526
|
-
if (query !== "is_transaction:true") return HttpResponse.json(EmptyEventsSpansPayload);
|
|
18527
|
-
if (url.searchParams.get("useRpc") !== "1") return HttpResponse.json("Invalid useRpc", { status: 400 });
|
|
18528
|
-
if (!fields.includes("id") || !fields.includes("trace") || !fields.includes("span.op") || !fields.includes("span.description") || !fields.includes("span.duration")) return HttpResponse.json("Invalid fields", { status: 400 });
|
|
18529
|
-
return HttpResponse.json(EventsSpansPayload);
|
|
18655
|
+
if (dataset === "errors") {
|
|
18656
|
+
if (!fields.includes("issue") || !fields.includes("title") || !fields.includes("project") || !fields.includes("last_seen()") || !fields.includes("count()")) return HttpResponse.json("Invalid fields", { status: 400 });
|
|
18657
|
+
if (!["-count", "-last_seen"].includes(url.searchParams.get("sort"))) return HttpResponse.json("Invalid sort", { status: 400 });
|
|
18658
|
+
const sortedQuery = query ? query?.split(" ").sort().join(" ") : null;
|
|
18659
|
+
if (![
|
|
18660
|
+
null,
|
|
18661
|
+
"",
|
|
18662
|
+
"error.handled:false",
|
|
18663
|
+
"error.unhandled:true",
|
|
18664
|
+
"error.handled:false is:unresolved",
|
|
18665
|
+
"error.unhandled:true is:unresolved",
|
|
18666
|
+
"is:unresolved project:cloudflare-mcp",
|
|
18667
|
+
"project:cloudflare-mcp",
|
|
18668
|
+
"user.email:david@sentry.io"
|
|
18669
|
+
].includes(sortedQuery)) return HttpResponse.json(EmptyEventsErrorsPayload);
|
|
18670
|
+
return HttpResponse.json(EventsErrorsPayload);
|
|
18671
|
+
}
|
|
18672
|
+
return HttpResponse.json("Invalid dataset", { status: 400 });
|
|
18530
18673
|
}
|
|
18531
|
-
|
|
18532
|
-
|
|
18533
|
-
|
|
18534
|
-
|
|
18674
|
+
},
|
|
18675
|
+
{
|
|
18676
|
+
method: "get",
|
|
18677
|
+
path: "/api/0/projects/sentry-mcp-evals/foobar/issues/",
|
|
18678
|
+
fetch: () => HttpResponse.json([])
|
|
18679
|
+
},
|
|
18680
|
+
{
|
|
18681
|
+
method: "get",
|
|
18682
|
+
path: "/api/0/projects/sentry-mcp-evals/cloudflare-mcp/issues/",
|
|
18683
|
+
fetch: ({ request }) => {
|
|
18684
|
+
const url = new URL(request.url);
|
|
18685
|
+
const sort = url.searchParams.get("sort");
|
|
18686
|
+
if (![
|
|
18687
|
+
null,
|
|
18688
|
+
"user",
|
|
18689
|
+
"freq",
|
|
18690
|
+
"date",
|
|
18691
|
+
"new",
|
|
18692
|
+
null
|
|
18693
|
+
].includes(sort)) return HttpResponse.json(`Invalid sort: ${url.searchParams.get("sort")}`, { status: 400 });
|
|
18694
|
+
const collapse = url.searchParams.getAll("collapse");
|
|
18695
|
+
if (collapse.includes("stats")) return HttpResponse.json(`Invalid collapse: ${collapse.join(",")}`, { status: 400 });
|
|
18696
|
+
const query = url.searchParams.get("query");
|
|
18697
|
+
const queryTokens = query?.split(" ").sort() ?? [];
|
|
18698
|
+
const sortedQuery = queryTokens ? queryTokens.join(" ") : null;
|
|
18535
18699
|
if (![
|
|
18536
18700
|
null,
|
|
18537
18701
|
"",
|
|
18538
|
-
"
|
|
18539
|
-
"error.unhandled:true",
|
|
18702
|
+
"is:unresolved",
|
|
18540
18703
|
"error.handled:false is:unresolved",
|
|
18541
18704
|
"error.unhandled:true is:unresolved",
|
|
18542
|
-
"is:unresolved project:cloudflare-mcp",
|
|
18543
|
-
"project:cloudflare-mcp",
|
|
18544
18705
|
"user.email:david@sentry.io"
|
|
18545
|
-
].includes(sortedQuery)) return HttpResponse.json(
|
|
18546
|
-
return HttpResponse.json(
|
|
18706
|
+
].includes(sortedQuery)) return HttpResponse.json([]);
|
|
18707
|
+
if (queryTokens.includes("user.email:david@sentry.io")) return HttpResponse.json([issue_default]);
|
|
18708
|
+
if (sort === "date") return HttpResponse.json([issue_default, issueFixture2]);
|
|
18709
|
+
return HttpResponse.json([issueFixture2, issue_default]);
|
|
18547
18710
|
}
|
|
18548
|
-
|
|
18549
|
-
|
|
18550
|
-
|
|
18551
|
-
|
|
18552
|
-
|
|
18553
|
-
|
|
18554
|
-
|
|
18555
|
-
|
|
18556
|
-
|
|
18557
|
-
|
|
18558
|
-
|
|
18559
|
-
|
|
18560
|
-
|
|
18561
|
-
|
|
18562
|
-
|
|
18563
|
-
|
|
18564
|
-
|
|
18565
|
-
|
|
18566
|
-
|
|
18567
|
-
|
|
18568
|
-
|
|
18569
|
-
|
|
18570
|
-
|
|
18571
|
-
|
|
18572
|
-
|
|
18573
|
-
|
|
18574
|
-
|
|
18575
|
-
|
|
18576
|
-
|
|
18577
|
-
|
|
18578
|
-
|
|
18579
|
-
|
|
18580
|
-
|
|
18581
|
-
|
|
18582
|
-
|
|
18583
|
-
|
|
18584
|
-
|
|
18585
|
-
"freq",
|
|
18586
|
-
"date",
|
|
18587
|
-
"new",
|
|
18588
|
-
null
|
|
18589
|
-
].includes(sort)) return HttpResponse.json(`Invalid sort: ${url.searchParams.get("sort")}`, { status: 400 });
|
|
18590
|
-
const collapse = url.searchParams.getAll("collapse");
|
|
18591
|
-
if (collapse.includes("stats")) return HttpResponse.json(`Invalid collapse: ${collapse.join(",")}`, { status: 400 });
|
|
18592
|
-
const query = url.searchParams.get("query");
|
|
18593
|
-
const queryTokens = query?.split(" ").sort() ?? [];
|
|
18594
|
-
const sortedQuery = queryTokens ? queryTokens.join(" ") : null;
|
|
18595
|
-
if (query === "7ca573c0f4814912aaa9bdc77d1a7d51") return HttpResponse.json([IssuePayload]);
|
|
18596
|
-
if (![
|
|
18597
|
-
null,
|
|
18598
|
-
"",
|
|
18599
|
-
"is:unresolved",
|
|
18600
|
-
"error.handled:false is:unresolved",
|
|
18601
|
-
"error.unhandled:true is:unresolved",
|
|
18602
|
-
"project:cloudflare-mcp",
|
|
18603
|
-
"is:unresolved project:cloudflare-mcp",
|
|
18604
|
-
"user.email:david@sentry.io"
|
|
18605
|
-
].includes(sortedQuery)) {
|
|
18606
|
-
if (queryTokens.includes("project:remote-mcp")) return HttpResponse.json({ detail: "Invalid query. Project(s) remote-mcp do not exist or are not actively selected." }, { status: 400 });
|
|
18607
|
-
return HttpResponse.json([]);
|
|
18711
|
+
},
|
|
18712
|
+
{
|
|
18713
|
+
method: "get",
|
|
18714
|
+
path: "/api/0/organizations/sentry-mcp-evals/issues/",
|
|
18715
|
+
fetch: ({ request }) => {
|
|
18716
|
+
const url = new URL(request.url);
|
|
18717
|
+
const sort = url.searchParams.get("sort");
|
|
18718
|
+
if (![
|
|
18719
|
+
null,
|
|
18720
|
+
"user",
|
|
18721
|
+
"freq",
|
|
18722
|
+
"date",
|
|
18723
|
+
"new",
|
|
18724
|
+
null
|
|
18725
|
+
].includes(sort)) return HttpResponse.json(`Invalid sort: ${url.searchParams.get("sort")}`, { status: 400 });
|
|
18726
|
+
const collapse = url.searchParams.getAll("collapse");
|
|
18727
|
+
if (collapse.includes("stats")) return HttpResponse.json(`Invalid collapse: ${collapse.join(",")}`, { status: 400 });
|
|
18728
|
+
const query = url.searchParams.get("query");
|
|
18729
|
+
const queryTokens = query?.split(" ").sort() ?? [];
|
|
18730
|
+
const sortedQuery = queryTokens ? queryTokens.join(" ") : null;
|
|
18731
|
+
if (query === "7ca573c0f4814912aaa9bdc77d1a7d51") return HttpResponse.json([issue_default]);
|
|
18732
|
+
if (![
|
|
18733
|
+
null,
|
|
18734
|
+
"",
|
|
18735
|
+
"is:unresolved",
|
|
18736
|
+
"error.handled:false is:unresolved",
|
|
18737
|
+
"error.unhandled:true is:unresolved",
|
|
18738
|
+
"project:cloudflare-mcp",
|
|
18739
|
+
"is:unresolved project:cloudflare-mcp",
|
|
18740
|
+
"user.email:david@sentry.io"
|
|
18741
|
+
].includes(sortedQuery)) {
|
|
18742
|
+
if (queryTokens.includes("project:remote-mcp")) return HttpResponse.json({ detail: "Invalid query. Project(s) remote-mcp do not exist or are not actively selected." }, { status: 400 });
|
|
18743
|
+
return HttpResponse.json([]);
|
|
18744
|
+
}
|
|
18745
|
+
if (queryTokens.includes("user.email:david@sentry.io")) return HttpResponse.json([issue_default]);
|
|
18746
|
+
if (sort === "date") return HttpResponse.json([issue_default, issueFixture2]);
|
|
18747
|
+
return HttpResponse.json([issueFixture2, issue_default]);
|
|
18608
18748
|
}
|
|
18609
|
-
|
|
18610
|
-
|
|
18611
|
-
|
|
18612
|
-
|
|
18613
|
-
|
|
18614
|
-
|
|
18615
|
-
|
|
18616
|
-
|
|
18617
|
-
|
|
18618
|
-
|
|
18619
|
-
|
|
18620
|
-
|
|
18621
|
-
|
|
18622
|
-
|
|
18623
|
-
|
|
18624
|
-
|
|
18625
|
-
|
|
18626
|
-
|
|
18627
|
-
|
|
18628
|
-
|
|
18629
|
-
|
|
18630
|
-
|
|
18631
|
-
|
|
18632
|
-
|
|
18633
|
-
|
|
18634
|
-
}
|
|
18635
|
-
|
|
18636
|
-
|
|
18637
|
-
|
|
18638
|
-
|
|
18749
|
+
},
|
|
18750
|
+
{
|
|
18751
|
+
method: "get",
|
|
18752
|
+
path: "/api/0/organizations/sentry-mcp-evals/issues/CLOUDFLARE-MCP-41/",
|
|
18753
|
+
fetch: () => HttpResponse.json(issue_default)
|
|
18754
|
+
},
|
|
18755
|
+
{
|
|
18756
|
+
method: "get",
|
|
18757
|
+
path: "/api/0/organizations/sentry-mcp-evals/issues/6507376925/",
|
|
18758
|
+
fetch: () => HttpResponse.json(issue_default)
|
|
18759
|
+
},
|
|
18760
|
+
{
|
|
18761
|
+
method: "get",
|
|
18762
|
+
path: "/api/0/organizations/sentry-mcp-evals/issues/CLOUDFLARE-MCP-42/",
|
|
18763
|
+
fetch: () => HttpResponse.json(issueFixture2)
|
|
18764
|
+
},
|
|
18765
|
+
{
|
|
18766
|
+
method: "get",
|
|
18767
|
+
path: "/api/0/organizations/sentry-mcp-evals/issues/6507376926/",
|
|
18768
|
+
fetch: () => HttpResponse.json(issueFixture2)
|
|
18769
|
+
},
|
|
18770
|
+
{
|
|
18771
|
+
method: "get",
|
|
18772
|
+
path: "/api/0/organizations/sentry-mcp-evals/issues/CLOUDFLARE-MCP-41/events/7ca573c0f4814912aaa9bdc77d1a7d51/",
|
|
18773
|
+
fetch: () => HttpResponse.json(event_default)
|
|
18774
|
+
},
|
|
18775
|
+
{
|
|
18776
|
+
method: "get",
|
|
18777
|
+
path: "/api/0/organizations/sentry-mcp-evals/issues/CLOUDFLARE-MCP-41/events/latest/",
|
|
18778
|
+
fetch: () => HttpResponse.json(event_default)
|
|
18779
|
+
},
|
|
18780
|
+
{
|
|
18781
|
+
method: "get",
|
|
18782
|
+
path: "/api/0/organizations/sentry-mcp-evals/issues/6507376925/events/7ca573c0f4814912aaa9bdc77d1a7d51/",
|
|
18783
|
+
fetch: () => HttpResponse.json(event_default)
|
|
18784
|
+
},
|
|
18785
|
+
{
|
|
18786
|
+
method: "get",
|
|
18787
|
+
path: "/api/0/organizations/sentry-mcp-evals/issues/6507376925/events/latest/",
|
|
18788
|
+
fetch: () => HttpResponse.json(event_default)
|
|
18789
|
+
},
|
|
18790
|
+
{
|
|
18791
|
+
method: "get",
|
|
18792
|
+
path: "/api/0/organizations/sentry-mcp-evals/issues/CLOUDFLARE-MCP-42/events/latest/",
|
|
18793
|
+
fetch: () => HttpResponse.json(event_default)
|
|
18794
|
+
},
|
|
18795
|
+
{
|
|
18796
|
+
method: "get",
|
|
18797
|
+
path: "/api/0/organizations/sentry-mcp-evals/issues/6507376926/events/latest/",
|
|
18798
|
+
fetch: () => HttpResponse.json(event_default)
|
|
18799
|
+
},
|
|
18800
|
+
{
|
|
18801
|
+
method: "get",
|
|
18802
|
+
path: "/api/0/organizations/sentry-mcp-evals/releases/",
|
|
18803
|
+
fetch: () => HttpResponse.json([ReleasePayload])
|
|
18804
|
+
},
|
|
18805
|
+
{
|
|
18806
|
+
method: "get",
|
|
18807
|
+
path: "/api/0/projects/sentry-mcp-evals/cloudflare-mcp/releases/",
|
|
18808
|
+
fetch: () => HttpResponse.json([ReleasePayload])
|
|
18809
|
+
},
|
|
18810
|
+
{
|
|
18811
|
+
method: "get",
|
|
18812
|
+
path: "/api/0/organizations/sentry-mcp-evals/tags/",
|
|
18813
|
+
fetch: () => HttpResponse.json(tags_default)
|
|
18814
|
+
},
|
|
18815
|
+
{
|
|
18816
|
+
method: "get",
|
|
18817
|
+
path: "/api/0/organizations/sentry-mcp-evals/issues/6507376925/autofix/",
|
|
18818
|
+
fetch: () => HttpResponse.json(autofix_state_default)
|
|
18819
|
+
},
|
|
18820
|
+
{
|
|
18821
|
+
method: "get",
|
|
18822
|
+
path: "/api/0/organizations/sentry-mcp-evals/issues/PEATED-A8/autofix/",
|
|
18823
|
+
fetch: () => HttpResponse.json(autofix_state_default)
|
|
18824
|
+
},
|
|
18825
|
+
{
|
|
18826
|
+
method: "post",
|
|
18827
|
+
path: "/api/0/organizations/sentry-mcp-evals/issues/6507376925/autofix/",
|
|
18828
|
+
fetch: () => HttpResponse.json({ run_id: 123 })
|
|
18829
|
+
},
|
|
18830
|
+
{
|
|
18831
|
+
method: "post",
|
|
18832
|
+
path: "/api/0/organizations/sentry-mcp-evals/issues/PEATED-A8/autofix/",
|
|
18833
|
+
fetch: () => HttpResponse.json({ run_id: 123 })
|
|
18834
|
+
}
|
|
18835
|
+
]);
|
|
18639
18836
|
const mswServer = setupServer(...restHandlers);
|
|
18640
18837
|
|
|
18641
18838
|
//#endregion
|