@agiflowai/agent-cli 0.1.10 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -73,17 +73,17 @@ function Dd() {
73
73
  }, _ = Object.getPrototypeOf(Function), p = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : jd(), v = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : xd(), y = typeof WeakMap == "function" ? WeakMap : Ed(), I = o ? Symbol.for("@reflect-metadata:registry") : void 0, S = Sd(), U = zd(S);
74
74
  function D(d, g, h, w) {
75
75
  if (N(h)) {
76
- if (!Xi(d))
76
+ if (!Hi(d))
77
77
  throw new TypeError();
78
78
  if (!Yi(g))
79
79
  throw new TypeError();
80
80
  return hd(d, g);
81
81
  } else {
82
- if (!Xi(d))
82
+ if (!Hi(d))
83
83
  throw new TypeError();
84
- if (!X(g))
84
+ if (!H(g))
85
85
  throw new TypeError();
86
- if (!X(w) && !N(w) && !Be(w))
86
+ if (!H(w) && !N(w) && !Be(w))
87
87
  throw new TypeError();
88
88
  return Be(w) && (w = void 0), h = ye(h), bd(d, g, h, w);
89
89
  }
@@ -91,7 +91,7 @@ function Dd() {
91
91
  r("decorate", D);
92
92
  function Z(d, g) {
93
93
  function h(w, x) {
94
- if (!X(w))
94
+ if (!H(w))
95
95
  throw new TypeError();
96
96
  if (!N(x) && !Id(x))
97
97
  throw new TypeError();
@@ -101,51 +101,51 @@ function Dd() {
101
101
  }
102
102
  r("metadata", Z);
103
103
  function ne(d, g, h, w) {
104
- if (!X(h))
104
+ if (!H(h))
105
105
  throw new TypeError();
106
106
  return N(w) || (w = ye(w)), Ji(d, g, h, w);
107
107
  }
108
108
  r("defineMetadata", ne);
109
109
  function yn(d, g, h) {
110
- if (!X(g))
110
+ if (!H(g))
111
111
  throw new TypeError();
112
112
  return N(h) || (h = ye(h)), Bi(d, g, h);
113
113
  }
114
114
  r("hasMetadata", yn);
115
115
  function dd(d, g, h) {
116
- if (!X(g))
116
+ if (!H(g))
117
117
  throw new TypeError();
118
118
  return N(h) || (h = ye(h)), $n(d, g, h);
119
119
  }
120
120
  r("hasOwnMetadata", dd);
121
121
  function fd(d, g, h) {
122
- if (!X(g))
122
+ if (!H(g))
123
123
  throw new TypeError();
124
124
  return N(h) || (h = ye(h)), Gi(d, g, h);
125
125
  }
126
126
  r("getMetadata", fd);
127
127
  function md(d, g, h) {
128
- if (!X(g))
128
+ if (!H(g))
129
129
  throw new TypeError();
130
130
  return N(h) || (h = ye(h)), Vi(d, g, h);
131
131
  }
132
132
  r("getOwnMetadata", md);
133
133
  function vd(d, g) {
134
- if (!X(d))
134
+ if (!H(d))
135
135
  throw new TypeError();
136
136
  return N(g) || (g = ye(g)), Wi(d, g);
137
137
  }
138
138
  r("getMetadataKeys", vd);
139
139
  function gd(d, g) {
140
- if (!X(d))
140
+ if (!H(d))
141
141
  throw new TypeError();
142
142
  return N(g) || (g = ye(g)), Ki(d, g);
143
143
  }
144
144
  r("getOwnMetadataKeys", gd);
145
145
  function pd(d, g, h) {
146
- if (!X(g))
146
+ if (!H(g))
147
147
  throw new TypeError();
148
- if (N(h) || (h = ye(h)), !X(g))
148
+ if (N(h) || (h = ye(h)), !H(g))
149
149
  throw new TypeError();
150
150
  N(h) || (h = ye(h));
151
151
  var w = Qe(
@@ -172,7 +172,7 @@ function Dd() {
172
172
  for (var x = d.length - 1; x >= 0; --x) {
173
173
  var K = d[x], Y = K(g, h, w);
174
174
  if (!N(Y) && !Be(Y)) {
175
- if (!X(Y))
175
+ if (!H(Y))
176
176
  throw new TypeError();
177
177
  w = Y;
178
178
  }
@@ -193,7 +193,7 @@ function Dd() {
193
193
  /*Create*/
194
194
  !1
195
195
  );
196
- return N(w) ? !1 : Hi(w.OrdinaryHasOwnMetadata(d, g, h));
196
+ return N(w) ? !1 : Xi(w.OrdinaryHasOwnMetadata(d, g, h));
197
197
  }
198
198
  function Gi(d, g, h) {
199
199
  var w = $n(d, g, h);
@@ -279,7 +279,7 @@ function Dd() {
279
279
  function _d(d) {
280
280
  return typeof d == "symbol";
281
281
  }
282
- function X(d) {
282
+ function H(d) {
283
283
  return typeof d == "object" ? d !== null : typeof d == "function";
284
284
  }
285
285
  function yd(d, g) {
@@ -300,7 +300,7 @@ function Dd() {
300
300
  var h = "string", w = Qi(d, a);
301
301
  if (w !== void 0) {
302
302
  var x = w.call(d, h);
303
- if (X(x))
303
+ if (H(x))
304
304
  throw new TypeError();
305
305
  return x;
306
306
  }
@@ -312,19 +312,19 @@ function Dd() {
312
312
  var K = d.toString;
313
313
  if (jt(K)) {
314
314
  var w = K.call(d);
315
- if (!X(w))
315
+ if (!H(w))
316
316
  return w;
317
317
  }
318
318
  var h = d.valueOf;
319
319
  if (jt(h)) {
320
320
  var w = h.call(d);
321
- if (!X(w))
321
+ if (!H(w))
322
322
  return w;
323
323
  }
324
324
  }
325
325
  throw new TypeError();
326
326
  }
327
- function Hi(d) {
327
+ function Xi(d) {
328
328
  return !!d;
329
329
  }
330
330
  function wd(d) {
@@ -334,7 +334,7 @@ function Dd() {
334
334
  var g = yd(d);
335
335
  return _d(g) ? g : wd(g);
336
336
  }
337
- function Xi(d) {
337
+ function Hi(d) {
338
338
  return Array.isArray ? Array.isArray(d) : d instanceof Object ? d instanceof Array : Object.prototype.toString.call(d) === "[object Array]";
339
339
  }
340
340
  function jt(d) {
@@ -369,7 +369,7 @@ function Dd() {
369
369
  if (!jt(g))
370
370
  throw new TypeError();
371
371
  var h = g.call(d);
372
- if (!X(h))
372
+ if (!H(h))
373
373
  throw new TypeError();
374
374
  return h;
375
375
  }
@@ -469,7 +469,7 @@ function Dd() {
469
469
  }
470
470
  function Sd() {
471
471
  var d;
472
- return !N(I) && X(i.Reflect) && Object.isExtensible(i.Reflect) && (d = i.Reflect[I]), N(d) && (d = kd()), !N(I) && X(i.Reflect) && Object.isExtensible(i.Reflect) && Object.defineProperty(i.Reflect, I, {
472
+ return !N(I) && H(i.Reflect) && Object.isExtensible(i.Reflect) && (d = i.Reflect[I]), N(d) && (d = kd()), !N(I) && H(i.Reflect) && Object.isExtensible(i.Reflect) && Object.defineProperty(i.Reflect, I, {
473
473
  enumerable: !1,
474
474
  configurable: !1,
475
475
  writable: !1,
@@ -512,7 +512,7 @@ function Dd() {
512
512
  /*Create*/
513
513
  !1
514
514
  );
515
- return N(R) ? !1 : Hi(R.has(z));
515
+ return N(R) ? !1 : Xi(R.has(z));
516
516
  }
517
517
  function K(z, O, j) {
518
518
  var R = w(
@@ -824,7 +824,7 @@ function Dd() {
824
824
  }(e || (e = {})), co;
825
825
  }
826
826
  Dd();
827
- function H(e) {
827
+ function X(e) {
828
828
  return (typeof e == "object" && e !== null || typeof e == "function") && typeof e.then == "function";
829
829
  }
830
830
  function te(e) {
@@ -1683,7 +1683,7 @@ function Ia(e, t, r, i) {
1683
1683
  }(t, i);
1684
1684
  return (a, s) => a.node.binding.type === M.Instance ? n(a, a.node, s) : o(a, a.node, s);
1685
1685
  }
1686
- class Hd extends oe {
1686
+ class Xd extends oe {
1687
1687
  #e;
1688
1688
  constructor(t, r) {
1689
1689
  super(r, r.serviceIdentifier), this.#e = t;
@@ -1707,13 +1707,13 @@ const za = /* @__PURE__ */ function(e) {
1707
1707
  return s;
1708
1708
  };
1709
1709
  }(ka);
1710
- function Xd(e) {
1710
+ function Hd(e) {
1711
1711
  try {
1712
1712
  const t = function(o) {
1713
1713
  return o.rootConstraints.isMultiple ? { chained: o.rootConstraints.chained, isMultiple: !0, name: o.rootConstraints.name, optional: o.rootConstraints.isOptional ?? !1, serviceIdentifier: o.rootConstraints.serviceIdentifier, tag: o.rootConstraints.tag } : { isMultiple: !1, name: o.rootConstraints.name, optional: o.rootConstraints.isOptional ?? !1, serviceIdentifier: o.rootConstraints.serviceIdentifier, tag: o.rootConstraints.tag };
1714
1714
  }(e), r = e.operations.getPlan(t);
1715
1715
  if (r !== void 0) return r;
1716
- const i = za(e), n = { tree: { root: new Hd(e, i) } };
1716
+ const i = za(e), n = { tree: { root: new Xd(e, i) } };
1717
1717
  return e.operations.setPlan(t, n), n;
1718
1718
  } catch (t) {
1719
1719
  Wd(e, t);
@@ -2004,18 +2004,18 @@ function tf(e, t) {
2004
2004
  throw t;
2005
2005
  }
2006
2006
  function Oa(e, t) {
2007
- return H(t) ? (e.cache = { isRight: !0, value: t }, t.then((r) => $o(e, r))) : $o(e, t);
2007
+ return X(t) ? (e.cache = { isRight: !0, value: t }, t.then((r) => $o(e, r))) : $o(e, t);
2008
2008
  }
2009
2009
  function $o(e, t) {
2010
2010
  return e.cache = { isRight: !0, value: t }, t;
2011
2011
  }
2012
2012
  function nf(e, t, r) {
2013
2013
  const i = e.getActivations(t);
2014
- return i === void 0 ? r : H(r) ? wo(e, r, i[Symbol.iterator]()) : function(n, o, a) {
2014
+ return i === void 0 ? r : X(r) ? wo(e, r, i[Symbol.iterator]()) : function(n, o, a) {
2015
2015
  let s = o, u = a.next();
2016
2016
  for (; u.done !== !0; ) {
2017
2017
  const c = u.value(n.context, s);
2018
- if (H(c)) return wo(n, c, a);
2018
+ if (X(c)) return wo(n, c, a);
2019
2019
  s = c, u = a.next();
2020
2020
  }
2021
2021
  return s;
@@ -2030,7 +2030,7 @@ function Rt(e, t, r) {
2030
2030
  let i = r;
2031
2031
  if (t.onActivation !== void 0) {
2032
2032
  const n = t.onActivation;
2033
- i = H(i) ? i.then((o) => n(e.context, o)) : n(e.context, i);
2033
+ i = X(i) ? i.then((o) => n(e.context, o)) : n(e.context, i);
2034
2034
  }
2035
2035
  return nf(e, t.serviceIdentifier, i);
2036
2036
  }
@@ -2075,7 +2075,7 @@ function Io(e, t, r) {
2075
2075
  } catch (u) {
2076
2076
  throw new F(B.resolution, `Unexpected error found when calling "${a.toString()}" @postConstruct decorated method on class "${o.implementationType.name}"`, { cause: u });
2077
2077
  }
2078
- if (H(s)) return async function(u, c, f) {
2078
+ if (X(s)) return async function(u, c, f) {
2079
2079
  try {
2080
2080
  await f;
2081
2081
  } catch (m) {
@@ -2084,18 +2084,18 @@ function Io(e, t, r) {
2084
2084
  }(o, a, s);
2085
2085
  }
2086
2086
  }(e, t, r);
2087
- return H(i) ? i.then(() => e) : e;
2087
+ return X(i) ? i.then(() => e) : e;
2088
2088
  }
2089
2089
  function ko(e, t, r) {
2090
2090
  if (r.size === 0) return e;
2091
2091
  let i = e;
2092
- for (const n of r) i = H(i) ? i.then((o) => Io(o, t, n)) : Io(i, t, n);
2092
+ for (const n of r) i = X(i) ? i.then((o) => Io(o, t, n)) : Io(i, t, n);
2093
2093
  return i;
2094
2094
  }
2095
2095
  function So(e) {
2096
2096
  return (t, r, i) => {
2097
2097
  const n = new i.binding.implementationType(...t), o = e(r, n, i);
2098
- return H(o) ? o.then(() => ko(n, i.binding, i.classMetadata.lifecycle.postConstructMethodNames)) : ko(n, i.binding, i.classMetadata.lifecycle.postConstructMethodNames);
2098
+ return X(o) ? o.then(() => ko(n, i.binding, i.classMetadata.lifecycle.postConstructMethodNames)) : ko(n, i.binding, i.classMetadata.lifecycle.postConstructMethodNames);
2099
2099
  };
2100
2100
  }
2101
2101
  const uf = nr(function(e, t) {
@@ -2113,7 +2113,7 @@ const zo = /* @__PURE__ */ function(e) {
2113
2113
  for (const [o, a] of i.propertyParams) {
2114
2114
  const s = i.classMetadata.properties.get(o);
2115
2115
  if (s === void 0) throw new F(B.resolution, `Expecting metadata at property "${o.toString()}", none found`);
2116
- s.kind !== se.unmanaged && a.bindings !== void 0 && (r[o] = e(t, a), H(r[o]) && n.push((async () => {
2116
+ s.kind !== se.unmanaged && a.bindings !== void 0 && (r[o] = e(t, a), X(r[o]) && n.push((async () => {
2117
2117
  r[o] = await r[o];
2118
2118
  })()));
2119
2119
  }
@@ -2129,13 +2129,13 @@ const zo = /* @__PURE__ */ function(e) {
2129
2129
  }(Rn), df = /* @__PURE__ */ function(e, t, r) {
2130
2130
  return (i, n) => {
2131
2131
  const o = e(i, n);
2132
- return H(o) ? t(o, i, n) : r(o, i, n);
2132
+ return X(o) ? t(o, i, n) : r(o, i, n);
2133
2133
  };
2134
2134
  }(/* @__PURE__ */ function(e) {
2135
2135
  return (t, r) => {
2136
2136
  const i = [];
2137
2137
  for (const n of r.constructorParams) n === void 0 ? i.push(void 0) : i.push(e(t, n));
2138
- return i.some(H) ? Promise.all(i) : i;
2138
+ return i.some(X) ? Promise.all(i) : i;
2139
2139
  };
2140
2140
  }(tn), /* @__PURE__ */ function(e) {
2141
2141
  return async (t, r, i) => {
@@ -2145,13 +2145,13 @@ const zo = /* @__PURE__ */ function(e) {
2145
2145
  }(So(zo)), So(zo)), ff = /* @__PURE__ */ function(e) {
2146
2146
  return (t, r) => {
2147
2147
  const i = e(t, r);
2148
- return H(i) ? i.then((n) => r.binding.factory(...n)) : r.binding.factory(...i);
2148
+ return X(i) ? i.then((n) => r.binding.factory(...n)) : r.binding.factory(...i);
2149
2149
  };
2150
2150
  }(/* @__PURE__ */ function(e) {
2151
2151
  return (t, r) => {
2152
2152
  const i = [];
2153
2153
  for (const n of r.params) i.push(e(t, n));
2154
- return i.some(H) ? Promise.all(i) : i;
2154
+ return i.some(X) ? Promise.all(i) : i;
2155
2155
  };
2156
2156
  }(tn)), mf = ((e) => rr(cf, e))(df), vf = ((e) => rr(lf, e))(ff);
2157
2157
  function gf(e) {
@@ -2181,7 +2181,7 @@ function tn(e, t) {
2181
2181
  if (t.bindings !== void 0) return Array.isArray(t.bindings) ? function(r, i) {
2182
2182
  const n = [];
2183
2183
  for (const o of i) Ce(o) ? n.push(...Oo(r, o)) : n.push(Rn(r, o));
2184
- return n.some(H) ? Promise.all(n) : n;
2184
+ return n.some(X) ? Promise.all(n) : n;
2185
2185
  }(e, t.bindings) : function(r, i) {
2186
2186
  if (Ce(i)) {
2187
2187
  const n = Oo(r, i);
@@ -2207,11 +2207,11 @@ function xo(e, t) {
2207
2207
  }
2208
2208
  function Eo(e, t, r) {
2209
2209
  const i = e.getDeactivations(t);
2210
- if (i !== void 0) return H(r) ? No(r, i[Symbol.iterator]()) : function(n, o) {
2210
+ if (i !== void 0) return X(r) ? No(r, i[Symbol.iterator]()) : function(n, o) {
2211
2211
  let a = o.next();
2212
2212
  for (; a.done !== !0; ) {
2213
2213
  const s = a.value(n);
2214
- if (H(s)) return No(n, o);
2214
+ if (X(s)) return No(n, o);
2215
2215
  a = o.next();
2216
2216
  }
2217
2217
  }(r, i[Symbol.iterator]());
@@ -2225,14 +2225,14 @@ function hf(e, t) {
2225
2225
  const r = function(i, n) {
2226
2226
  if (n.type === M.Instance) {
2227
2227
  const o = i.getClassMetadata(n.implementationType), a = n.cache.value;
2228
- return H(a) ? a.then((s) => xo(o, s)) : xo(o, a);
2228
+ return X(a) ? a.then((s) => xo(o, s)) : xo(o, a);
2229
2229
  }
2230
2230
  }(e, t);
2231
2231
  return r === void 0 ? Uo(e, t) : r.then(() => Uo(e, t));
2232
2232
  }
2233
2233
  function Uo(e, t) {
2234
2234
  const r = t.cache;
2235
- return H(r.value) ? r.value.then((i) => To(e, t, i)) : To(e, t, r.value);
2235
+ return X(r.value) ? r.value.then((i) => To(e, t, i)) : To(e, t, r.value);
2236
2236
  }
2237
2237
  function To(e, t, r) {
2238
2238
  let i;
@@ -2751,12 +2751,12 @@ class xf {
2751
2751
  }
2752
2752
  get(t, r) {
2753
2753
  const i = this.#l(!1, t, r), n = this.#v(i);
2754
- if (H(n)) throw new he(be.invalidOperation, `Unexpected asynchronous service when resolving service "${te(t)}"`);
2754
+ if (X(n)) throw new he(be.invalidOperation, `Unexpected asynchronous service when resolving service "${te(t)}"`);
2755
2755
  return n;
2756
2756
  }
2757
2757
  getAll(t, r) {
2758
2758
  const i = this.#l(!0, t, r), n = this.#v(i);
2759
- if (H(n)) throw new he(be.invalidOperation, `Unexpected asynchronous service when resolving service "${te(t)}"`);
2759
+ if (X(n)) throw new he(be.invalidOperation, `Unexpected asynchronous service when resolving service "${te(t)}"`);
2760
2760
  return n;
2761
2761
  }
2762
2762
  async getAllAsync(t, r) {
@@ -2787,7 +2787,7 @@ class xf {
2787
2787
  #l(t, r, i) {
2788
2788
  const n = this.#u(t, r, i), o = this.#a.planResultCacheService.get(n);
2789
2789
  if (o !== void 0) return o;
2790
- const a = Xd(this.#s(r, t, i));
2790
+ const a = Hd(this.#s(r, t, i));
2791
2791
  for (const s of this.#i) s(n, a);
2792
2792
  return a;
2793
2793
  }
@@ -3373,17 +3373,17 @@ function qf(e) {
3373
3373
  r[i / 2] = Number.parseInt(t.slice(i, i + 2), 16);
3374
3374
  return r;
3375
3375
  }
3376
- function Hf(e) {
3376
+ function Xf(e) {
3377
3377
  return Array.from(e).map((t) => t.toString(16).padStart(2, "0")).join("");
3378
3378
  }
3379
- class Xf {
3379
+ class Hf {
3380
3380
  constructor(...t) {
3381
3381
  }
3382
3382
  }
3383
3383
  const Ka = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3384
3384
  __proto__: null,
3385
3385
  BIGINT_FORMAT_RANGES: Ra,
3386
- Class: Xf,
3386
+ Class: Hf,
3387
3387
  NUMBER_FORMAT_RANGES: Ca,
3388
3388
  aborted: Te,
3389
3389
  allowsEval: Pa,
@@ -3440,7 +3440,7 @@ const Ka = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3440
3440
  stringifyPrimitive: E,
3441
3441
  uint8ArrayToBase64: Wa,
3442
3442
  uint8ArrayToBase64url: Kf,
3443
- uint8ArrayToHex: Hf,
3443
+ uint8ArrayToHex: Xf,
3444
3444
  unwrapMessage: ot
3445
3445
  }, Symbol.toStringTag, { value: "Module" })), qa = (e, t) => {
3446
3446
  e.name = "$ZodError", Object.defineProperty(e, "_zod", {
@@ -3481,7 +3481,7 @@ function cr(e, t = (r) => r.message) {
3481
3481
  };
3482
3482
  return i(e), r;
3483
3483
  }
3484
- function Ha(e, t = (r) => r.message) {
3484
+ function Xa(e, t = (r) => r.message) {
3485
3485
  const r = { errors: [] }, i = (n, o = []) => {
3486
3486
  var a, s;
3487
3487
  for (const u of n.issues)
@@ -3506,7 +3506,7 @@ function Ha(e, t = (r) => r.message) {
3506
3506
  };
3507
3507
  return i(e), r;
3508
3508
  }
3509
- function Xa(e) {
3509
+ function Ha(e) {
3510
3510
  const t = [], r = e.map((i) => typeof i == "object" ? i.key : i);
3511
3511
  for (const i of r)
3512
3512
  typeof i == "number" ? t.push(`[${i}]`) : typeof i == "symbol" ? t.push(`[${JSON.stringify(String(i))}]`) : /[^\w$]/.test(i) ? t.push(`[${JSON.stringify(i)}]`) : (t.length && t.push("."), t.push(i));
@@ -3515,7 +3515,7 @@ function Xa(e) {
3515
3515
  function Ya(e) {
3516
3516
  const t = [], r = [...e.issues].sort((i, n) => (i.path ?? []).length - (n.path ?? []).length);
3517
3517
  for (const i of r)
3518
- t.push(`✖ ${i.message}`), i.path?.length && t.push(` → at ${Xa(i.path)}`);
3518
+ t.push(`✖ ${i.message}`), i.path?.length && t.push(` → at ${Ha(i.path)}`);
3519
3519
  return t.join(`
3520
3520
  `);
3521
3521
  }
@@ -4008,7 +4008,7 @@ const gm = /^[0-9a-fA-F]{32}$/, pm = /* @__PURE__ */ wt(22, "=="), hm = /* @__PU
4008
4008
  function Co(e, t, r) {
4009
4009
  e.issues.length && t.issues.push(...ge(r, e.issues));
4010
4010
  }
4011
- const Hs = /* @__PURE__ */ l("$ZodCheckProperty", (e, t) => {
4011
+ const Xs = /* @__PURE__ */ l("$ZodCheckProperty", (e, t) => {
4012
4012
  W.init(e, t), e._zod.check = (r) => {
4013
4013
  const i = t.schema._zod.run({
4014
4014
  value: r.value[t.property],
@@ -4018,7 +4018,7 @@ const Hs = /* @__PURE__ */ l("$ZodCheckProperty", (e, t) => {
4018
4018
  return i.then((n) => Co(n, r, t.property));
4019
4019
  Co(i, r, t.property);
4020
4020
  };
4021
- }), Xs = /* @__PURE__ */ l("$ZodCheckMimeType", (e, t) => {
4021
+ }), Hs = /* @__PURE__ */ l("$ZodCheckMimeType", (e, t) => {
4022
4022
  W.init(e, t);
4023
4023
  const r = new Set(t.mime);
4024
4024
  e._zod.onattach.push((i) => {
@@ -4981,7 +4981,7 @@ const Wu = /* @__PURE__ */ l("$ZodEnum", (e, t) => {
4981
4981
  inst: e
4982
4982
  }), r;
4983
4983
  };
4984
- }), Hu = /* @__PURE__ */ l("$ZodTransform", (e, t) => {
4984
+ }), Xu = /* @__PURE__ */ l("$ZodTransform", (e, t) => {
4985
4985
  T.init(e, t), e._zod.parse = (r, i) => {
4986
4986
  if (i.direction === "backward")
4987
4987
  throw new nn(e.constructor.name);
@@ -4996,7 +4996,7 @@ const Wu = /* @__PURE__ */ l("$ZodEnum", (e, t) => {
4996
4996
  function Bo(e, t) {
4997
4997
  return e.issues.length && t === void 0 ? { issues: [], value: void 0 } : e;
4998
4998
  }
4999
- const Xu = /* @__PURE__ */ l("$ZodOptional", (e, t) => {
4999
+ const Hu = /* @__PURE__ */ l("$ZodOptional", (e, t) => {
5000
5000
  T.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", C(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), C(e._zod, "pattern", () => {
5001
5001
  const r = t.innerType._zod.pattern;
5002
5002
  return r ? new RegExp(`^(${rn(r.source)})?$`) : void 0;
@@ -6142,7 +6142,7 @@ const qm = (e) => {
6142
6142
  }
6143
6143
  }
6144
6144
  return t;
6145
- }, Hm = () => {
6145
+ }, Xm = () => {
6146
6146
  const e = {
6147
6147
  string: { unit: "karaktrojn", verb: "havi" },
6148
6148
  file: { unit: "bajtojn", verb: "havi" },
@@ -6215,9 +6215,9 @@ const qm = (e) => {
6215
6215
  }
6216
6216
  };
6217
6217
  };
6218
- function Xm() {
6218
+ function Hm() {
6219
6219
  return {
6220
- localeError: Hm()
6220
+ localeError: Xm()
6221
6221
  };
6222
6222
  }
6223
6223
  const Ym = () => {
@@ -8491,7 +8491,7 @@ function Jv() {
8491
8491
  localeError: Vv()
8492
8492
  };
8493
8493
  }
8494
- function Ho(e, t, r, i) {
8494
+ function Xo(e, t, r, i) {
8495
8495
  const n = Math.abs(e), o = n % 10, a = n % 100;
8496
8496
  return a >= 11 && a <= 19 ? i : o === 1 ? t : o >= 2 && o <= 4 ? r : i;
8497
8497
  }
@@ -8587,7 +8587,7 @@ const Wv = () => {
8587
8587
  case "too_big": {
8588
8588
  const o = n.inclusive ? "<=" : "<", a = t(n.origin);
8589
8589
  if (a) {
8590
- const s = Number(n.maximum), u = Ho(s, a.unit.one, a.unit.few, a.unit.many);
8590
+ const s = Number(n.maximum), u = Xo(s, a.unit.one, a.unit.few, a.unit.many);
8591
8591
  return `Слишком большое значение: ожидалось, что ${n.origin ?? "значение"} будет иметь ${o}${n.maximum.toString()} ${u}`;
8592
8592
  }
8593
8593
  return `Слишком большое значение: ожидалось, что ${n.origin ?? "значение"} будет ${o}${n.maximum.toString()}`;
@@ -8595,7 +8595,7 @@ const Wv = () => {
8595
8595
  case "too_small": {
8596
8596
  const o = n.inclusive ? ">=" : ">", a = t(n.origin);
8597
8597
  if (a) {
8598
- const s = Number(n.minimum), u = Ho(s, a.unit.one, a.unit.few, a.unit.many);
8598
+ const s = Number(n.minimum), u = Xo(s, a.unit.one, a.unit.few, a.unit.many);
8599
8599
  return `Слишком маленькое значение: ожидалось, что ${n.origin} будет иметь ${o}${n.minimum.toString()} ${u}`;
8600
8600
  }
8601
8601
  return `Слишком маленькое значение: ожидалось, что ${n.origin} будет ${o}${n.minimum.toString()}`;
@@ -8712,12 +8712,12 @@ const qv = () => {
8712
8712
  }
8713
8713
  };
8714
8714
  };
8715
- function Hv() {
8715
+ function Xv() {
8716
8716
  return {
8717
8717
  localeError: qv()
8718
8718
  };
8719
8719
  }
8720
- const Xv = () => {
8720
+ const Hv = () => {
8721
8721
  const e = {
8722
8722
  string: { unit: "tecken", verb: "att ha" },
8723
8723
  file: { unit: "bytes", verb: "att ha" },
@@ -8807,7 +8807,7 @@ const Xv = () => {
8807
8807
  };
8808
8808
  function Yv() {
8809
8809
  return {
8810
- localeError: Xv()
8810
+ localeError: Hv()
8811
8811
  };
8812
8812
  }
8813
8813
  const Qv = () => {
@@ -9662,7 +9662,7 @@ const gc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9662
9662
  da: Gm,
9663
9663
  de: Jm,
9664
9664
  en: fc,
9665
- eo: Xm,
9665
+ eo: Hm,
9666
9666
  es: Qm,
9667
9667
  fa: tv,
9668
9668
  fi: rv,
@@ -9688,7 +9688,7 @@ const gc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9688
9688
  ps: Fv,
9689
9689
  pt: Jv,
9690
9690
  ru: Kv,
9691
- sl: Hv,
9691
+ sl: Xv,
9692
9692
  sv: Yv,
9693
9693
  ta: eg,
9694
9694
  th: ng,
@@ -9935,7 +9935,7 @@ function qr(e, t) {
9935
9935
  ...b(t)
9936
9936
  });
9937
9937
  }
9938
- function Hr(e, t) {
9938
+ function Xr(e, t) {
9939
9939
  return new e({
9940
9940
  type: "string",
9941
9941
  format: "e164",
@@ -9944,7 +9944,7 @@ function Hr(e, t) {
9944
9944
  ...b(t)
9945
9945
  });
9946
9946
  }
9947
- function Xr(e, t) {
9947
+ function Hr(e, t) {
9948
9948
  return new e({
9949
9949
  type: "string",
9950
9950
  format: "jwt",
@@ -10197,10 +10197,10 @@ function Kc(e) {
10197
10197
  function qc(e) {
10198
10198
  return Me(0, e);
10199
10199
  }
10200
- function Hc(e) {
10200
+ function Xc(e) {
10201
10201
  return pe(0, e);
10202
10202
  }
10203
- function Xc(e) {
10203
+ function Hc(e) {
10204
10204
  return ae(0, e);
10205
10205
  }
10206
10206
  function ft(e, t) {
@@ -10238,7 +10238,7 @@ function ln(e, t) {
10238
10238
  maximum: e
10239
10239
  });
10240
10240
  }
10241
- function He(e, t) {
10241
+ function Xe(e, t) {
10242
10242
  return new Fs({
10243
10243
  check: "min_length",
10244
10244
  ...b(t),
@@ -10299,7 +10299,7 @@ function ii(e, t) {
10299
10299
  });
10300
10300
  }
10301
10301
  function Yc(e, t, r) {
10302
- return new Hs({
10302
+ return new Xs({
10303
10303
  check: "property",
10304
10304
  property: e,
10305
10305
  schema: t,
@@ -10307,7 +10307,7 @@ function Yc(e, t, r) {
10307
10307
  });
10308
10308
  }
10309
10309
  function oi(e, t) {
10310
- return new Xs({
10310
+ return new Hs({
10311
10311
  check: "mime_type",
10312
10312
  mime: e,
10313
10313
  ...b(t)
@@ -11117,13 +11117,13 @@ const Zg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11117
11117
  $ZodCheckLowerCase: Vs,
11118
11118
  $ZodCheckMaxLength: Ls,
11119
11119
  $ZodCheckMaxSize: Rs,
11120
- $ZodCheckMimeType: Xs,
11120
+ $ZodCheckMimeType: Hs,
11121
11121
  $ZodCheckMinLength: Fs,
11122
11122
  $ZodCheckMinSize: Ms,
11123
11123
  $ZodCheckMultipleOf: Ds,
11124
11124
  $ZodCheckNumberFormat: As,
11125
11125
  $ZodCheckOverwrite: Ys,
11126
- $ZodCheckProperty: Hs,
11126
+ $ZodCheckProperty: Xs,
11127
11127
  $ZodCheckRegex: Gs,
11128
11128
  $ZodCheckSizeEquals: Zs,
11129
11129
  $ZodCheckStartsWith: Ks,
@@ -11166,7 +11166,7 @@ const Zg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11166
11166
  $ZodNumberFormat: Ou,
11167
11167
  $ZodObject: Zu,
11168
11168
  $ZodObjectJIT: Lu,
11169
- $ZodOptional: Xu,
11169
+ $ZodOptional: Hu,
11170
11170
  $ZodPipe: oc,
11171
11171
  $ZodPrefault: ec,
11172
11172
  $ZodPromise: cc,
@@ -11180,7 +11180,7 @@ const Zg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11180
11180
  $ZodSuccess: nc,
11181
11181
  $ZodSymbol: xu,
11182
11182
  $ZodTemplateLiteral: sc,
11183
- $ZodTransform: Hu,
11183
+ $ZodTransform: Xu,
11184
11184
  $ZodTuple: jr,
11185
11185
  $ZodType: T,
11186
11186
  $ZodULID: cu,
@@ -11223,7 +11223,7 @@ const Zg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11223
11223
  _decodeAsync: mr,
11224
11224
  _default: Ng,
11225
11225
  _discriminatedUnion: _g,
11226
- _e164: Hr,
11226
+ _e164: Xr,
11227
11227
  _email: Ur,
11228
11228
  _emoji: Cr,
11229
11229
  _encode: lr,
@@ -11247,7 +11247,7 @@ const Zg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11247
11247
  _isoDateTime: $c,
11248
11248
  _isoDuration: kc,
11249
11249
  _isoTime: Ic,
11250
- _jwt: Xr,
11250
+ _jwt: Hr,
11251
11251
  _ksuid: Br,
11252
11252
  _lazy: Rg,
11253
11253
  _length: dn,
@@ -11261,7 +11261,7 @@ const Zg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11261
11261
  _maxSize: cn,
11262
11262
  _mime: oi,
11263
11263
  _min: ae,
11264
- _minLength: He,
11264
+ _minLength: Xe,
11265
11265
  _minSize: mt,
11266
11266
  _multipleOf: ft,
11267
11267
  _nan: Wc,
@@ -11269,9 +11269,9 @@ const Zg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11269
11269
  _nativeEnum: zg,
11270
11270
  _negative: qc,
11271
11271
  _never: Bc,
11272
- _nonnegative: Xc,
11272
+ _nonnegative: Hc,
11273
11273
  _nonoptional: Ug,
11274
- _nonpositive: Hc,
11274
+ _nonpositive: Xc,
11275
11275
  _normalize: ai,
11276
11276
  _null: Zc,
11277
11277
  _nullable: Eg,
@@ -11348,9 +11348,9 @@ const Zg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11348
11348
  safeEncodeAsync: im,
11349
11349
  safeParse: Qa,
11350
11350
  safeParseAsync: es,
11351
- toDotPath: Xa,
11351
+ toDotPath: Ha,
11352
11352
  toJSONSchema: al,
11353
- treeifyError: Ha,
11353
+ treeifyError: Xa,
11354
11354
  util: Ka,
11355
11355
  version: eu
11356
11356
  }, Symbol.toStringTag, { value: "Module" })), li = /* @__PURE__ */ l("ZodISODateTime", (e, t) => {
@@ -11423,7 +11423,7 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11423
11423
  ...t.checks ?? [],
11424
11424
  ...r.map((i) => typeof i == "function" ? { _zod: { check: i, def: { check: "custom" }, onattach: [] } } : i)
11425
11425
  ]
11426
- })), e.clone = (r, i) => fe(e, r, i), e.brand = () => e, e.register = (r, i) => (r.add(e, i), e), e.parse = (r, i) => fl(e, r, i, { callee: e.parse }), e.safeParse = (r, i) => vl(e, r, i), e.parseAsync = async (r, i) => ml(e, r, i, { callee: e.parseAsync }), e.safeParseAsync = async (r, i) => gl(e, r, i), e.spa = e.safeParseAsync, e.encode = (r, i) => pl(e, r, i), e.decode = (r, i) => hl(e, r, i), e.encodeAsync = async (r, i) => bl(e, r, i), e.decodeAsync = async (r, i) => _l(e, r, i), e.safeEncode = (r, i) => yl(e, r, i), e.safeDecode = (r, i) => $l(e, r, i), e.safeEncodeAsync = async (r, i) => wl(e, r, i), e.safeDecodeAsync = async (r, i) => Il(e, r, i), e.refine = (r, i) => e.check(cd(r, i)), e.superRefine = (r) => e.check(ld(r)), e.overwrite = (r) => e.check(Fe(r)), e.optional = () => qt(e), e.nullable = () => Ht(e), e.nullish = () => qt(Ht(e)), e.nonoptional = (r) => Xl(e, r), e.array = () => hn(e), e.or = (r) => Di([e, r]), e.and = (r) => Cl(e, r), e.transform = (r) => Xt(e, Ri(r)), e.default = (r) => Kl(e, r), e.prefault = (r) => Hl(e, r), e.catch = (r) => ed(e, r), e.pipe = (r) => Xt(e, r), e.readonly = () => rd(e), e.describe = (r) => {
11426
+ })), e.clone = (r, i) => fe(e, r, i), e.brand = () => e, e.register = (r, i) => (r.add(e, i), e), e.parse = (r, i) => fl(e, r, i, { callee: e.parse }), e.safeParse = (r, i) => vl(e, r, i), e.parseAsync = async (r, i) => ml(e, r, i, { callee: e.parseAsync }), e.safeParseAsync = async (r, i) => gl(e, r, i), e.spa = e.safeParseAsync, e.encode = (r, i) => pl(e, r, i), e.decode = (r, i) => hl(e, r, i), e.encodeAsync = async (r, i) => bl(e, r, i), e.decodeAsync = async (r, i) => _l(e, r, i), e.safeEncode = (r, i) => yl(e, r, i), e.safeDecode = (r, i) => $l(e, r, i), e.safeEncodeAsync = async (r, i) => wl(e, r, i), e.safeDecodeAsync = async (r, i) => Il(e, r, i), e.refine = (r, i) => e.check(cd(r, i)), e.superRefine = (r) => e.check(ld(r)), e.overwrite = (r) => e.check(Fe(r)), e.optional = () => qt(e), e.nullable = () => Xt(e), e.nullish = () => qt(Xt(e)), e.nonoptional = (r) => Hl(e, r), e.array = () => hn(e), e.or = (r) => Di([e, r]), e.and = (r) => Cl(e, r), e.transform = (r) => Ht(e, Ri(r)), e.default = (r) => Kl(e, r), e.prefault = (r) => Xl(e, r), e.catch = (r) => ed(e, r), e.pipe = (r) => Ht(e, r), e.readonly = () => rd(e), e.describe = (r) => {
11427
11427
  const i = e.clone();
11428
11428
  return Pe.add(i, { description: r }), i;
11429
11429
  }, Object.defineProperty(e, "description", {
@@ -11439,9 +11439,9 @@ const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11439
11439
  }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), vi = /* @__PURE__ */ l("_ZodString", (e, t) => {
11440
11440
  St.init(e, t), P.init(e, t);
11441
11441
  const r = e._zod.bag;
11442
- e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, e.regex = (...i) => e.check(Qr(...i)), e.includes = (...i) => e.check(ni(...i)), e.startsWith = (...i) => e.check(ri(...i)), e.endsWith = (...i) => e.check(ii(...i)), e.min = (...i) => e.check(He(...i)), e.max = (...i) => e.check(ln(...i)), e.length = (...i) => e.check(dn(...i)), e.nonempty = (...i) => e.check(He(1, ...i)), e.lowercase = (i) => e.check(ei(i)), e.uppercase = (i) => e.check(ti(i)), e.trim = () => e.check(si()), e.normalize = (...i) => e.check(ai(...i)), e.toLowerCase = () => e.check(ui()), e.toUpperCase = () => e.check(ci());
11442
+ e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, e.regex = (...i) => e.check(Qr(...i)), e.includes = (...i) => e.check(ni(...i)), e.startsWith = (...i) => e.check(ri(...i)), e.endsWith = (...i) => e.check(ii(...i)), e.min = (...i) => e.check(Xe(...i)), e.max = (...i) => e.check(ln(...i)), e.length = (...i) => e.check(dn(...i)), e.nonempty = (...i) => e.check(Xe(1, ...i)), e.lowercase = (i) => e.check(ei(i)), e.uppercase = (i) => e.check(ti(i)), e.trim = () => e.check(si()), e.normalize = (...i) => e.check(ai(...i)), e.toLowerCase = () => e.check(ui()), e.toUpperCase = () => e.check(ci());
11443
11443
  }), fn = /* @__PURE__ */ l("ZodString", (e, t) => {
11444
- St.init(e, t), vi.init(e, t), e.email = (r) => e.check(Ur(gi, r)), e.url = (r) => e.check(un(mn, r)), e.jwt = (r) => e.check(Xr(Ei, r)), e.emoji = (r) => e.check(Cr(pi, r)), e.guid = (r) => e.check(Vt(Wt, r)), e.uuid = (r) => e.check(Tr($e, r)), e.uuidv4 = (r) => e.check(Pr($e, r)), e.uuidv6 = (r) => e.check(Dr($e, r)), e.uuidv7 = (r) => e.check(Ar($e, r)), e.nanoid = (r) => e.check(Rr(hi, r)), e.guid = (r) => e.check(Vt(Wt, r)), e.cuid = (r) => e.check(Mr(bi, r)), e.cuid2 = (r) => e.check(Zr(_i, r)), e.ulid = (r) => e.check(Lr(yi, r)), e.base64 = (r) => e.check(Kr(Oi, r)), e.base64url = (r) => e.check(qr(ji, r)), e.xid = (r) => e.check(Fr($i, r)), e.ksuid = (r) => e.check(Br(wi, r)), e.ipv4 = (r) => e.check(Gr(Ii, r)), e.ipv6 = (r) => e.check(Vr(ki, r)), e.cidrv4 = (r) => e.check(Jr(Si, r)), e.cidrv6 = (r) => e.check(Wr(zi, r)), e.e164 = (r) => e.check(Hr(xi, r)), e.datetime = (r) => e.check(sl(r)), e.date = (r) => e.check(ul(r)), e.time = (r) => e.check(cl(r)), e.duration = (r) => e.check(ll(r));
11444
+ St.init(e, t), vi.init(e, t), e.email = (r) => e.check(Ur(gi, r)), e.url = (r) => e.check(un(mn, r)), e.jwt = (r) => e.check(Hr(Ei, r)), e.emoji = (r) => e.check(Cr(pi, r)), e.guid = (r) => e.check(Vt(Wt, r)), e.uuid = (r) => e.check(Tr($e, r)), e.uuidv4 = (r) => e.check(Pr($e, r)), e.uuidv6 = (r) => e.check(Dr($e, r)), e.uuidv7 = (r) => e.check(Ar($e, r)), e.nanoid = (r) => e.check(Rr(hi, r)), e.guid = (r) => e.check(Vt(Wt, r)), e.cuid = (r) => e.check(Mr(bi, r)), e.cuid2 = (r) => e.check(Zr(_i, r)), e.ulid = (r) => e.check(Lr(yi, r)), e.base64 = (r) => e.check(Kr(Oi, r)), e.base64url = (r) => e.check(qr(ji, r)), e.xid = (r) => e.check(Fr($i, r)), e.ksuid = (r) => e.check(Br(wi, r)), e.ipv4 = (r) => e.check(Gr(Ii, r)), e.ipv6 = (r) => e.check(Vr(ki, r)), e.cidrv4 = (r) => e.check(Jr(Si, r)), e.cidrv6 = (r) => e.check(Wr(zi, r)), e.e164 = (r) => e.check(Xr(xi, r)), e.datetime = (r) => e.check(sl(r)), e.date = (r) => e.check(ul(r)), e.time = (r) => e.check(cl(r)), e.duration = (r) => e.check(ll(r));
11445
11445
  });
11446
11446
  function Jt(e) {
11447
11447
  return bc(fn, e);
@@ -11478,10 +11478,10 @@ function qg(e) {
11478
11478
  const mn = /* @__PURE__ */ l("ZodURL", (e, t) => {
11479
11479
  iu.init(e, t), J.init(e, t);
11480
11480
  });
11481
- function Hg(e) {
11481
+ function Xg(e) {
11482
11482
  return un(mn, e);
11483
11483
  }
11484
- function Xg(e) {
11484
+ function Hg(e) {
11485
11485
  return un(mn, {
11486
11486
  protocol: /^https?$/,
11487
11487
  hostname: hs,
@@ -11570,13 +11570,13 @@ const xi = /* @__PURE__ */ l("ZodE164", (e, t) => {
11570
11570
  Iu.init(e, t), J.init(e, t);
11571
11571
  });
11572
11572
  function dp(e) {
11573
- return Hr(xi, e);
11573
+ return Xr(xi, e);
11574
11574
  }
11575
11575
  const Ei = /* @__PURE__ */ l("ZodJWT", (e, t) => {
11576
11576
  Su.init(e, t), J.init(e, t);
11577
11577
  });
11578
11578
  function fp(e) {
11579
- return Xr(Ei, e);
11579
+ return Hr(Ei, e);
11580
11580
  }
11581
11581
  const Ot = /* @__PURE__ */ l("ZodCustomStringFormat", (e, t) => {
11582
11582
  zu.init(e, t), J.init(e, t);
@@ -11672,7 +11672,7 @@ function zp() {
11672
11672
  const El = /* @__PURE__ */ l("ZodUnknown", (e, t) => {
11673
11673
  Tu.init(e, t), P.init(e, t);
11674
11674
  });
11675
- function Xe() {
11675
+ function He() {
11676
11676
  return Fc(El);
11677
11677
  }
11678
11678
  const Nl = /* @__PURE__ */ l("ZodNever", (e, t) => {
@@ -11696,7 +11696,7 @@ function jp(e) {
11696
11696
  return Vc(Ti, e);
11697
11697
  }
11698
11698
  const Tl = /* @__PURE__ */ l("ZodArray", (e, t) => {
11699
- Cu.init(e, t), P.init(e, t), e.element = t.element, e.min = (r, i) => e.check(He(r, i)), e.nonempty = (r) => e.check(He(1, r)), e.max = (r, i) => e.check(ln(r, i)), e.length = (r, i) => e.check(dn(r, i)), e.unwrap = () => e.element;
11699
+ Cu.init(e, t), P.init(e, t), e.element = t.element, e.min = (r, i) => e.check(Xe(r, i)), e.nonempty = (r) => e.check(Xe(1, r)), e.max = (r, i) => e.check(ln(r, i)), e.length = (r, i) => e.check(dn(r, i)), e.unwrap = () => e.element;
11700
11700
  });
11701
11701
  function hn(e, t) {
11702
11702
  return Qc(Tl, e, t);
@@ -11706,7 +11706,7 @@ function xp(e) {
11706
11706
  return Ci(Object.keys(t));
11707
11707
  }
11708
11708
  const bn = /* @__PURE__ */ l("ZodObject", (e, t) => {
11709
- Lu.init(e, t), P.init(e, t), C(e, "shape", () => t.shape), e.keyof = () => Ci(Object.keys(e._zod.def.shape)), e.catchall = (r) => e.clone({ ...e._zod.def, catchall: r }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: Xe() }), e.loose = () => e.clone({ ...e._zod.def, catchall: Xe() }), e.strict = () => e.clone({ ...e._zod.def, catchall: Ui() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (r) => La(e, r), e.safeExtend = (r) => Fa(e, r), e.merge = (r) => Ba(e, r), e.pick = (r) => Ma(e, r), e.omit = (r) => Za(e, r), e.partial = (...r) => Ga(Mi, e, r[0]), e.required = (...r) => Va(Zi, e, r[0]);
11709
+ Lu.init(e, t), P.init(e, t), C(e, "shape", () => t.shape), e.keyof = () => Ci(Object.keys(e._zod.def.shape)), e.catchall = (r) => e.clone({ ...e._zod.def, catchall: r }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: He() }), e.loose = () => e.clone({ ...e._zod.def, catchall: He() }), e.strict = () => e.clone({ ...e._zod.def, catchall: Ui() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (r) => La(e, r), e.safeExtend = (r) => Fa(e, r), e.merge = (r) => Ba(e, r), e.pick = (r) => Ma(e, r), e.omit = (r) => Za(e, r), e.partial = (...r) => Ga(Mi, e, r[0]), e.required = (...r) => Va(Zi, e, r[0]);
11710
11710
  });
11711
11711
  function Pl(e, t) {
11712
11712
  const r = {
@@ -11728,7 +11728,7 @@ function Np(e, t) {
11728
11728
  return new bn({
11729
11729
  type: "object",
11730
11730
  shape: e,
11731
- catchall: Xe(),
11731
+ catchall: He(),
11732
11732
  ...b(t)
11733
11733
  });
11734
11734
  }
@@ -11888,7 +11888,7 @@ function Rp(e) {
11888
11888
  return el(Gl, e);
11889
11889
  }
11890
11890
  const Vl = /* @__PURE__ */ l("ZodTransform", (e, t) => {
11891
- Hu.init(e, t), P.init(e, t), e._zod.parse = (r, i) => {
11891
+ Xu.init(e, t), P.init(e, t), e._zod.parse = (r, i) => {
11892
11892
  if (i.direction === "backward")
11893
11893
  throw new nn(e.constructor.name);
11894
11894
  r.addIssue = (o) => {
@@ -11910,7 +11910,7 @@ function Ri(e) {
11910
11910
  });
11911
11911
  }
11912
11912
  const Mi = /* @__PURE__ */ l("ZodOptional", (e, t) => {
11913
- Xu.init(e, t), P.init(e, t), e.unwrap = () => e._zod.def.innerType;
11913
+ Hu.init(e, t), P.init(e, t), e.unwrap = () => e._zod.def.innerType;
11914
11914
  });
11915
11915
  function qt(e) {
11916
11916
  return new Mi({
@@ -11921,14 +11921,14 @@ function qt(e) {
11921
11921
  const Jl = /* @__PURE__ */ l("ZodNullable", (e, t) => {
11922
11922
  Yu.init(e, t), P.init(e, t), e.unwrap = () => e._zod.def.innerType;
11923
11923
  });
11924
- function Ht(e) {
11924
+ function Xt(e) {
11925
11925
  return new Jl({
11926
11926
  type: "nullable",
11927
11927
  innerType: e
11928
11928
  });
11929
11929
  }
11930
11930
  function Mp(e) {
11931
- return qt(Ht(e));
11931
+ return qt(Xt(e));
11932
11932
  }
11933
11933
  const Wl = /* @__PURE__ */ l("ZodDefault", (e, t) => {
11934
11934
  Qu.init(e, t), P.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
@@ -11945,7 +11945,7 @@ function Kl(e, t) {
11945
11945
  const ql = /* @__PURE__ */ l("ZodPrefault", (e, t) => {
11946
11946
  ec.init(e, t), P.init(e, t), e.unwrap = () => e._zod.def.innerType;
11947
11947
  });
11948
- function Hl(e, t) {
11948
+ function Xl(e, t) {
11949
11949
  return new ql({
11950
11950
  type: "prefault",
11951
11951
  innerType: e,
@@ -11957,7 +11957,7 @@ function Hl(e, t) {
11957
11957
  const Zi = /* @__PURE__ */ l("ZodNonOptional", (e, t) => {
11958
11958
  tc.init(e, t), P.init(e, t), e.unwrap = () => e._zod.def.innerType;
11959
11959
  });
11960
- function Xl(e, t) {
11960
+ function Hl(e, t) {
11961
11961
  return new Zi({
11962
11962
  type: "nonoptional",
11963
11963
  innerType: e,
@@ -11992,7 +11992,7 @@ function Lp(e) {
11992
11992
  const Li = /* @__PURE__ */ l("ZodPipe", (e, t) => {
11993
11993
  oc.init(e, t), P.init(e, t), e.in = t.in, e.out = t.out;
11994
11994
  });
11995
- function Xt(e, t) {
11995
+ function Ht(e, t) {
11996
11996
  return new Li({
11997
11997
  type: "pipe",
11998
11998
  in: e,
@@ -12052,11 +12052,11 @@ function Gp(e) {
12052
12052
  const ud = /* @__PURE__ */ l("ZodFunction", (e, t) => {
12053
12053
  uc.init(e, t), P.init(e, t);
12054
12054
  });
12055
- function Xo(e) {
12055
+ function Ho(e) {
12056
12056
  return new ud({
12057
12057
  type: "function",
12058
- input: Array.isArray(e?.input) ? Ml(e?.input) : e?.input ?? hn(Xe()),
12059
- output: e?.output ?? Xe()
12058
+ input: Array.isArray(e?.input) ? Ml(e?.input) : e?.input ?? hn(He()),
12059
+ output: e?.output ?? He()
12060
12060
  });
12061
12061
  }
12062
12062
  const _n = /* @__PURE__ */ l("ZodCustom", (e, t) => {
@@ -12099,10 +12099,10 @@ function qp(e) {
12099
12099
  const t = ad(() => Di([Jt(e), kl(), Kt(), jl(), hn(t), Zl(Jt(), t)]));
12100
12100
  return t;
12101
12101
  }
12102
- function Hp(e, t) {
12103
- return Xt(Ri(e), t);
12102
+ function Xp(e, t) {
12103
+ return Ht(Ri(e), t);
12104
12104
  }
12105
- const Xp = {
12105
+ const Hp = {
12106
12106
  invalid_type: "invalid_type",
12107
12107
  too_big: "too_big",
12108
12108
  too_small: "too_small",
@@ -12192,7 +12192,7 @@ const L = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12192
12192
  ZodISODuration: mi,
12193
12193
  ZodISOTime: fi,
12194
12194
  ZodIntersection: Al,
12195
- ZodIssueCode: Xp,
12195
+ ZodIssueCode: Hp,
12196
12196
  ZodJWT: Ei,
12197
12197
  ZodKSUID: wi,
12198
12198
  ZodLazy: od,
@@ -12233,7 +12233,7 @@ const L = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12233
12233
  ZodXID: $i,
12234
12234
  _ZodString: vi,
12235
12235
  _default: Kl,
12236
- _function: Xo,
12236
+ _function: Ho,
12237
12237
  any: zp,
12238
12238
  array: hn,
12239
12239
  base64: cp,
@@ -12268,7 +12268,7 @@ const L = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12268
12268
  float32: hp,
12269
12269
  float64: bp,
12270
12270
  formatError: cr,
12271
- function: Xo,
12271
+ function: Ho,
12272
12272
  getErrorMap: Qp,
12273
12273
  globalRegistry: Pe,
12274
12274
  gt: Ze,
@@ -12277,7 +12277,7 @@ const L = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12277
12277
  hash: pp,
12278
12278
  hex: gp,
12279
12279
  hostname: vp,
12280
- httpUrl: Xg,
12280
+ httpUrl: Hg,
12281
12281
  includes: ni,
12282
12282
  instanceof: Wp,
12283
12283
  int: Vn,
@@ -12303,7 +12303,7 @@ const L = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12303
12303
  maxLength: ln,
12304
12304
  maxSize: cn,
12305
12305
  mime: oi,
12306
- minLength: He,
12306
+ minLength: Xe,
12307
12307
  minSize: mt,
12308
12308
  multipleOf: ft,
12309
12309
  nan: Lp,
@@ -12311,12 +12311,12 @@ const L = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12311
12311
  nativeEnum: Ap,
12312
12312
  negative: qc,
12313
12313
  never: Ui,
12314
- nonnegative: Xc,
12315
- nonoptional: Xl,
12316
- nonpositive: Hc,
12314
+ nonnegative: Hc,
12315
+ nonoptional: Hl,
12316
+ nonpositive: Xc,
12317
12317
  normalize: ai,
12318
12318
  null: jl,
12319
- nullable: Ht,
12319
+ nullable: Xt,
12320
12320
  nullish: Mp,
12321
12321
  number: kl,
12322
12322
  object: Pl,
@@ -12325,10 +12325,10 @@ const L = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12325
12325
  parse: fl,
12326
12326
  parseAsync: ml,
12327
12327
  partialRecord: Tp,
12328
- pipe: Xt,
12328
+ pipe: Ht,
12329
12329
  positive: Kc,
12330
- prefault: Hl,
12331
- preprocess: Hp,
12330
+ prefault: Xl,
12331
+ preprocess: Xp,
12332
12332
  prettifyError: Ya,
12333
12333
  promise: Gp,
12334
12334
  property: Yc,
@@ -12360,7 +12360,7 @@ const L = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12360
12360
  toLowerCase: ui,
12361
12361
  toUpperCase: ci,
12362
12362
  transform: Ri,
12363
- treeifyError: Ha,
12363
+ treeifyError: Xa,
12364
12364
  trim: si,
12365
12365
  tuple: Ml,
12366
12366
  uint32: yp,
@@ -12368,9 +12368,9 @@ const L = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12368
12368
  ulid: np,
12369
12369
  undefined: Sp,
12370
12370
  union: Di,
12371
- unknown: Xe,
12371
+ unknown: He,
12372
12372
  uppercase: ti,
12373
- url: Hg,
12373
+ url: Xg,
12374
12374
  util: Ka,
12375
12375
  uuid: Jg,
12376
12376
  uuidv4: Wg,
@@ -12410,7 +12410,7 @@ let Wn = class {
12410
12410
  this.runtimeConfig = ch.parse(e), this.appConfig = lh.parse({
12411
12411
  VITE_INJECT_AGIFLOW_APP_ENDPOINT: "https://agiflow.io",
12412
12412
  VITE_INJECT_AGIFLOW_APP_DOCKER_ENDPOINT: "https://agiflow.io",
12413
- VITE_AGENT_CLI_DOCKER_IMAGE: "agiflowai/agent-cli:v0.1.9",
12413
+ VITE_AGENT_CLI_DOCKER_IMAGE: "agiflowai/agent-cli:v0.2.0",
12414
12414
  VITE_AGENT_CLI_DOCKER_NETWORK: "",
12415
12415
  VITE_SAVE_RAW: "",
12416
12416
  VITE_MULTIPLEX_SOCKET_PATH: process.env.VITE_MULTIPLEX_SOCKET_PATH
@@ -13112,6 +13112,9 @@ let ra = class {
13112
13112
  throw this.logger.error(`GlobalClient request failed for session ${e}:`, i), i;
13113
13113
  }
13114
13114
  }
13115
+ async publish(e, t) {
13116
+ this.validateSessionId(e), this.logger.debug(`GlobalClient publish (fire-and-forget) for session ${e}`), await this.broker.publish(e, t);
13117
+ }
13115
13118
  registerService(e, t, r) {
13116
13119
  this.validateSessionId(e), this.logger.debug(`GlobalClient registering service ${t} for session ${e}`), this.broker.registerService(e, t, r);
13117
13120
  }
@@ -13138,7 +13141,7 @@ var kh = Object.getOwnPropertyDescriptor, Sh = (e, t, r, i) => {
13138
13141
  (a = e[o]) && (n = a(n) || n);
13139
13142
  return n;
13140
13143
  }, ia = (e, t) => (r, i) => t(r, i, e);
13141
- let Hn = class extends gt {
13144
+ let Xn = class extends gt {
13142
13145
  ws = null;
13143
13146
  reconnectTimer = null;
13144
13147
  connected = !1;
@@ -13324,11 +13327,11 @@ let Hn = class extends gt {
13324
13327
  }, e), this.reconnectTimer.unref();
13325
13328
  }
13326
13329
  };
13327
- Hn = Sh([
13330
+ Xn = Sh([
13328
13331
  Ie(),
13329
13332
  ia(0, de(ee.Logger)),
13330
13333
  ia(1, de(ee.MultiplexClientConfig))
13331
- ], Hn);
13334
+ ], Xn);
13332
13335
  const oa = {
13333
13336
  MESSAGE_STDIN: "agent-message-stdin"
13334
13337
  };
@@ -13531,12 +13534,15 @@ let ca = class {
13531
13534
  this.brokerHttpUrl = r.replace(/^ws:\/\//, "http://").replace(/^wss:\/\//, "https://"), this.logger.info(`RemoteMultiplexGlobalClient initialized with broker: ${this.brokerHttpUrl}`);
13532
13535
  }
13533
13536
  brokerHttpUrl;
13537
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
13534
13538
  subscribeEventType(e, t, r) {
13535
13539
  this.logger.warn("RemoteMultiplexGlobalClient does not support subscribeEventType");
13536
13540
  }
13541
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
13537
13542
  unsubscribeEventType(e, t, r) {
13538
13543
  this.logger.warn("RemoteMultiplexGlobalClient does not support unsubscribeEventType");
13539
13544
  }
13545
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
13540
13546
  async publishEventType(e, t, r) {
13541
13547
  this.logger.warn("RemoteMultiplexGlobalClient does not support publishEventType");
13542
13548
  }
@@ -13573,9 +13579,40 @@ let ca = class {
13573
13579
  throw this.logger.error(`RemoteGlobalClient request failed for session ${e}:`, n), n;
13574
13580
  }
13575
13581
  }
13582
+ /**
13583
+ * Send RPC request to host broker via HTTP (fire-and-forget)
13584
+ * Used for AgentWsService methods that don't need a response
13585
+ */
13586
+ async publish(e, t) {
13587
+ this.validateSessionId(e);
13588
+ const r = this.generateCorrelationId();
13589
+ try {
13590
+ this.logger.debug(`RemoteGlobalClient publish (fire-and-forget) for session ${e}`), fetch(this.brokerHttpUrl, {
13591
+ method: "POST",
13592
+ headers: {
13593
+ "Content-Type": "application/json",
13594
+ "X-Session-Id": e,
13595
+ "X-Correlation-Id": r
13596
+ },
13597
+ body: JSON.stringify({
13598
+ correlationId: r,
13599
+ event: t,
13600
+ timestamp: Date.now()
13601
+ }),
13602
+ signal: AbortSignal.timeout(5e3)
13603
+ // Shorter timeout for fire-and-forget
13604
+ }).catch((i) => {
13605
+ this.logger.debug(`RemoteGlobalClient publish failed for session ${e}:`, i);
13606
+ });
13607
+ } catch (i) {
13608
+ this.logger.debug(`RemoteGlobalClient publish error for session ${e}:`, i);
13609
+ }
13610
+ }
13611
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
13576
13612
  registerService(e, t, r) {
13577
13613
  this.logger.warn("RemoteMultiplexGlobalClient does not support registerService");
13578
13614
  }
13615
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
13579
13616
  unregisterService(e, t) {
13580
13617
  this.logger.warn("RemoteMultiplexGlobalClient does not support unregisterService");
13581
13618
  }
@@ -13614,11 +13651,11 @@ function Eh() {
13614
13651
  sessionId: r,
13615
13652
  reconnectDelayMs: 5e3,
13616
13653
  maxBufferSize: 1e3
13617
- }), e.bind(ee.MultiplexClientConfig).toConstantValue(u), e.bind(ee.MessageMultiplexClient).to(Hn);
13654
+ }), e.bind(ee.MultiplexClientConfig).toConstantValue(u), e.bind(ee.MessageMultiplexClient).to(Xn);
13618
13655
  }
13619
13656
  return e;
13620
13657
  }
13621
- const Nh = Eh(), Xn = Nh.get(ee.Logger);
13658
+ const Nh = Eh(), Hn = Nh.get(ee.Logger);
13622
13659
  class Uh {
13623
13660
  agentSessionId;
13624
13661
  claudeSessionId;
@@ -13626,7 +13663,7 @@ class Uh {
13626
13663
  this.agentSessionId = t, this.claudeSessionId = r;
13627
13664
  }
13628
13665
  async processSessionEnd(t) {
13629
- Xn.info("session-end-event", {
13666
+ Hn.info("session-end-event", {
13630
13667
  agentSessionId: this.agentSessionId,
13631
13668
  claudeSessionId: this.claudeSessionId,
13632
13669
  reason: t.reason,
@@ -13644,7 +13681,7 @@ async function Th() {
13644
13681
  const o = Buffer.concat(n).toString();
13645
13682
  e = JSON.parse(o);
13646
13683
  } catch (n) {
13647
- Xn.error("Failed to parse SessionEnd input", n), process.exit(0);
13684
+ Hn.error("Failed to parse SessionEnd input", n), process.exit(0);
13648
13685
  return;
13649
13686
  }
13650
13687
  const t = process.env.AGENT_SESSION_ID || "", r = e.session_id || "unknown";
@@ -13654,7 +13691,7 @@ async function Th() {
13654
13691
  }
13655
13692
  await new Uh(t, r).processSessionEnd(e), process.exit(0);
13656
13693
  } catch (e) {
13657
- Xn.error("Unexpected error in SessionEnd hook", e), process.exit(0);
13694
+ Hn.error("Unexpected error in SessionEnd hook", e), process.exit(0);
13658
13695
  }
13659
13696
  }
13660
13697
  Th().catch(() => {