@critical-path/svelte 0.18.11 → 0.18.13

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 +261 -257
  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 R({
1388
+ return new L({
1389
1389
  schema: this,
1390
- typeName: V.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 z.create(this, this._def);
1408
+ return R.create(this, this._def);
1409
1409
  }
1410
1410
  nullable() {
1411
- return B.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 O.create(this);
1417
+ return D.create(this);
1418
1418
  }
1419
1419
  promise() {
1420
- return L.create(this, this._def);
1420
+ return I.create(this, this._def);
1421
1421
  }
1422
1422
  or(e) {
1423
- return it.create([this, e], this._def);
1423
+ return at.create([this, e], this._def);
1424
1424
  }
1425
1425
  and(e) {
1426
- return st.create(this, e, this._def);
1426
+ return ct.create(this, e, this._def);
1427
1427
  }
1428
1428
  transform(e) {
1429
- return new R({
1429
+ return new L({
1430
1430
  ...S(this._def),
1431
1431
  schema: this,
1432
- typeName: V.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 pt({
1441
+ return new mt({
1442
1442
  ...S(this._def),
1443
1443
  innerType: this,
1444
1444
  defaultValue: t,
1445
- typeName: V.ZodDefault
1445
+ typeName: B.ZodDefault
1446
1446
  });
1447
1447
  }
1448
1448
  brand() {
1449
- return new gt({
1450
- typeName: V.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 mt({
1457
+ return new ht({
1458
1458
  ...S(this._def),
1459
1459
  innerType: this,
1460
1460
  catchValue: t,
1461
- typeName: V.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 _t.create(this, e);
1472
+ return vt.create(this, e);
1473
1473
  }
1474
1474
  readonly() {
1475
- return vt.create(this);
1475
+ return yt.create(this);
1476
1476
  }
1477
1477
  isOptional() {
1478
1478
  return this.safeParse(void 0).success;
@@ -1921,7 +1921,7 @@ var Ye = class e extends C {
1921
1921
  };
1922
1922
  Ye.create = (e) => new Ye({
1923
1923
  checks: [],
1924
- typeName: V.ZodString,
1924
+ typeName: B.ZodString,
1925
1925
  coerce: e?.coerce ?? !1,
1926
1926
  ...S(e)
1927
1927
  });
@@ -2090,7 +2090,7 @@ var Ze = class e extends C {
2090
2090
  };
2091
2091
  Ze.create = (e) => new Ze({
2092
2092
  checks: [],
2093
- typeName: V.ZodNumber,
2093
+ typeName: B.ZodNumber,
2094
2094
  coerce: e?.coerce || !1,
2095
2095
  ...S(e)
2096
2096
  });
@@ -2217,7 +2217,7 @@ var Qe = class e extends C {
2217
2217
  };
2218
2218
  Qe.create = (e) => new Qe({
2219
2219
  checks: [],
2220
- typeName: V.ZodBigInt,
2220
+ typeName: B.ZodBigInt,
2221
2221
  coerce: e?.coerce ?? !1,
2222
2222
  ...S(e)
2223
2223
  });
@@ -2235,7 +2235,7 @@ var $e = class extends C {
2235
2235
  }
2236
2236
  };
2237
2237
  $e.create = (e) => new $e({
2238
- typeName: V.ZodBoolean,
2238
+ typeName: B.ZodBoolean,
2239
2239
  coerce: e?.coerce || !1,
2240
2240
  ...S(e)
2241
2241
  });
@@ -2305,7 +2305,7 @@ var et = class e extends C {
2305
2305
  et.create = (e) => new et({
2306
2306
  checks: [],
2307
2307
  coerce: e?.coerce || !1,
2308
- typeName: V.ZodDate,
2308
+ typeName: B.ZodDate,
2309
2309
  ...S(e)
2310
2310
  });
2311
2311
  var tt = class extends C {
@@ -2322,7 +2322,7 @@ var tt = class extends C {
2322
2322
  }
2323
2323
  };
2324
2324
  tt.create = (e) => new tt({
2325
- typeName: V.ZodSymbol,
2325
+ typeName: B.ZodSymbol,
2326
2326
  ...S(e)
2327
2327
  });
2328
2328
  var w = class extends C {
@@ -2339,10 +2339,10 @@ var w = class extends C {
2339
2339
  }
2340
2340
  };
2341
2341
  w.create = (e) => new w({
2342
- typeName: V.ZodUndefined,
2342
+ typeName: B.ZodUndefined,
2343
2343
  ...S(e)
2344
2344
  });
2345
- var T = 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 T = class extends C {
2355
2355
  return v(e.data);
2356
2356
  }
2357
2357
  };
2358
- T.create = (e) => new T({
2359
- typeName: V.ZodNull,
2358
+ nt.create = (e) => new nt({
2359
+ typeName: B.ZodNull,
2360
2360
  ...S(e)
2361
2361
  });
2362
- var nt = 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 nt = class extends C {
2367
2367
  return v(e.data);
2368
2368
  }
2369
2369
  };
2370
- nt.create = (e) => new nt({
2371
- typeName: V.ZodAny,
2370
+ rt.create = (e) => new rt({
2371
+ typeName: B.ZodAny,
2372
2372
  ...S(e)
2373
2373
  });
2374
- var E = 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 E = class extends C {
2379
2379
  return v(e.data);
2380
2380
  }
2381
2381
  };
2382
- E.create = (e) => new E({
2383
- typeName: V.ZodUnknown,
2382
+ T.create = (e) => new T({
2383
+ typeName: B.ZodUnknown,
2384
2384
  ...S(e)
2385
2385
  });
2386
- var D = 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 D = class extends C {
2393
2393
  }), _;
2394
2394
  }
2395
2395
  };
2396
- D.create = (e) => new D({
2397
- typeName: V.ZodNever,
2396
+ E.create = (e) => new E({
2397
+ typeName: B.ZodNever,
2398
2398
  ...S(e)
2399
2399
  });
2400
- var rt = 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 rt = class extends C {
2410
2410
  return v(e.data);
2411
2411
  }
2412
2412
  };
2413
- rt.create = (e) => new rt({
2414
- typeName: V.ZodVoid,
2413
+ it.create = (e) => new it({
2414
+ typeName: B.ZodVoid,
2415
2415
  ...S(e)
2416
2416
  });
2417
- var O = 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 O = class e extends C {
2486
2486
  return this.min(1, e);
2487
2487
  }
2488
2488
  };
2489
- O.create = (e, t) => new O({
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: V.ZodArray,
2494
+ typeName: B.ZodArray,
2495
2495
  ...S(t)
2496
2496
  });
2497
- function k(e) {
2498
- if (e instanceof A) {
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] = z.create(k(r));
2502
+ t[n] = R.create(O(r));
2503
2503
  }
2504
- return new A({
2504
+ return new k({
2505
2505
  ...e._def,
2506
2506
  shape: () => t
2507
2507
  });
2508
2508
  }
2509
- return e instanceof O ? new O({
2509
+ return e instanceof D ? new D({
2510
2510
  ...e._def,
2511
- type: k(e.element)
2512
- }) : e instanceof z ? z.create(k(e.unwrap())) : e instanceof B ? B.create(k(e.unwrap())) : e instanceof M ? M.create(e.items.map((e) => k(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 A = 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 A = 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 D && 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 A = class e extends C {
2546
2546
  alwaysSet: e in n.data
2547
2547
  });
2548
2548
  }
2549
- if (this._def.catchall instanceof D) {
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 A = class e extends C {
2632
2632
  ...this._def.shape(),
2633
2633
  ...t._def.shape()
2634
2634
  }),
2635
- typeName: V.ZodObject
2635
+ typeName: B.ZodObject
2636
2636
  });
2637
2637
  }
2638
2638
  setKey(e, t) {
@@ -2661,7 +2661,7 @@ var A = class e extends C {
2661
2661
  });
2662
2662
  }
2663
2663
  deepPartial() {
2664
- return k(this);
2664
+ return O(this);
2665
2665
  }
2666
2666
  partial(t) {
2667
2667
  let n = {};
@@ -2679,7 +2679,7 @@ var A = 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 z;) 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 A = class e extends C {
2688
2688
  });
2689
2689
  }
2690
2690
  keyof() {
2691
- return ft(l.objectKeys(this.shape));
2691
+ return pt(l.objectKeys(this.shape));
2692
2692
  }
2693
2693
  };
2694
- A.create = (e, t) => new A({
2694
+ k.create = (e, t) => new k({
2695
2695
  shape: () => e,
2696
2696
  unknownKeys: "strip",
2697
- catchall: D.create(),
2698
- typeName: V.ZodObject,
2697
+ catchall: E.create(),
2698
+ typeName: B.ZodObject,
2699
2699
  ...S(t)
2700
- }), A.strictCreate = (e, t) => new A({
2700
+ }), k.strictCreate = (e, t) => new k({
2701
2701
  shape: () => e,
2702
2702
  unknownKeys: "strict",
2703
- catchall: D.create(),
2704
- typeName: V.ZodObject,
2703
+ catchall: E.create(),
2704
+ typeName: B.ZodObject,
2705
2705
  ...S(t)
2706
- }), A.lazycreate = (e, t) => new A({
2706
+ }), k.lazycreate = (e, t) => new k({
2707
2707
  shape: e,
2708
2708
  unknownKeys: "strip",
2709
- catchall: D.create(),
2710
- typeName: V.ZodObject,
2709
+ catchall: E.create(),
2710
+ typeName: B.ZodObject,
2711
2711
  ...S(t)
2712
2712
  });
2713
- var it = 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 it = class extends C {
2773
2773
  return this._def.options;
2774
2774
  }
2775
2775
  };
2776
- it.create = (e, t) => new it({
2776
+ at.create = (e, t) => new at({
2777
2777
  options: e,
2778
- typeName: V.ZodUnion,
2778
+ typeName: B.ZodUnion,
2779
2779
  ...S(t)
2780
2780
  });
2781
- var j = (e) => e instanceof N ? j(e.schema) : e instanceof R ? j(e.innerType()) : e instanceof P ? [e.value] : e instanceof F ? e.options : e instanceof I ? l.objectValues(e.enum) : e instanceof pt ? j(e._def.innerType) : e instanceof w ? [void 0] : e instanceof T ? [null] : e instanceof z ? [void 0, ...j(e.unwrap())] : e instanceof B ? [null, ...j(e.unwrap())] : e instanceof gt || e instanceof vt ? j(e.unwrap()) : e instanceof mt ? j(e._def.innerType) : [], at = 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 j = (e) => e instanceof N ? j(e.schema) : e instanceof R ? j(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 = j(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 j = (e) => e instanceof N ? j(e.schema) : e instanceof R ? j(e.innerType())
2821
2821
  }
2822
2822
  }
2823
2823
  return new e({
2824
- typeName: V.ZodDiscriminatedUnion,
2824
+ typeName: B.ZodDiscriminatedUnion,
2825
2825
  discriminator: t,
2826
2826
  options: n,
2827
2827
  optionsMap: i,
@@ -2829,7 +2829,7 @@ var j = (e) => e instanceof N ? j(e.schema) : e instanceof R ? j(e.innerType())
2829
2829
  });
2830
2830
  }
2831
2831
  };
2832
- function ot(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 ot(e, t) {
2841
2841
  ...t
2842
2842
  };
2843
2843
  for (let n of r) {
2844
- let r = ot(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 ot(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 = ot(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 ot(e, t) {
2868
2868
  data: e
2869
2869
  } : { valid: !1 };
2870
2870
  }
2871
- var st = 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 = ot(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 st = class extends C {
2897
2897
  }));
2898
2898
  }
2899
2899
  };
2900
- st.create = (e, t, n) => new st({
2900
+ ct.create = (e, t, n) => new ct({
2901
2901
  left: e,
2902
2902
  right: t,
2903
- typeName: V.ZodIntersection,
2903
+ typeName: B.ZodIntersection,
2904
2904
  ...S(n)
2905
2905
  });
2906
- var M = 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 M = class e extends C {
2941
2941
  });
2942
2942
  }
2943
2943
  };
2944
- M.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 M({
2946
+ return new j({
2947
2947
  items: e,
2948
- typeName: V.ZodTuple,
2948
+ typeName: B.ZodTuple,
2949
2949
  rest: null,
2950
2950
  ...S(t)
2951
2951
  });
2952
2952
  };
2953
- var ct = 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 ct = class e extends C {
2979
2979
  return n instanceof C ? new e({
2980
2980
  keyType: t,
2981
2981
  valueType: n,
2982
- typeName: V.ZodRecord,
2982
+ typeName: B.ZodRecord,
2983
2983
  ...S(r)
2984
2984
  }) : new e({
2985
2985
  keyType: Ye.create(),
2986
2986
  valueType: t,
2987
- typeName: V.ZodRecord,
2987
+ typeName: B.ZodRecord,
2988
2988
  ...S(n)
2989
2989
  });
2990
2990
  }
2991
- }, lt = 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 ct = class e extends C {
3034
3034
  }
3035
3035
  }
3036
3036
  };
3037
- lt.create = (e, t, n) => new lt({
3037
+ ut.create = (e, t, n) => new ut({
3038
3038
  valueType: t,
3039
3039
  keyType: e,
3040
- typeName: V.ZodMap,
3040
+ typeName: B.ZodMap,
3041
3041
  ...S(n)
3042
3042
  });
3043
- var ut = 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 ut = class e extends C {
3104
3104
  return this.min(1, e);
3105
3105
  }
3106
3106
  };
3107
- ut.create = (e, t) => new ut({
3107
+ dt.create = (e, t) => new dt({
3108
3108
  valueType: e,
3109
3109
  minSize: null,
3110
3110
  maxSize: null,
3111
- typeName: V.ZodSet,
3111
+ typeName: B.ZodSet,
3112
3112
  ...S(t)
3113
3113
  });
3114
- var dt = 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 dt = 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 L) {
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 dt = class e extends C {
3186
3186
  args(...t) {
3187
3187
  return new e({
3188
3188
  ...this._def,
3189
- args: M.create(t).rest(E.create())
3189
+ args: j.create(t).rest(T.create())
3190
3190
  });
3191
3191
  }
3192
3192
  returns(t) {
@@ -3203,13 +3203,13 @@ var dt = class e extends C {
3203
3203
  }
3204
3204
  static create(t, n, r) {
3205
3205
  return new e({
3206
- args: t || M.create([]).rest(E.create()),
3207
- returns: n || E.create(),
3208
- typeName: V.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
- }, N = 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 dt = class e extends C {
3222
3222
  });
3223
3223
  }
3224
3224
  };
3225
- N.create = (e, t) => new N({
3225
+ M.create = (e, t) => new M({
3226
3226
  getter: e,
3227
- typeName: V.ZodLazy,
3227
+ typeName: B.ZodLazy,
3228
3228
  ...S(t)
3229
3229
  });
3230
- var P = 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 P = class extends C {
3246
3246
  return this._def.value;
3247
3247
  }
3248
3248
  };
3249
- P.create = (e, t) => new P({
3249
+ N.create = (e, t) => new N({
3250
3250
  value: e,
3251
- typeName: V.ZodLiteral,
3251
+ typeName: B.ZodLiteral,
3252
3252
  ...S(t)
3253
3253
  });
3254
- function ft(e, t) {
3255
- return new F({
3254
+ function pt(e, t) {
3255
+ return new P({
3256
3256
  values: e,
3257
- typeName: V.ZodEnum,
3257
+ typeName: B.ZodEnum,
3258
3258
  ...S(t)
3259
3259
  });
3260
3260
  }
3261
- var F = 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 F = class e extends C {
3309
3309
  });
3310
3310
  }
3311
3311
  };
3312
- F.create = ft;
3313
- var I = 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 I = class extends C {
3335
3335
  return this._def.values;
3336
3336
  }
3337
3337
  };
3338
- I.create = (e, t) => new I({
3338
+ F.create = (e, t) => new F({
3339
3339
  values: e,
3340
- typeName: V.ZodNativeEnum,
3340
+ typeName: B.ZodNativeEnum,
3341
3341
  ...S(t)
3342
3342
  });
3343
- var L = 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 L = class extends C {
3356
3356
  })));
3357
3357
  }
3358
3358
  };
3359
- L.create = (e, t) => new L({
3359
+ I.create = (e, t) => new I({
3360
3360
  type: e,
3361
- typeName: V.ZodPromise,
3361
+ typeName: B.ZodPromise,
3362
3362
  ...S(t)
3363
3363
  });
3364
- var R = 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 === V.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 R = class extends C {
3452
3452
  l.assertNever(r);
3453
3453
  }
3454
3454
  };
3455
- R.create = (e, t, n) => new R({
3455
+ L.create = (e, t, n) => new L({
3456
3456
  schema: e,
3457
- typeName: V.ZodEffects,
3457
+ typeName: B.ZodEffects,
3458
3458
  effect: t,
3459
3459
  ...S(n)
3460
- }), R.createWithPreprocess = (e, t, n) => new R({
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: V.ZodEffects,
3466
+ typeName: B.ZodEffects,
3467
3467
  ...S(n)
3468
3468
  });
3469
- var z = 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 z = class extends C {
3474
3474
  return this._def.innerType;
3475
3475
  }
3476
3476
  };
3477
- z.create = (e, t) => new z({
3477
+ R.create = (e, t) => new R({
3478
3478
  innerType: e,
3479
- typeName: V.ZodOptional,
3479
+ typeName: B.ZodOptional,
3480
3480
  ...S(t)
3481
3481
  });
3482
- var B = 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 B = class extends C {
3487
3487
  return this._def.innerType;
3488
3488
  }
3489
3489
  };
3490
- B.create = (e, t) => new B({
3490
+ z.create = (e, t) => new z({
3491
3491
  innerType: e,
3492
- typeName: V.ZodNullable,
3492
+ typeName: B.ZodNullable,
3493
3493
  ...S(t)
3494
3494
  });
3495
- var pt = 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 pt = class extends C {
3505
3505
  return this._def.innerType;
3506
3506
  }
3507
3507
  };
3508
- pt.create = (e, t) => new pt({
3508
+ mt.create = (e, t) => new mt({
3509
3509
  innerType: e,
3510
- typeName: V.ZodDefault,
3510
+ typeName: B.ZodDefault,
3511
3511
  defaultValue: typeof t.default == "function" ? t.default : () => t.default,
3512
3512
  ...S(t)
3513
3513
  });
3514
- var mt = 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 mt = class extends C {
3546
3546
  return this._def.innerType;
3547
3547
  }
3548
3548
  };
3549
- mt.create = (e, t) => new mt({
3549
+ ht.create = (e, t) => new ht({
3550
3550
  innerType: e,
3551
- typeName: V.ZodCatch,
3551
+ typeName: B.ZodCatch,
3552
3552
  catchValue: typeof t.catch == "function" ? t.catch : () => t.catch,
3553
3553
  ...S(t)
3554
3554
  });
3555
- var ht = 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 ht = class extends C {
3568
3568
  };
3569
3569
  }
3570
3570
  };
3571
- ht.create = (e) => new ht({
3572
- typeName: V.ZodNaN,
3571
+ gt.create = (e) => new gt({
3572
+ typeName: B.ZodNaN,
3573
3573
  ...S(e)
3574
3574
  });
3575
- var gt = 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 gt = class extends C {
3584
3584
  unwrap() {
3585
3585
  return this._def.type;
3586
3586
  }
3587
- }, _t = 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 gt = class extends C {
3619
3619
  return new e({
3620
3620
  in: t,
3621
3621
  out: n,
3622
- typeName: V.ZodPipeline
3622
+ typeName: B.ZodPipeline
3623
3623
  });
3624
3624
  }
3625
- }, vt = 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 gt = class extends C {
3631
3631
  return this._def.innerType;
3632
3632
  }
3633
3633
  };
3634
- vt.create = (e, t) => new vt({
3634
+ yt.create = (e, t) => new yt({
3635
3635
  innerType: e,
3636
- typeName: V.ZodReadonly,
3636
+ typeName: B.ZodReadonly,
3637
3637
  ...S(t)
3638
- }), A.lazycreate;
3639
- var V;
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
- })(V ||= {});
3643
- var H = Ye.create, U = Ze.create;
3644
- ht.create, Qe.create;
3645
- var yt = $e.create;
3646
- et.create, tt.create, w.create, T.create, nt.create, E.create, D.create, rt.create;
3647
- var W = O.create, G = A.create;
3648
- A.strictCreate, it.create, at.create, st.create, M.create, ct.create, lt.create, ut.create, dt.create, N.create, P.create;
3649
- var K = F.create;
3650
- I.create, L.create, R.create, z.create, B.create, R.createWithPreprocess, _t.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 !== V.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 === V.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 === V.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 === V.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 === V.ZodBranded && e.keyType._def.type._def.typeName === V.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 V.ZodString: return Bt(e, n);
4415
- case V.ZodNumber: return en(e, n);
4416
- case V.ZodObject: return tn(e, n);
4417
- case V.ZodBigInt: return Dt(e, n);
4418
- case V.ZodBoolean: return Ot();
4419
- case V.ZodDate: return jt(e, n);
4420
- case V.ZodUndefined: return un(n);
4421
- case V.ZodNull: return Yt(n);
4422
- case V.ZodArray: return Et(e, n);
4423
- case V.ZodUnion:
4424
- case V.ZodDiscriminatedUnion: return Zt(e, n);
4425
- case V.ZodIntersection: return Lt(e, n);
4426
- case V.ZodTuple: return ln(e, n);
4427
- case V.ZodRecord: return Gt(e, n);
4428
- case V.ZodLiteral: return Rt(e, n);
4429
- case V.ZodEnum: return Ft(e);
4430
- case V.ZodNativeEnum: return qt(e);
4431
- case V.ZodNullable: return $t(e, n);
4432
- case V.ZodOptional: return an(e, n);
4433
- case V.ZodMap: return Kt(e, n);
4434
- case V.ZodSet: return cn(e, n);
4435
- case V.ZodLazy: return () => e.getter()._def;
4436
- case V.ZodPromise: return sn(e, n);
4437
- case V.ZodNaN:
4438
- case V.ZodNever: return Jt(n);
4439
- case V.ZodEffects: return Pt(e, n);
4440
- case V.ZodAny: return J(n);
4441
- case V.ZodUnknown: return dn(n);
4442
- case V.ZodDefault: return Nt(e, n);
4443
- case V.ZodBranded: return kt(e, n);
4444
- case V.ZodReadonly: return fn(e, n);
4445
- case V.ZodCatch: return At(e, n);
4446
- case V.ZodPipeline: return on(e, n);
4447
- case V.ZodFunction:
4448
- case V.ZodVoid:
4449
- case V.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
  };
@@ -4565,7 +4565,7 @@ var yn = $({
4565
4565
  name: "get_project",
4566
4566
  title: "Get Project",
4567
4567
  description: "Get details of a specific project by its ID.",
4568
- zodSchema: G({ id: H().describe("The project ID") }),
4568
+ zodSchema: G({ id: V().describe("The project ID") }),
4569
4569
  annotations: { readOnlyHint: !0 },
4570
4570
  execute: async (e, t) => t.getProject(e.id)
4571
4571
  }), xn = $({
@@ -4573,9 +4573,9 @@ var yn = $({
4573
4573
  title: "Create Project",
4574
4574
  description: "Create a new project workspace.",
4575
4575
  zodSchema: G({
4576
- name: H().describe("Name of the project"),
4577
- description: H().optional().describe("Description of the project"),
4578
- key: H().optional().describe("Short project key/prefix (e.g. \"PROJ\")")
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\")")
4579
4579
  }),
4580
4580
  execute: async (e, t) => t.createProject(e)
4581
4581
  }), Sn = $({
@@ -4583,8 +4583,8 @@ var yn = $({
4583
4583
  title: "List Tasks",
4584
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
4585
  zodSchema: G({
4586
- projectId: H().optional().describe("Filter by project ID"),
4587
- status: H().optional().describe("Filter by task status key"),
4586
+ projectId: V().optional().describe("Filter by project ID"),
4587
+ status: V().optional().describe("Filter by task status key"),
4588
4588
  priority: K([
4589
4589
  "urgent",
4590
4590
  "high",
@@ -4592,10 +4592,10 @@ var yn = $({
4592
4592
  "low",
4593
4593
  "none"
4594
4594
  ]).optional().describe("Filter by priority"),
4595
- assigneeId: H().optional().describe("Filter by assignee ID"),
4596
- iterationId: H().optional().describe("Filter by iteration (sprint) ID"),
4597
- limit: U().int().min(1).max(500).optional().describe("Page size (default 100)"),
4598
- cursor: H().optional().describe("nextCursor from a previous call")
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")
4599
4599
  }),
4600
4600
  annotations: { readOnlyHint: !0 },
4601
4601
  execute: async (e, t, n) => {
@@ -4617,7 +4617,7 @@ var yn = $({
4617
4617
  name: "get_task",
4618
4618
  title: "Get Task",
4619
4619
  description: "Get task details by ID.",
4620
- zodSchema: G({ id: H().describe("The task ID") }),
4620
+ zodSchema: G({ id: V().describe("The task ID") }),
4621
4621
  annotations: { readOnlyHint: !0 },
4622
4622
  execute: async (e, t) => t.getTask(e.id)
4623
4623
  }), wn = $({
@@ -4625,10 +4625,10 @@ var yn = $({
4625
4625
  title: "Create Task",
4626
4626
  description: "Create a new task within a project.",
4627
4627
  zodSchema: G({
4628
- projectId: H().optional().describe("Project ID (inferred from active view in browser if omitted)"),
4629
- title: H().describe("Title of the task"),
4630
- description: H().optional().describe("Detailed description / markdown"),
4631
- status: H().optional().describe("Status (defaults to \"todo\" or first workflow status)"),
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
4632
  priority: K([
4633
4633
  "urgent",
4634
4634
  "high",
@@ -4636,13 +4636,13 @@ var yn = $({
4636
4636
  "low",
4637
4637
  "none"
4638
4638
  ]).optional().default("none").describe("Task priority"),
4639
- assigneeId: H().optional().describe("User ID to assign task to"),
4640
- dueDate: H().optional().describe("Due date (ISO string)"),
4641
- tags: W(H()).optional().describe("Tags for categorization"),
4642
- estimatedHours: U().optional().describe("Estimated hours to complete"),
4643
- allocation: U().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: yt().optional().describe("Whether the task is blocked"),
4645
- blockedReason: H().optional().describe("Reason why the task is blocked")
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")
4646
4646
  }),
4647
4647
  execute: async (e, t, n) => {
4648
4648
  let r = e.projectId || n?.projectId;
@@ -4668,10 +4668,10 @@ var yn = $({
4668
4668
  title: "Update Task",
4669
4669
  description: "Update fields of an existing task (e.g. title, status, priority, assignee).",
4670
4670
  zodSchema: G({
4671
- id: H().describe("The task ID"),
4672
- title: H().optional(),
4673
- description: H().optional(),
4674
- status: H().optional(),
4671
+ id: V().describe("The task ID"),
4672
+ title: V().optional(),
4673
+ description: V().optional(),
4674
+ status: V().optional(),
4675
4675
  priority: K([
4676
4676
  "urgent",
4677
4677
  "high",
@@ -4679,14 +4679,14 @@ var yn = $({
4679
4679
  "low",
4680
4680
  "none"
4681
4681
  ]).optional(),
4682
- assigneeId: H().optional(),
4683
- dueDate: H().optional(),
4684
- tags: W(H()).optional(),
4685
- estimatedHours: U().optional(),
4686
- allocation: U().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: U().optional(),
4688
- isBlocked: yt().optional().describe("Whether the task is blocked"),
4689
- blockedReason: H().optional().describe("Reason why the task is blocked")
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")
4690
4690
  }),
4691
4691
  execute: async (e, t) => {
4692
4692
  let { id: n, ...r } = e;
@@ -4696,14 +4696,14 @@ var yn = $({
4696
4696
  name: "delete_task",
4697
4697
  title: "Delete Task",
4698
4698
  description: "Delete a task by ID.",
4699
- zodSchema: G({ id: H().describe("The task ID to delete") }),
4699
+ zodSchema: G({ id: V().describe("The task ID to delete") }),
4700
4700
  annotations: { requiresConfirmation: !0 },
4701
4701
  execute: async (e, t) => ({ success: await t.deleteTask(e.id) })
4702
4702
  }), Dn = $({
4703
4703
  name: "list_deliverables",
4704
4704
  title: "List Deliverables",
4705
4705
  description: "List deliverables/milestones for a project.",
4706
- zodSchema: G({ projectId: H().optional().describe("Project ID") }),
4706
+ zodSchema: G({ projectId: V().optional().describe("Project ID") }),
4707
4707
  annotations: { readOnlyHint: !0 },
4708
4708
  execute: async (e, t, n) => {
4709
4709
  let r = e.projectId || n?.projectId;
@@ -4715,11 +4715,11 @@ var yn = $({
4715
4715
  title: "Create Deliverable",
4716
4716
  description: "Create a milestone deliverable within a project.",
4717
4717
  zodSchema: G({
4718
- projectId: H().optional(),
4719
- title: H(),
4720
- description: H().optional(),
4721
- dueDate: H().optional(),
4722
- taskIds: W(H()).optional()
4718
+ projectId: V().optional(),
4719
+ title: V(),
4720
+ description: V().optional(),
4721
+ dueDate: V().optional(),
4722
+ taskIds: W(V()).optional()
4723
4723
  }),
4724
4724
  execute: async (e, t, n) => {
4725
4725
  let r = e.projectId || n?.projectId;
@@ -4734,7 +4734,7 @@ var yn = $({
4734
4734
  name: "list_comments",
4735
4735
  title: "List Comments",
4736
4736
  description: "List comments associated with a task.",
4737
- zodSchema: G({ taskId: H().describe("The task ID") }),
4737
+ zodSchema: G({ taskId: V().describe("The task ID") }),
4738
4738
  annotations: { readOnlyHint: !0 },
4739
4739
  execute: async (e, t) => "getComments" in t && typeof t.getComments == "function" ? t.getComments(e.taskId) : []
4740
4740
  }), An = $({
@@ -4742,8 +4742,8 @@ var yn = $({
4742
4742
  title: "Add Comment",
4743
4743
  description: "Add a comment to a task. The comment is attributed to the identity this MCP server runs as.",
4744
4744
  zodSchema: G({
4745
- taskId: H().describe("The task ID"),
4746
- content: H().describe("Comment body/markdown")
4745
+ taskId: V().describe("The task ID"),
4746
+ content: V().describe("Comment body/markdown")
4747
4747
  }),
4748
4748
  execute: async (e, t) => t.addComment({
4749
4749
  taskId: e.taskId,
@@ -4754,16 +4754,18 @@ var yn = $({
4754
4754
  title: "Calculate Portfolio Critical Path",
4755
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
4756
  zodSchema: G({
4757
- projectIds: W(H()).optional().describe("Projects to include (default: every project you can read)"),
4758
- projectOrder: W(H()).optional().describe("Project ids in priority order for levelling; unlisted projects come last"),
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"),
4759
4760
  calendars: K(["project", "assignee"]).optional().describe("'assignee' schedules each task on its assignee's or team's calendar"),
4760
- levelResources: yt().optional().describe("With calendars 'assignee': share people and team pools across the projects"),
4761
+ levelResources: U().optional().describe("With calendars 'assignee': share people and team pools across the projects"),
4761
4762
  levelingPriority: K([
4762
4763
  "slack",
4763
4764
  "priority",
4764
4765
  "dueDate",
4765
4766
  "order"
4766
- ]).optional().describe("Which ready task gets an assignee first when levelling (default: least slack, then task priority)")
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)")
4767
4769
  }),
4768
4770
  annotations: { readOnlyHint: !0 },
4769
4771
  execute: async (e, t) => t.calculatePortfolioCriticalPath(e)
@@ -4785,25 +4787,27 @@ var yn = $({
4785
4787
  title: "Calculate Critical Path",
4786
4788
  description: "Calculate Critical Path Method (CPM) schedule, early/late start and finish, total slack, and critical bottlenecks for a project.",
4787
4789
  zodSchema: G({
4788
- projectId: H().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)"),
4789
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"),
4790
- levelResources: yt().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"),
4791
4793
  levelingPriority: K([
4792
4794
  "slack",
4793
4795
  "priority",
4794
4796
  "dueDate",
4795
4797
  "order"
4796
- ]).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)")
4797
4800
  }),
4798
4801
  annotations: { readOnlyHint: !0 },
4799
4802
  execute: async (e, t, n) => {
4800
4803
  let r = e.projectId || n?.projectId;
4801
4804
  if (!r) throw Error("projectId is required to calculate critical path.");
4802
- let { calendars: i, levelResources: a, levelingPriority: o } = e;
4805
+ let { calendars: i, levelResources: a, levelingPriority: o, effort: s } = e;
4803
4806
  return t.calculateCriticalPath(r, {
4804
4807
  calendars: i,
4805
4808
  levelResources: a,
4806
- levelingPriority: o
4809
+ levelingPriority: o,
4810
+ effort: s
4807
4811
  });
4808
4812
  }
4809
4813
  }),
@@ -4813,15 +4817,15 @@ var yn = $({
4813
4817
  title: "Get Timeline Ladder of Abstraction",
4814
4818
  description: "Retrieve Ladder of Abstraction for a project timeline across macro phase envelopes, standard Gantt tasks & CPM, and concrete deliverables/time/attachments.",
4815
4819
  zodSchema: G({
4816
- projectId: H().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)"),
4817
4821
  level: K([
4818
4822
  "macro",
4819
4823
  "standard",
4820
4824
  "concrete",
4821
4825
  "all"
4822
4826
  ]).optional().describe("Abstraction level (macro, standard, concrete, or all)"),
4823
- containerId: H().optional().describe("Optional container ID filter"),
4824
- iterationId: H().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")
4825
4829
  }),
4826
4830
  annotations: { readOnlyHint: !0 },
4827
4831
  execute: async (e, t, n) => {
@@ -4838,7 +4842,7 @@ var yn = $({
4838
4842
  name: "get_task_ladder",
4839
4843
  title: "Get Task Ladder View",
4840
4844
  description: "Retrieve multi-scale ladder view for a single task, connecting its macro phase, standard CPM timeline position, and concrete work evidence.",
4841
- zodSchema: G({ taskId: H().describe("The task ID") }),
4845
+ zodSchema: G({ taskId: V().describe("The task ID") }),
4842
4846
  annotations: { readOnlyHint: !0 },
4843
4847
  execute: async (e, t) => t.getTaskLadder(e.taskId)
4844
4848
  }),
@@ -4846,7 +4850,7 @@ var yn = $({
4846
4850
  name: "get_task_metrics",
4847
4851
  title: "Get Task Metrics",
4848
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.",
4849
- zodSchema: G({ taskId: H().describe("The task ID") }),
4853
+ zodSchema: G({ taskId: V().describe("The task ID") }),
4850
4854
  annotations: { readOnlyHint: !0 },
4851
4855
  execute: async (e, t) => t.getTaskMetrics(e.taskId)
4852
4856
  }),
@@ -4854,7 +4858,7 @@ var yn = $({
4854
4858
  name: "get_task_progress_history",
4855
4859
  title: "Get Task Progress History",
4856
4860
  description: "Retrieve time-series progress data points and curve shape classification (linear, s_curve, early_surge, late_rush, stalled) for a task.",
4857
- zodSchema: G({ taskId: H().describe("The task ID") }),
4861
+ zodSchema: G({ taskId: V().describe("The task ID") }),
4858
4862
  annotations: { readOnlyHint: !0 },
4859
4863
  execute: async (e, t) => t.getTaskProgressHistory(e.taskId)
4860
4864
  }),
@@ -4863,9 +4867,9 @@ var yn = $({
4863
4867
  title: "Get Workload Distribution",
4864
4868
  description: "Retrieve time-series workload and capacity distribution suitable for streamgraphs, stacked charts, and team capacity planning.",
4865
4869
  zodSchema: G({
4866
- projectId: H().optional().describe("Project ID (optional, defaults to workspace-wide or ambient project)"),
4867
- startDate: H().optional().describe("Start date ISO (YYYY-MM-DD)"),
4868
- endDate: H().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)"),
4869
4873
  interval: K([
4870
4874
  "day",
4871
4875
  "week",
@@ -4884,7 +4888,7 @@ var yn = $({
4884
4888
  "remaining",
4885
4889
  "blended"
4886
4890
  ]).optional().describe("Effort metric mode"),
4887
- defaultWeeklyCapacityHours: U().optional().describe("Default weekly capacity hours per person (default 40)")
4891
+ defaultWeeklyCapacityHours: H().optional().describe("Default weekly capacity hours per person (default 40)")
4888
4892
  }),
4889
4893
  annotations: { readOnlyHint: !0 },
4890
4894
  execute: async (e, t, n) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@critical-path/svelte",
3
- "version": "0.18.11",
3
+ "version": "0.18.13",
4
4
  "description": "Svelte 5 Runes state and reactive integrations for Critical Path headless project management framework",
5
5
  "author": "Jack James",
6
6
  "license": "MIT",
@@ -18,9 +18,9 @@
18
18
  }
19
19
  },
20
20
  "dependencies": {
21
- "@critical-path/client": "0.23.0",
22
- "@critical-path/core": "0.45.0",
23
- "@critical-path/mcp": "0.15.0"
21
+ "@critical-path/client": "0.24.1",
22
+ "@critical-path/mcp": "0.16.1",
23
+ "@critical-path/core": "0.47.0"
24
24
  },
25
25
  "peerDependencies": {
26
26
  "svelte": "^5.0.0"