@wp-playground/mcp 3.1.13 → 3.1.14

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/index.js CHANGED
@@ -6,7 +6,7 @@ import { randomUUID as ao } from "node:crypto";
6
6
  import Ss from "ajv";
7
7
  import { ZodOptional as co } from "zod";
8
8
  import { createRequire as uo } from "module";
9
- import { t as lo } from "./tool-executors-pMxJ1GXT.js";
9
+ import { t as lo } from "./tool-executors-B9DCzwoD.js";
10
10
  function _(t, e, n) {
11
11
  function r(a, c) {
12
12
  if (a._zod || Object.defineProperty(a, "_zod", {
@@ -131,7 +131,7 @@ function Rr(t) {
131
131
  function ho(t) {
132
132
  return t.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
133
133
  }
134
- const $s = "captureStackTrace" in Error ? Error.captureStackTrace : (...t) => {
134
+ const zs = "captureStackTrace" in Error ? Error.captureStackTrace : (...t) => {
135
135
  };
136
136
  function wt(t) {
137
137
  return typeof t == "object" && t !== null && !Array.isArray(t);
@@ -156,7 +156,7 @@ function it(t) {
156
156
  const n = e.prototype;
157
157
  return !(wt(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
158
158
  }
159
- function zs(t) {
159
+ function $s(t) {
160
160
  return it(t) ? { ...t } : Array.isArray(t) ? [...t] : t;
161
161
  }
162
162
  const mo = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
@@ -405,18 +405,18 @@ const cn = (t) => (e, n, r, s) => {
405
405
  throw new st();
406
406
  if (o.issues.length) {
407
407
  const a = new ((s == null ? void 0 : s.Err) ?? t)(o.issues.map((c) => He(c, i, Ue())));
408
- throw $s(a, s == null ? void 0 : s.callee), a;
408
+ throw zs(a, s == null ? void 0 : s.callee), a;
409
409
  }
410
410
  return o.value;
411
- }, $o = /* @__PURE__ */ cn(an), un = (t) => async (e, n, r, s) => {
411
+ }, zo = /* @__PURE__ */ cn(an), un = (t) => async (e, n, r, s) => {
412
412
  const i = r ? Object.assign(r, { async: !0 }) : { async: !0 };
413
413
  let o = e._zod.run({ value: n, issues: [] }, i);
414
414
  if (o instanceof Promise && (o = await o), o.issues.length) {
415
415
  const a = new ((s == null ? void 0 : s.Err) ?? t)(o.issues.map((c) => He(c, i, Ue())));
416
- throw $s(a, s == null ? void 0 : s.callee), a;
416
+ throw zs(a, s == null ? void 0 : s.callee), a;
417
417
  }
418
418
  return o.value;
419
- }, zo = /* @__PURE__ */ un(an), ln = (t) => (e, n, r) => {
419
+ }, $o = /* @__PURE__ */ un(an), ln = (t) => (e, n, r) => {
420
420
  const s = r ? { ...r, async: !1 } : { async: !1 }, i = e._zod.run({ value: n, issues: [] }, s);
421
421
  if (i instanceof Promise)
422
422
  throw new st();
@@ -443,7 +443,7 @@ const cn = (t) => (e, n, r, s) => {
443
443
  }, Io = (t) => (e, n, r) => ln(t)(e, n, r), Ao = (t) => async (e, n, r) => {
444
444
  const s = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
445
445
  return dn(t)(e, n, s);
446
- }, Zo = (t) => async (e, n, r) => dn(t)(e, n, r), jo = /^[cC][^\s-]{8,}$/, Mo = /^[0-9a-z]+$/, Lo = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, qo = /^[0-9a-vA-V]{20}$/, Do = /^[A-Za-z0-9]{27}$/, Uo = /^[a-zA-Z0-9_-]{21}$/, Ho = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Fo = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, $r = (t) => t ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${t}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, Vo = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Jo = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
446
+ }, Zo = (t) => async (e, n, r) => dn(t)(e, n, r), jo = /^[cC][^\s-]{8,}$/, Mo = /^[0-9a-z]+$/, Lo = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, qo = /^[0-9a-vA-V]{20}$/, Do = /^[A-Za-z0-9]{27}$/, Uo = /^[a-zA-Z0-9_-]{21}$/, Ho = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Fo = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, zr = (t) => t ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${t}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, Vo = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Jo = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
447
447
  function Wo() {
448
448
  return new RegExp(Jo, "u");
449
449
  }
@@ -880,9 +880,9 @@ const ka = {
880
880
  }[e.version];
881
881
  if (r === void 0)
882
882
  throw new Error(`Invalid UUID version: "${e.version}"`);
883
- e.pattern ?? (e.pattern = $r(r));
883
+ e.pattern ?? (e.pattern = zr(r));
884
884
  } else
885
- e.pattern ?? (e.pattern = $r());
885
+ e.pattern ?? (e.pattern = zr());
886
886
  ne.init(t, e);
887
887
  }), Pa = /* @__PURE__ */ _("$ZodEmail", (t, e) => {
888
888
  e.pattern ?? (e.pattern = Vo), ne.init(t, e);
@@ -918,9 +918,9 @@ const ka = {
918
918
  });
919
919
  }
920
920
  };
921
- }), $a = /* @__PURE__ */ _("$ZodEmoji", (t, e) => {
921
+ }), za = /* @__PURE__ */ _("$ZodEmoji", (t, e) => {
922
922
  e.pattern ?? (e.pattern = Wo()), ne.init(t, e);
923
- }), za = /* @__PURE__ */ _("$ZodNanoID", (t, e) => {
923
+ }), $a = /* @__PURE__ */ _("$ZodNanoID", (t, e) => {
924
924
  e.pattern ?? (e.pattern = Uo), ne.init(t, e);
925
925
  }), Ea = /* @__PURE__ */ _("$ZodCUID", (t, e) => {
926
926
  e.pattern ?? (e.pattern = jo), ne.init(t, e);
@@ -1105,7 +1105,7 @@ const Wa = /* @__PURE__ */ _("$ZodJWT", (t, e) => {
1105
1105
  inst: t
1106
1106
  }), n);
1107
1107
  });
1108
- function zr(t, e, n) {
1108
+ function $r(t, e, n) {
1109
1109
  t.issues.length && e.issues.push(...nt(n, t.issues)), e.value[n] = t.value;
1110
1110
  }
1111
1111
  const Xa = /* @__PURE__ */ _("$ZodArray", (t, e) => {
@@ -1125,7 +1125,7 @@ const Xa = /* @__PURE__ */ _("$ZodArray", (t, e) => {
1125
1125
  value: a,
1126
1126
  issues: []
1127
1127
  }, r);
1128
- c instanceof Promise ? i.push(c.then((u) => zr(u, n, o))) : zr(c, n, o);
1128
+ c instanceof Promise ? i.push(c.then((u) => $r(u, n, o))) : $r(c, n, o);
1129
1129
  }
1130
1130
  return i.length ? Promise.all(i).then(() => n) : n;
1131
1131
  };
@@ -1223,19 +1223,19 @@ const Us = /* @__PURE__ */ _("$ZodObject", (t, e) => {
1223
1223
  Us.init(t, e);
1224
1224
  const n = t._zod.parse, r = on(() => qs(e)), s = (m) => {
1225
1225
  var A;
1226
- const p = new wa(["shape", "payload", "ctx"]), S = r.value, T = (z) => {
1227
- const te = Rr(z);
1226
+ const p = new wa(["shape", "payload", "ctx"]), S = r.value, T = ($) => {
1227
+ const te = Rr($);
1228
1228
  return `shape[${te}]._zod.run({ value: input[${te}], issues: [] }, ctx)`;
1229
1229
  };
1230
1230
  p.write("const input = payload.value;");
1231
1231
  const j = /* @__PURE__ */ Object.create(null);
1232
1232
  let y = 0;
1233
- for (const z of S.keys)
1234
- j[z] = `key_${y++}`;
1233
+ for (const $ of S.keys)
1234
+ j[$] = `key_${y++}`;
1235
1235
  p.write("const newResult = {};");
1236
- for (const z of S.keys) {
1237
- const te = j[z], ue = Rr(z), G = m[z], _e = ((A = G == null ? void 0 : G._zod) == null ? void 0 : A.optout) === "optional";
1238
- p.write(`const ${te} = ${T(z)};`), _e ? p.write(`
1236
+ for (const $ of S.keys) {
1237
+ const te = j[$], ue = Rr($), G = m[$], _e = ((A = G == null ? void 0 : G._zod) == null ? void 0 : A.optout) === "optional";
1238
+ p.write(`const ${te} = ${T($)};`), _e ? p.write(`
1239
1239
  if (${te}.issues.length) {
1240
1240
  if (${ue} in input) {
1241
1241
  payload.issues = payload.issues.concat(${te}.issues.map(iss => ({
@@ -1273,7 +1273,7 @@ const Us = /* @__PURE__ */ _("$ZodObject", (t, e) => {
1273
1273
  }
1274
1274
  p.write("payload.value = newResult;"), p.write("return payload;");
1275
1275
  const v = p.compile();
1276
- return (z, te) => v(m, z, te);
1276
+ return ($, te) => v(m, $, te);
1277
1277
  };
1278
1278
  let i;
1279
1279
  const o = wt, a = !Ps.jitless, u = a && po.value, l = e.catchall;
@@ -1811,7 +1811,7 @@ function Rc(t, e) {
1811
1811
  });
1812
1812
  }
1813
1813
  // @__NO_SIDE_EFFECTS__
1814
- function $c(t, e) {
1814
+ function zc(t, e) {
1815
1815
  return new t({
1816
1816
  type: "string",
1817
1817
  format: "cuid",
@@ -1821,7 +1821,7 @@ function $c(t, e) {
1821
1821
  });
1822
1822
  }
1823
1823
  // @__NO_SIDE_EFFECTS__
1824
- function zc(t, e) {
1824
+ function $c(t, e) {
1825
1825
  return new t({
1826
1826
  type: "string",
1827
1827
  format: "cuid2",
@@ -2596,7 +2596,7 @@ const fu = (t, e = {}) => (n) => {
2596
2596
  ...a(o) ? o.allOf : [o]
2597
2597
  ];
2598
2598
  n.allOf = c;
2599
- }, $u = (t, e, n, r) => {
2599
+ }, zu = (t, e, n, r) => {
2600
2600
  const s = n, i = t._zod.def;
2601
2601
  s.type = "array";
2602
2602
  const o = e.target === "draft-2020-12" ? "prefixItems" : "items", a = e.target === "draft-2020-12" || e.target === "openapi-3.0" ? "items" : "additionalItems", c = i.items.map((m, p) => Q(m, e, {
@@ -2676,7 +2676,7 @@ const fu = (t, e = {}) => (n) => {
2676
2676
  Q(s.innerType, e, r);
2677
2677
  const i = e.seen.get(t);
2678
2678
  i.ref = s.innerType, n.readOnly = !0;
2679
- }, zu = (t, e, n, r) => {
2679
+ }, $u = (t, e, n, r) => {
2680
2680
  const s = t._zod.def;
2681
2681
  Q(s.innerType, e, r);
2682
2682
  const i = e.seen.get(t);
@@ -2719,7 +2719,7 @@ const fu = (t, e = {}) => (n) => {
2719
2719
  object: si,
2720
2720
  union: ii,
2721
2721
  intersection: oi,
2722
- tuple: $u,
2722
+ tuple: zu,
2723
2723
  record: ai,
2724
2724
  nullable: ci,
2725
2725
  nonoptional: ui,
@@ -2728,7 +2728,7 @@ const fu = (t, e = {}) => (n) => {
2728
2728
  catch: fi,
2729
2729
  pipe: hi,
2730
2730
  readonly: pi,
2731
- promise: zu,
2731
+ promise: $u,
2732
2732
  optional: Xn,
2733
2733
  lazy: Eu
2734
2734
  };
@@ -2813,9 +2813,9 @@ const Mu = (t, e) => {
2813
2813
  // enumerable: false,
2814
2814
  }
2815
2815
  });
2816
- }, $e = _("ZodError", Mu, {
2816
+ }, ze = _("ZodError", Mu, {
2817
2817
  Parent: Error
2818
- }), Lu = /* @__PURE__ */ cn($e), qu = /* @__PURE__ */ un($e), Du = /* @__PURE__ */ ln($e), Uu = /* @__PURE__ */ dn($e), Hu = /* @__PURE__ */ Eo($e), Fu = /* @__PURE__ */ No($e), Vu = /* @__PURE__ */ Oo($e), Ju = /* @__PURE__ */ Co($e), Wu = /* @__PURE__ */ xo($e), Bu = /* @__PURE__ */ Io($e), Gu = /* @__PURE__ */ Ao($e), Ku = /* @__PURE__ */ Zo($e), re = /* @__PURE__ */ _("ZodType", (t, e) => (X.init(t, e), Object.assign(t["~standard"], {
2818
+ }), Lu = /* @__PURE__ */ cn(ze), qu = /* @__PURE__ */ un(ze), Du = /* @__PURE__ */ ln(ze), Uu = /* @__PURE__ */ dn(ze), Hu = /* @__PURE__ */ Eo(ze), Fu = /* @__PURE__ */ No(ze), Vu = /* @__PURE__ */ Oo(ze), Ju = /* @__PURE__ */ Co(ze), Wu = /* @__PURE__ */ xo(ze), Bu = /* @__PURE__ */ Io(ze), Gu = /* @__PURE__ */ Ao(ze), Ku = /* @__PURE__ */ Zo(ze), re = /* @__PURE__ */ _("ZodType", (t, e) => (X.init(t, e), Object.assign(t["~standard"], {
2819
2819
  jsonSchema: {
2820
2820
  input: Vt(t, "input"),
2821
2821
  output: Vt(t, "output")
@@ -2827,7 +2827,7 @@ const Mu = (t, e) => {
2827
2827
  ]
2828
2828
  }), {
2829
2829
  parent: !0
2830
- }), t.with = t.check, t.clone = (n, r) => Me(t, n, r), t.brand = () => t, t.register = (n, r) => (n.add(t, r), t), t.parse = (n, r) => Lu(t, n, r, { callee: t.parse }), t.safeParse = (n, r) => Du(t, n, r), t.parseAsync = async (n, r) => qu(t, n, r, { callee: t.parseAsync }), t.safeParseAsync = async (n, r) => Uu(t, n, r), t.spa = t.safeParseAsync, t.encode = (n, r) => Hu(t, n, r), t.decode = (n, r) => Fu(t, n, r), t.encodeAsync = async (n, r) => Vu(t, n, r), t.decodeAsync = async (n, r) => Ju(t, n, r), t.safeEncode = (n, r) => Wu(t, n, r), t.safeDecode = (n, r) => Bu(t, n, r), t.safeEncodeAsync = async (n, r) => Gu(t, n, r), t.safeDecodeAsync = async (n, r) => Ku(t, n, r), t.refine = (n, r) => t.check(Dl(n, r)), t.superRefine = (n) => t.check(Ul(n)), t.overwrite = (n) => t.check(/* @__PURE__ */ ft(n)), t.optional = () => ce(t), t.exactOptional = () => zl(t), t.nullable = () => Fr(t), t.nullish = () => ce(Fr(t)), t.nonoptional = (n) => Il(t, n), t.array = () => F(t), t.or = (n) => ee([t, n]), t.and = (n) => er(t, n), t.transform = (n) => $n(t, ki(n)), t.default = (n) => Ol(t, n), t.prefault = (n) => xl(t, n), t.catch = (n) => Zl(t, n), t.pipe = (n) => $n(t, n), t.readonly = () => Ll(t), t.describe = (n) => {
2830
+ }), t.with = t.check, t.clone = (n, r) => Me(t, n, r), t.brand = () => t, t.register = (n, r) => (n.add(t, r), t), t.parse = (n, r) => Lu(t, n, r, { callee: t.parse }), t.safeParse = (n, r) => Du(t, n, r), t.parseAsync = async (n, r) => qu(t, n, r, { callee: t.parseAsync }), t.safeParseAsync = async (n, r) => Uu(t, n, r), t.spa = t.safeParseAsync, t.encode = (n, r) => Hu(t, n, r), t.decode = (n, r) => Fu(t, n, r), t.encodeAsync = async (n, r) => Vu(t, n, r), t.decodeAsync = async (n, r) => Ju(t, n, r), t.safeEncode = (n, r) => Wu(t, n, r), t.safeDecode = (n, r) => Bu(t, n, r), t.safeEncodeAsync = async (n, r) => Gu(t, n, r), t.safeDecodeAsync = async (n, r) => Ku(t, n, r), t.refine = (n, r) => t.check(Dl(n, r)), t.superRefine = (n) => t.check(Ul(n)), t.overwrite = (n) => t.check(/* @__PURE__ */ ft(n)), t.optional = () => ce(t), t.exactOptional = () => $l(t), t.nullable = () => Fr(t), t.nullish = () => ce(Fr(t)), t.nonoptional = (n) => Il(t, n), t.array = () => F(t), t.or = (n) => ee([t, n]), t.and = (n) => er(t, n), t.transform = (n) => zn(t, ki(n)), t.default = (n) => Ol(t, n), t.prefault = (n) => xl(t, n), t.catch = (n) => Zl(t, n), t.pipe = (n) => zn(t, n), t.readonly = () => Ll(t), t.describe = (n) => {
2831
2831
  const r = t.clone();
2832
2832
  return yt.add(r, { description: n }), r;
2833
2833
  }, Object.defineProperty(t, "description", {
@@ -2846,7 +2846,7 @@ const Mu = (t, e) => {
2846
2846
  const n = t._zod.bag;
2847
2847
  t.format = n.format ?? null, t.minLength = n.minimum ?? null, t.maxLength = n.maximum ?? null, t.regex = (...r) => t.check(/* @__PURE__ */ Kc(...r)), t.includes = (...r) => t.check(/* @__PURE__ */ Xc(...r)), t.startsWith = (...r) => t.check(/* @__PURE__ */ eu(...r)), t.endsWith = (...r) => t.check(/* @__PURE__ */ tu(...r)), t.min = (...r) => t.check(/* @__PURE__ */ Dt(...r)), t.max = (...r) => t.check(/* @__PURE__ */ Vs(...r)), t.length = (...r) => t.check(/* @__PURE__ */ Js(...r)), t.nonempty = (...r) => t.check(/* @__PURE__ */ Dt(1, ...r)), t.lowercase = (r) => t.check(/* @__PURE__ */ Yc(r)), t.uppercase = (r) => t.check(/* @__PURE__ */ Qc(r)), t.trim = () => t.check(/* @__PURE__ */ ru()), t.normalize = (...r) => t.check(/* @__PURE__ */ nu(...r)), t.toLowerCase = () => t.check(/* @__PURE__ */ su()), t.toUpperCase = () => t.check(/* @__PURE__ */ iu()), t.slugify = () => t.check(/* @__PURE__ */ ou());
2848
2848
  }), Yu = /* @__PURE__ */ _("ZodString", (t, e) => {
2849
- Qn.init(t, e), gi.init(t, e), t.email = (n) => t.check(/* @__PURE__ */ vc(Qu, n)), t.url = (n) => t.check(/* @__PURE__ */ Tc(Xu, n)), t.jwt = (n) => t.check(/* @__PURE__ */ Lc(pl, n)), t.emoji = (n) => t.check(/* @__PURE__ */ Pc(el, n)), t.guid = (n) => t.check(/* @__PURE__ */ jr(Ur, n)), t.uuid = (n) => t.check(/* @__PURE__ */ bc(jt, n)), t.uuidv4 = (n) => t.check(/* @__PURE__ */ wc(jt, n)), t.uuidv6 = (n) => t.check(/* @__PURE__ */ kc(jt, n)), t.uuidv7 = (n) => t.check(/* @__PURE__ */ Sc(jt, n)), t.nanoid = (n) => t.check(/* @__PURE__ */ Rc(tl, n)), t.guid = (n) => t.check(/* @__PURE__ */ jr(Ur, n)), t.cuid = (n) => t.check(/* @__PURE__ */ $c(nl, n)), t.cuid2 = (n) => t.check(/* @__PURE__ */ zc(rl, n)), t.ulid = (n) => t.check(/* @__PURE__ */ Ec(sl, n)), t.base64 = (n) => t.check(/* @__PURE__ */ Zc(dl, n)), t.base64url = (n) => t.check(/* @__PURE__ */ jc(fl, n)), t.xid = (n) => t.check(/* @__PURE__ */ Nc(il, n)), t.ksuid = (n) => t.check(/* @__PURE__ */ Oc(ol, n)), t.ipv4 = (n) => t.check(/* @__PURE__ */ Cc(al, n)), t.ipv6 = (n) => t.check(/* @__PURE__ */ xc(cl, n)), t.cidrv4 = (n) => t.check(/* @__PURE__ */ Ic(ul, n)), t.cidrv6 = (n) => t.check(/* @__PURE__ */ Ac(ll, n)), t.e164 = (n) => t.check(/* @__PURE__ */ Mc(hl, n)), t.datetime = (n) => t.check(mi(n)), t.date = (n) => t.check(xu(n)), t.time = (n) => t.check(Au(n)), t.duration = (n) => t.check(ju(n));
2849
+ Qn.init(t, e), gi.init(t, e), t.email = (n) => t.check(/* @__PURE__ */ vc(Qu, n)), t.url = (n) => t.check(/* @__PURE__ */ Tc(Xu, n)), t.jwt = (n) => t.check(/* @__PURE__ */ Lc(pl, n)), t.emoji = (n) => t.check(/* @__PURE__ */ Pc(el, n)), t.guid = (n) => t.check(/* @__PURE__ */ jr(Ur, n)), t.uuid = (n) => t.check(/* @__PURE__ */ bc(jt, n)), t.uuidv4 = (n) => t.check(/* @__PURE__ */ wc(jt, n)), t.uuidv6 = (n) => t.check(/* @__PURE__ */ kc(jt, n)), t.uuidv7 = (n) => t.check(/* @__PURE__ */ Sc(jt, n)), t.nanoid = (n) => t.check(/* @__PURE__ */ Rc(tl, n)), t.guid = (n) => t.check(/* @__PURE__ */ jr(Ur, n)), t.cuid = (n) => t.check(/* @__PURE__ */ zc(nl, n)), t.cuid2 = (n) => t.check(/* @__PURE__ */ $c(rl, n)), t.ulid = (n) => t.check(/* @__PURE__ */ Ec(sl, n)), t.base64 = (n) => t.check(/* @__PURE__ */ Zc(dl, n)), t.base64url = (n) => t.check(/* @__PURE__ */ jc(fl, n)), t.xid = (n) => t.check(/* @__PURE__ */ Nc(il, n)), t.ksuid = (n) => t.check(/* @__PURE__ */ Oc(ol, n)), t.ipv4 = (n) => t.check(/* @__PURE__ */ Cc(al, n)), t.ipv6 = (n) => t.check(/* @__PURE__ */ xc(cl, n)), t.cidrv4 = (n) => t.check(/* @__PURE__ */ Ic(ul, n)), t.cidrv6 = (n) => t.check(/* @__PURE__ */ Ac(ll, n)), t.e164 = (n) => t.check(/* @__PURE__ */ Mc(hl, n)), t.datetime = (n) => t.check(mi(n)), t.date = (n) => t.check(xu(n)), t.time = (n) => t.check(Au(n)), t.duration = (n) => t.check(ju(n));
2850
2850
  });
2851
2851
  function g(t) {
2852
2852
  return /* @__PURE__ */ yc(Yu, t);
@@ -2862,9 +2862,9 @@ const oe = /* @__PURE__ */ _("ZodStringFormat", (t, e) => {
2862
2862
  }), Xu = /* @__PURE__ */ _("ZodURL", (t, e) => {
2863
2863
  Ra.init(t, e), oe.init(t, e);
2864
2864
  }), el = /* @__PURE__ */ _("ZodEmoji", (t, e) => {
2865
- $a.init(t, e), oe.init(t, e);
2866
- }), tl = /* @__PURE__ */ _("ZodNanoID", (t, e) => {
2867
2865
  za.init(t, e), oe.init(t, e);
2866
+ }), tl = /* @__PURE__ */ _("ZodNanoID", (t, e) => {
2867
+ $a.init(t, e), oe.init(t, e);
2868
2868
  }), nl = /* @__PURE__ */ _("ZodCUID", (t, e) => {
2869
2869
  Ea.init(t, e), oe.init(t, e);
2870
2870
  }), rl = /* @__PURE__ */ _("ZodCUID2", (t, e) => {
@@ -3082,11 +3082,11 @@ function ce(t) {
3082
3082
  innerType: t
3083
3083
  });
3084
3084
  }
3085
- const $l = /* @__PURE__ */ _("ZodExactOptional", (t, e) => {
3085
+ const zl = /* @__PURE__ */ _("ZodExactOptional", (t, e) => {
3086
3086
  ac.init(t, e), re.init(t, e), t._zod.processJSONSchema = (n, r, s) => Xn(t, n, r, s), t.unwrap = () => t._zod.def.innerType;
3087
3087
  });
3088
- function zl(t) {
3089
- return new $l({
3088
+ function $l(t) {
3089
+ return new zl({
3090
3090
  type: "optional",
3091
3091
  innerType: t
3092
3092
  });
@@ -3108,7 +3108,7 @@ function Ol(t, e) {
3108
3108
  type: "default",
3109
3109
  innerType: t,
3110
3110
  get defaultValue() {
3111
- return typeof e == "function" ? e() : zs(e);
3111
+ return typeof e == "function" ? e() : $s(e);
3112
3112
  }
3113
3113
  });
3114
3114
  }
@@ -3120,7 +3120,7 @@ function xl(t, e) {
3120
3120
  type: "prefault",
3121
3121
  innerType: t,
3122
3122
  get defaultValue() {
3123
- return typeof e == "function" ? e() : zs(e);
3123
+ return typeof e == "function" ? e() : $s(e);
3124
3124
  }
3125
3125
  });
3126
3126
  }
@@ -3147,7 +3147,7 @@ function Zl(t, e) {
3147
3147
  const jl = /* @__PURE__ */ _("ZodPipe", (t, e) => {
3148
3148
  hc.init(t, e), re.init(t, e), t._zod.processJSONSchema = (n, r, s) => hi(t, n, r, s), t.in = e.in, t.out = e.out;
3149
3149
  });
3150
- function $n(t, e) {
3150
+ function zn(t, e) {
3151
3151
  return new jl({
3152
3152
  type: "pipe",
3153
3153
  in: t,
@@ -3177,9 +3177,9 @@ function Ul(t) {
3177
3177
  return /* @__PURE__ */ lu(t);
3178
3178
  }
3179
3179
  function Ri(t, e) {
3180
- return $n(ki(t), e);
3180
+ return zn(ki(t), e);
3181
3181
  }
3182
- const $i = "2025-11-25", Hl = [$i, "2025-06-18", "2025-03-26", "2024-11-05", "2024-10-07"], Ye = "io.modelcontextprotocol/related-task", hn = "2.0", pe = ql((t) => t !== null && (typeof t == "object" || typeof t == "function")), zi = ee([g(), Y().int()]), Ei = g();
3182
+ const zi = "2025-11-25", Hl = [zi, "2025-06-18", "2025-03-26", "2024-11-05", "2024-10-07"], Ye = "io.modelcontextprotocol/related-task", hn = "2.0", pe = ql((t) => t !== null && (typeof t == "object" || typeof t == "function")), $i = ee([g(), Y().int()]), Ei = g();
3183
3183
  we({
3184
3184
  /**
3185
3185
  * Time in milliseconds to keep task results available after completion.
@@ -3199,7 +3199,7 @@ const Fl = R({
3199
3199
  /**
3200
3200
  * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
3201
3201
  */
3202
- progressToken: zi.optional(),
3202
+ progressToken: $i.optional(),
3203
3203
  /**
3204
3204
  * If specified, this request is related to the provided task.
3205
3205
  */
@@ -3222,7 +3222,7 @@ const Fl = R({
3222
3222
  }), Jl = (t) => Rt.safeParse(t).success, me = R({
3223
3223
  method: g(),
3224
3224
  params: Re.loose().optional()
3225
- }), ze = R({
3225
+ }), $e = R({
3226
3226
  /**
3227
3227
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
3228
3228
  * for notes on _meta usage.
@@ -3230,7 +3230,7 @@ const Fl = R({
3230
3230
  _meta: tr.optional()
3231
3231
  }), Ee = R({
3232
3232
  method: g(),
3233
- params: ze.loose().optional()
3233
+ params: $e.loose().optional()
3234
3234
  }), ge = we({
3235
3235
  /**
3236
3236
  * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
@@ -3277,7 +3277,7 @@ const rr = R({
3277
3277
  rr
3278
3278
  ]);
3279
3279
  ee([nr, rr]);
3280
- const sr = ge.strict(), Kl = ze.extend({
3280
+ const sr = ge.strict(), Kl = $e.extend({
3281
3281
  /**
3282
3282
  * The ID of the request to cancel.
3283
3283
  *
@@ -3315,7 +3315,7 @@ const sr = ge.strict(), Kl = ze.extend({
3315
3315
  * If not provided, the client should assume the icon can be used with any theme.
3316
3316
  */
3317
3317
  theme: Pe(["light", "dark"]).optional()
3318
- }), $t = R({
3318
+ }), zt = R({
3319
3319
  /**
3320
3320
  * Optional set of sized icons that the client can display in a user interface.
3321
3321
  *
@@ -3342,7 +3342,7 @@ const sr = ge.strict(), Kl = ze.extend({
3342
3342
  title: g().optional()
3343
3343
  }), Ci = at.extend({
3344
3344
  ...at.shape,
3345
- ...$t.shape,
3345
+ ...zt.shape,
3346
3346
  version: g(),
3347
3347
  /**
3348
3348
  * An optional URL of the website for this implementation.
@@ -3516,7 +3516,7 @@ const sr = ge.strict(), Kl = ze.extend({
3516
3516
  instructions: g().optional()
3517
3517
  }), Ii = Ee.extend({
3518
3518
  method: C("notifications/initialized"),
3519
- params: ze.optional()
3519
+ params: $e.optional()
3520
3520
  }), or = me.extend({
3521
3521
  method: C("ping"),
3522
3522
  params: Re.optional()
@@ -3534,12 +3534,12 @@ const sr = ge.strict(), Kl = ze.extend({
3534
3534
  */
3535
3535
  message: ce(g())
3536
3536
  }), ad = R({
3537
- ...ze.shape,
3537
+ ...$e.shape,
3538
3538
  ...od.shape,
3539
3539
  /**
3540
3540
  * The progress token which was given in the initial request, used to associate this notification with the request that is proceeding.
3541
3541
  */
3542
- progressToken: zi
3542
+ progressToken: $i
3543
3543
  }), ar = Ee.extend({
3544
3544
  method: C("notifications/progress"),
3545
3545
  params: ad
@@ -3549,7 +3549,7 @@ const sr = ge.strict(), Kl = ze.extend({
3549
3549
  * If provided, the server should return results starting after this cursor.
3550
3550
  */
3551
3551
  cursor: Ei.optional()
3552
- }), zt = me.extend({
3552
+ }), $t = me.extend({
3553
3553
  params: cd.optional()
3554
3554
  }), Et = ge.extend({
3555
3555
  /**
@@ -3580,7 +3580,7 @@ const sr = ge.strict(), Kl = ze.extend({
3580
3580
  statusMessage: ce(g())
3581
3581
  }), mn = ge.extend({
3582
3582
  task: Nt
3583
- }), ld = ze.merge(Nt), Jt = Ee.extend({
3583
+ }), ld = $e.merge(Nt), Jt = Ee.extend({
3584
3584
  method: C("notifications/tasks/status"),
3585
3585
  params: ld
3586
3586
  }), cr = me.extend({
@@ -3595,7 +3595,7 @@ const sr = ge.strict(), Kl = ze.extend({
3595
3595
  })
3596
3596
  });
3597
3597
  ge.loose();
3598
- const dr = zt.extend({
3598
+ const dr = $t.extend({
3599
3599
  method: C("tasks/list")
3600
3600
  }), fr = Et.extend({
3601
3601
  tasks: F(Nt)
@@ -3649,7 +3649,7 @@ const dr = zt.extend({
3649
3649
  lastModified: mi({ offset: !0 }).optional()
3650
3650
  }), Mi = R({
3651
3651
  ...at.shape,
3652
- ...$t.shape,
3652
+ ...zt.shape,
3653
3653
  /**
3654
3654
  * The URI of this resource.
3655
3655
  */
@@ -3675,7 +3675,7 @@ const dr = zt.extend({
3675
3675
  _meta: ce(we({}))
3676
3676
  }), fd = R({
3677
3677
  ...at.shape,
3678
- ...$t.shape,
3678
+ ...zt.shape,
3679
3679
  /**
3680
3680
  * A URI template (according to RFC 6570) that can be used to construct resource URIs.
3681
3681
  */
@@ -3699,11 +3699,11 @@ const dr = zt.extend({
3699
3699
  * for notes on _meta usage.
3700
3700
  */
3701
3701
  _meta: ce(we({}))
3702
- }), zn = zt.extend({
3702
+ }), $n = $t.extend({
3703
3703
  method: C("resources/list")
3704
3704
  }), hd = Et.extend({
3705
3705
  resources: F(Mi)
3706
- }), En = zt.extend({
3706
+ }), En = $t.extend({
3707
3707
  method: C("resources/templates/list")
3708
3708
  }), pd = Et.extend({
3709
3709
  resourceTemplates: F(fd)
@@ -3721,14 +3721,14 @@ const dr = zt.extend({
3721
3721
  contents: F(ee([Zi, ji]))
3722
3722
  }), _d = Ee.extend({
3723
3723
  method: C("notifications/resources/list_changed"),
3724
- params: ze.optional()
3724
+ params: $e.optional()
3725
3725
  }), yd = mr, vd = me.extend({
3726
3726
  method: C("resources/subscribe"),
3727
3727
  params: yd
3728
3728
  }), bd = mr, wd = me.extend({
3729
3729
  method: C("resources/unsubscribe"),
3730
3730
  params: bd
3731
- }), kd = ze.extend({
3731
+ }), kd = $e.extend({
3732
3732
  /**
3733
3733
  * The URI of the resource that has been updated. This might be a sub-resource of the one that the client actually subscribed to.
3734
3734
  */
@@ -3751,7 +3751,7 @@ const dr = zt.extend({
3751
3751
  required: ce(he())
3752
3752
  }), Pd = R({
3753
3753
  ...at.shape,
3754
- ...$t.shape,
3754
+ ...zt.shape,
3755
3755
  /**
3756
3756
  * An optional description of what this prompt provides
3757
3757
  */
@@ -3765,11 +3765,11 @@ const dr = zt.extend({
3765
3765
  * for notes on _meta usage.
3766
3766
  */
3767
3767
  _meta: ce(we({}))
3768
- }), On = zt.extend({
3768
+ }), On = $t.extend({
3769
3769
  method: C("prompts/list")
3770
3770
  }), Rd = Et.extend({
3771
3771
  prompts: F(Pd)
3772
- }), $d = Re.extend({
3772
+ }), zd = Re.extend({
3773
3773
  /**
3774
3774
  * The name of the prompt or prompt template.
3775
3775
  */
@@ -3780,7 +3780,7 @@ const dr = zt.extend({
3780
3780
  arguments: ie(g(), g()).optional()
3781
3781
  }), Cn = me.extend({
3782
3782
  method: C("prompts/get"),
3783
- params: $d
3783
+ params: zd
3784
3784
  }), gr = R({
3785
3785
  type: C("text"),
3786
3786
  /**
@@ -3834,7 +3834,7 @@ const dr = zt.extend({
3834
3834
  * for notes on _meta usage.
3835
3835
  */
3836
3836
  _meta: ie(g(), se()).optional()
3837
- }), zd = R({
3837
+ }), $d = R({
3838
3838
  type: C("tool_use"),
3839
3839
  /**
3840
3840
  * The name of the tool to invoke.
@@ -3887,7 +3887,7 @@ const dr = zt.extend({
3887
3887
  messages: F(Od)
3888
3888
  }), xd = Ee.extend({
3889
3889
  method: C("notifications/prompts/list_changed"),
3890
- params: ze.optional()
3890
+ params: $e.optional()
3891
3891
  }), Id = R({
3892
3892
  /**
3893
3893
  * A human-readable title for the tool.
@@ -3938,7 +3938,7 @@ const dr = zt.extend({
3938
3938
  taskSupport: Pe(["required", "optional", "forbidden"]).optional()
3939
3939
  }), Li = R({
3940
3940
  ...at.shape,
3941
- ...$t.shape,
3941
+ ...zt.shape,
3942
3942
  /**
3943
3943
  * A human-readable description of the tool.
3944
3944
  */
@@ -3975,7 +3975,7 @@ const dr = zt.extend({
3975
3975
  * for notes on _meta usage.
3976
3976
  */
3977
3977
  _meta: ie(g(), se()).optional()
3978
- }), xn = zt.extend({
3978
+ }), xn = $t.extend({
3979
3979
  method: C("tools/list")
3980
3980
  }), Zd = Et.extend({
3981
3981
  tools: F(Li)
@@ -4026,7 +4026,7 @@ const jd = Rt.extend({
4026
4026
  params: jd
4027
4027
  }), Md = Ee.extend({
4028
4028
  method: C("notifications/tools/list_changed"),
4029
- params: ze.optional()
4029
+ params: $e.optional()
4030
4030
  });
4031
4031
  R({
4032
4032
  /**
@@ -4056,7 +4056,7 @@ const Bt = Pe(["debug", "info", "notice", "warning", "error", "critical", "alert
4056
4056
  }), qi = me.extend({
4057
4057
  method: C("logging/setLevel"),
4058
4058
  params: Ld
4059
- }), qd = ze.extend({
4059
+ }), qd = $e.extend({
4060
4060
  /**
4061
4061
  * The severity of this log message.
4062
4062
  */
@@ -4117,7 +4117,7 @@ const Bt = Pe(["debug", "info", "notice", "warning", "error", "critical", "alert
4117
4117
  gr,
4118
4118
  _r,
4119
4119
  yr,
4120
- zd,
4120
+ $d,
4121
4121
  Vd
4122
4122
  ]), Wd = R({
4123
4123
  role: Ot,
@@ -4321,7 +4321,7 @@ const Bt = Pe(["debug", "info", "notice", "warning", "error", "critical", "alert
4321
4321
  }), df = ee([uf, lf]), ff = me.extend({
4322
4322
  method: C("elicitation/create"),
4323
4323
  params: df
4324
- }), hf = ze.extend({
4324
+ }), hf = $e.extend({
4325
4325
  /**
4326
4326
  * The ID of the elicitation that completed.
4327
4327
  */
@@ -4425,7 +4425,7 @@ const bf = ge.extend({
4425
4425
  roots: F(wf)
4426
4426
  }), Sf = Ee.extend({
4427
4427
  method: C("notifications/roots/list_changed"),
4428
- params: ze.optional()
4428
+ params: $e.optional()
4429
4429
  });
4430
4430
  ee([
4431
4431
  or,
@@ -4434,7 +4434,7 @@ ee([
4434
4434
  qi,
4435
4435
  Cn,
4436
4436
  On,
4437
- zn,
4437
+ $n,
4438
4438
  En,
4439
4439
  Nn,
4440
4440
  vd,
@@ -4547,11 +4547,11 @@ class Pf {
4547
4547
  function Rf(t) {
4548
4548
  return Gl.parse(JSON.parse(t));
4549
4549
  }
4550
- function $f(t) {
4550
+ function zf(t) {
4551
4551
  return JSON.stringify(t) + `
4552
4552
  `;
4553
4553
  }
4554
- class zf {
4554
+ class $f {
4555
4555
  constructor(e = Tr.stdin, n = Tr.stdout) {
4556
4556
  this._stdin = e, this._stdout = n, this._readBuffer = new Pf(), this._started = !1, this._ondata = (r) => {
4557
4557
  this._readBuffer.append(r), this.processReadBuffer();
@@ -4586,7 +4586,7 @@ class zf {
4586
4586
  }
4587
4587
  send(e) {
4588
4588
  return new Promise((n) => {
4589
- const r = $f(e);
4589
+ const r = zf(e);
4590
4590
  this._stdout.write(r) ? n() : this._stdout.once("drain", n);
4591
4591
  });
4592
4592
  }
@@ -4639,18 +4639,31 @@ const Of = {
4639
4639
  title: "HTTP Request",
4640
4640
  errorPrefix: "Error making request",
4641
4641
  description: `Make an HTTP request to the WordPress site
4642
- running in Playground. Requests are authenticated
4643
- automatically via the browser session's cookie
4644
- store.
4642
+ running in Playground. REST API requests
4643
+ (/wp-json/* or ?rest_route=) are automatically
4644
+ authenticated with a valid nonce — no manual
4645
+ auth needed.
4646
+
4647
+ Tool selection guide:
4648
+ 1. Use this tool (playground_request) with the
4649
+ REST API for standard content CRUD — posts,
4650
+ pages, users, terms, comments, settings, etc.
4651
+ The REST API handles serialization, pagination,
4652
+ and field filtering for you.
4653
+ 2. Use playground_execute_php when the data you
4654
+ need is not exposed by the REST API (e.g.
4655
+ raw options, direct database queries, or
4656
+ custom table access).
4657
+ 3. Use this tool as a plain HTTP request (non-REST)
4658
+ when the HTTP layer itself matters: verifying
4659
+ redirects, status codes, cookies, or response
4660
+ headers.
4645
4661
 
4646
- Prefer playground_execute_php for reading WordPress
4647
- data (posts, options, plugin state) it is faster
4648
- and returns only what you echo. Use this tool only
4649
- when the HTTP layer itself is what you are testing,
4650
- for example: verifying that a URL returns a 301
4651
- redirect, that a form submission sets a cookie, or
4652
- that a REST endpoint returns the correct status
4653
- code.
4662
+ The response JSON contains three fields:
4663
+ - "text": the response body as a string
4664
+ - "httpStatusCode": HTTP status code (200, 404…)
4665
+ - "headers": response headers as key-value pairs
4666
+ Check "httpStatusCode" to determine success.
4654
4667
 
4655
4668
  Note: full HTML responses can be very large and may
4656
4669
  fill the context window. To change the URL the user
@@ -4681,7 +4694,9 @@ const Of = {
4681
4694
  {
4682
4695
  name: "headers",
4683
4696
  type: "object",
4684
- description: "Request headers as key-value pairs",
4697
+ description: `Request headers as string key-value
4698
+ pairs, e.g. {"Content-Type":
4699
+ "application/json"}`,
4685
4700
  required: !1,
4686
4701
  additionalProperties: !0
4687
4702
  },
@@ -5339,7 +5354,7 @@ var Wr;
5339
5354
  // second overwrites first
5340
5355
  });
5341
5356
  })(Wr || (Wr = {}));
5342
- const $ = J.arrayToEnum([
5357
+ const z = J.arrayToEnum([
5343
5358
  "string",
5344
5359
  "nan",
5345
5360
  "number",
@@ -5363,23 +5378,23 @@ const $ = J.arrayToEnum([
5363
5378
  ]), qe = (t) => {
5364
5379
  switch (typeof t) {
5365
5380
  case "undefined":
5366
- return $.undefined;
5381
+ return z.undefined;
5367
5382
  case "string":
5368
- return $.string;
5383
+ return z.string;
5369
5384
  case "number":
5370
- return Number.isNaN(t) ? $.nan : $.number;
5385
+ return Number.isNaN(t) ? z.nan : z.number;
5371
5386
  case "boolean":
5372
- return $.boolean;
5387
+ return z.boolean;
5373
5388
  case "function":
5374
- return $.function;
5389
+ return z.function;
5375
5390
  case "bigint":
5376
- return $.bigint;
5391
+ return z.bigint;
5377
5392
  case "symbol":
5378
- return $.symbol;
5393
+ return z.symbol;
5379
5394
  case "object":
5380
- return Array.isArray(t) ? $.array : t === null ? $.null : t.then && typeof t.then == "function" && t.catch && typeof t.catch == "function" ? $.promise : typeof Map < "u" && t instanceof Map ? $.map : typeof Set < "u" && t instanceof Set ? $.set : typeof Date < "u" && t instanceof Date ? $.date : $.object;
5395
+ return Array.isArray(t) ? z.array : t === null ? z.null : t.then && typeof t.then == "function" && t.catch && typeof t.catch == "function" ? z.promise : typeof Map < "u" && t instanceof Map ? z.map : typeof Set < "u" && t instanceof Set ? z.set : typeof Date < "u" && t instanceof Date ? z.date : z.object;
5381
5396
  default:
5382
- return $.unknown;
5397
+ return z.unknown;
5383
5398
  }
5384
5399
  }, w = J.arrayToEnum([
5385
5400
  "invalid_type",
@@ -5467,7 +5482,7 @@ const An = (t, e) => {
5467
5482
  let n;
5468
5483
  switch (t.code) {
5469
5484
  case w.invalid_type:
5470
- t.received === $.undefined ? n = "Required" : n = `Expected ${t.expected}, received ${t.received}`;
5485
+ t.received === z.undefined ? n = "Required" : n = `Expected ${t.expected}, received ${t.received}`;
5471
5486
  break;
5472
5487
  case w.invalid_literal:
5473
5488
  n = `Invalid literal value, expected ${JSON.stringify(t.expected, J.jsonStringifyReplacer)}`;
@@ -5901,11 +5916,11 @@ function ih(t, e) {
5901
5916
  }
5902
5917
  class Ze extends H {
5903
5918
  _parse(e) {
5904
- if (this._def.coerce && (e.data = String(e.data)), this._getType(e) !== $.string) {
5919
+ if (this._def.coerce && (e.data = String(e.data)), this._getType(e) !== z.string) {
5905
5920
  const i = this._getOrReturnCtx(e);
5906
5921
  return P(i, {
5907
5922
  code: w.invalid_type,
5908
- expected: $.string,
5923
+ expected: z.string,
5909
5924
  received: i.parsedType
5910
5925
  }), M;
5911
5926
  }
@@ -6291,11 +6306,11 @@ class St extends H {
6291
6306
  super(...arguments), this.min = this.gte, this.max = this.lte, this.step = this.multipleOf;
6292
6307
  }
6293
6308
  _parse(e) {
6294
- if (this._def.coerce && (e.data = Number(e.data)), this._getType(e) !== $.number) {
6309
+ if (this._def.coerce && (e.data = Number(e.data)), this._getType(e) !== z.number) {
6295
6310
  const i = this._getOrReturnCtx(e);
6296
6311
  return P(i, {
6297
6312
  code: w.invalid_type,
6298
- expected: $.number,
6313
+ expected: z.number,
6299
6314
  received: i.parsedType
6300
6315
  }), M;
6301
6316
  }
@@ -6469,7 +6484,7 @@ class Tt extends H {
6469
6484
  } catch {
6470
6485
  return this._getInvalidInput(e);
6471
6486
  }
6472
- if (this._getType(e) !== $.bigint)
6487
+ if (this._getType(e) !== z.bigint)
6473
6488
  return this._getInvalidInput(e);
6474
6489
  let r;
6475
6490
  const s = new be();
@@ -6497,7 +6512,7 @@ class Tt extends H {
6497
6512
  const n = this._getOrReturnCtx(e);
6498
6513
  return P(n, {
6499
6514
  code: w.invalid_type,
6500
- expected: $.bigint,
6515
+ expected: z.bigint,
6501
6516
  received: n.parsedType
6502
6517
  }), M;
6503
6518
  }
@@ -6593,11 +6608,11 @@ Tt.create = (t) => new Tt({
6593
6608
  });
6594
6609
  class Zn extends H {
6595
6610
  _parse(e) {
6596
- if (this._def.coerce && (e.data = !!e.data), this._getType(e) !== $.boolean) {
6611
+ if (this._def.coerce && (e.data = !!e.data), this._getType(e) !== z.boolean) {
6597
6612
  const r = this._getOrReturnCtx(e);
6598
6613
  return P(r, {
6599
6614
  code: w.invalid_type,
6600
- expected: $.boolean,
6615
+ expected: z.boolean,
6601
6616
  received: r.parsedType
6602
6617
  }), M;
6603
6618
  }
@@ -6611,11 +6626,11 @@ Zn.create = (t) => new Zn({
6611
6626
  });
6612
6627
  class Qt extends H {
6613
6628
  _parse(e) {
6614
- if (this._def.coerce && (e.data = new Date(e.data)), this._getType(e) !== $.date) {
6629
+ if (this._def.coerce && (e.data = new Date(e.data)), this._getType(e) !== z.date) {
6615
6630
  const i = this._getOrReturnCtx(e);
6616
6631
  return P(i, {
6617
6632
  code: w.invalid_type,
6618
- expected: $.date,
6633
+ expected: z.date,
6619
6634
  received: i.parsedType
6620
6635
  }), M;
6621
6636
  }
@@ -6689,11 +6704,11 @@ Qt.create = (t) => new Qt({
6689
6704
  });
6690
6705
  class Yr extends H {
6691
6706
  _parse(e) {
6692
- if (this._getType(e) !== $.symbol) {
6707
+ if (this._getType(e) !== z.symbol) {
6693
6708
  const r = this._getOrReturnCtx(e);
6694
6709
  return P(r, {
6695
6710
  code: w.invalid_type,
6696
- expected: $.symbol,
6711
+ expected: z.symbol,
6697
6712
  received: r.parsedType
6698
6713
  }), M;
6699
6714
  }
@@ -6706,11 +6721,11 @@ Yr.create = (t) => new Yr({
6706
6721
  });
6707
6722
  class Qr extends H {
6708
6723
  _parse(e) {
6709
- if (this._getType(e) !== $.undefined) {
6724
+ if (this._getType(e) !== z.undefined) {
6710
6725
  const r = this._getOrReturnCtx(e);
6711
6726
  return P(r, {
6712
6727
  code: w.invalid_type,
6713
- expected: $.undefined,
6728
+ expected: z.undefined,
6714
6729
  received: r.parsedType
6715
6730
  }), M;
6716
6731
  }
@@ -6723,11 +6738,11 @@ Qr.create = (t) => new Qr({
6723
6738
  });
6724
6739
  class Xr extends H {
6725
6740
  _parse(e) {
6726
- if (this._getType(e) !== $.null) {
6741
+ if (this._getType(e) !== z.null) {
6727
6742
  const r = this._getOrReturnCtx(e);
6728
6743
  return P(r, {
6729
6744
  code: w.invalid_type,
6730
- expected: $.null,
6745
+ expected: z.null,
6731
6746
  received: r.parsedType
6732
6747
  }), M;
6733
6748
  }
@@ -6767,7 +6782,7 @@ class Fe extends H {
6767
6782
  const n = this._getOrReturnCtx(e);
6768
6783
  return P(n, {
6769
6784
  code: w.invalid_type,
6770
- expected: $.never,
6785
+ expected: z.never,
6771
6786
  received: n.parsedType
6772
6787
  }), M;
6773
6788
  }
@@ -6778,11 +6793,11 @@ Fe.create = (t) => new Fe({
6778
6793
  });
6779
6794
  class ns extends H {
6780
6795
  _parse(e) {
6781
- if (this._getType(e) !== $.undefined) {
6796
+ if (this._getType(e) !== z.undefined) {
6782
6797
  const r = this._getOrReturnCtx(e);
6783
6798
  return P(r, {
6784
6799
  code: w.invalid_type,
6785
- expected: $.void,
6800
+ expected: z.void,
6786
6801
  received: r.parsedType
6787
6802
  }), M;
6788
6803
  }
@@ -6796,10 +6811,10 @@ ns.create = (t) => new ns({
6796
6811
  class xe extends H {
6797
6812
  _parse(e) {
6798
6813
  const { ctx: n, status: r } = this._processInputParams(e), s = this._def;
6799
- if (n.parsedType !== $.array)
6814
+ if (n.parsedType !== z.array)
6800
6815
  return P(n, {
6801
6816
  code: w.invalid_type,
6802
- expected: $.array,
6817
+ expected: z.array,
6803
6818
  received: n.parsedType
6804
6819
  }), M;
6805
6820
  if (s.exactLength !== null) {
@@ -6893,11 +6908,11 @@ class le extends H {
6893
6908
  return this._cached = { shape: e, keys: n }, this._cached;
6894
6909
  }
6895
6910
  _parse(e) {
6896
- if (this._getType(e) !== $.object) {
6911
+ if (this._getType(e) !== z.object) {
6897
6912
  const u = this._getOrReturnCtx(e);
6898
6913
  return P(u, {
6899
6914
  code: w.invalid_type,
6900
- expected: $.object,
6915
+ expected: z.object,
6901
6916
  received: u.parsedType
6902
6917
  }), M;
6903
6918
  }
@@ -7247,7 +7262,7 @@ function jn(t, e) {
7247
7262
  const n = qe(t), r = qe(e);
7248
7263
  if (t === e)
7249
7264
  return { valid: !0, data: t };
7250
- if (n === $.object && r === $.object) {
7265
+ if (n === z.object && r === z.object) {
7251
7266
  const s = J.objectKeys(e), i = J.objectKeys(t).filter((a) => s.indexOf(a) !== -1), o = { ...t, ...e };
7252
7267
  for (const a of i) {
7253
7268
  const c = jn(t[a], e[a]);
@@ -7256,7 +7271,7 @@ function jn(t, e) {
7256
7271
  o[a] = c.data;
7257
7272
  }
7258
7273
  return { valid: !0, data: o };
7259
- } else if (n === $.array && r === $.array) {
7274
+ } else if (n === z.array && r === z.array) {
7260
7275
  if (t.length !== e.length)
7261
7276
  return { valid: !1 };
7262
7277
  const s = [];
@@ -7267,7 +7282,7 @@ function jn(t, e) {
7267
7282
  s.push(c.data);
7268
7283
  }
7269
7284
  return { valid: !0, data: s };
7270
- } else return n === $.date && r === $.date && +t == +e ? { valid: !0, data: t } : { valid: !1 };
7285
+ } else return n === z.date && r === z.date && +t == +e ? { valid: !0, data: t } : { valid: !1 };
7271
7286
  }
7272
7287
  class en extends H {
7273
7288
  _parse(e) {
@@ -7310,10 +7325,10 @@ en.create = (t, e, n) => new en({
7310
7325
  class Qe extends H {
7311
7326
  _parse(e) {
7312
7327
  const { status: n, ctx: r } = this._processInputParams(e);
7313
- if (r.parsedType !== $.array)
7328
+ if (r.parsedType !== z.array)
7314
7329
  return P(r, {
7315
7330
  code: w.invalid_type,
7316
- expected: $.array,
7331
+ expected: z.array,
7317
7332
  received: r.parsedType
7318
7333
  }), M;
7319
7334
  if (r.data.length < this._def.items.length)
@@ -7366,10 +7381,10 @@ class tn extends H {
7366
7381
  }
7367
7382
  _parse(e) {
7368
7383
  const { status: n, ctx: r } = this._processInputParams(e);
7369
- if (r.parsedType !== $.object)
7384
+ if (r.parsedType !== z.object)
7370
7385
  return P(r, {
7371
7386
  code: w.invalid_type,
7372
- expected: $.object,
7387
+ expected: z.object,
7373
7388
  received: r.parsedType
7374
7389
  }), M;
7375
7390
  const s = [], i = this._def.keyType, o = this._def.valueType;
@@ -7407,10 +7422,10 @@ class rs extends H {
7407
7422
  }
7408
7423
  _parse(e) {
7409
7424
  const { status: n, ctx: r } = this._processInputParams(e);
7410
- if (r.parsedType !== $.map)
7425
+ if (r.parsedType !== z.map)
7411
7426
  return P(r, {
7412
7427
  code: w.invalid_type,
7413
- expected: $.map,
7428
+ expected: z.map,
7414
7429
  received: r.parsedType
7415
7430
  }), M;
7416
7431
  const s = this._def.keyType, i = this._def.valueType, o = [...r.data.entries()].map(([a, c], u) => ({
@@ -7449,10 +7464,10 @@ rs.create = (t, e, n) => new rs({
7449
7464
  class Pt extends H {
7450
7465
  _parse(e) {
7451
7466
  const { status: n, ctx: r } = this._processInputParams(e);
7452
- if (r.parsedType !== $.set)
7467
+ if (r.parsedType !== z.set)
7453
7468
  return P(r, {
7454
7469
  code: w.invalid_type,
7455
- expected: $.set,
7470
+ expected: z.set,
7456
7471
  received: r.parsedType
7457
7472
  }), M;
7458
7473
  const s = this._def;
@@ -7610,7 +7625,7 @@ ut.create = Ji;
7610
7625
  class os extends H {
7611
7626
  _parse(e) {
7612
7627
  const n = J.getValidEnumValues(this._def.values), r = this._getOrReturnCtx(e);
7613
- if (r.parsedType !== $.string && r.parsedType !== $.number) {
7628
+ if (r.parsedType !== z.string && r.parsedType !== z.number) {
7614
7629
  const s = J.objectValues(n);
7615
7630
  return P(r, {
7616
7631
  expected: J.joinValues(s),
@@ -7643,13 +7658,13 @@ class nn extends H {
7643
7658
  }
7644
7659
  _parse(e) {
7645
7660
  const { ctx: n } = this._processInputParams(e);
7646
- if (n.parsedType !== $.promise && n.common.async === !1)
7661
+ if (n.parsedType !== z.promise && n.common.async === !1)
7647
7662
  return P(n, {
7648
7663
  code: w.invalid_type,
7649
- expected: $.promise,
7664
+ expected: z.promise,
7650
7665
  received: n.parsedType
7651
7666
  }), M;
7652
- const r = n.parsedType === $.promise ? n.data : Promise.resolve(n.data);
7667
+ const r = n.parsedType === z.promise ? n.data : Promise.resolve(n.data);
7653
7668
  return Ne(r.then((s) => this._def.type.parseAsync(s, {
7654
7669
  path: n.path,
7655
7670
  errorMap: n.common.contextualErrorMap
@@ -7755,7 +7770,7 @@ lt.createWithPreprocess = (t, e, n) => new lt({
7755
7770
  });
7756
7771
  class De extends H {
7757
7772
  _parse(e) {
7758
- return this._getType(e) === $.undefined ? Ne(void 0) : this._def.innerType._parse(e);
7773
+ return this._getType(e) === z.undefined ? Ne(void 0) : this._def.innerType._parse(e);
7759
7774
  }
7760
7775
  unwrap() {
7761
7776
  return this._def.innerType;
@@ -7768,7 +7783,7 @@ De.create = (t, e) => new De({
7768
7783
  });
7769
7784
  class dt extends H {
7770
7785
  _parse(e) {
7771
- return this._getType(e) === $.null ? Ne(null) : this._def.innerType._parse(e);
7786
+ return this._getType(e) === z.null ? Ne(null) : this._def.innerType._parse(e);
7772
7787
  }
7773
7788
  unwrap() {
7774
7789
  return this._def.innerType;
@@ -7783,7 +7798,7 @@ class Mn extends H {
7783
7798
  _parse(e) {
7784
7799
  const { ctx: n } = this._processInputParams(e);
7785
7800
  let r = n.data;
7786
- return n.parsedType === $.undefined && (r = this._def.defaultValue()), this._def.innerType._parse({
7801
+ return n.parsedType === z.undefined && (r = this._def.defaultValue()), this._def.innerType._parse({
7787
7802
  data: r,
7788
7803
  path: n.path,
7789
7804
  parent: n
@@ -7844,11 +7859,11 @@ Ln.create = (t, e) => new Ln({
7844
7859
  });
7845
7860
  class as extends H {
7846
7861
  _parse(e) {
7847
- if (this._getType(e) !== $.nan) {
7862
+ if (this._getType(e) !== z.nan) {
7848
7863
  const r = this._getOrReturnCtx(e);
7849
7864
  return P(r, {
7850
7865
  code: w.invalid_type,
7851
- expected: $.nan,
7866
+ expected: z.nan,
7852
7867
  received: r.parsedType
7853
7868
  }), M;
7854
7869
  }
@@ -7945,7 +7960,7 @@ dt.create;
7945
7960
  const lh = /* @__PURE__ */ _("ZodMiniType", (t, e) => {
7946
7961
  if (!t._zod)
7947
7962
  throw new Error("Uninitialized schema in ZodMiniType.");
7948
- X.init(t, e), t.def = e, t.type = e.type, t.parse = (n, r) => $o(t, n, r, { callee: t.parse }), t.safeParse = (n, r) => Kn(t, n, r), t.parseAsync = async (n, r) => zo(t, n, r, { callee: t.parseAsync }), t.safeParseAsync = async (n, r) => Yn(t, n, r), t.check = (...n) => t.clone({
7963
+ X.init(t, e), t.def = e, t.type = e.type, t.parse = (n, r) => zo(t, n, r, { callee: t.parse }), t.safeParse = (n, r) => Kn(t, n, r), t.parseAsync = async (n, r) => $o(t, n, r, { callee: t.parseAsync }), t.safeParseAsync = async (n, r) => Yn(t, n, r), t.check = (...n) => t.clone({
7949
7964
  ...e,
7950
7965
  checks: [
7951
7966
  ...e.checks ?? [],
@@ -8284,7 +8299,7 @@ function Rh(t, e) {
8284
8299
  ...r
8285
8300
  } : void 0;
8286
8301
  }
8287
- function $h(t, e) {
8302
+ function zh(t, e) {
8288
8303
  const n = typeof t.value;
8289
8304
  return n !== "bigint" && n !== "number" && n !== "boolean" && n !== "string" ? {
8290
8305
  type: Array.isArray(t.value) ? "array" : "object"
@@ -8451,11 +8466,11 @@ function Qi(t, e) {
8451
8466
  function Sn(t, e) {
8452
8467
  return e.patternStrategy === "escape" ? Eh(t) : t;
8453
8468
  }
8454
- const zh = new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");
8469
+ const $h = new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");
8455
8470
  function Eh(t) {
8456
8471
  let e = "";
8457
8472
  for (let n = 0; n < t.length; n++)
8458
- zh.has(t[n]) || (e += "\\"), e += t[n];
8473
+ $h.has(t[n]) || (e += "\\"), e += t[n];
8459
8474
  return e;
8460
8475
  }
8461
8476
  function Ce(t, e, n, r) {
@@ -8887,7 +8902,7 @@ const Wh = (t, e) => B(t.innerType._def, e), Bh = (t, e, n) => {
8887
8902
  case k.ZodRecord:
8888
8903
  return Xi(t, n);
8889
8904
  case k.ZodLiteral:
8890
- return $h(t, n);
8905
+ return zh(t, n);
8891
8906
  case k.ZodEnum:
8892
8907
  return Th(t);
8893
8908
  case k.ZodNativeEnum:
@@ -9426,7 +9441,7 @@ class ep {
9426
9441
  request(e, n, r) {
9427
9442
  const { relatedRequestId: s, resumptionToken: i, onresumptiontoken: o, task: a, relatedTask: c } = r ?? {};
9428
9443
  return new Promise((u, l) => {
9429
- var v, A, z, te, ue;
9444
+ var v, A, $, te, ue;
9430
9445
  const d = (G) => {
9431
9446
  l(G);
9432
9447
  };
@@ -9450,7 +9465,7 @@ class ep {
9450
9465
  r != null && r.onprogress && (this._progressHandlers.set(m, r.onprogress), p.params = {
9451
9466
  ...e.params,
9452
9467
  _meta: {
9453
- ...((z = e.params) == null ? void 0 : z._meta) || {},
9468
+ ...(($ = e.params) == null ? void 0 : $._meta) || {},
9454
9469
  progressToken: m
9455
9470
  }
9456
9471
  }), a && (p.params = {
@@ -9931,9 +9946,9 @@ var Un = { exports: {} }, eo = {};
9931
9946
  function A(Z) {
9932
9947
  return v.lastIndex = 0, v.test(Z);
9933
9948
  }
9934
- const z = -2147483648, te = 2 ** 31 - 1;
9949
+ const $ = -2147483648, te = 2 ** 31 - 1;
9935
9950
  function ue(Z) {
9936
- return Number.isInteger(Z) && Z <= te && Z >= z;
9951
+ return Number.isInteger(Z) && Z <= te && Z >= $;
9937
9952
  }
9938
9953
  function G(Z) {
9939
9954
  return Number.isInteger(Z);
@@ -9990,28 +10005,28 @@ var to = {}, Sr = {}, sn = {};
9990
10005
  }
9991
10006
  get str() {
9992
10007
  var v;
9993
- return (v = this._str) !== null && v !== void 0 ? v : this._str = this._items.reduce((A, z) => `${A}${z}`, "");
10008
+ return (v = this._str) !== null && v !== void 0 ? v : this._str = this._items.reduce((A, $) => `${A}${$}`, "");
9994
10009
  }
9995
10010
  get names() {
9996
10011
  var v;
9997
- return (v = this._names) !== null && v !== void 0 ? v : this._names = this._items.reduce((A, z) => (z instanceof n && (A[z.str] = (A[z.str] || 0) + 1), A), {});
10012
+ return (v = this._names) !== null && v !== void 0 ? v : this._names = this._items.reduce((A, $) => ($ instanceof n && (A[$.str] = (A[$.str] || 0) + 1), A), {});
9998
10013
  }
9999
10014
  }
10000
10015
  t._Code = r, t.nil = new r("");
10001
10016
  function s(y, ...v) {
10002
10017
  const A = [y[0]];
10003
- let z = 0;
10004
- for (; z < v.length; )
10005
- a(A, v[z]), A.push(y[++z]);
10018
+ let $ = 0;
10019
+ for (; $ < v.length; )
10020
+ a(A, v[$]), A.push(y[++$]);
10006
10021
  return new r(A);
10007
10022
  }
10008
10023
  t._ = s;
10009
10024
  const i = new r("+");
10010
10025
  function o(y, ...v) {
10011
10026
  const A = [p(y[0])];
10012
- let z = 0;
10013
- for (; z < v.length; )
10014
- A.push(i), a(A, v[z]), A.push(i, p(y[++z]));
10027
+ let $ = 0;
10028
+ for (; $ < v.length; )
10029
+ A.push(i), a(A, v[$]), A.push(i, p(y[++$]));
10015
10030
  return c(A), new r(A);
10016
10031
  }
10017
10032
  t.str = o;
@@ -10419,7 +10434,7 @@ var Hn = {};
10419
10434
  return D(super.names, this.iteration.names);
10420
10435
  }
10421
10436
  }
10422
- class z extends v {
10437
+ class $ extends v {
10423
10438
  constructor(f, h, b, q) {
10424
10439
  super(), this.varKind = f, this.name = h, this.from = b, this.to = q;
10425
10440
  }
@@ -10594,7 +10609,7 @@ var Hn = {};
10594
10609
  // `for` statement for a range of values
10595
10610
  forRange(f, h, b, q, V = this.opts.es5 ? n.varKinds.var : n.varKinds.let) {
10596
10611
  const de = this._scope.toName(f);
10597
- return this._for(new z(V, de, h, b), () => q(de));
10612
+ return this._for(new $(V, de, h, b), () => q(de));
10598
10613
  }
10599
10614
  // `for-of` statement (in es5 mode replace with a normal for loop)
10600
10615
  forOf(f, h, b, q = n.varKinds.const) {
@@ -10780,18 +10795,18 @@ var Hn = {};
10780
10795
  const A = c.scopeValue("formats", {
10781
10796
  ref: S.formats,
10782
10797
  code: p.code.formats
10783
- }), z = c.const("fmt", (0, n._)`${A}[${T.schemaCode}]`);
10784
- a.fail$data((0, n.or)((0, n._)`typeof ${z} != "object"`, (0, n._)`${z} instanceof RegExp`, (0, n._)`typeof ${z}.compare != "function"`, v(z)));
10798
+ }), $ = c.const("fmt", (0, n._)`${A}[${T.schemaCode}]`);
10799
+ a.fail$data((0, n.or)((0, n._)`typeof ${$} != "object"`, (0, n._)`${$} instanceof RegExp`, (0, n._)`typeof ${$}.compare != "function"`, v($)));
10785
10800
  }
10786
10801
  function y() {
10787
- const A = T.schema, z = S.formats[A];
10788
- if (!z || z === !0)
10802
+ const A = T.schema, $ = S.formats[A];
10803
+ if (!$ || $ === !0)
10789
10804
  return;
10790
- if (typeof z != "object" || z instanceof RegExp || typeof z.compare != "function")
10805
+ if (typeof $ != "object" || $ instanceof RegExp || typeof $.compare != "function")
10791
10806
  throw new Error(`"${d}": format "${A}" does not define "compare" function`);
10792
10807
  const te = c.scopeValue("formats", {
10793
10808
  key: A,
10794
- ref: z,
10809
+ ref: $,
10795
10810
  code: p.code.formats ? (0, n._)`${p.code.formats}${(0, n.getProperty)(A)}` : void 0
10796
10811
  });
10797
10812
  a.fail$data(v(te));
@@ -11284,7 +11299,7 @@ class lp extends ep {
11284
11299
  async _oninitialize(e) {
11285
11300
  const n = e.params.protocolVersion;
11286
11301
  return this._clientCapabilities = e.params.capabilities, this._clientVersion = e.params.clientInfo, {
11287
- protocolVersion: Hl.includes(n) ? n : $i,
11302
+ protocolVersion: Hl.includes(n) ? n : zi,
11288
11303
  capabilities: this.getCapabilities(),
11289
11304
  serverInfo: this._serverInfo,
11290
11305
  ...this._instructions && { instructions: this._instructions }
@@ -11692,11 +11707,11 @@ class gp {
11692
11707
  return bs(i);
11693
11708
  }
11694
11709
  setResourceRequestHandlers() {
11695
- this._resourceHandlersInitialized || (this.server.assertCanSetRequestHandler(Le(zn)), this.server.assertCanSetRequestHandler(Le(En)), this.server.assertCanSetRequestHandler(Le(Nn)), this.server.registerCapabilities({
11710
+ this._resourceHandlersInitialized || (this.server.assertCanSetRequestHandler(Le($n)), this.server.assertCanSetRequestHandler(Le(En)), this.server.assertCanSetRequestHandler(Le(Nn)), this.server.registerCapabilities({
11696
11711
  resources: {
11697
11712
  listChanged: !0
11698
11713
  }
11699
- }), this.server.setRequestHandler(zn, async (e, n) => {
11714
+ }), this.server.setRequestHandler($n, async (e, n) => {
11700
11715
  const r = Object.entries(this._registeredResources).filter(([i, o]) => o.enabled).map(([i, o]) => ({
11701
11716
  uri: i,
11702
11717
  name: o.name,
@@ -12254,21 +12269,21 @@ function wp(t, e, n) {
12254
12269
  const { siteId: T, ...j } = S;
12255
12270
  try {
12256
12271
  const y = T, A = await p({
12257
- run: (...z) => r(y, "run", z),
12258
- request: (...z) => r(y, "request", z),
12259
- goTo: (...z) => r(y, "goTo", z),
12272
+ run: (...$) => r(y, "run", $),
12273
+ request: (...$) => r(y, "request", $),
12274
+ goTo: (...$) => r(y, "goTo", $),
12260
12275
  getCurrentURL: () => r(y, "getCurrentURL", []),
12261
- readFileAsText: (...z) => r(
12276
+ readFileAsText: (...$) => r(
12262
12277
  y,
12263
12278
  "readFileAsText",
12264
- z
12279
+ $
12265
12280
  ),
12266
- writeFile: (...z) => r(y, "writeFile", z),
12267
- listFiles: (...z) => r(y, "listFiles", z),
12268
- mkdirTree: (...z) => r(y, "mkdirTree", z),
12269
- unlink: (...z) => r(y, "unlink", z),
12270
- rmdir: (...z) => r(y, "rmdir", z),
12271
- fileExists: (...z) => r(y, "fileExists", z)
12281
+ writeFile: (...$) => r(y, "writeFile", $),
12282
+ listFiles: (...$) => r(y, "listFiles", $),
12283
+ mkdirTree: (...$) => r(y, "mkdirTree", $),
12284
+ unlink: (...$) => r(y, "unlink", $),
12285
+ rmdir: (...$) => r(y, "rmdir", $),
12286
+ fileExists: (...$) => r(y, "fileExists", $)
12272
12287
  }, j);
12273
12288
  return {
12274
12289
  content: [
@@ -12294,7 +12309,7 @@ async function Sp() {
12294
12309
  await t.startWebSocketServer(kp());
12295
12310
  const e = t.getPort(), n = bp();
12296
12311
  wp(n, t, e);
12297
- const r = new zf();
12312
+ const r = new $f();
12298
12313
  await n.connect(r), console.error("[MCP] WordPress Playground MCP server running on stdio");
12299
12314
  }
12300
12315
  Sp().catch((t) => {