@critical-path/svelte 0.18.10 → 0.18.12

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.
Files changed (2) hide show
  1. package/dist/index.js +473 -450
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -1385,9 +1385,9 @@ var C = class {
1385
1385
  return this._refinement((n, r) => e(n) ? !0 : (r.addIssue(typeof t == "function" ? t(n, r) : t), !1));
1386
1386
  }
1387
1387
  _refinement(e) {
1388
- return new z({
1388
+ return new L({
1389
1389
  schema: this,
1390
- typeName: H.ZodEffects,
1390
+ typeName: B.ZodEffects,
1391
1391
  effect: {
1392
1392
  type: "refinement",
1393
1393
  refinement: e
@@ -1405,31 +1405,31 @@ var C = class {
1405
1405
  };
1406
1406
  }
1407
1407
  optional() {
1408
- return B.create(this, this._def);
1408
+ return R.create(this, this._def);
1409
1409
  }
1410
1410
  nullable() {
1411
- return V.create(this, this._def);
1411
+ return z.create(this, this._def);
1412
1412
  }
1413
1413
  nullish() {
1414
1414
  return this.nullable().optional();
1415
1415
  }
1416
1416
  array() {
1417
- return k.create(this);
1417
+ return D.create(this);
1418
1418
  }
1419
1419
  promise() {
1420
- return R.create(this, this._def);
1420
+ return I.create(this, this._def);
1421
1421
  }
1422
1422
  or(e) {
1423
- return rt.create([this, e], this._def);
1423
+ return at.create([this, e], this._def);
1424
1424
  }
1425
1425
  and(e) {
1426
- return ot.create(this, e, this._def);
1426
+ return ct.create(this, e, this._def);
1427
1427
  }
1428
1428
  transform(e) {
1429
- return new z({
1429
+ return new L({
1430
1430
  ...S(this._def),
1431
1431
  schema: this,
1432
- typeName: H.ZodEffects,
1432
+ typeName: B.ZodEffects,
1433
1433
  effect: {
1434
1434
  type: "transform",
1435
1435
  transform: e
@@ -1438,27 +1438,27 @@ var C = class {
1438
1438
  }
1439
1439
  default(e) {
1440
1440
  let t = typeof e == "function" ? e : () => e;
1441
- return new ft({
1441
+ return new mt({
1442
1442
  ...S(this._def),
1443
1443
  innerType: this,
1444
1444
  defaultValue: t,
1445
- typeName: H.ZodDefault
1445
+ typeName: B.ZodDefault
1446
1446
  });
1447
1447
  }
1448
1448
  brand() {
1449
- return new ht({
1450
- typeName: H.ZodBranded,
1449
+ return new _t({
1450
+ typeName: B.ZodBranded,
1451
1451
  type: this,
1452
1452
  ...S(this._def)
1453
1453
  });
1454
1454
  }
1455
1455
  catch(e) {
1456
1456
  let t = typeof e == "function" ? e : () => e;
1457
- return new pt({
1457
+ return new ht({
1458
1458
  ...S(this._def),
1459
1459
  innerType: this,
1460
1460
  catchValue: t,
1461
- typeName: H.ZodCatch
1461
+ typeName: B.ZodCatch
1462
1462
  });
1463
1463
  }
1464
1464
  describe(e) {
@@ -1469,10 +1469,10 @@ var C = class {
1469
1469
  });
1470
1470
  }
1471
1471
  pipe(e) {
1472
- return gt.create(this, e);
1472
+ return vt.create(this, e);
1473
1473
  }
1474
1474
  readonly() {
1475
- return _t.create(this);
1475
+ return yt.create(this);
1476
1476
  }
1477
1477
  isOptional() {
1478
1478
  return this.safeParse(void 0).success;
@@ -1511,7 +1511,7 @@ function qe(e, t) {
1511
1511
  function Je(e, t) {
1512
1512
  return !!((t === "v4" || !t) && Ie.test(e) || (t === "v6" || !t) && Re.test(e));
1513
1513
  }
1514
- var w = class e extends C {
1514
+ var Ye = class e extends C {
1515
1515
  _parse(e) {
1516
1516
  if (this._def.coerce && (e.data = String(e.data)), this._getType(e) !== u.string) {
1517
1517
  let t = this._getOrReturnCtx(e);
@@ -1919,17 +1919,17 @@ var w = class e extends C {
1919
1919
  return e;
1920
1920
  }
1921
1921
  };
1922
- w.create = (e) => new w({
1922
+ Ye.create = (e) => new Ye({
1923
1923
  checks: [],
1924
- typeName: H.ZodString,
1924
+ typeName: B.ZodString,
1925
1925
  coerce: e?.coerce ?? !1,
1926
1926
  ...S(e)
1927
1927
  });
1928
- function Ye(e, t) {
1928
+ function Xe(e, t) {
1929
1929
  let n = (e.toString().split(".")[1] || "").length, r = (t.toString().split(".")[1] || "").length, i = n > r ? n : r;
1930
1930
  return Number.parseInt(e.toFixed(i).replace(".", "")) % Number.parseInt(t.toFixed(i).replace(".", "")) / 10 ** i;
1931
1931
  }
1932
- var Xe = class e extends C {
1932
+ var Ze = class e extends C {
1933
1933
  constructor() {
1934
1934
  super(...arguments), this.min = this.gte, this.max = this.lte, this.step = this.multipleOf;
1935
1935
  }
@@ -1962,7 +1962,7 @@ var Xe = class e extends C {
1962
1962
  inclusive: r.inclusive,
1963
1963
  exact: !1,
1964
1964
  message: r.message
1965
- }), n.dirty()) : r.kind === "multipleOf" ? Ye(e.data, r.value) !== 0 && (t = this._getOrReturnCtx(e, t), h(t, {
1965
+ }), n.dirty()) : r.kind === "multipleOf" ? Xe(e.data, r.value) !== 0 && (t = this._getOrReturnCtx(e, t), h(t, {
1966
1966
  code: f.not_multiple_of,
1967
1967
  multipleOf: r.value,
1968
1968
  message: r.message
@@ -2088,13 +2088,13 @@ var Xe = class e extends C {
2088
2088
  return Number.isFinite(t) && Number.isFinite(e);
2089
2089
  }
2090
2090
  };
2091
- Xe.create = (e) => new Xe({
2091
+ Ze.create = (e) => new Ze({
2092
2092
  checks: [],
2093
- typeName: H.ZodNumber,
2093
+ typeName: B.ZodNumber,
2094
2094
  coerce: e?.coerce || !1,
2095
2095
  ...S(e)
2096
2096
  });
2097
- var Ze = class e extends C {
2097
+ var Qe = class e extends C {
2098
2098
  constructor() {
2099
2099
  super(...arguments), this.min = this.gte, this.max = this.lte;
2100
2100
  }
@@ -2215,13 +2215,13 @@ var Ze = class e extends C {
2215
2215
  return e;
2216
2216
  }
2217
2217
  };
2218
- Ze.create = (e) => new Ze({
2218
+ Qe.create = (e) => new Qe({
2219
2219
  checks: [],
2220
- typeName: H.ZodBigInt,
2220
+ typeName: B.ZodBigInt,
2221
2221
  coerce: e?.coerce ?? !1,
2222
2222
  ...S(e)
2223
2223
  });
2224
- var Qe = class extends C {
2224
+ var $e = class extends C {
2225
2225
  _parse(e) {
2226
2226
  if (this._def.coerce && (e.data = !!e.data), this._getType(e) !== u.boolean) {
2227
2227
  let t = this._getOrReturnCtx(e);
@@ -2234,12 +2234,12 @@ var Qe = class extends C {
2234
2234
  return v(e.data);
2235
2235
  }
2236
2236
  };
2237
- Qe.create = (e) => new Qe({
2238
- typeName: H.ZodBoolean,
2237
+ $e.create = (e) => new $e({
2238
+ typeName: B.ZodBoolean,
2239
2239
  coerce: e?.coerce || !1,
2240
2240
  ...S(e)
2241
2241
  });
2242
- var $e = class e extends C {
2242
+ var et = class e extends C {
2243
2243
  _parse(e) {
2244
2244
  if (this._def.coerce && (e.data = new Date(e.data)), this._getType(e) !== u.date) {
2245
2245
  let t = this._getOrReturnCtx(e);
@@ -2302,13 +2302,13 @@ var $e = class e extends C {
2302
2302
  return e == null ? null : new Date(e);
2303
2303
  }
2304
2304
  };
2305
- $e.create = (e) => new $e({
2305
+ et.create = (e) => new et({
2306
2306
  checks: [],
2307
2307
  coerce: e?.coerce || !1,
2308
- typeName: H.ZodDate,
2308
+ typeName: B.ZodDate,
2309
2309
  ...S(e)
2310
2310
  });
2311
- var et = class extends C {
2311
+ var tt = class extends C {
2312
2312
  _parse(e) {
2313
2313
  if (this._getType(e) !== u.symbol) {
2314
2314
  let t = this._getOrReturnCtx(e);
@@ -2321,11 +2321,11 @@ var et = class extends C {
2321
2321
  return v(e.data);
2322
2322
  }
2323
2323
  };
2324
- et.create = (e) => new et({
2325
- typeName: H.ZodSymbol,
2324
+ tt.create = (e) => new tt({
2325
+ typeName: B.ZodSymbol,
2326
2326
  ...S(e)
2327
2327
  });
2328
- var T = class extends C {
2328
+ var w = class extends C {
2329
2329
  _parse(e) {
2330
2330
  if (this._getType(e) !== u.undefined) {
2331
2331
  let t = this._getOrReturnCtx(e);
@@ -2338,11 +2338,11 @@ var T = class extends C {
2338
2338
  return v(e.data);
2339
2339
  }
2340
2340
  };
2341
- T.create = (e) => new T({
2342
- typeName: H.ZodUndefined,
2341
+ w.create = (e) => new w({
2342
+ typeName: B.ZodUndefined,
2343
2343
  ...S(e)
2344
2344
  });
2345
- var E = class extends C {
2345
+ var nt = class extends C {
2346
2346
  _parse(e) {
2347
2347
  if (this._getType(e) !== u.null) {
2348
2348
  let t = this._getOrReturnCtx(e);
@@ -2355,11 +2355,11 @@ var E = class extends C {
2355
2355
  return v(e.data);
2356
2356
  }
2357
2357
  };
2358
- E.create = (e) => new E({
2359
- typeName: H.ZodNull,
2358
+ nt.create = (e) => new nt({
2359
+ typeName: B.ZodNull,
2360
2360
  ...S(e)
2361
2361
  });
2362
- var tt = class extends C {
2362
+ var rt = class extends C {
2363
2363
  constructor() {
2364
2364
  super(...arguments), this._any = !0;
2365
2365
  }
@@ -2367,11 +2367,11 @@ var tt = class extends C {
2367
2367
  return v(e.data);
2368
2368
  }
2369
2369
  };
2370
- tt.create = (e) => new tt({
2371
- typeName: H.ZodAny,
2370
+ rt.create = (e) => new rt({
2371
+ typeName: B.ZodAny,
2372
2372
  ...S(e)
2373
2373
  });
2374
- var D = class extends C {
2374
+ var T = class extends C {
2375
2375
  constructor() {
2376
2376
  super(...arguments), this._unknown = !0;
2377
2377
  }
@@ -2379,11 +2379,11 @@ var D = class extends C {
2379
2379
  return v(e.data);
2380
2380
  }
2381
2381
  };
2382
- D.create = (e) => new D({
2383
- typeName: H.ZodUnknown,
2382
+ T.create = (e) => new T({
2383
+ typeName: B.ZodUnknown,
2384
2384
  ...S(e)
2385
2385
  });
2386
- var O = class extends C {
2386
+ var E = class extends C {
2387
2387
  _parse(e) {
2388
2388
  let t = this._getOrReturnCtx(e);
2389
2389
  return h(t, {
@@ -2393,11 +2393,11 @@ var O = class extends C {
2393
2393
  }), _;
2394
2394
  }
2395
2395
  };
2396
- O.create = (e) => new O({
2397
- typeName: H.ZodNever,
2396
+ E.create = (e) => new E({
2397
+ typeName: B.ZodNever,
2398
2398
  ...S(e)
2399
2399
  });
2400
- var nt = class extends C {
2400
+ var it = class extends C {
2401
2401
  _parse(e) {
2402
2402
  if (this._getType(e) !== u.undefined) {
2403
2403
  let t = this._getOrReturnCtx(e);
@@ -2410,11 +2410,11 @@ var nt = class extends C {
2410
2410
  return v(e.data);
2411
2411
  }
2412
2412
  };
2413
- nt.create = (e) => new nt({
2414
- typeName: H.ZodVoid,
2413
+ it.create = (e) => new it({
2414
+ typeName: B.ZodVoid,
2415
2415
  ...S(e)
2416
2416
  });
2417
- var k = class e extends C {
2417
+ var D = class e extends C {
2418
2418
  _parse(e) {
2419
2419
  let { ctx: t, status: n } = this._processInputParams(e), r = this._def;
2420
2420
  if (t.parsedType !== u.array) return h(t, {
@@ -2486,32 +2486,32 @@ var k = class e extends C {
2486
2486
  return this.min(1, e);
2487
2487
  }
2488
2488
  };
2489
- k.create = (e, t) => new k({
2489
+ D.create = (e, t) => new D({
2490
2490
  type: e,
2491
2491
  minLength: null,
2492
2492
  maxLength: null,
2493
2493
  exactLength: null,
2494
- typeName: H.ZodArray,
2494
+ typeName: B.ZodArray,
2495
2495
  ...S(t)
2496
2496
  });
2497
- function A(e) {
2498
- if (e instanceof j) {
2497
+ function O(e) {
2498
+ if (e instanceof k) {
2499
2499
  let t = {};
2500
2500
  for (let n in e.shape) {
2501
2501
  let r = e.shape[n];
2502
- t[n] = B.create(A(r));
2502
+ t[n] = R.create(O(r));
2503
2503
  }
2504
- return new j({
2504
+ return new k({
2505
2505
  ...e._def,
2506
2506
  shape: () => t
2507
2507
  });
2508
2508
  }
2509
- return e instanceof k ? new k({
2509
+ return e instanceof D ? new D({
2510
2510
  ...e._def,
2511
- type: A(e.element)
2512
- }) : e instanceof B ? B.create(A(e.unwrap())) : e instanceof V ? V.create(A(e.unwrap())) : e instanceof N ? N.create(e.items.map((e) => A(e))) : e;
2511
+ type: O(e.element)
2512
+ }) : e instanceof R ? R.create(O(e.unwrap())) : e instanceof z ? z.create(O(e.unwrap())) : e instanceof j ? j.create(e.items.map((e) => O(e))) : e;
2513
2513
  }
2514
- var j = class e extends C {
2514
+ var k = class e extends C {
2515
2515
  constructor() {
2516
2516
  super(...arguments), this._cached = null, this.nonstrict = this.passthrough, this.augment = this.extend;
2517
2517
  }
@@ -2533,7 +2533,7 @@ var j = class e extends C {
2533
2533
  }), _;
2534
2534
  }
2535
2535
  let { status: t, ctx: n } = this._processInputParams(e), { shape: r, keys: i } = this._getCached(), a = [];
2536
- if (!(this._def.catchall instanceof O && this._def.unknownKeys === "strip")) for (let e in n.data) i.includes(e) || a.push(e);
2536
+ if (!(this._def.catchall instanceof E && this._def.unknownKeys === "strip")) for (let e in n.data) i.includes(e) || a.push(e);
2537
2537
  let o = [];
2538
2538
  for (let e of i) {
2539
2539
  let t = r[e], i = n.data[e];
@@ -2546,7 +2546,7 @@ var j = class e extends C {
2546
2546
  alwaysSet: e in n.data
2547
2547
  });
2548
2548
  }
2549
- if (this._def.catchall instanceof O) {
2549
+ if (this._def.catchall instanceof E) {
2550
2550
  let e = this._def.unknownKeys;
2551
2551
  if (e === "passthrough") for (let e of a) o.push({
2552
2552
  key: {
@@ -2632,7 +2632,7 @@ var j = class e extends C {
2632
2632
  ...this._def.shape(),
2633
2633
  ...t._def.shape()
2634
2634
  }),
2635
- typeName: H.ZodObject
2635
+ typeName: B.ZodObject
2636
2636
  });
2637
2637
  }
2638
2638
  setKey(e, t) {
@@ -2661,7 +2661,7 @@ var j = class e extends C {
2661
2661
  });
2662
2662
  }
2663
2663
  deepPartial() {
2664
- return A(this);
2664
+ return O(this);
2665
2665
  }
2666
2666
  partial(t) {
2667
2667
  let n = {};
@@ -2679,7 +2679,7 @@ var j = class e extends C {
2679
2679
  for (let e of l.objectKeys(this.shape)) if (t && !t[e]) n[e] = this.shape[e];
2680
2680
  else {
2681
2681
  let t = this.shape[e];
2682
- for (; t instanceof B;) t = t._def.innerType;
2682
+ for (; t instanceof R;) t = t._def.innerType;
2683
2683
  n[e] = t;
2684
2684
  }
2685
2685
  return new e({
@@ -2688,29 +2688,29 @@ var j = class e extends C {
2688
2688
  });
2689
2689
  }
2690
2690
  keyof() {
2691
- return dt(l.objectKeys(this.shape));
2691
+ return pt(l.objectKeys(this.shape));
2692
2692
  }
2693
2693
  };
2694
- j.create = (e, t) => new j({
2694
+ k.create = (e, t) => new k({
2695
2695
  shape: () => e,
2696
2696
  unknownKeys: "strip",
2697
- catchall: O.create(),
2698
- typeName: H.ZodObject,
2697
+ catchall: E.create(),
2698
+ typeName: B.ZodObject,
2699
2699
  ...S(t)
2700
- }), j.strictCreate = (e, t) => new j({
2700
+ }), k.strictCreate = (e, t) => new k({
2701
2701
  shape: () => e,
2702
2702
  unknownKeys: "strict",
2703
- catchall: O.create(),
2704
- typeName: H.ZodObject,
2703
+ catchall: E.create(),
2704
+ typeName: B.ZodObject,
2705
2705
  ...S(t)
2706
- }), j.lazycreate = (e, t) => new j({
2706
+ }), k.lazycreate = (e, t) => new k({
2707
2707
  shape: e,
2708
2708
  unknownKeys: "strip",
2709
- catchall: O.create(),
2710
- typeName: H.ZodObject,
2709
+ catchall: E.create(),
2710
+ typeName: B.ZodObject,
2711
2711
  ...S(t)
2712
2712
  });
2713
- var rt = class extends C {
2713
+ var at = class extends C {
2714
2714
  _parse(e) {
2715
2715
  let { ctx: t } = this._processInputParams(e), n = this._def.options;
2716
2716
  function r(e) {
@@ -2773,12 +2773,12 @@ var rt = class extends C {
2773
2773
  return this._def.options;
2774
2774
  }
2775
2775
  };
2776
- rt.create = (e, t) => new rt({
2776
+ at.create = (e, t) => new at({
2777
2777
  options: e,
2778
- typeName: H.ZodUnion,
2778
+ typeName: B.ZodUnion,
2779
2779
  ...S(t)
2780
2780
  });
2781
- var M = (e) => e instanceof P ? M(e.schema) : e instanceof z ? M(e.innerType()) : e instanceof F ? [e.value] : e instanceof I ? e.options : e instanceof L ? l.objectValues(e.enum) : e instanceof ft ? M(e._def.innerType) : e instanceof T ? [void 0] : e instanceof E ? [null] : e instanceof B ? [void 0, ...M(e.unwrap())] : e instanceof V ? [null, ...M(e.unwrap())] : e instanceof ht || e instanceof _t ? M(e.unwrap()) : e instanceof pt ? M(e._def.innerType) : [], it = class e extends C {
2781
+ var A = (e) => e instanceof M ? A(e.schema) : e instanceof L ? A(e.innerType()) : e instanceof N ? [e.value] : e instanceof P ? e.options : e instanceof F ? l.objectValues(e.enum) : e instanceof mt ? A(e._def.innerType) : e instanceof w ? [void 0] : e instanceof nt ? [null] : e instanceof R ? [void 0, ...A(e.unwrap())] : e instanceof z ? [null, ...A(e.unwrap())] : e instanceof _t || e instanceof yt ? A(e.unwrap()) : e instanceof ht ? A(e._def.innerType) : [], ot = class e extends C {
2782
2782
  _parse(e) {
2783
2783
  let { ctx: t } = this._processInputParams(e);
2784
2784
  if (t.parsedType !== u.object) return h(t, {
@@ -2813,7 +2813,7 @@ var M = (e) => e instanceof P ? M(e.schema) : e instanceof z ? M(e.innerType())
2813
2813
  static create(t, n, r) {
2814
2814
  let i = /* @__PURE__ */ new Map();
2815
2815
  for (let e of n) {
2816
- let n = M(e.shape[t]);
2816
+ let n = A(e.shape[t]);
2817
2817
  if (!n.length) throw Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);
2818
2818
  for (let r of n) {
2819
2819
  if (i.has(r)) throw Error(`Discriminator property ${String(t)} has duplicate value ${String(r)}`);
@@ -2821,7 +2821,7 @@ var M = (e) => e instanceof P ? M(e.schema) : e instanceof z ? M(e.innerType())
2821
2821
  }
2822
2822
  }
2823
2823
  return new e({
2824
- typeName: H.ZodDiscriminatedUnion,
2824
+ typeName: B.ZodDiscriminatedUnion,
2825
2825
  discriminator: t,
2826
2826
  options: n,
2827
2827
  optionsMap: i,
@@ -2829,7 +2829,7 @@ var M = (e) => e instanceof P ? M(e.schema) : e instanceof z ? M(e.innerType())
2829
2829
  });
2830
2830
  }
2831
2831
  };
2832
- function at(e, t) {
2832
+ function st(e, t) {
2833
2833
  let n = d(e), r = d(t);
2834
2834
  if (e === t) return {
2835
2835
  valid: !0,
@@ -2841,7 +2841,7 @@ function at(e, t) {
2841
2841
  ...t
2842
2842
  };
2843
2843
  for (let n of r) {
2844
- let r = at(e[n], t[n]);
2844
+ let r = st(e[n], t[n]);
2845
2845
  if (!r.valid) return { valid: !1 };
2846
2846
  i[n] = r.data;
2847
2847
  }
@@ -2854,7 +2854,7 @@ function at(e, t) {
2854
2854
  if (e.length !== t.length) return { valid: !1 };
2855
2855
  let n = [];
2856
2856
  for (let r = 0; r < e.length; r++) {
2857
- let i = e[r], a = t[r], o = at(i, a);
2857
+ let i = e[r], a = t[r], o = st(i, a);
2858
2858
  if (!o.valid) return { valid: !1 };
2859
2859
  n.push(o.data);
2860
2860
  }
@@ -2868,11 +2868,11 @@ function at(e, t) {
2868
2868
  data: e
2869
2869
  } : { valid: !1 };
2870
2870
  }
2871
- var ot = class extends C {
2871
+ var ct = class extends C {
2872
2872
  _parse(e) {
2873
2873
  let { status: t, ctx: n } = this._processInputParams(e), r = (e, r) => {
2874
2874
  if (xe(e) || xe(r)) return _;
2875
- let i = at(e.value, r.value);
2875
+ let i = st(e.value, r.value);
2876
2876
  return i.valid ? ((Se(e) || Se(r)) && t.dirty(), {
2877
2877
  status: t.value,
2878
2878
  value: i.data
@@ -2897,13 +2897,13 @@ var ot = class extends C {
2897
2897
  }));
2898
2898
  }
2899
2899
  };
2900
- ot.create = (e, t, n) => new ot({
2900
+ ct.create = (e, t, n) => new ct({
2901
2901
  left: e,
2902
2902
  right: t,
2903
- typeName: H.ZodIntersection,
2903
+ typeName: B.ZodIntersection,
2904
2904
  ...S(n)
2905
2905
  });
2906
- var N = class e extends C {
2906
+ var j = class e extends C {
2907
2907
  _parse(e) {
2908
2908
  let { status: t, ctx: n } = this._processInputParams(e);
2909
2909
  if (n.parsedType !== u.array) return h(n, {
@@ -2941,16 +2941,16 @@ var N = class e extends C {
2941
2941
  });
2942
2942
  }
2943
2943
  };
2944
- N.create = (e, t) => {
2944
+ j.create = (e, t) => {
2945
2945
  if (!Array.isArray(e)) throw Error("You must pass an array of schemas to z.tuple([ ... ])");
2946
- return new N({
2946
+ return new j({
2947
2947
  items: e,
2948
- typeName: H.ZodTuple,
2948
+ typeName: B.ZodTuple,
2949
2949
  rest: null,
2950
2950
  ...S(t)
2951
2951
  });
2952
2952
  };
2953
- var st = class e extends C {
2953
+ var lt = class e extends C {
2954
2954
  get keySchema() {
2955
2955
  return this._def.keyType;
2956
2956
  }
@@ -2979,16 +2979,16 @@ var st = class e extends C {
2979
2979
  return n instanceof C ? new e({
2980
2980
  keyType: t,
2981
2981
  valueType: n,
2982
- typeName: H.ZodRecord,
2982
+ typeName: B.ZodRecord,
2983
2983
  ...S(r)
2984
2984
  }) : new e({
2985
- keyType: w.create(),
2985
+ keyType: Ye.create(),
2986
2986
  valueType: t,
2987
- typeName: H.ZodRecord,
2987
+ typeName: B.ZodRecord,
2988
2988
  ...S(n)
2989
2989
  });
2990
2990
  }
2991
- }, ct = class extends C {
2991
+ }, ut = class extends C {
2992
2992
  get keySchema() {
2993
2993
  return this._def.keyType;
2994
2994
  }
@@ -3034,13 +3034,13 @@ var st = class e extends C {
3034
3034
  }
3035
3035
  }
3036
3036
  };
3037
- ct.create = (e, t, n) => new ct({
3037
+ ut.create = (e, t, n) => new ut({
3038
3038
  valueType: t,
3039
3039
  keyType: e,
3040
- typeName: H.ZodMap,
3040
+ typeName: B.ZodMap,
3041
3041
  ...S(n)
3042
3042
  });
3043
- var lt = class e extends C {
3043
+ var dt = class e extends C {
3044
3044
  _parse(e) {
3045
3045
  let { status: t, ctx: n } = this._processInputParams(e);
3046
3046
  if (n.parsedType !== u.set) return h(n, {
@@ -3104,14 +3104,14 @@ var lt = class e extends C {
3104
3104
  return this.min(1, e);
3105
3105
  }
3106
3106
  };
3107
- lt.create = (e, t) => new lt({
3107
+ dt.create = (e, t) => new dt({
3108
3108
  valueType: e,
3109
3109
  minSize: null,
3110
3110
  maxSize: null,
3111
- typeName: H.ZodSet,
3111
+ typeName: B.ZodSet,
3112
3112
  ...S(t)
3113
3113
  });
3114
- var ut = class e extends C {
3114
+ var ft = class e extends C {
3115
3115
  constructor() {
3116
3116
  super(...arguments), this.validate = this.implement;
3117
3117
  }
@@ -3155,7 +3155,7 @@ var ut = class e extends C {
3155
3155
  });
3156
3156
  }
3157
3157
  let i = { errorMap: t.common.contextualErrorMap }, a = t.data;
3158
- if (this._def.returns instanceof R) {
3158
+ if (this._def.returns instanceof I) {
3159
3159
  let e = this;
3160
3160
  return v(async function(...t) {
3161
3161
  let o = new p([]), s = await e._def.args.parseAsync(t, i).catch((e) => {
@@ -3186,7 +3186,7 @@ var ut = class e extends C {
3186
3186
  args(...t) {
3187
3187
  return new e({
3188
3188
  ...this._def,
3189
- args: N.create(t).rest(D.create())
3189
+ args: j.create(t).rest(T.create())
3190
3190
  });
3191
3191
  }
3192
3192
  returns(t) {
@@ -3203,13 +3203,13 @@ var ut = class e extends C {
3203
3203
  }
3204
3204
  static create(t, n, r) {
3205
3205
  return new e({
3206
- args: t || N.create([]).rest(D.create()),
3207
- returns: n || D.create(),
3208
- typeName: H.ZodFunction,
3206
+ args: t || j.create([]).rest(T.create()),
3207
+ returns: n || T.create(),
3208
+ typeName: B.ZodFunction,
3209
3209
  ...S(r)
3210
3210
  });
3211
3211
  }
3212
- }, P = class extends C {
3212
+ }, M = class extends C {
3213
3213
  get schema() {
3214
3214
  return this._def.getter();
3215
3215
  }
@@ -3222,12 +3222,12 @@ var ut = class e extends C {
3222
3222
  });
3223
3223
  }
3224
3224
  };
3225
- P.create = (e, t) => new P({
3225
+ M.create = (e, t) => new M({
3226
3226
  getter: e,
3227
- typeName: H.ZodLazy,
3227
+ typeName: B.ZodLazy,
3228
3228
  ...S(t)
3229
3229
  });
3230
- var F = class extends C {
3230
+ var N = class extends C {
3231
3231
  _parse(e) {
3232
3232
  if (e.data !== this._def.value) {
3233
3233
  let t = this._getOrReturnCtx(e);
@@ -3246,19 +3246,19 @@ var F = class extends C {
3246
3246
  return this._def.value;
3247
3247
  }
3248
3248
  };
3249
- F.create = (e, t) => new F({
3249
+ N.create = (e, t) => new N({
3250
3250
  value: e,
3251
- typeName: H.ZodLiteral,
3251
+ typeName: B.ZodLiteral,
3252
3252
  ...S(t)
3253
3253
  });
3254
- function dt(e, t) {
3255
- return new I({
3254
+ function pt(e, t) {
3255
+ return new P({
3256
3256
  values: e,
3257
- typeName: H.ZodEnum,
3257
+ typeName: B.ZodEnum,
3258
3258
  ...S(t)
3259
3259
  });
3260
3260
  }
3261
- var I = class e extends C {
3261
+ var P = class e extends C {
3262
3262
  _parse(e) {
3263
3263
  if (typeof e.data != "string") {
3264
3264
  let t = this._getOrReturnCtx(e), n = this._def.values;
@@ -3309,8 +3309,8 @@ var I = class e extends C {
3309
3309
  });
3310
3310
  }
3311
3311
  };
3312
- I.create = dt;
3313
- var L = class extends C {
3312
+ P.create = pt;
3313
+ var F = class extends C {
3314
3314
  _parse(e) {
3315
3315
  let t = l.getValidEnumValues(this._def.values), n = this._getOrReturnCtx(e);
3316
3316
  if (n.parsedType !== u.string && n.parsedType !== u.number) {
@@ -3335,12 +3335,12 @@ var L = class extends C {
3335
3335
  return this._def.values;
3336
3336
  }
3337
3337
  };
3338
- L.create = (e, t) => new L({
3338
+ F.create = (e, t) => new F({
3339
3339
  values: e,
3340
- typeName: H.ZodNativeEnum,
3340
+ typeName: B.ZodNativeEnum,
3341
3341
  ...S(t)
3342
3342
  });
3343
- var R = class extends C {
3343
+ var I = class extends C {
3344
3344
  unwrap() {
3345
3345
  return this._def.type;
3346
3346
  }
@@ -3356,17 +3356,17 @@ var R = class extends C {
3356
3356
  })));
3357
3357
  }
3358
3358
  };
3359
- R.create = (e, t) => new R({
3359
+ I.create = (e, t) => new I({
3360
3360
  type: e,
3361
- typeName: H.ZodPromise,
3361
+ typeName: B.ZodPromise,
3362
3362
  ...S(t)
3363
3363
  });
3364
- var z = class extends C {
3364
+ var L = class extends C {
3365
3365
  innerType() {
3366
3366
  return this._def.schema;
3367
3367
  }
3368
3368
  sourceType() {
3369
- return this._def.schema._def.typeName === H.ZodEffects ? this._def.schema.sourceType() : this._def.schema;
3369
+ return this._def.schema._def.typeName === B.ZodEffects ? this._def.schema.sourceType() : this._def.schema;
3370
3370
  }
3371
3371
  _parse(e) {
3372
3372
  let { status: t, ctx: n } = this._processInputParams(e), r = this._def.effect || null, i = {
@@ -3452,21 +3452,21 @@ var z = class extends C {
3452
3452
  l.assertNever(r);
3453
3453
  }
3454
3454
  };
3455
- z.create = (e, t, n) => new z({
3455
+ L.create = (e, t, n) => new L({
3456
3456
  schema: e,
3457
- typeName: H.ZodEffects,
3457
+ typeName: B.ZodEffects,
3458
3458
  effect: t,
3459
3459
  ...S(n)
3460
- }), z.createWithPreprocess = (e, t, n) => new z({
3460
+ }), L.createWithPreprocess = (e, t, n) => new L({
3461
3461
  schema: t,
3462
3462
  effect: {
3463
3463
  type: "preprocess",
3464
3464
  transform: e
3465
3465
  },
3466
- typeName: H.ZodEffects,
3466
+ typeName: B.ZodEffects,
3467
3467
  ...S(n)
3468
3468
  });
3469
- var B = class extends C {
3469
+ var R = class extends C {
3470
3470
  _parse(e) {
3471
3471
  return this._getType(e) === u.undefined ? v(void 0) : this._def.innerType._parse(e);
3472
3472
  }
@@ -3474,12 +3474,12 @@ var B = class extends C {
3474
3474
  return this._def.innerType;
3475
3475
  }
3476
3476
  };
3477
- B.create = (e, t) => new B({
3477
+ R.create = (e, t) => new R({
3478
3478
  innerType: e,
3479
- typeName: H.ZodOptional,
3479
+ typeName: B.ZodOptional,
3480
3480
  ...S(t)
3481
3481
  });
3482
- var V = class extends C {
3482
+ var z = class extends C {
3483
3483
  _parse(e) {
3484
3484
  return this._getType(e) === u.null ? v(null) : this._def.innerType._parse(e);
3485
3485
  }
@@ -3487,12 +3487,12 @@ var V = class extends C {
3487
3487
  return this._def.innerType;
3488
3488
  }
3489
3489
  };
3490
- V.create = (e, t) => new V({
3490
+ z.create = (e, t) => new z({
3491
3491
  innerType: e,
3492
- typeName: H.ZodNullable,
3492
+ typeName: B.ZodNullable,
3493
3493
  ...S(t)
3494
3494
  });
3495
- var ft = class extends C {
3495
+ var mt = class extends C {
3496
3496
  _parse(e) {
3497
3497
  let { ctx: t } = this._processInputParams(e), n = t.data;
3498
3498
  return t.parsedType === u.undefined && (n = this._def.defaultValue()), this._def.innerType._parse({
@@ -3505,13 +3505,13 @@ var ft = class extends C {
3505
3505
  return this._def.innerType;
3506
3506
  }
3507
3507
  };
3508
- ft.create = (e, t) => new ft({
3508
+ mt.create = (e, t) => new mt({
3509
3509
  innerType: e,
3510
- typeName: H.ZodDefault,
3510
+ typeName: B.ZodDefault,
3511
3511
  defaultValue: typeof t.default == "function" ? t.default : () => t.default,
3512
3512
  ...S(t)
3513
3513
  });
3514
- var pt = class extends C {
3514
+ var ht = class extends C {
3515
3515
  _parse(e) {
3516
3516
  let { ctx: t } = this._processInputParams(e), n = {
3517
3517
  ...t,
@@ -3546,13 +3546,13 @@ var pt = class extends C {
3546
3546
  return this._def.innerType;
3547
3547
  }
3548
3548
  };
3549
- pt.create = (e, t) => new pt({
3549
+ ht.create = (e, t) => new ht({
3550
3550
  innerType: e,
3551
- typeName: H.ZodCatch,
3551
+ typeName: B.ZodCatch,
3552
3552
  catchValue: typeof t.catch == "function" ? t.catch : () => t.catch,
3553
3553
  ...S(t)
3554
3554
  });
3555
- var mt = class extends C {
3555
+ var gt = class extends C {
3556
3556
  _parse(e) {
3557
3557
  if (this._getType(e) !== u.nan) {
3558
3558
  let t = this._getOrReturnCtx(e);
@@ -3568,11 +3568,11 @@ var mt = class extends C {
3568
3568
  };
3569
3569
  }
3570
3570
  };
3571
- mt.create = (e) => new mt({
3572
- typeName: H.ZodNaN,
3571
+ gt.create = (e) => new gt({
3572
+ typeName: B.ZodNaN,
3573
3573
  ...S(e)
3574
3574
  });
3575
- var ht = class extends C {
3575
+ var _t = class extends C {
3576
3576
  _parse(e) {
3577
3577
  let { ctx: t } = this._processInputParams(e), n = t.data;
3578
3578
  return this._def.type._parse({
@@ -3584,7 +3584,7 @@ var ht = class extends C {
3584
3584
  unwrap() {
3585
3585
  return this._def.type;
3586
3586
  }
3587
- }, gt = class e extends C {
3587
+ }, vt = class e extends C {
3588
3588
  _parse(e) {
3589
3589
  let { status: t, ctx: n } = this._processInputParams(e);
3590
3590
  if (n.common.async) return (async () => {
@@ -3619,10 +3619,10 @@ var ht = class extends C {
3619
3619
  return new e({
3620
3620
  in: t,
3621
3621
  out: n,
3622
- typeName: H.ZodPipeline
3622
+ typeName: B.ZodPipeline
3623
3623
  });
3624
3624
  }
3625
- }, _t = class extends C {
3625
+ }, yt = class extends C {
3626
3626
  _parse(e) {
3627
3627
  let t = this._def.innerType._parse(e), n = (e) => (y(e) && (e.value = Object.freeze(e.value)), e);
3628
3628
  return Ce(t) ? t.then((e) => n(e)) : n(t);
@@ -3631,23 +3631,23 @@ var ht = class extends C {
3631
3631
  return this._def.innerType;
3632
3632
  }
3633
3633
  };
3634
- _t.create = (e, t) => new _t({
3634
+ yt.create = (e, t) => new yt({
3635
3635
  innerType: e,
3636
- typeName: H.ZodReadonly,
3636
+ typeName: B.ZodReadonly,
3637
3637
  ...S(t)
3638
- }), j.lazycreate;
3639
- var H;
3638
+ }), k.lazycreate;
3639
+ var B;
3640
3640
  (function(e) {
3641
3641
  e.ZodString = "ZodString", e.ZodNumber = "ZodNumber", e.ZodNaN = "ZodNaN", e.ZodBigInt = "ZodBigInt", e.ZodBoolean = "ZodBoolean", e.ZodDate = "ZodDate", e.ZodSymbol = "ZodSymbol", e.ZodUndefined = "ZodUndefined", e.ZodNull = "ZodNull", e.ZodAny = "ZodAny", e.ZodUnknown = "ZodUnknown", e.ZodNever = "ZodNever", e.ZodVoid = "ZodVoid", e.ZodArray = "ZodArray", e.ZodObject = "ZodObject", e.ZodUnion = "ZodUnion", e.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", e.ZodIntersection = "ZodIntersection", e.ZodTuple = "ZodTuple", e.ZodRecord = "ZodRecord", e.ZodMap = "ZodMap", e.ZodSet = "ZodSet", e.ZodFunction = "ZodFunction", e.ZodLazy = "ZodLazy", e.ZodLiteral = "ZodLiteral", e.ZodEnum = "ZodEnum", e.ZodEffects = "ZodEffects", e.ZodNativeEnum = "ZodNativeEnum", e.ZodOptional = "ZodOptional", e.ZodNullable = "ZodNullable", e.ZodDefault = "ZodDefault", e.ZodCatch = "ZodCatch", e.ZodPromise = "ZodPromise", e.ZodBranded = "ZodBranded", e.ZodPipeline = "ZodPipeline", e.ZodReadonly = "ZodReadonly";
3642
- })(H ||= {});
3643
- var U = w.create, W = Xe.create;
3644
- mt.create, Ze.create;
3645
- var vt = Qe.create;
3646
- $e.create, et.create, T.create, E.create, tt.create, D.create, O.create, nt.create;
3647
- var yt = k.create, G = j.create;
3648
- j.strictCreate, rt.create, it.create, ot.create, N.create, st.create, ct.create, lt.create, ut.create, P.create, F.create;
3649
- var K = I.create;
3650
- L.create, R.create, z.create, B.create, V.create, z.createWithPreprocess, gt.create;
3642
+ })(B ||= {});
3643
+ var V = Ye.create, H = Ze.create;
3644
+ gt.create, Qe.create;
3645
+ var U = $e.create;
3646
+ et.create, tt.create, w.create, nt.create, rt.create, T.create, E.create, it.create;
3647
+ var W = D.create, G = k.create;
3648
+ k.strictCreate, at.create, ot.create, ct.create, j.create, lt.create, ut.create, dt.create, ft.create, M.create, N.create;
3649
+ var K = P.create;
3650
+ F.create, I.create, L.create, R.create, z.create, L.createWithPreprocess, vt.create;
3651
3651
  //#endregion
3652
3652
  //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/Options.js
3653
3653
  var bt = Symbol("Let zodToJsonSchema decide on which parser to use"), xt = {
@@ -3734,7 +3734,7 @@ function J(e) {
3734
3734
  //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/array.js
3735
3735
  function Et(e, t) {
3736
3736
  let n = { type: "array" };
3737
- return e.type?._def && e.type?._def?.typeName !== H.ZodAny && (n.items = Q(e.type._def, {
3737
+ return e.type?._def && e.type?._def?.typeName !== B.ZodAny && (n.items = Q(e.type._def, {
3738
3738
  ...t,
3739
3739
  currentPath: [...t.currentPath, "items"]
3740
3740
  })), e.minLength && q(n, "minItems", e.minLength.value, e.minLength.message, t), e.maxLength && q(n, "maxItems", e.maxLength.value, e.maxLength.message, t), e.exactLength && (q(n, "minItems", e.exactLength.value, e.exactLength.message, t), q(n, "maxItems", e.exactLength.value, e.exactLength.message, t)), n;
@@ -4056,7 +4056,7 @@ function Wt(e, t) {
4056
4056
  //#endregion
4057
4057
  //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/record.js
4058
4058
  function Gt(e, t) {
4059
- if (t.target === "openAi" && console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead."), t.target === "openApi3" && e.keyType?._def.typeName === H.ZodEnum) return {
4059
+ if (t.target === "openAi" && console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead."), t.target === "openApi3" && e.keyType?._def.typeName === B.ZodEnum) return {
4060
4060
  type: "object",
4061
4061
  required: e.keyType._def.values,
4062
4062
  properties: e.keyType._def.values.reduce((n, r) => ({
@@ -4080,18 +4080,18 @@ function Gt(e, t) {
4080
4080
  }) ?? t.allowedAdditionalProperties
4081
4081
  };
4082
4082
  if (t.target === "openApi3") return n;
4083
- if (e.keyType?._def.typeName === H.ZodString && e.keyType._def.checks?.length) {
4083
+ if (e.keyType?._def.typeName === B.ZodString && e.keyType._def.checks?.length) {
4084
4084
  let { type: r, ...i } = Bt(e.keyType._def, t);
4085
4085
  return {
4086
4086
  ...n,
4087
4087
  propertyNames: i
4088
4088
  };
4089
4089
  }
4090
- if (e.keyType?._def.typeName === H.ZodEnum) return {
4090
+ if (e.keyType?._def.typeName === B.ZodEnum) return {
4091
4091
  ...n,
4092
4092
  propertyNames: { enum: e.keyType._def.values }
4093
4093
  };
4094
- if (e.keyType?._def.typeName === H.ZodBranded && e.keyType._def.type._def.typeName === H.ZodString && e.keyType._def.type._def.checks?.length) {
4094
+ if (e.keyType?._def.typeName === B.ZodBranded && e.keyType._def.type._def.typeName === B.ZodString && e.keyType._def.type._def.checks?.length) {
4095
4095
  let { type: r, ...i } = kt(e.keyType._def, t);
4096
4096
  return {
4097
4097
  ...n,
@@ -4411,42 +4411,42 @@ function dn(e) {
4411
4411
  //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.2_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js
4412
4412
  var fn = (e, t) => Q(e.innerType._def, t), pn = (e, t, n) => {
4413
4413
  switch (t) {
4414
- case H.ZodString: return Bt(e, n);
4415
- case H.ZodNumber: return en(e, n);
4416
- case H.ZodObject: return tn(e, n);
4417
- case H.ZodBigInt: return Dt(e, n);
4418
- case H.ZodBoolean: return Ot();
4419
- case H.ZodDate: return jt(e, n);
4420
- case H.ZodUndefined: return un(n);
4421
- case H.ZodNull: return Yt(n);
4422
- case H.ZodArray: return Et(e, n);
4423
- case H.ZodUnion:
4424
- case H.ZodDiscriminatedUnion: return Zt(e, n);
4425
- case H.ZodIntersection: return Lt(e, n);
4426
- case H.ZodTuple: return ln(e, n);
4427
- case H.ZodRecord: return Gt(e, n);
4428
- case H.ZodLiteral: return Rt(e, n);
4429
- case H.ZodEnum: return Ft(e);
4430
- case H.ZodNativeEnum: return qt(e);
4431
- case H.ZodNullable: return $t(e, n);
4432
- case H.ZodOptional: return an(e, n);
4433
- case H.ZodMap: return Kt(e, n);
4434
- case H.ZodSet: return cn(e, n);
4435
- case H.ZodLazy: return () => e.getter()._def;
4436
- case H.ZodPromise: return sn(e, n);
4437
- case H.ZodNaN:
4438
- case H.ZodNever: return Jt(n);
4439
- case H.ZodEffects: return Pt(e, n);
4440
- case H.ZodAny: return J(n);
4441
- case H.ZodUnknown: return dn(n);
4442
- case H.ZodDefault: return Nt(e, n);
4443
- case H.ZodBranded: return kt(e, n);
4444
- case H.ZodReadonly: return fn(e, n);
4445
- case H.ZodCatch: return At(e, n);
4446
- case H.ZodPipeline: return on(e, n);
4447
- case H.ZodFunction:
4448
- case H.ZodVoid:
4449
- case H.ZodSymbol: return;
4414
+ case B.ZodString: return Bt(e, n);
4415
+ case B.ZodNumber: return en(e, n);
4416
+ case B.ZodObject: return tn(e, n);
4417
+ case B.ZodBigInt: return Dt(e, n);
4418
+ case B.ZodBoolean: return Ot();
4419
+ case B.ZodDate: return jt(e, n);
4420
+ case B.ZodUndefined: return un(n);
4421
+ case B.ZodNull: return Yt(n);
4422
+ case B.ZodArray: return Et(e, n);
4423
+ case B.ZodUnion:
4424
+ case B.ZodDiscriminatedUnion: return Zt(e, n);
4425
+ case B.ZodIntersection: return Lt(e, n);
4426
+ case B.ZodTuple: return ln(e, n);
4427
+ case B.ZodRecord: return Gt(e, n);
4428
+ case B.ZodLiteral: return Rt(e, n);
4429
+ case B.ZodEnum: return Ft(e);
4430
+ case B.ZodNativeEnum: return qt(e);
4431
+ case B.ZodNullable: return $t(e, n);
4432
+ case B.ZodOptional: return an(e, n);
4433
+ case B.ZodMap: return Kt(e, n);
4434
+ case B.ZodSet: return cn(e, n);
4435
+ case B.ZodLazy: return () => e.getter()._def;
4436
+ case B.ZodPromise: return sn(e, n);
4437
+ case B.ZodNaN:
4438
+ case B.ZodNever: return Jt(n);
4439
+ case B.ZodEffects: return Pt(e, n);
4440
+ case B.ZodAny: return J(n);
4441
+ case B.ZodUnknown: return dn(n);
4442
+ case B.ZodDefault: return Nt(e, n);
4443
+ case B.ZodBranded: return kt(e, n);
4444
+ case B.ZodReadonly: return fn(e, n);
4445
+ case B.ZodCatch: return At(e, n);
4446
+ case B.ZodPipeline: return on(e, n);
4447
+ case B.ZodFunction:
4448
+ case B.ZodVoid:
4449
+ case B.ZodSymbol: return;
4450
4450
  default: return ((e) => void 0)(t);
4451
4451
  }
4452
4452
  };
@@ -4554,255 +4554,278 @@ function vn(e, t) {
4554
4554
  }
4555
4555
  return n.data;
4556
4556
  }
4557
- var yn = [
4558
- $({
4559
- name: "list_projects",
4560
- title: "List Projects",
4561
- description: "Retrieve all projects in the workspace.",
4562
- zodSchema: G({}),
4563
- annotations: { readOnlyHint: !0 },
4564
- execute: async (e, t) => t.getProjects()
4557
+ var yn = $({
4558
+ name: "list_projects",
4559
+ title: "List Projects",
4560
+ description: "Retrieve all projects in the workspace.",
4561
+ zodSchema: G({}),
4562
+ annotations: { readOnlyHint: !0 },
4563
+ execute: async (e, t) => t.getProjects()
4564
+ }), bn = $({
4565
+ name: "get_project",
4566
+ title: "Get Project",
4567
+ description: "Get details of a specific project by its ID.",
4568
+ zodSchema: G({ id: V().describe("The project ID") }),
4569
+ annotations: { readOnlyHint: !0 },
4570
+ execute: async (e, t) => t.getProject(e.id)
4571
+ }), xn = $({
4572
+ name: "create_project",
4573
+ title: "Create Project",
4574
+ description: "Create a new project workspace.",
4575
+ zodSchema: G({
4576
+ name: V().describe("Name of the project"),
4577
+ description: V().optional().describe("Description of the project"),
4578
+ key: V().optional().describe("Short project key/prefix (e.g. \"PROJ\")")
4565
4579
  }),
4566
- $({
4567
- name: "get_project",
4568
- title: "Get Project",
4569
- description: "Get details of a specific project by its ID.",
4570
- zodSchema: G({ id: U().describe("The project ID") }),
4571
- annotations: { readOnlyHint: !0 },
4572
- execute: async (e, t) => t.getProject(e.id)
4573
- }),
4574
- $({
4575
- name: "create_project",
4576
- title: "Create Project",
4577
- description: "Create a new project workspace.",
4578
- zodSchema: G({
4579
- name: U().describe("Name of the project"),
4580
- description: U().optional().describe("Description of the project"),
4581
- key: U().optional().describe("Short project key/prefix (e.g. \"PROJ\")")
4582
- }),
4583
- execute: async (e, t) => t.createProject(e)
4584
- }),
4585
- $({
4586
- name: "list_tasks",
4587
- title: "List Tasks",
4588
- description: "List tasks (oldest first), optionally filtered by project, status, priority, assignee or iteration. Returns { tasks, nextCursor }; pass nextCursor back as cursor to get the next page.",
4589
- zodSchema: G({
4590
- projectId: U().optional().describe("Filter by project ID"),
4591
- status: U().optional().describe("Filter by task status key"),
4592
- priority: K([
4593
- "urgent",
4594
- "high",
4595
- "medium",
4596
- "low",
4597
- "none"
4598
- ]).optional().describe("Filter by priority"),
4599
- assigneeId: U().optional().describe("Filter by assignee ID"),
4600
- iterationId: U().optional().describe("Filter by iteration (sprint) ID"),
4601
- limit: W().int().min(1).max(500).optional().describe("Page size (default 100)"),
4602
- cursor: U().optional().describe("nextCursor from a previous call")
4603
- }),
4604
- annotations: { readOnlyHint: !0 },
4605
- execute: async (e, t, n) => {
4606
- let r = await t.queryTasks({
4607
- projectId: e.projectId || n?.projectId,
4608
- status: e.status ? [e.status] : void 0,
4609
- priority: e.priority ? [e.priority] : void 0,
4610
- assigneeId: e.assigneeId,
4611
- iterationId: e.iterationId,
4612
- limit: e.limit,
4613
- cursor: e.cursor
4614
- });
4615
- return {
4616
- tasks: r.items,
4617
- nextCursor: r.nextCursor
4618
- };
4619
- }
4580
+ execute: async (e, t) => t.createProject(e)
4581
+ }), Sn = $({
4582
+ name: "list_tasks",
4583
+ title: "List Tasks",
4584
+ description: "List tasks (oldest first), optionally filtered by project, status, priority, assignee or iteration. Returns { tasks, nextCursor }; pass nextCursor back as cursor to get the next page.",
4585
+ zodSchema: G({
4586
+ projectId: V().optional().describe("Filter by project ID"),
4587
+ status: V().optional().describe("Filter by task status key"),
4588
+ priority: K([
4589
+ "urgent",
4590
+ "high",
4591
+ "medium",
4592
+ "low",
4593
+ "none"
4594
+ ]).optional().describe("Filter by priority"),
4595
+ assigneeId: V().optional().describe("Filter by assignee ID"),
4596
+ iterationId: V().optional().describe("Filter by iteration (sprint) ID"),
4597
+ limit: H().int().min(1).max(500).optional().describe("Page size (default 100)"),
4598
+ cursor: V().optional().describe("nextCursor from a previous call")
4620
4599
  }),
4621
- $({
4622
- name: "get_task",
4623
- title: "Get Task",
4624
- description: "Get task details by ID.",
4625
- zodSchema: G({ id: U().describe("The task ID") }),
4626
- annotations: { readOnlyHint: !0 },
4627
- execute: async (e, t) => t.getTask(e.id)
4628
- }),
4629
- $({
4630
- name: "create_task",
4631
- title: "Create Task",
4632
- description: "Create a new task within a project.",
4633
- zodSchema: G({
4634
- projectId: U().optional().describe("Project ID (inferred from active view in browser if omitted)"),
4635
- title: U().describe("Title of the task"),
4636
- description: U().optional().describe("Detailed description / markdown"),
4637
- status: U().optional().describe("Status (defaults to \"todo\" or first workflow status)"),
4638
- priority: K([
4639
- "urgent",
4640
- "high",
4641
- "medium",
4642
- "low",
4643
- "none"
4644
- ]).optional().default("none").describe("Task priority"),
4645
- assigneeId: U().optional().describe("User ID to assign task to"),
4646
- dueDate: U().optional().describe("Due date (ISO string)"),
4647
- tags: yt(U()).optional().describe("Tags for categorization"),
4648
- estimatedHours: W().optional().describe("Estimated hours to complete"),
4649
- allocation: W().gt(0).max(1).optional().describe("Share of the assignee's time the task takes, in (0, 1]; e.g. 0.5 for half-time. Estimates are effort, so a 0.5 task takes twice as long"),
4650
- isBlocked: vt().optional().describe("Whether the task is blocked"),
4651
- blockedReason: U().optional().describe("Reason why the task is blocked")
4652
- }),
4653
- execute: async (e, t, n) => {
4654
- let r = e.projectId || n?.projectId;
4655
- if (!r) throw Error("projectId is required to create a task, but none was provided or active in context.");
4656
- let i = {
4657
- projectId: r,
4658
- title: e.title,
4659
- description: e.description,
4660
- status: e.status || "todo",
4661
- priority: e.priority || "none",
4662
- assigneeId: e.assigneeId,
4663
- dueDate: e.dueDate,
4664
- tags: e.tags || [],
4665
- estimatedHours: e.estimatedHours,
4666
- allocation: e.allocation,
4667
- isBlocked: e.isBlocked,
4668
- blockedReason: e.blockedReason
4669
- };
4670
- return t.createTask(i);
4671
- }
4672
- }),
4673
- $({
4674
- name: "update_task",
4675
- title: "Update Task",
4676
- description: "Update fields of an existing task (e.g. title, status, priority, assignee).",
4677
- zodSchema: G({
4678
- id: U().describe("The task ID"),
4679
- title: U().optional(),
4680
- description: U().optional(),
4681
- status: U().optional(),
4682
- priority: K([
4683
- "urgent",
4684
- "high",
4685
- "medium",
4686
- "low",
4687
- "none"
4688
- ]).optional(),
4689
- assigneeId: U().optional(),
4690
- dueDate: U().optional(),
4691
- tags: yt(U()).optional(),
4692
- estimatedHours: W().optional(),
4693
- allocation: W().gt(0).max(1).optional().describe("Share of the assignee's time the task takes, in (0, 1]; e.g. 0.5 for half-time. Estimates are effort, so a 0.5 task takes twice as long"),
4694
- loggedHours: W().optional(),
4695
- isBlocked: vt().optional().describe("Whether the task is blocked"),
4696
- blockedReason: U().optional().describe("Reason why the task is blocked")
4697
- }),
4698
- execute: async (e, t) => {
4699
- let { id: n, ...r } = e;
4700
- return t.updateTask(n, r);
4701
- }
4702
- }),
4703
- $({
4704
- name: "delete_task",
4705
- title: "Delete Task",
4706
- description: "Delete a task by ID.",
4707
- zodSchema: G({ id: U().describe("The task ID to delete") }),
4708
- annotations: { requiresConfirmation: !0 },
4709
- execute: async (e, t) => ({ success: await t.deleteTask(e.id) })
4600
+ annotations: { readOnlyHint: !0 },
4601
+ execute: async (e, t, n) => {
4602
+ let r = await t.queryTasks({
4603
+ projectId: e.projectId || n?.projectId,
4604
+ status: e.status ? [e.status] : void 0,
4605
+ priority: e.priority ? [e.priority] : void 0,
4606
+ assigneeId: e.assigneeId,
4607
+ iterationId: e.iterationId,
4608
+ limit: e.limit,
4609
+ cursor: e.cursor
4610
+ });
4611
+ return {
4612
+ tasks: r.items,
4613
+ nextCursor: r.nextCursor
4614
+ };
4615
+ }
4616
+ }), Cn = $({
4617
+ name: "get_task",
4618
+ title: "Get Task",
4619
+ description: "Get task details by ID.",
4620
+ zodSchema: G({ id: V().describe("The task ID") }),
4621
+ annotations: { readOnlyHint: !0 },
4622
+ execute: async (e, t) => t.getTask(e.id)
4623
+ }), wn = $({
4624
+ name: "create_task",
4625
+ title: "Create Task",
4626
+ description: "Create a new task within a project.",
4627
+ zodSchema: G({
4628
+ projectId: V().optional().describe("Project ID (inferred from active view in browser if omitted)"),
4629
+ title: V().describe("Title of the task"),
4630
+ description: V().optional().describe("Detailed description / markdown"),
4631
+ status: V().optional().describe("Status (defaults to \"todo\" or first workflow status)"),
4632
+ priority: K([
4633
+ "urgent",
4634
+ "high",
4635
+ "medium",
4636
+ "low",
4637
+ "none"
4638
+ ]).optional().default("none").describe("Task priority"),
4639
+ assigneeId: V().optional().describe("User ID to assign task to"),
4640
+ dueDate: V().optional().describe("Due date (ISO string)"),
4641
+ tags: W(V()).optional().describe("Tags for categorization"),
4642
+ estimatedHours: H().optional().describe("Estimated hours to complete"),
4643
+ allocation: H().gt(0).max(1).optional().describe("Share of the assignee's time the task takes, in (0, 1]; e.g. 0.5 for half-time. Estimates are effort, so a 0.5 task takes twice as long"),
4644
+ isBlocked: U().optional().describe("Whether the task is blocked"),
4645
+ blockedReason: V().optional().describe("Reason why the task is blocked")
4710
4646
  }),
4711
- $({
4712
- name: "list_deliverables",
4713
- title: "List Deliverables",
4714
- description: "List deliverables/milestones for a project.",
4715
- zodSchema: G({ projectId: U().optional().describe("Project ID") }),
4716
- annotations: { readOnlyHint: !0 },
4717
- execute: async (e, t, n) => {
4718
- let r = e.projectId || n?.projectId;
4719
- if (!r) throw Error("projectId is required to list deliverables.");
4720
- return "getDeliverables" in t && typeof t.getDeliverables == "function" ? t.getDeliverables(r) : [];
4721
- }
4647
+ execute: async (e, t, n) => {
4648
+ let r = e.projectId || n?.projectId;
4649
+ if (!r) throw Error("projectId is required to create a task, but none was provided or active in context.");
4650
+ let i = {
4651
+ projectId: r,
4652
+ title: e.title,
4653
+ description: e.description,
4654
+ status: e.status || "todo",
4655
+ priority: e.priority || "none",
4656
+ assigneeId: e.assigneeId,
4657
+ dueDate: e.dueDate,
4658
+ tags: e.tags || [],
4659
+ estimatedHours: e.estimatedHours,
4660
+ allocation: e.allocation,
4661
+ isBlocked: e.isBlocked,
4662
+ blockedReason: e.blockedReason
4663
+ };
4664
+ return t.createTask(i);
4665
+ }
4666
+ }), Tn = $({
4667
+ name: "update_task",
4668
+ title: "Update Task",
4669
+ description: "Update fields of an existing task (e.g. title, status, priority, assignee).",
4670
+ zodSchema: G({
4671
+ id: V().describe("The task ID"),
4672
+ title: V().optional(),
4673
+ description: V().optional(),
4674
+ status: V().optional(),
4675
+ priority: K([
4676
+ "urgent",
4677
+ "high",
4678
+ "medium",
4679
+ "low",
4680
+ "none"
4681
+ ]).optional(),
4682
+ assigneeId: V().optional(),
4683
+ dueDate: V().optional(),
4684
+ tags: W(V()).optional(),
4685
+ estimatedHours: H().optional(),
4686
+ allocation: H().gt(0).max(1).optional().describe("Share of the assignee's time the task takes, in (0, 1]; e.g. 0.5 for half-time. Estimates are effort, so a 0.5 task takes twice as long"),
4687
+ loggedHours: H().optional(),
4688
+ isBlocked: U().optional().describe("Whether the task is blocked"),
4689
+ blockedReason: V().optional().describe("Reason why the task is blocked")
4722
4690
  }),
4723
- $({
4724
- name: "create_deliverable",
4725
- title: "Create Deliverable",
4726
- description: "Create a milestone deliverable within a project.",
4727
- zodSchema: G({
4728
- projectId: U().optional(),
4729
- title: U(),
4730
- description: U().optional(),
4731
- dueDate: U().optional(),
4732
- taskIds: yt(U()).optional()
4733
- }),
4734
- execute: async (e, t, n) => {
4735
- let r = e.projectId || n?.projectId;
4736
- if (!r) throw Error("projectId is required to create a deliverable.");
4737
- if ("createDeliverable" in t && typeof t.createDeliverable == "function") return t.createDeliverable({
4738
- ...e,
4739
- projectId: r
4740
- });
4741
- throw Error("createDeliverable is not supported by this backend target.");
4742
- }
4691
+ execute: async (e, t) => {
4692
+ let { id: n, ...r } = e;
4693
+ return t.updateTask(n, r);
4694
+ }
4695
+ }), En = $({
4696
+ name: "delete_task",
4697
+ title: "Delete Task",
4698
+ description: "Delete a task by ID.",
4699
+ zodSchema: G({ id: V().describe("The task ID to delete") }),
4700
+ annotations: { requiresConfirmation: !0 },
4701
+ execute: async (e, t) => ({ success: await t.deleteTask(e.id) })
4702
+ }), Dn = $({
4703
+ name: "list_deliverables",
4704
+ title: "List Deliverables",
4705
+ description: "List deliverables/milestones for a project.",
4706
+ zodSchema: G({ projectId: V().optional().describe("Project ID") }),
4707
+ annotations: { readOnlyHint: !0 },
4708
+ execute: async (e, t, n) => {
4709
+ let r = e.projectId || n?.projectId;
4710
+ if (!r) throw Error("projectId is required to list deliverables.");
4711
+ return "getDeliverables" in t && typeof t.getDeliverables == "function" ? t.getDeliverables(r) : [];
4712
+ }
4713
+ }), On = $({
4714
+ name: "create_deliverable",
4715
+ title: "Create Deliverable",
4716
+ description: "Create a milestone deliverable within a project.",
4717
+ zodSchema: G({
4718
+ projectId: V().optional(),
4719
+ title: V(),
4720
+ description: V().optional(),
4721
+ dueDate: V().optional(),
4722
+ taskIds: W(V()).optional()
4743
4723
  }),
4744
- $({
4745
- name: "list_comments",
4746
- title: "List Comments",
4747
- description: "List comments associated with a task.",
4748
- zodSchema: G({ taskId: U().describe("The task ID") }),
4749
- annotations: { readOnlyHint: !0 },
4750
- execute: async (e, t) => "getComments" in t && typeof t.getComments == "function" ? t.getComments(e.taskId) : []
4724
+ execute: async (e, t, n) => {
4725
+ let r = e.projectId || n?.projectId;
4726
+ if (!r) throw Error("projectId is required to create a deliverable.");
4727
+ if ("createDeliverable" in t && typeof t.createDeliverable == "function") return t.createDeliverable({
4728
+ ...e,
4729
+ projectId: r
4730
+ });
4731
+ throw Error("createDeliverable is not supported by this backend target.");
4732
+ }
4733
+ }), kn = $({
4734
+ name: "list_comments",
4735
+ title: "List Comments",
4736
+ description: "List comments associated with a task.",
4737
+ zodSchema: G({ taskId: V().describe("The task ID") }),
4738
+ annotations: { readOnlyHint: !0 },
4739
+ execute: async (e, t) => "getComments" in t && typeof t.getComments == "function" ? t.getComments(e.taskId) : []
4740
+ }), An = $({
4741
+ name: "add_comment",
4742
+ title: "Add Comment",
4743
+ description: "Add a comment to a task. The comment is attributed to the identity this MCP server runs as.",
4744
+ zodSchema: G({
4745
+ taskId: V().describe("The task ID"),
4746
+ content: V().describe("Comment body/markdown")
4751
4747
  }),
4752
- $({
4753
- name: "add_comment",
4754
- title: "Add Comment",
4755
- description: "Add a comment to a task. The comment is attributed to the identity this MCP server runs as.",
4756
- zodSchema: G({
4757
- taskId: U().describe("The task ID"),
4758
- content: U().describe("Comment body/markdown")
4759
- }),
4760
- execute: async (e, t) => t.addComment({
4761
- taskId: e.taskId,
4762
- content: e.content
4763
- })
4748
+ execute: async (e, t) => t.addComment({
4749
+ taskId: e.taskId,
4750
+ content: e.content
4751
+ })
4752
+ }), jn = $({
4753
+ name: "calculate_portfolio_critical_path",
4754
+ title: "Calculate Portfolio Critical Path",
4755
+ description: "Critical path analysis across several projects at once (or every readable project). With calendars \"assignee\" and levelResources, people and teams are shared across projects, so nobody is double-booked between them.",
4756
+ zodSchema: G({
4757
+ projectIds: W(V()).optional().describe("Projects to include (default: every project you can read)"),
4758
+ projectOrder: W(V()).optional().describe("Project ids in priority order for levelling; unlisted projects come last"),
4759
+ includeHiddenWork: U().optional().describe("Also count other projects' work (even unreadable ones, shown only as 'hidden') toward people's capacity. Requires workspace.manage"),
4760
+ calendars: K(["project", "assignee"]).optional().describe("'assignee' schedules each task on its assignee's or team's calendar"),
4761
+ levelResources: U().optional().describe("With calendars 'assignee': share people and team pools across the projects"),
4762
+ levelingPriority: K([
4763
+ "slack",
4764
+ "priority",
4765
+ "dueDate",
4766
+ "order"
4767
+ ]).optional().describe("Which ready task gets an assignee first when levelling (default: least slack, then task priority)"),
4768
+ effort: K(["estimate", "remaining"]).optional().describe("'remaining' schedules only estimate minus logged hours for in-progress tasks (default: full estimates)")
4764
4769
  }),
4770
+ annotations: { readOnlyHint: !0 },
4771
+ execute: async (e, t) => t.calculatePortfolioCriticalPath(e)
4772
+ }), Mn = [
4773
+ yn,
4774
+ bn,
4775
+ xn,
4776
+ Sn,
4777
+ Cn,
4778
+ wn,
4779
+ Tn,
4780
+ En,
4781
+ Dn,
4782
+ On,
4783
+ kn,
4784
+ An,
4765
4785
  $({
4766
4786
  name: "calculate_critical_path",
4767
4787
  title: "Calculate Critical Path",
4768
4788
  description: "Calculate Critical Path Method (CPM) schedule, early/late start and finish, total slack, and critical bottlenecks for a project.",
4769
4789
  zodSchema: G({
4770
- projectId: U().optional().describe("Project ID (falls back to ambient context if omitted)"),
4790
+ projectId: V().optional().describe("Project ID (falls back to ambient context if omitted)"),
4771
4791
  calendars: K(["project", "assignee"]).optional().describe("'assignee' schedules each task on its assignee's or team's working calendar; default uses the project calendar"),
4772
- levelResources: vt().optional().describe("With calendars 'assignee': delay tasks so each assignee works on one task at a time"),
4792
+ levelResources: U().optional().describe("With calendars 'assignee': delay tasks so each assignee works on one task at a time"),
4773
4793
  levelingPriority: K([
4774
4794
  "slack",
4775
4795
  "priority",
4776
4796
  "dueDate",
4777
4797
  "order"
4778
- ]).optional().describe("Which ready task gets an assignee first when levelling (default: least slack, then task priority)")
4798
+ ]).optional().describe("Which ready task gets an assignee first when levelling (default: least slack, then task priority)"),
4799
+ effort: K(["estimate", "remaining"]).optional().describe("'remaining' schedules only estimate minus logged hours for in-progress tasks (default: full estimates)")
4779
4800
  }),
4780
4801
  annotations: { readOnlyHint: !0 },
4781
4802
  execute: async (e, t, n) => {
4782
4803
  let r = e.projectId || n?.projectId;
4783
4804
  if (!r) throw Error("projectId is required to calculate critical path.");
4784
- let { calendars: i, levelResources: a, levelingPriority: o } = e;
4805
+ let { calendars: i, levelResources: a, levelingPriority: o, effort: s } = e;
4785
4806
  return t.calculateCriticalPath(r, {
4786
4807
  calendars: i,
4787
4808
  levelResources: a,
4788
- levelingPriority: o
4809
+ levelingPriority: o,
4810
+ effort: s
4789
4811
  });
4790
4812
  }
4791
4813
  }),
4814
+ jn,
4792
4815
  $({
4793
4816
  name: "get_timeline_ladder",
4794
4817
  title: "Get Timeline Ladder of Abstraction",
4795
4818
  description: "Retrieve Ladder of Abstraction for a project timeline across macro phase envelopes, standard Gantt tasks & CPM, and concrete deliverables/time/attachments.",
4796
4819
  zodSchema: G({
4797
- projectId: U().optional().describe("Project ID (falls back to ambient context if omitted)"),
4820
+ projectId: V().optional().describe("Project ID (falls back to ambient context if omitted)"),
4798
4821
  level: K([
4799
4822
  "macro",
4800
4823
  "standard",
4801
4824
  "concrete",
4802
4825
  "all"
4803
4826
  ]).optional().describe("Abstraction level (macro, standard, concrete, or all)"),
4804
- containerId: U().optional().describe("Optional container ID filter"),
4805
- iterationId: U().optional().describe("Optional iteration/sprint ID filter")
4827
+ containerId: V().optional().describe("Optional container ID filter"),
4828
+ iterationId: V().optional().describe("Optional iteration/sprint ID filter")
4806
4829
  }),
4807
4830
  annotations: { readOnlyHint: !0 },
4808
4831
  execute: async (e, t, n) => {
@@ -4819,7 +4842,7 @@ var yn = [
4819
4842
  name: "get_task_ladder",
4820
4843
  title: "Get Task Ladder View",
4821
4844
  description: "Retrieve multi-scale ladder view for a single task, connecting its macro phase, standard CPM timeline position, and concrete work evidence.",
4822
- zodSchema: G({ taskId: U().describe("The task ID") }),
4845
+ zodSchema: G({ taskId: V().describe("The task ID") }),
4823
4846
  annotations: { readOnlyHint: !0 },
4824
4847
  execute: async (e, t) => t.getTaskLadder(e.taskId)
4825
4848
  }),
@@ -4827,7 +4850,7 @@ var yn = [
4827
4850
  name: "get_task_metrics",
4828
4851
  title: "Get Task Metrics",
4829
4852
  description: "Retrieve multi-dimensional task metrics including inferred actuals, active working duration, effort/duration/schedule variances, progress inference, and Earned Value Management (EVM) metrics.",
4830
- zodSchema: G({ taskId: U().describe("The task ID") }),
4853
+ zodSchema: G({ taskId: V().describe("The task ID") }),
4831
4854
  annotations: { readOnlyHint: !0 },
4832
4855
  execute: async (e, t) => t.getTaskMetrics(e.taskId)
4833
4856
  }),
@@ -4835,7 +4858,7 @@ var yn = [
4835
4858
  name: "get_task_progress_history",
4836
4859
  title: "Get Task Progress History",
4837
4860
  description: "Retrieve time-series progress data points and curve shape classification (linear, s_curve, early_surge, late_rush, stalled) for a task.",
4838
- zodSchema: G({ taskId: U().describe("The task ID") }),
4861
+ zodSchema: G({ taskId: V().describe("The task ID") }),
4839
4862
  annotations: { readOnlyHint: !0 },
4840
4863
  execute: async (e, t) => t.getTaskProgressHistory(e.taskId)
4841
4864
  }),
@@ -4844,9 +4867,9 @@ var yn = [
4844
4867
  title: "Get Workload Distribution",
4845
4868
  description: "Retrieve time-series workload and capacity distribution suitable for streamgraphs, stacked charts, and team capacity planning.",
4846
4869
  zodSchema: G({
4847
- projectId: U().optional().describe("Project ID (optional, defaults to workspace-wide or ambient project)"),
4848
- startDate: U().optional().describe("Start date ISO (YYYY-MM-DD)"),
4849
- endDate: U().optional().describe("End date ISO (YYYY-MM-DD)"),
4870
+ projectId: V().optional().describe("Project ID (optional, defaults to workspace-wide or ambient project)"),
4871
+ startDate: V().optional().describe("Start date ISO (YYYY-MM-DD)"),
4872
+ endDate: V().optional().describe("End date ISO (YYYY-MM-DD)"),
4850
4873
  interval: K([
4851
4874
  "day",
4852
4875
  "week",
@@ -4865,7 +4888,7 @@ var yn = [
4865
4888
  "remaining",
4866
4889
  "blended"
4867
4890
  ]).optional().describe("Effort metric mode"),
4868
- defaultWeeklyCapacityHours: W().optional().describe("Default weekly capacity hours per person (default 40)")
4891
+ defaultWeeklyCapacityHours: H().optional().describe("Default weekly capacity hours per person (default 40)")
4869
4892
  }),
4870
4893
  annotations: { readOnlyHint: !0 },
4871
4894
  execute: async (e, t, n) => {
@@ -4881,10 +4904,10 @@ var yn = [
4881
4904
  }
4882
4905
  })
4883
4906
  ];
4884
- new Map(yn.map((e) => [e.name, e]));
4907
+ new Map(Mn.map((e) => [e.name, e]));
4885
4908
  //#endregion
4886
4909
  //#region ../mcp/dist/web/index.js
4887
- function bn(e = typeof document < "u" ? document : null) {
4910
+ function Nn(e = typeof document < "u" ? document : null) {
4888
4911
  if (!e) return null;
4889
4912
  if (!e.modelContext) {
4890
4913
  let t = /* @__PURE__ */ new Map();
@@ -4909,10 +4932,10 @@ function bn(e = typeof document < "u" ? document : null) {
4909
4932
  }
4910
4933
  return e.modelContext;
4911
4934
  }
4912
- function xn(e) {
4935
+ function Pn(e) {
4913
4936
  let t = e.document ?? (typeof document < "u" ? document : null), n = e.navigator ?? (typeof navigator < "u" ? navigator : null), r = e.window ?? (typeof window < "u" ? window : null), i;
4914
- t?.modelContext ? i = t.modelContext : n?.modelContext ? i = n.modelContext : t && (i = bn(t) ?? void 0);
4915
- let a = e.tools ? yn.filter((t) => e.tools.includes(t.name)) : yn, o = [], s = new AbortController();
4937
+ t?.modelContext ? i = t.modelContext : n?.modelContext ? i = n.modelContext : t && (i = Nn(t) ?? void 0);
4938
+ let a = e.tools ? Mn.filter((t) => e.tools.includes(t.name)) : Mn, o = [], s = new AbortController();
4916
4939
  e.signal && e.signal.addEventListener("abort", () => s.abort(), { once: !0 });
4917
4940
  for (let t of a) {
4918
4941
  let n = {
@@ -4950,7 +4973,7 @@ function xn(e) {
4950
4973
  }
4951
4974
  //#endregion
4952
4975
  //#region src/webmcp-state.svelte.ts
4953
- var Sn = class {
4976
+ var Fn = class {
4954
4977
  client;
4955
4978
  options;
4956
4979
  #e = t.state(!1);
@@ -4990,7 +5013,7 @@ var Sn = class {
4990
5013
  if (!this.registered) {
4991
5014
  this.error = null;
4992
5015
  try {
4993
- this.abortController = new AbortController(), this.handle = xn({
5016
+ this.abortController = new AbortController(), this.handle = Pn({
4994
5017
  client: this.client,
4995
5018
  projectId: this.activeProjectId,
4996
5019
  tools: this.options.tools,
@@ -5014,12 +5037,12 @@ var Sn = class {
5014
5037
  this.activeProjectId !== e && (this.activeProjectId = e, this.registered && (this.unregister(), this.register()));
5015
5038
  }
5016
5039
  };
5017
- function Cn(e, t) {
5018
- return new Sn(e, t);
5040
+ function In(e, t) {
5041
+ return new Fn(e, t);
5019
5042
  }
5020
5043
  //#endregion
5021
5044
  //#region src/critical-path-state.svelte.ts
5022
- var wn = class {
5045
+ var Ln = class {
5023
5046
  client;
5024
5047
  projectId;
5025
5048
  #e = new i();
@@ -5063,12 +5086,12 @@ var wn = class {
5063
5086
  this.#e.cancel();
5064
5087
  }
5065
5088
  };
5066
- function Tn(e, t) {
5067
- return new wn(e, t);
5089
+ function Rn(e, t) {
5090
+ return new Ln(e, t);
5068
5091
  }
5069
5092
  //#endregion
5070
5093
  //#region src/timeline-ladder-state.svelte.ts
5071
- var En = class {
5094
+ var zn = class {
5072
5095
  client;
5073
5096
  projectId;
5074
5097
  #e = new i();
@@ -5146,12 +5169,12 @@ var En = class {
5146
5169
  this.#e.cancel();
5147
5170
  }
5148
5171
  };
5149
- function Dn(e, t, n) {
5150
- return new En(e, t, n);
5172
+ function Bn(e, t, n) {
5173
+ return new zn(e, t, n);
5151
5174
  }
5152
5175
  //#endregion
5153
5176
  //#region src/task-metrics-state.svelte.ts
5154
- var On = class {
5177
+ var Vn = class {
5155
5178
  client;
5156
5179
  taskId;
5157
5180
  #e = new i();
@@ -5270,12 +5293,12 @@ var On = class {
5270
5293
  this.#e.cancel(), this.#t.cancel(), this.#n.cancel();
5271
5294
  }
5272
5295
  };
5273
- function kn(e, t) {
5274
- return new On(e, t);
5296
+ function Hn(e, t) {
5297
+ return new Vn(e, t);
5275
5298
  }
5276
5299
  //#endregion
5277
5300
  //#region src/workload-state.svelte.ts
5278
- var An = class {
5301
+ var Un = class {
5279
5302
  client;
5280
5303
  projectId;
5281
5304
  initialOptions;
@@ -5398,13 +5421,13 @@ var An = class {
5398
5421
  this.#e.cancel();
5399
5422
  }
5400
5423
  };
5401
- function jn(e, t, n) {
5402
- return new An(e, t, n);
5424
+ function Wn(e, t, n) {
5425
+ return new Un(e, t, n);
5403
5426
  }
5404
5427
  //#endregion
5405
5428
  //#region src/index.ts
5406
- function Mn(t) {
5429
+ function Gn(t) {
5407
5430
  return new e(t);
5408
5431
  }
5409
5432
  //#endregion
5410
- export { ie as AttachmentState, ne as CommentState, wn as CriticalPathState, ce as DeliverableState, ue as DeliverableSummaryState, fe as KanbanState, a as ProjectState, oe as TaskActivityState, On as TaskMetricsState, s as TaskState, me as TaskTransitionsState, En as TimelineLadderState, Sn as WebMcpState, ee as WorkflowState, An as WorkloadState, ae as createAttachmentState, re as createCommentState, Mn as createCriticalPathClient, Tn as createCriticalPathState, le as createDeliverableState, de as createDeliverableSummaryState, pe as createKanbanState, o as createProjectState, se as createTaskActivityState, kn as createTaskMetricsState, c as createTaskState, he as createTaskTransitionsState, Dn as createTimelineLadderState, Cn as createWebMcpState, te as createWorkflowState, jn as createWorkloadState };
5433
+ export { ie as AttachmentState, ne as CommentState, Ln as CriticalPathState, ce as DeliverableState, ue as DeliverableSummaryState, fe as KanbanState, a as ProjectState, oe as TaskActivityState, Vn as TaskMetricsState, s as TaskState, me as TaskTransitionsState, zn as TimelineLadderState, Fn as WebMcpState, ee as WorkflowState, Un as WorkloadState, ae as createAttachmentState, re as createCommentState, Gn as createCriticalPathClient, Rn as createCriticalPathState, le as createDeliverableState, de as createDeliverableSummaryState, pe as createKanbanState, o as createProjectState, se as createTaskActivityState, Hn as createTaskMetricsState, c as createTaskState, he as createTaskTransitionsState, Bn as createTimelineLadderState, In as createWebMcpState, te as createWorkflowState, Wn as createWorkloadState };