@agiflowai/agent-cli 0.1.9 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/claudeNotification.js +168 -131
- package/dist/claudePermissionRequest.js +230 -193
- package/dist/claudePostToolUse.js +38 -1
- package/dist/claudePreToolUse.js +704 -667
- package/dist/claudeSessionEnd.js +175 -138
- package/dist/claudeSessionStart.js +38 -1
- package/dist/claudeStop.js +38 -1
- package/dist/cli.js +1 -1
- package/dist/daemon.js +177 -165
- package/dist/daemon.js.map +1 -1
- package/dist/index-BYi9XYLR.mjs +60 -0
- package/dist/index-BYi9XYLR.mjs.map +1 -0
- package/dist/{index-CxP6kLM9.mjs → index-CJx1mjmc.mjs} +2 -2
- package/dist/index-CJx1mjmc.mjs.map +1 -0
- package/dist/{index-rQIAEgB9.mjs → index-DJ_5nSHk.mjs} +7879 -7218
- package/dist/index-DJ_5nSHk.mjs.map +1 -0
- package/dist/index.js +2 -2
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/index-CxP6kLM9.mjs.map +0 -1
- package/dist/index-qXAhghID.mjs +0 -59
- package/dist/index-qXAhghID.mjs.map +0 -1
- package/dist/index-rQIAEgB9.mjs.map +0 -1
|
@@ -110,7 +110,7 @@ function Zd() {
|
|
|
110
110
|
function On(d, v, h) {
|
|
111
111
|
if (!Y(v))
|
|
112
112
|
throw new TypeError();
|
|
113
|
-
return N(h) || (h = Ie(h)),
|
|
113
|
+
return N(h) || (h = Ie(h)), Xi(d, v, h);
|
|
114
114
|
}
|
|
115
115
|
r("hasMetadata", On);
|
|
116
116
|
function vd(d, v, h) {
|
|
@@ -122,7 +122,7 @@ function Zd() {
|
|
|
122
122
|
function pd(d, v, h) {
|
|
123
123
|
if (!Y(v))
|
|
124
124
|
throw new TypeError();
|
|
125
|
-
return N(h) || (h = Ie(h)),
|
|
125
|
+
return N(h) || (h = Ie(h)), Hi(d, v, h);
|
|
126
126
|
}
|
|
127
127
|
r("getMetadata", pd);
|
|
128
128
|
function hd(d, v, h) {
|
|
@@ -180,12 +180,12 @@ function Zd() {
|
|
|
180
180
|
}
|
|
181
181
|
return w;
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function Xi(d, v, h) {
|
|
184
184
|
var w = jn(d, v, h);
|
|
185
185
|
if (w)
|
|
186
186
|
return !0;
|
|
187
187
|
var x = En(v);
|
|
188
|
-
return Ke(x) ? !1 :
|
|
188
|
+
return Ke(x) ? !1 : Xi(d, x, h);
|
|
189
189
|
}
|
|
190
190
|
function jn(d, v, h) {
|
|
191
191
|
var w = ot(
|
|
@@ -196,13 +196,13 @@ function Zd() {
|
|
|
196
196
|
);
|
|
197
197
|
return N(w) ? !1 : ro(w.OrdinaryHasOwnMetadata(d, v, h));
|
|
198
198
|
}
|
|
199
|
-
function
|
|
199
|
+
function Hi(d, v, h) {
|
|
200
200
|
var w = jn(d, v, h);
|
|
201
201
|
if (w)
|
|
202
202
|
return Yi(d, v, h);
|
|
203
203
|
var x = En(v);
|
|
204
204
|
if (!Ke(x))
|
|
205
|
-
return
|
|
205
|
+
return Hi(d, x, h);
|
|
206
206
|
}
|
|
207
207
|
function Yi(d, v, h) {
|
|
208
208
|
var w = ot(
|
|
@@ -971,7 +971,7 @@ function qd(e) {
|
|
|
971
971
|
return n;
|
|
972
972
|
});
|
|
973
973
|
}
|
|
974
|
-
function
|
|
974
|
+
function Xd(e = 10) {
|
|
975
975
|
const t = "abcdefghijklmnopqrstuvwxyz";
|
|
976
976
|
let r = "";
|
|
977
977
|
for (let i = 0; i < e; i++)
|
|
@@ -983,7 +983,7 @@ function Zn(e) {
|
|
|
983
983
|
}
|
|
984
984
|
const or = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
|
|
985
985
|
};
|
|
986
|
-
function
|
|
986
|
+
function He(e) {
|
|
987
987
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
988
988
|
}
|
|
989
989
|
const _a = It(() => {
|
|
@@ -997,18 +997,18 @@ const _a = It(() => {
|
|
|
997
997
|
}
|
|
998
998
|
});
|
|
999
999
|
function Le(e) {
|
|
1000
|
-
if (
|
|
1000
|
+
if (He(e) === !1)
|
|
1001
1001
|
return !1;
|
|
1002
1002
|
const t = e.constructor;
|
|
1003
1003
|
if (t === void 0)
|
|
1004
1004
|
return !0;
|
|
1005
1005
|
const r = t.prototype;
|
|
1006
|
-
return !(
|
|
1006
|
+
return !(He(r) === !1 || Object.prototype.hasOwnProperty.call(r, "isPrototypeOf") === !1);
|
|
1007
1007
|
}
|
|
1008
1008
|
function un(e) {
|
|
1009
1009
|
return Le(e) ? { ...e } : Array.isArray(e) ? [...e] : e;
|
|
1010
1010
|
}
|
|
1011
|
-
function
|
|
1011
|
+
function Hd(e) {
|
|
1012
1012
|
let t = 0;
|
|
1013
1013
|
for (const r in e)
|
|
1014
1014
|
Object.prototype.hasOwnProperty.call(e, r) && t++;
|
|
@@ -1333,7 +1333,7 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1333
1333
|
getParsedType: Yd,
|
|
1334
1334
|
getSizableOrigin: cn,
|
|
1335
1335
|
hexToUint8Array: rf,
|
|
1336
|
-
isObject:
|
|
1336
|
+
isObject: He,
|
|
1337
1337
|
isPlainObject: Le,
|
|
1338
1338
|
issue: Ye,
|
|
1339
1339
|
joinValues: $,
|
|
@@ -1342,7 +1342,7 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1342
1342
|
mergeDefs: Oe,
|
|
1343
1343
|
normalizeParams: b,
|
|
1344
1344
|
nullish: Je,
|
|
1345
|
-
numKeys:
|
|
1345
|
+
numKeys: Hd,
|
|
1346
1346
|
objectClone: Jd,
|
|
1347
1347
|
omit: za,
|
|
1348
1348
|
optionalKeys: wa,
|
|
@@ -1352,7 +1352,7 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1352
1352
|
primitiveTypes: $a,
|
|
1353
1353
|
promiseAllObject: qd,
|
|
1354
1354
|
propertyKeyTypes: qt,
|
|
1355
|
-
randomString:
|
|
1355
|
+
randomString: Xd,
|
|
1356
1356
|
required: Na,
|
|
1357
1357
|
safeExtend: ja,
|
|
1358
1358
|
shallowClone: un,
|
|
@@ -1482,8 +1482,8 @@ const kt = (e) => (t, r, i, n) => {
|
|
|
1482
1482
|
}, df = /* @__PURE__ */ mr(de), gr = (e) => (t, r, i) => zt(e)(t, r, i), ff = /* @__PURE__ */ gr(de), vr = (e) => async (t, r, i) => {
|
|
1483
1483
|
const n = i ? Object.assign(i, { direction: "backward" }) : { direction: "backward" };
|
|
1484
1484
|
return Ot(e)(t, r, n);
|
|
1485
|
-
}, mf = /* @__PURE__ */ vr(de), pr = (e) => async (t, r, i) => Ot(e)(t, r, i), gf = /* @__PURE__ */ pr(de), La = /^[cC][^\s-]{8,}$/, Ba = /^[0-9a-z]+$/, Fa = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Ga = /^[0-9a-vA-V]{20}$/, Va = /^[A-Za-z0-9]{27}$/, Ja = /^[a-zA-Z0-9_-]{21}$/, Wa = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, vf = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, Ka = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, Qe = (e) => e ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, pf = /* @__PURE__ */ Qe(4), hf = /* @__PURE__ */ Qe(6), bf = /* @__PURE__ */ Qe(7), qa = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, yf = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/, _f = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
|
|
1486
|
-
function
|
|
1485
|
+
}, mf = /* @__PURE__ */ vr(de), pr = (e) => async (t, r, i) => Ot(e)(t, r, i), gf = /* @__PURE__ */ pr(de), La = /^[cC][^\s-]{8,}$/, Ba = /^[0-9a-z]+$/, Fa = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Ga = /^[0-9a-vA-V]{20}$/, Va = /^[A-Za-z0-9]{27}$/, Ja = /^[a-zA-Z0-9_-]{21}$/, Wa = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, vf = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, Ka = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, Qe = (e) => e ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, pf = /* @__PURE__ */ Qe(4), hf = /* @__PURE__ */ Qe(6), bf = /* @__PURE__ */ Qe(7), qa = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, yf = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/, _f = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/, Xa = /^[^\s@"]{1,64}@[^\s@]{1,255}$/u, $f = Xa, wf = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/, If = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
1486
|
+
function Ha() {
|
|
1487
1487
|
return new RegExp(If, "u");
|
|
1488
1488
|
}
|
|
1489
1489
|
const Ya = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Qa = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/, es = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, ts = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, ns = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, hr = /^[A-Za-z0-9_-]*$/, br = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/, rs = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/, is = /^\+(?:[0-9]){6,14}[0-9]$/, os = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", as = /* @__PURE__ */ new RegExp(`^${os}$`);
|
|
@@ -1527,7 +1527,7 @@ const kf = /^[0-9a-fA-F]{32}$/, Sf = /* @__PURE__ */ jt(22, "=="), zf = /* @__PU
|
|
|
1527
1527
|
duration: Wa,
|
|
1528
1528
|
e164: is,
|
|
1529
1529
|
email: qa,
|
|
1530
|
-
emoji:
|
|
1530
|
+
emoji: Ha,
|
|
1531
1531
|
extendedDuration: vf,
|
|
1532
1532
|
guid: Ka,
|
|
1533
1533
|
hex: ys,
|
|
@@ -1562,7 +1562,7 @@ const kf = /^[0-9a-fA-F]{32}$/, Sf = /* @__PURE__ */ jt(22, "=="), zf = /* @__PU
|
|
|
1562
1562
|
time: us,
|
|
1563
1563
|
ulid: Fa,
|
|
1564
1564
|
undefined: ps,
|
|
1565
|
-
unicodeEmail:
|
|
1565
|
+
unicodeEmail: Xa,
|
|
1566
1566
|
uppercase: bs,
|
|
1567
1567
|
uuid: Qe,
|
|
1568
1568
|
uuid4: pf,
|
|
@@ -2128,7 +2128,7 @@ const Zs = {
|
|
|
2128
2128
|
}
|
|
2129
2129
|
};
|
|
2130
2130
|
}), Vs = /* @__PURE__ */ l("$ZodEmoji", (e, t) => {
|
|
2131
|
-
t.pattern ?? (t.pattern =
|
|
2131
|
+
t.pattern ?? (t.pattern = Ha()), G.init(e, t);
|
|
2132
2132
|
}), Js = /* @__PURE__ */ l("$ZodNanoID", (e, t) => {
|
|
2133
2133
|
t.pattern ?? (t.pattern = Ja), G.init(e, t);
|
|
2134
2134
|
}), Ws = /* @__PURE__ */ l("$ZodCUID", (e, t) => {
|
|
@@ -2137,9 +2137,9 @@ const Zs = {
|
|
|
2137
2137
|
t.pattern ?? (t.pattern = Ba), G.init(e, t);
|
|
2138
2138
|
}), qs = /* @__PURE__ */ l("$ZodULID", (e, t) => {
|
|
2139
2139
|
t.pattern ?? (t.pattern = Fa), G.init(e, t);
|
|
2140
|
-
}),
|
|
2140
|
+
}), Xs = /* @__PURE__ */ l("$ZodXID", (e, t) => {
|
|
2141
2141
|
t.pattern ?? (t.pattern = Ga), G.init(e, t);
|
|
2142
|
-
}),
|
|
2142
|
+
}), Hs = /* @__PURE__ */ l("$ZodKSUID", (e, t) => {
|
|
2143
2143
|
t.pattern ?? (t.pattern = Va), G.init(e, t);
|
|
2144
2144
|
}), Ys = /* @__PURE__ */ l("$ZodISODateTime", (e, t) => {
|
|
2145
2145
|
t.pattern ?? (t.pattern = cs(t)), G.init(e, t);
|
|
@@ -2423,7 +2423,7 @@ const Iu = /* @__PURE__ */ l("$ZodArray", (e, t) => {
|
|
|
2423
2423
|
return o.length ? Promise.all(o).then(() => r) : r;
|
|
2424
2424
|
};
|
|
2425
2425
|
});
|
|
2426
|
-
function
|
|
2426
|
+
function Xt(e, t, r, i) {
|
|
2427
2427
|
e.issues.length && t.issues.push(...he(r, e.issues)), e.value === void 0 ? r in i && (t.value[r] = void 0) : t.value[r] = e.value;
|
|
2428
2428
|
}
|
|
2429
2429
|
function ku(e) {
|
|
@@ -2450,7 +2450,7 @@ function Su(e, t, r, i, n, o) {
|
|
|
2450
2450
|
continue;
|
|
2451
2451
|
}
|
|
2452
2452
|
const m = u.run({ value: t[f], issues: [] }, i);
|
|
2453
|
-
m instanceof Promise ? e.push(m.then((y) =>
|
|
2453
|
+
m instanceof Promise ? e.push(m.then((y) => Xt(y, r, f, t))) : Xt(m, r, f, t);
|
|
2454
2454
|
}
|
|
2455
2455
|
return a.length && r.issues.push({
|
|
2456
2456
|
code: "unrecognized_keys",
|
|
@@ -2484,7 +2484,7 @@ const zu = /* @__PURE__ */ l("$ZodObject", (e, t) => {
|
|
|
2484
2484
|
}
|
|
2485
2485
|
return u;
|
|
2486
2486
|
});
|
|
2487
|
-
const n =
|
|
2487
|
+
const n = He, o = t.catchall;
|
|
2488
2488
|
let a;
|
|
2489
2489
|
e._zod.parse = (s, u) => {
|
|
2490
2490
|
a ?? (a = i.value);
|
|
@@ -2500,7 +2500,7 @@ const zu = /* @__PURE__ */ l("$ZodObject", (e, t) => {
|
|
|
2500
2500
|
const f = [], m = a.shape;
|
|
2501
2501
|
for (const y of a.keys) {
|
|
2502
2502
|
const g = m[y]._zod.run({ value: c[y], issues: [] }, u);
|
|
2503
|
-
g instanceof Promise ? f.push(g.then((_) =>
|
|
2503
|
+
g instanceof Promise ? f.push(g.then((_) => Xt(_, s, y, c))) : Xt(g, s, y, c);
|
|
2504
2504
|
}
|
|
2505
2505
|
return o ? Su(f, c, s, u, i.value, e) : f.length ? Promise.all(f).then(() => s) : s;
|
|
2506
2506
|
};
|
|
@@ -2543,7 +2543,7 @@ const zu = /* @__PURE__ */ l("$ZodObject", (e, t) => {
|
|
|
2543
2543
|
return (D, Z) => U(y, D, Z);
|
|
2544
2544
|
};
|
|
2545
2545
|
let o;
|
|
2546
|
-
const a =
|
|
2546
|
+
const a = He, s = !Wt.jitless, c = s && _a.value, f = t.catchall;
|
|
2547
2547
|
let m;
|
|
2548
2548
|
e._zod.parse = (y, p) => {
|
|
2549
2549
|
m ?? (m = i.value);
|
|
@@ -2632,7 +2632,7 @@ const zr = /* @__PURE__ */ l("$ZodUnion", (e, t) => {
|
|
|
2632
2632
|
});
|
|
2633
2633
|
e._zod.parse = (n, o) => {
|
|
2634
2634
|
const a = n.value;
|
|
2635
|
-
if (!
|
|
2635
|
+
if (!He(a))
|
|
2636
2636
|
return n.issues.push({
|
|
2637
2637
|
code: "invalid_type",
|
|
2638
2638
|
expected: "object",
|
|
@@ -3116,9 +3116,9 @@ const Wu = /* @__PURE__ */ l("$ZodTemplateLiteral", (e, t) => {
|
|
|
3116
3116
|
});
|
|
3117
3117
|
}, e)), qu = /* @__PURE__ */ l("$ZodPromise", (e, t) => {
|
|
3118
3118
|
T.init(e, t), e._zod.parse = (r, i) => Promise.resolve(r.value).then((n) => t.innerType._zod.run({ value: n, issues: [] }, i));
|
|
3119
|
-
}),
|
|
3119
|
+
}), Xu = /* @__PURE__ */ l("$ZodLazy", (e, t) => {
|
|
3120
3120
|
T.init(e, t), C(e._zod, "innerType", () => t.getter()), C(e._zod, "pattern", () => e._zod.innerType._zod.pattern), C(e._zod, "propValues", () => e._zod.innerType._zod.propValues), C(e._zod, "optin", () => e._zod.innerType._zod.optin ?? void 0), C(e._zod, "optout", () => e._zod.innerType._zod.optout ?? void 0), e._zod.parse = (r, i) => e._zod.innerType._zod.run(r, i);
|
|
3121
|
-
}),
|
|
3121
|
+
}), Hu = /* @__PURE__ */ l("$ZodCustom", (e, t) => {
|
|
3122
3122
|
W.init(e, t), T.init(e, t), e._zod.parse = (r, i) => r, e._zod.check = (r) => {
|
|
3123
3123
|
const i = r.value, n = t.fn(i);
|
|
3124
3124
|
if (n instanceof Promise)
|
|
@@ -3657,7 +3657,7 @@ function qf() {
|
|
|
3657
3657
|
localeError: Kf()
|
|
3658
3658
|
};
|
|
3659
3659
|
}
|
|
3660
|
-
const
|
|
3660
|
+
const Xf = () => {
|
|
3661
3661
|
const e = {
|
|
3662
3662
|
string: { unit: "znaků", verb: "mít" },
|
|
3663
3663
|
file: { unit: "bajtů", verb: "mít" },
|
|
@@ -3757,9 +3757,9 @@ const Hf = () => {
|
|
|
3757
3757
|
}
|
|
3758
3758
|
};
|
|
3759
3759
|
};
|
|
3760
|
-
function
|
|
3760
|
+
function Hf() {
|
|
3761
3761
|
return {
|
|
3762
|
-
localeError:
|
|
3762
|
+
localeError: Xf()
|
|
3763
3763
|
};
|
|
3764
3764
|
}
|
|
3765
3765
|
const Yf = () => {
|
|
@@ -6131,7 +6131,7 @@ function qm() {
|
|
|
6131
6131
|
localeError: Km()
|
|
6132
6132
|
};
|
|
6133
6133
|
}
|
|
6134
|
-
const
|
|
6134
|
+
const Xm = () => {
|
|
6135
6135
|
const e = {
|
|
6136
6136
|
string: { unit: "توکي", verb: "ولري" },
|
|
6137
6137
|
file: { unit: "بایټس", verb: "ولري" },
|
|
@@ -6219,9 +6219,9 @@ const Hm = () => {
|
|
|
6219
6219
|
}
|
|
6220
6220
|
};
|
|
6221
6221
|
};
|
|
6222
|
-
function
|
|
6222
|
+
function Hm() {
|
|
6223
6223
|
return {
|
|
6224
|
-
localeError:
|
|
6224
|
+
localeError: Xm()
|
|
6225
6225
|
};
|
|
6226
6226
|
}
|
|
6227
6227
|
const Ym = () => {
|
|
@@ -7577,7 +7577,7 @@ const tc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
7577
7577
|
be: Gf,
|
|
7578
7578
|
bg: Wf,
|
|
7579
7579
|
ca: qf,
|
|
7580
|
-
cs:
|
|
7580
|
+
cs: Hf,
|
|
7581
7581
|
da: Qf,
|
|
7582
7582
|
de: tm,
|
|
7583
7583
|
en: Yu,
|
|
@@ -7604,7 +7604,7 @@ const tc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
7604
7604
|
no: Wm,
|
|
7605
7605
|
ota: qm,
|
|
7606
7606
|
pl: Qm,
|
|
7607
|
-
ps:
|
|
7607
|
+
ps: Hm,
|
|
7608
7608
|
pt: tg,
|
|
7609
7609
|
ru: rg,
|
|
7610
7610
|
sl: og,
|
|
@@ -7680,7 +7680,7 @@ function Nr(e, t) {
|
|
|
7680
7680
|
...b(t)
|
|
7681
7681
|
});
|
|
7682
7682
|
}
|
|
7683
|
-
function
|
|
7683
|
+
function Ht(e, t) {
|
|
7684
7684
|
return new e({
|
|
7685
7685
|
type: "string",
|
|
7686
7686
|
format: "guid",
|
|
@@ -7863,7 +7863,7 @@ function qr(e, t) {
|
|
|
7863
7863
|
...b(t)
|
|
7864
7864
|
});
|
|
7865
7865
|
}
|
|
7866
|
-
function
|
|
7866
|
+
function Xr(e, t) {
|
|
7867
7867
|
return new e({
|
|
7868
7868
|
type: "string",
|
|
7869
7869
|
format: "jwt",
|
|
@@ -8143,7 +8143,7 @@ function bt(e, t) {
|
|
|
8143
8143
|
minimum: e
|
|
8144
8144
|
});
|
|
8145
8145
|
}
|
|
8146
|
-
function
|
|
8146
|
+
function Hr(e, t) {
|
|
8147
8147
|
return new zs({
|
|
8148
8148
|
check: "size_equals",
|
|
8149
8149
|
...b(t),
|
|
@@ -9011,7 +9011,7 @@ function ee(e, t) {
|
|
|
9011
9011
|
}
|
|
9012
9012
|
const qg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9013
9013
|
__proto__: null
|
|
9014
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
9014
|
+
}, Symbol.toStringTag, { value: "Module" })), Xg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9015
9015
|
__proto__: null,
|
|
9016
9016
|
$ZodAny: bu,
|
|
9017
9017
|
$ZodArray: Iu,
|
|
@@ -9049,7 +9049,7 @@ const qg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9049
9049
|
$ZodCheckStringFormat: Et,
|
|
9050
9050
|
$ZodCheckUpperCase: Us,
|
|
9051
9051
|
$ZodCodec: jr,
|
|
9052
|
-
$ZodCustom:
|
|
9052
|
+
$ZodCustom: Hu,
|
|
9053
9053
|
$ZodCustomStringFormat: fu,
|
|
9054
9054
|
$ZodDate: wu,
|
|
9055
9055
|
$ZodDefault: Mu,
|
|
@@ -9071,8 +9071,8 @@ const qg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9071
9071
|
$ZodISOTime: eu,
|
|
9072
9072
|
$ZodIntersection: xu,
|
|
9073
9073
|
$ZodJWT: du,
|
|
9074
|
-
$ZodKSUID:
|
|
9075
|
-
$ZodLazy:
|
|
9074
|
+
$ZodKSUID: Hs,
|
|
9075
|
+
$ZodLazy: Xu,
|
|
9076
9076
|
$ZodLiteral: Pu,
|
|
9077
9077
|
$ZodMap: Nu,
|
|
9078
9078
|
$ZodNaN: Gu,
|
|
@@ -9109,7 +9109,7 @@ const qg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9109
9109
|
$ZodUnion: zr,
|
|
9110
9110
|
$ZodUnknown: yu,
|
|
9111
9111
|
$ZodVoid: $u,
|
|
9112
|
-
$ZodXID:
|
|
9112
|
+
$ZodXID: Xs,
|
|
9113
9113
|
$brand: ba,
|
|
9114
9114
|
$constructor: l,
|
|
9115
9115
|
$input: rc,
|
|
@@ -9154,7 +9154,7 @@ const qg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9154
9154
|
_float64: vc,
|
|
9155
9155
|
_gt: Fe,
|
|
9156
9156
|
_gte: ae,
|
|
9157
|
-
_guid:
|
|
9157
|
+
_guid: Ht,
|
|
9158
9158
|
_includes: ti,
|
|
9159
9159
|
_int: mc,
|
|
9160
9160
|
_int32: pc,
|
|
@@ -9166,7 +9166,7 @@ const qg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9166
9166
|
_isoDateTime: sc,
|
|
9167
9167
|
_isoDuration: lc,
|
|
9168
9168
|
_isoTime: cc,
|
|
9169
|
-
_jwt:
|
|
9169
|
+
_jwt: Xr,
|
|
9170
9170
|
_ksuid: Br,
|
|
9171
9171
|
_lazy: Wg,
|
|
9172
9172
|
_length: gn,
|
|
@@ -9214,7 +9214,7 @@ const qg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9214
9214
|
_safeParse: zt,
|
|
9215
9215
|
_safeParseAsync: Ot,
|
|
9216
9216
|
_set: Tg,
|
|
9217
|
-
_size:
|
|
9217
|
+
_size: Hr,
|
|
9218
9218
|
_startsWith: ni,
|
|
9219
9219
|
_string: ic,
|
|
9220
9220
|
_stringFormat: Ut,
|
|
@@ -9293,10 +9293,10 @@ function qc(e) {
|
|
|
9293
9293
|
const fi = /* @__PURE__ */ l("ZodISODuration", (e, t) => {
|
|
9294
9294
|
tu.init(e, t), J.init(e, t);
|
|
9295
9295
|
});
|
|
9296
|
-
function
|
|
9296
|
+
function Xc(e) {
|
|
9297
9297
|
return lc(fi, e);
|
|
9298
9298
|
}
|
|
9299
|
-
const
|
|
9299
|
+
const Hg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9300
9300
|
__proto__: null,
|
|
9301
9301
|
ZodISODate: li,
|
|
9302
9302
|
ZodISODateTime: ci,
|
|
@@ -9304,9 +9304,9 @@ const Xg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9304
9304
|
ZodISOTime: di,
|
|
9305
9305
|
date: Kc,
|
|
9306
9306
|
datetime: Wc,
|
|
9307
|
-
duration:
|
|
9307
|
+
duration: Xc,
|
|
9308
9308
|
time: qc
|
|
9309
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
9309
|
+
}, Symbol.toStringTag, { value: "Module" })), Hc = (e, t) => {
|
|
9310
9310
|
ar.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
|
|
9311
9311
|
format: {
|
|
9312
9312
|
value: (r) => ur(e, r)
|
|
@@ -9335,7 +9335,7 @@ const Xg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9335
9335
|
// enumerable: false,
|
|
9336
9336
|
}
|
|
9337
9337
|
});
|
|
9338
|
-
}, Yg = l("ZodError",
|
|
9338
|
+
}, Yg = l("ZodError", Hc), fe = l("ZodError", Hc, {
|
|
9339
9339
|
Parent: Error
|
|
9340
9340
|
}), Yc = /* @__PURE__ */ kt(fe), Qc = /* @__PURE__ */ St(fe), el = /* @__PURE__ */ zt(fe), tl = /* @__PURE__ */ Ot(fe), nl = /* @__PURE__ */ cr(fe), rl = /* @__PURE__ */ lr(fe), il = /* @__PURE__ */ dr(fe), ol = /* @__PURE__ */ fr(fe), al = /* @__PURE__ */ mr(fe), sl = /* @__PURE__ */ gr(fe), ul = /* @__PURE__ */ vr(fe), cl = /* @__PURE__ */ pr(fe), P = /* @__PURE__ */ l("ZodType", (e, t) => (T.init(e, t), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...r) => e.clone(Oe(t, {
|
|
9341
9341
|
checks: [
|
|
@@ -9360,7 +9360,7 @@ const Xg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9360
9360
|
const r = e._zod.bag;
|
|
9361
9361
|
e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, e.regex = (...i) => e.check(Yr(...i)), e.includes = (...i) => e.check(ti(...i)), e.startsWith = (...i) => e.check(ni(...i)), e.endsWith = (...i) => e.check(ri(...i)), e.min = (...i) => e.check(et(...i)), e.max = (...i) => e.check(mn(...i)), e.length = (...i) => e.check(gn(...i)), e.nonempty = (...i) => e.check(et(1, ...i)), e.lowercase = (i) => e.check(Qr(i)), e.uppercase = (i) => e.check(ei(i)), e.trim = () => e.check(ai()), e.normalize = (...i) => e.check(oi(...i)), e.toLowerCase = () => e.check(si()), e.toUpperCase = () => e.check(ui());
|
|
9362
9362
|
}), vn = /* @__PURE__ */ l("ZodString", (e, t) => {
|
|
9363
|
-
Nt.init(e, t), mi.init(e, t), e.email = (r) => e.check(Nr(gi, r)), e.url = (r) => e.check(dn(pn, r)), e.jwt = (r) => e.check(
|
|
9363
|
+
Nt.init(e, t), mi.init(e, t), e.email = (r) => e.check(Nr(gi, r)), e.url = (r) => e.check(dn(pn, r)), e.jwt = (r) => e.check(Xr(xi, r)), e.emoji = (r) => e.check(Ar(vi, r)), e.guid = (r) => e.check(Ht(Yt, r)), e.uuid = (r) => e.check(Ur(Se, r)), e.uuidv4 = (r) => e.check(Tr(Se, r)), e.uuidv6 = (r) => e.check(Pr(Se, r)), e.uuidv7 = (r) => e.check(Dr(Se, r)), e.nanoid = (r) => e.check(Cr(pi, r)), e.guid = (r) => e.check(Ht(Yt, r)), e.cuid = (r) => e.check(Rr(hi, r)), e.cuid2 = (r) => e.check(Mr(bi, r)), e.ulid = (r) => e.check(Zr(yi, r)), e.base64 = (r) => e.check(Wr(zi, r)), e.base64url = (r) => e.check(Kr(Oi, r)), e.xid = (r) => e.check(Lr(_i, r)), e.ksuid = (r) => e.check(Br($i, r)), e.ipv4 = (r) => e.check(Fr(wi, r)), e.ipv6 = (r) => e.check(Gr(Ii, r)), e.cidrv4 = (r) => e.check(Vr(ki, r)), e.cidrv6 = (r) => e.check(Jr(Si, r)), e.e164 = (r) => e.check(qr(ji, r)), e.datetime = (r) => e.check(Wc(r)), e.date = (r) => e.check(Kc(r)), e.time = (r) => e.check(qc(r)), e.duration = (r) => e.check(Xc(r));
|
|
9364
9364
|
});
|
|
9365
9365
|
function ne(e) {
|
|
9366
9366
|
return ic(vn, e);
|
|
@@ -9377,7 +9377,7 @@ const Yt = /* @__PURE__ */ l("ZodGUID", (e, t) => {
|
|
|
9377
9377
|
Ls.init(e, t), J.init(e, t);
|
|
9378
9378
|
});
|
|
9379
9379
|
function ev(e) {
|
|
9380
|
-
return
|
|
9380
|
+
return Ht(Yt, e);
|
|
9381
9381
|
}
|
|
9382
9382
|
const Se = /* @__PURE__ */ l("ZodUUID", (e, t) => {
|
|
9383
9383
|
Bs.init(e, t), J.init(e, t);
|
|
@@ -9438,13 +9438,13 @@ function dv(e) {
|
|
|
9438
9438
|
return Zr(yi, e);
|
|
9439
9439
|
}
|
|
9440
9440
|
const _i = /* @__PURE__ */ l("ZodXID", (e, t) => {
|
|
9441
|
-
|
|
9441
|
+
Xs.init(e, t), J.init(e, t);
|
|
9442
9442
|
});
|
|
9443
9443
|
function fv(e) {
|
|
9444
9444
|
return Lr(_i, e);
|
|
9445
9445
|
}
|
|
9446
9446
|
const $i = /* @__PURE__ */ l("ZodKSUID", (e, t) => {
|
|
9447
|
-
|
|
9447
|
+
Hs.init(e, t), J.init(e, t);
|
|
9448
9448
|
});
|
|
9449
9449
|
function mv(e) {
|
|
9450
9450
|
return Br($i, e);
|
|
@@ -9495,7 +9495,7 @@ const xi = /* @__PURE__ */ l("ZodJWT", (e, t) => {
|
|
|
9495
9495
|
du.init(e, t), J.init(e, t);
|
|
9496
9496
|
});
|
|
9497
9497
|
function $v(e) {
|
|
9498
|
-
return
|
|
9498
|
+
return Xr(xi, e);
|
|
9499
9499
|
}
|
|
9500
9500
|
const Tt = /* @__PURE__ */ l("ZodCustomStringFormat", (e, t) => {
|
|
9501
9501
|
fu.init(e, t), J.init(e, t);
|
|
@@ -9729,7 +9729,7 @@ function Bv(e, t, r) {
|
|
|
9729
9729
|
});
|
|
9730
9730
|
}
|
|
9731
9731
|
const kl = /* @__PURE__ */ l("ZodSet", (e, t) => {
|
|
9732
|
-
Uu.init(e, t), P.init(e, t), e.min = (...r) => e.check(bt(...r)), e.nonempty = (r) => e.check(bt(1, r)), e.max = (...r) => e.check(fn(...r)), e.size = (...r) => e.check(
|
|
9732
|
+
Uu.init(e, t), P.init(e, t), e.min = (...r) => e.check(bt(...r)), e.nonempty = (r) => e.check(bt(1, r)), e.max = (...r) => e.check(fn(...r)), e.size = (...r) => e.check(Hr(...r));
|
|
9733
9733
|
});
|
|
9734
9734
|
function Fv(e, t) {
|
|
9735
9735
|
return new kl({
|
|
@@ -9943,7 +9943,7 @@ function Ml(e) {
|
|
|
9943
9943
|
const Zl = /* @__PURE__ */ l("ZodTemplateLiteral", (e, t) => {
|
|
9944
9944
|
Wu.init(e, t), P.init(e, t);
|
|
9945
9945
|
});
|
|
9946
|
-
function
|
|
9946
|
+
function Xv(e, t) {
|
|
9947
9947
|
return new Zl({
|
|
9948
9948
|
type: "template_literal",
|
|
9949
9949
|
parts: e,
|
|
@@ -9951,7 +9951,7 @@ function Hv(e, t) {
|
|
|
9951
9951
|
});
|
|
9952
9952
|
}
|
|
9953
9953
|
const Ll = /* @__PURE__ */ l("ZodLazy", (e, t) => {
|
|
9954
|
-
|
|
9954
|
+
Xu.init(e, t), P.init(e, t), e.unwrap = () => e._zod.def.getter();
|
|
9955
9955
|
});
|
|
9956
9956
|
function Bl(e) {
|
|
9957
9957
|
return new Ll({
|
|
@@ -9962,7 +9962,7 @@ function Bl(e) {
|
|
|
9962
9962
|
const Fl = /* @__PURE__ */ l("ZodPromise", (e, t) => {
|
|
9963
9963
|
qu.init(e, t), P.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
9964
9964
|
});
|
|
9965
|
-
function
|
|
9965
|
+
function Hv(e) {
|
|
9966
9966
|
return new Fl({
|
|
9967
9967
|
type: "promise",
|
|
9968
9968
|
innerType: e
|
|
@@ -9979,7 +9979,7 @@ function Po(e) {
|
|
|
9979
9979
|
});
|
|
9980
9980
|
}
|
|
9981
9981
|
const wn = /* @__PURE__ */ l("ZodCustom", (e, t) => {
|
|
9982
|
-
|
|
9982
|
+
Hu.init(e, t), P.init(e, t);
|
|
9983
9983
|
});
|
|
9984
9984
|
function Yv(e) {
|
|
9985
9985
|
const t = new W({
|
|
@@ -10167,7 +10167,7 @@ const L = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10167
10167
|
codec: qv,
|
|
10168
10168
|
coerce: fp,
|
|
10169
10169
|
config: ie,
|
|
10170
|
-
core:
|
|
10170
|
+
core: Xg,
|
|
10171
10171
|
cuid: cv,
|
|
10172
10172
|
cuid2: lv,
|
|
10173
10173
|
custom: Qv,
|
|
@@ -10205,7 +10205,7 @@ const L = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10205
10205
|
intersection: _l,
|
|
10206
10206
|
ipv4: gv,
|
|
10207
10207
|
ipv6: vv,
|
|
10208
|
-
iso:
|
|
10208
|
+
iso: Hg,
|
|
10209
10209
|
json: np,
|
|
10210
10210
|
jwt: $v,
|
|
10211
10211
|
keyof: Cv,
|
|
@@ -10249,7 +10249,7 @@ const L = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10249
10249
|
prefault: Ul,
|
|
10250
10250
|
preprocess: rp,
|
|
10251
10251
|
prettifyError: Ra,
|
|
10252
|
-
promise:
|
|
10252
|
+
promise: Hv,
|
|
10253
10253
|
property: Rc,
|
|
10254
10254
|
readonly: Ml,
|
|
10255
10255
|
record: Di,
|
|
@@ -10265,7 +10265,7 @@ const L = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10265
10265
|
safeParseAsync: tl,
|
|
10266
10266
|
set: Fv,
|
|
10267
10267
|
setErrorMap: op,
|
|
10268
|
-
size:
|
|
10268
|
+
size: Hr,
|
|
10269
10269
|
startsWith: ni,
|
|
10270
10270
|
strictObject: Rv,
|
|
10271
10271
|
string: ne,
|
|
@@ -10274,7 +10274,7 @@ const L = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10274
10274
|
success: Wv,
|
|
10275
10275
|
superRefine: Jl,
|
|
10276
10276
|
symbol: Tv,
|
|
10277
|
-
templateLiteral:
|
|
10277
|
+
templateLiteral: Xv,
|
|
10278
10278
|
toJSONSchema: Jc,
|
|
10279
10279
|
toLowerCase: si,
|
|
10280
10280
|
toUpperCase: ui,
|
|
@@ -10369,7 +10369,7 @@ const mp = (e, t, r) => ({
|
|
|
10369
10369
|
metadata: r
|
|
10370
10370
|
}
|
|
10371
10371
|
});
|
|
10372
|
-
function
|
|
10372
|
+
function H(e) {
|
|
10373
10373
|
return (typeof e == "object" && e !== null || typeof e == "function") && typeof e.then == "function";
|
|
10374
10374
|
}
|
|
10375
10375
|
function te(e) {
|
|
@@ -10403,14 +10403,14 @@ function nt(e, t, r) {
|
|
|
10403
10403
|
function Wl(e, t, r, i) {
|
|
10404
10404
|
Reflect.defineMetadata(t, r, e, i);
|
|
10405
10405
|
}
|
|
10406
|
-
function
|
|
10406
|
+
function Xe(e, t, r, i, n) {
|
|
10407
10407
|
const o = i(nt(e, t, n) ?? r());
|
|
10408
10408
|
Reflect.defineMetadata(t, o, e, n);
|
|
10409
10409
|
}
|
|
10410
10410
|
const Pn = "@inversifyjs/container/bindingId";
|
|
10411
10411
|
function Ee() {
|
|
10412
10412
|
const e = nt(Object, Pn) ?? 0;
|
|
10413
|
-
return e === Number.MAX_SAFE_INTEGER ? Wl(Object, Pn, Number.MIN_SAFE_INTEGER) :
|
|
10413
|
+
return e === Number.MAX_SAFE_INTEGER ? Wl(Object, Pn, Number.MIN_SAFE_INTEGER) : Xe(Object, Pn, () => e, (t) => t + 1), e;
|
|
10414
10414
|
}
|
|
10415
10415
|
const me = { Request: "Request", Singleton: "Singleton", Transient: "Transient" }, M = { ConstantValue: "ConstantValue", DynamicValue: "DynamicValue", Factory: "Factory", Instance: "Instance", Provider: "Provider", ResolvedValue: "ResolvedValue", ServiceRedirection: "ServiceRedirection" };
|
|
10416
10416
|
function* Kl(...e) {
|
|
@@ -10609,7 +10609,7 @@ ${n.join(`
|
|
|
10609
10609
|
`)}`);
|
|
10610
10610
|
})(e, t);
|
|
10611
10611
|
}
|
|
10612
|
-
function
|
|
10612
|
+
function Xl(e, t) {
|
|
10613
10613
|
const r = In(t).scope ?? e.scope;
|
|
10614
10614
|
return { cache: { isRight: !1, value: void 0 }, id: Ee(), implementationType: t, isSatisfiedBy: () => !0, moduleId: void 0, onActivation: void 0, onDeactivation: void 0, scope: r, serviceIdentifier: t, type: M.Instance };
|
|
10615
10615
|
}
|
|
@@ -10652,9 +10652,9 @@ function gp(e) {
|
|
|
10652
10652
|
}(rt || (rt = {})), function(e) {
|
|
10653
10653
|
e.id = "id", e.moduleId = "moduleId", e.serviceId = "serviceId";
|
|
10654
10654
|
}(oe || (oe = {}));
|
|
10655
|
-
let vp = class
|
|
10655
|
+
let vp = class Hl extends Dt {
|
|
10656
10656
|
_buildNewInstance(t) {
|
|
10657
|
-
return new
|
|
10657
|
+
return new Hl(t);
|
|
10658
10658
|
}
|
|
10659
10659
|
_cloneModel(t) {
|
|
10660
10660
|
return gp(t);
|
|
@@ -10721,7 +10721,7 @@ let vp = class Xl extends Dt {
|
|
|
10721
10721
|
}
|
|
10722
10722
|
#n(t) {
|
|
10723
10723
|
if (this.#e === void 0 || typeof t != "function") return;
|
|
10724
|
-
const r =
|
|
10724
|
+
const r = Xl(this.#e, t);
|
|
10725
10725
|
return this.set(r), r;
|
|
10726
10726
|
}
|
|
10727
10727
|
};
|
|
@@ -10761,7 +10761,7 @@ function pp() {
|
|
|
10761
10761
|
}
|
|
10762
10762
|
function hp(e) {
|
|
10763
10763
|
return (t) => {
|
|
10764
|
-
t !== void 0 && t.kind === rt.unknown &&
|
|
10764
|
+
t !== void 0 && t.kind === rt.unknown && Xe(e, ql, pp, (r) => r - 1);
|
|
10765
10765
|
};
|
|
10766
10766
|
}
|
|
10767
10767
|
function bp(e, t) {
|
|
@@ -10825,7 +10825,7 @@ function wp(e, t) {
|
|
|
10825
10825
|
n === void 0 ? function(o, a) {
|
|
10826
10826
|
const s = An(o, a);
|
|
10827
10827
|
return (u, c) => {
|
|
10828
|
-
|
|
10828
|
+
Xe(u.constructor, gt, vt, Co(s(u), c));
|
|
10829
10829
|
};
|
|
10830
10830
|
}(e, t)(r, i) : typeof n == "number" ? function(o, a) {
|
|
10831
10831
|
const s = An(o, a);
|
|
@@ -10834,7 +10834,7 @@ function wp(e, t) {
|
|
|
10834
10834
|
return typeof m == "function" && y === void 0;
|
|
10835
10835
|
}(u, c)) throw new B(F.injectionDecoratorConflict, `Found an @inject decorator in a non constructor parameter.
|
|
10836
10836
|
Found @inject decorator at method "${c?.toString() ?? ""}" at class "${u.constructor.name}"`);
|
|
10837
|
-
|
|
10837
|
+
Xe(u, gt, vt, /* @__PURE__ */ function(m, y) {
|
|
10838
10838
|
return (p) => {
|
|
10839
10839
|
const g = p.constructorArguments[y];
|
|
10840
10840
|
return p.constructorArguments[y] = m(g), p;
|
|
@@ -10848,7 +10848,7 @@ Found @inject decorator at method "${c?.toString() ?? ""}" at class "${u.constru
|
|
|
10848
10848
|
return m.set !== void 0;
|
|
10849
10849
|
}(f)) throw new B(F.injectionDecoratorConflict, `Found an @inject decorator in a non setter property method.
|
|
10850
10850
|
Found @inject decorator at method "${c.toString()}" at class "${u.constructor.name}"`);
|
|
10851
|
-
|
|
10851
|
+
Xe(u.constructor, gt, vt, Co(s(u), c));
|
|
10852
10852
|
};
|
|
10853
10853
|
}(e, t)(r, i, n);
|
|
10854
10854
|
} catch (o) {
|
|
@@ -10871,7 +10871,7 @@ function ge(e) {
|
|
|
10871
10871
|
const Ro = "@inversifyjs/core/classIsInjectableFlagReflectKey", Ip = [Array, BigInt, Boolean, Function, Number, Object, String];
|
|
10872
10872
|
function kp(e) {
|
|
10873
10873
|
const t = nt(e, "design:paramtypes");
|
|
10874
|
-
t !== void 0 &&
|
|
10874
|
+
t !== void 0 && Xe(e, gt, vt, /* @__PURE__ */ function(r) {
|
|
10875
10875
|
return (i) => (r.forEach((n, o) => {
|
|
10876
10876
|
var a;
|
|
10877
10877
|
i.constructorArguments[o] !== void 0 || (a = n, Ip.includes(a)) || (i.constructorArguments[o] = function(s) {
|
|
@@ -10969,7 +10969,7 @@ class Pe {
|
|
|
10969
10969
|
function kn(e, t, r) {
|
|
10970
10970
|
const i = r?.customServiceIdentifier ?? t.serviceIdentifier, n = (r?.chained === !0 ? [...e.operations.getBindingsChained(i)] : [...e.operations.getBindings(i) ?? []]).filter((o) => o.isSatisfiedBy(t));
|
|
10971
10971
|
if (n.length === 0 && e.autobindOptions !== void 0 && typeof i == "function") {
|
|
10972
|
-
const o =
|
|
10972
|
+
const o = Xl(e.autobindOptions, i);
|
|
10973
10973
|
e.operations.setBinding(o), o.isSatisfiedBy(t) && n.push(o);
|
|
10974
10974
|
}
|
|
10975
10975
|
return n;
|
|
@@ -11237,7 +11237,7 @@ class jp extends se {
|
|
|
11237
11237
|
return cd(this.#e);
|
|
11238
11238
|
}
|
|
11239
11239
|
}
|
|
11240
|
-
const
|
|
11240
|
+
const Xn = rd(ud), Hn = id(ud), sd = od(ad(Xn, Hn, Xn, Hn));
|
|
11241
11241
|
function ud(e, t, r, i, n) {
|
|
11242
11242
|
return sd(e, t, r, i, n);
|
|
11243
11243
|
}
|
|
@@ -11301,7 +11301,7 @@ class Ep {
|
|
|
11301
11301
|
return t >= 0.5 * this.#e.length;
|
|
11302
11302
|
}
|
|
11303
11303
|
}
|
|
11304
|
-
const Vi = od(ad(
|
|
11304
|
+
const Vi = od(ad(Xn, Hn, function(e, t, r) {
|
|
11305
11305
|
return Np(e, t, r);
|
|
11306
11306
|
}, function(e, t, r) {
|
|
11307
11307
|
return Up(e, t, r);
|
|
@@ -11549,18 +11549,18 @@ function Tp(e, t) {
|
|
|
11549
11549
|
throw t;
|
|
11550
11550
|
}
|
|
11551
11551
|
function ld(e, t) {
|
|
11552
|
-
return
|
|
11552
|
+
return H(t) ? (e.cache = { isRight: !0, value: t }, t.then((r) => Go(e, r))) : Go(e, t);
|
|
11553
11553
|
}
|
|
11554
11554
|
function Go(e, t) {
|
|
11555
11555
|
return e.cache = { isRight: !0, value: t }, t;
|
|
11556
11556
|
}
|
|
11557
11557
|
function Pp(e, t, r) {
|
|
11558
11558
|
const i = e.getActivations(t);
|
|
11559
|
-
return i === void 0 ? r :
|
|
11559
|
+
return i === void 0 ? r : H(r) ? Vo(e, r, i[Symbol.iterator]()) : function(n, o, a) {
|
|
11560
11560
|
let s = o, u = a.next();
|
|
11561
11561
|
for (; u.done !== !0; ) {
|
|
11562
11562
|
const c = u.value(n.context, s);
|
|
11563
|
-
if (
|
|
11563
|
+
if (H(c)) return Vo(n, c, a);
|
|
11564
11564
|
s = c, u = a.next();
|
|
11565
11565
|
}
|
|
11566
11566
|
return s;
|
|
@@ -11575,7 +11575,7 @@ function Jt(e, t, r) {
|
|
|
11575
11575
|
let i = r;
|
|
11576
11576
|
if (t.onActivation !== void 0) {
|
|
11577
11577
|
const n = t.onActivation;
|
|
11578
|
-
i =
|
|
11578
|
+
i = H(i) ? i.then((o) => n(e.context, o)) : n(e.context, i);
|
|
11579
11579
|
}
|
|
11580
11580
|
return Pp(e, t.serviceIdentifier, i);
|
|
11581
11581
|
}
|
|
@@ -11620,7 +11620,7 @@ function Jo(e, t, r) {
|
|
|
11620
11620
|
} catch (u) {
|
|
11621
11621
|
throw new B(F.resolution, `Unexpected error found when calling "${a.toString()}" @postConstruct decorated method on class "${o.implementationType.name}"`, { cause: u });
|
|
11622
11622
|
}
|
|
11623
|
-
if (
|
|
11623
|
+
if (H(s)) return async function(u, c, f) {
|
|
11624
11624
|
try {
|
|
11625
11625
|
await f;
|
|
11626
11626
|
} catch (m) {
|
|
@@ -11629,18 +11629,18 @@ function Jo(e, t, r) {
|
|
|
11629
11629
|
}(o, a, s);
|
|
11630
11630
|
}
|
|
11631
11631
|
}(e, t, r);
|
|
11632
|
-
return
|
|
11632
|
+
return H(i) ? i.then(() => e) : e;
|
|
11633
11633
|
}
|
|
11634
11634
|
function Wo(e, t, r) {
|
|
11635
11635
|
if (r.size === 0) return e;
|
|
11636
11636
|
let i = e;
|
|
11637
|
-
for (const n of r) i =
|
|
11637
|
+
for (const n of r) i = H(i) ? i.then((o) => Jo(o, t, n)) : Jo(i, t, n);
|
|
11638
11638
|
return i;
|
|
11639
11639
|
}
|
|
11640
11640
|
function Ko(e) {
|
|
11641
11641
|
return (t, r, i) => {
|
|
11642
11642
|
const n = new i.binding.implementationType(...t), o = e(r, n, i);
|
|
11643
|
-
return
|
|
11643
|
+
return H(o) ? o.then(() => Wo(n, i.binding, i.classMetadata.lifecycle.postConstructMethodNames)) : Wo(n, i.binding, i.classMetadata.lifecycle.postConstructMethodNames);
|
|
11644
11644
|
};
|
|
11645
11645
|
}
|
|
11646
11646
|
const Mp = Ji(function(e, t) {
|
|
@@ -11658,14 +11658,14 @@ const qo = /* @__PURE__ */ function(e) {
|
|
|
11658
11658
|
for (const [o, a] of i.propertyParams) {
|
|
11659
11659
|
const s = i.classMetadata.properties.get(o);
|
|
11660
11660
|
if (s === void 0) throw new B(F.resolution, `Expecting metadata at property "${o.toString()}", none found`);
|
|
11661
|
-
s.kind !== le.unmanaged && a.bindings !== void 0 && (r[o] = e(t, a),
|
|
11661
|
+
s.kind !== le.unmanaged && a.bindings !== void 0 && (r[o] = e(t, a), H(r[o]) && n.push((async () => {
|
|
11662
11662
|
r[o] = await r[o];
|
|
11663
11663
|
})()));
|
|
11664
11664
|
}
|
|
11665
11665
|
if (n.length > 0) return Promise.all(n).then(() => {
|
|
11666
11666
|
});
|
|
11667
11667
|
};
|
|
11668
|
-
}(zn),
|
|
11668
|
+
}(zn), Xo = /* @__PURE__ */ function(e) {
|
|
11669
11669
|
return function t(r, i) {
|
|
11670
11670
|
const n = [];
|
|
11671
11671
|
for (const o of i.redirections) Ve(o) ? n.push(...t(r, o)) : n.push(e(r, o));
|
|
@@ -11674,13 +11674,13 @@ const qo = /* @__PURE__ */ function(e) {
|
|
|
11674
11674
|
}(Yn), Bp = /* @__PURE__ */ function(e, t, r) {
|
|
11675
11675
|
return (i, n) => {
|
|
11676
11676
|
const o = e(i, n);
|
|
11677
|
-
return
|
|
11677
|
+
return H(o) ? t(o, i, n) : r(o, i, n);
|
|
11678
11678
|
};
|
|
11679
11679
|
}(/* @__PURE__ */ function(e) {
|
|
11680
11680
|
return (t, r) => {
|
|
11681
11681
|
const i = [];
|
|
11682
11682
|
for (const n of r.constructorParams) n === void 0 ? i.push(void 0) : i.push(e(t, n));
|
|
11683
|
-
return i.some(
|
|
11683
|
+
return i.some(H) ? Promise.all(i) : i;
|
|
11684
11684
|
};
|
|
11685
11685
|
}(zn), /* @__PURE__ */ function(e) {
|
|
11686
11686
|
return async (t, r, i) => {
|
|
@@ -11690,13 +11690,13 @@ const qo = /* @__PURE__ */ function(e) {
|
|
|
11690
11690
|
}(Ko(qo)), Ko(qo)), Fp = /* @__PURE__ */ function(e) {
|
|
11691
11691
|
return (t, r) => {
|
|
11692
11692
|
const i = e(t, r);
|
|
11693
|
-
return
|
|
11693
|
+
return H(i) ? i.then((n) => r.binding.factory(...n)) : r.binding.factory(...i);
|
|
11694
11694
|
};
|
|
11695
11695
|
}(/* @__PURE__ */ function(e) {
|
|
11696
11696
|
return (t, r) => {
|
|
11697
11697
|
const i = [];
|
|
11698
11698
|
for (const n of r.params) i.push(e(t, n));
|
|
11699
|
-
return i.some(
|
|
11699
|
+
return i.some(H) ? Promise.all(i) : i;
|
|
11700
11700
|
};
|
|
11701
11701
|
}(zn)), Gp = ((e) => Wi(Zp, e))(Bp), Vp = ((e) => Wi(Lp, e))(Fp);
|
|
11702
11702
|
function Jp(e) {
|
|
@@ -11725,11 +11725,11 @@ function Yn(e, t) {
|
|
|
11725
11725
|
function zn(e, t) {
|
|
11726
11726
|
if (t.bindings !== void 0) return Array.isArray(t.bindings) ? function(r, i) {
|
|
11727
11727
|
const n = [];
|
|
11728
|
-
for (const o of i) Ve(o) ? n.push(...
|
|
11729
|
-
return n.some(
|
|
11728
|
+
for (const o of i) Ve(o) ? n.push(...Xo(r, o)) : n.push(Yn(r, o));
|
|
11729
|
+
return n.some(H) ? Promise.all(n) : n;
|
|
11730
11730
|
}(e, t.bindings) : function(r, i) {
|
|
11731
11731
|
if (Ve(i)) {
|
|
11732
|
-
const n =
|
|
11732
|
+
const n = Xo(r, i);
|
|
11733
11733
|
if (n.length === 1) return n[0];
|
|
11734
11734
|
throw new B(F.resolution, "Unexpected multiple resolved values on single injection");
|
|
11735
11735
|
}
|
|
@@ -11739,7 +11739,7 @@ function zn(e, t) {
|
|
|
11739
11739
|
function Wp(e) {
|
|
11740
11740
|
return e.scope !== void 0;
|
|
11741
11741
|
}
|
|
11742
|
-
function
|
|
11742
|
+
function Ho(e, t) {
|
|
11743
11743
|
if (typeof e[t] == "function")
|
|
11744
11744
|
return e[t]();
|
|
11745
11745
|
}
|
|
@@ -11747,16 +11747,16 @@ function Yo(e, t) {
|
|
|
11747
11747
|
const r = e.lifecycle.preDestroyMethodNames;
|
|
11748
11748
|
if (r.size === 0) return;
|
|
11749
11749
|
let i;
|
|
11750
|
-
for (const n of r) i = i === void 0 ?
|
|
11750
|
+
for (const n of r) i = i === void 0 ? Ho(t, n) : i.then(() => Ho(t, n));
|
|
11751
11751
|
return i;
|
|
11752
11752
|
}
|
|
11753
11753
|
function Qo(e, t, r) {
|
|
11754
11754
|
const i = e.getDeactivations(t);
|
|
11755
|
-
if (i !== void 0) return
|
|
11755
|
+
if (i !== void 0) return H(r) ? ea(r, i[Symbol.iterator]()) : function(n, o) {
|
|
11756
11756
|
let a = o.next();
|
|
11757
11757
|
for (; a.done !== !0; ) {
|
|
11758
11758
|
const s = a.value(n);
|
|
11759
|
-
if (
|
|
11759
|
+
if (H(s)) return ea(n, o);
|
|
11760
11760
|
a = o.next();
|
|
11761
11761
|
}
|
|
11762
11762
|
}(r, i[Symbol.iterator]());
|
|
@@ -11770,14 +11770,14 @@ function Kp(e, t) {
|
|
|
11770
11770
|
const r = function(i, n) {
|
|
11771
11771
|
if (n.type === M.Instance) {
|
|
11772
11772
|
const o = i.getClassMetadata(n.implementationType), a = n.cache.value;
|
|
11773
|
-
return
|
|
11773
|
+
return H(a) ? a.then((s) => Yo(o, s)) : Yo(o, a);
|
|
11774
11774
|
}
|
|
11775
11775
|
}(e, t);
|
|
11776
11776
|
return r === void 0 ? ta(e, t) : r.then(() => ta(e, t));
|
|
11777
11777
|
}
|
|
11778
11778
|
function ta(e, t) {
|
|
11779
11779
|
const r = t.cache;
|
|
11780
|
-
return
|
|
11780
|
+
return H(r.value) ? r.value.then((i) => na(e, t, i)) : na(e, t, r.value);
|
|
11781
11781
|
}
|
|
11782
11782
|
function na(e, t, r) {
|
|
11783
11783
|
let i;
|
|
@@ -11801,11 +11801,11 @@ function qp(e, t) {
|
|
|
11801
11801
|
const r = e.getBindingsFromModule(t);
|
|
11802
11802
|
return on(e, r);
|
|
11803
11803
|
}
|
|
11804
|
-
function
|
|
11804
|
+
function Xp(e, t) {
|
|
11805
11805
|
const r = e.getBindings(t);
|
|
11806
11806
|
return on(e, r);
|
|
11807
11807
|
}
|
|
11808
|
-
const
|
|
11808
|
+
const Hp = Symbol.for("@inversifyjs/plugin/isPlugin"), dd = Symbol.for("@inversifyjs/container/bindingIdentifier");
|
|
11809
11809
|
function ra(e) {
|
|
11810
11810
|
return typeof e == "object" && e !== null && e[dd] === !0;
|
|
11811
11811
|
}
|
|
@@ -12093,7 +12093,7 @@ class eh {
|
|
|
12093
12093
|
}
|
|
12094
12094
|
async unbindAll() {
|
|
12095
12095
|
const t = [...this.#n.bindingService.getNonParentBoundServices()];
|
|
12096
|
-
await Promise.all(t.map(async (r) =>
|
|
12096
|
+
await Promise.all(t.map(async (r) => Xp(this.#e, r)));
|
|
12097
12097
|
for (const r of t) this.#n.activationService.removeAllByServiceId(r), this.#n.bindingService.removeAllByServiceId(r), this.#n.deactivationService.removeAllByServiceId(r);
|
|
12098
12098
|
this.#n.planResultCacheService.clearCache();
|
|
12099
12099
|
}
|
|
@@ -12242,7 +12242,7 @@ class oh {
|
|
|
12242
12242
|
}
|
|
12243
12243
|
register(t, r) {
|
|
12244
12244
|
const i = new r(t, this.#t);
|
|
12245
|
-
if (i[
|
|
12245
|
+
if (i[Hp] !== !0) throw new $e(we.invalidOperation, "Invalid plugin. The plugin must extend the Plugin class");
|
|
12246
12246
|
i.load(this.#e);
|
|
12247
12247
|
}
|
|
12248
12248
|
#i(t) {
|
|
@@ -12296,12 +12296,12 @@ class ah {
|
|
|
12296
12296
|
}
|
|
12297
12297
|
get(t, r) {
|
|
12298
12298
|
const i = this.#l(!1, t, r), n = this.#g(i);
|
|
12299
|
-
if (
|
|
12299
|
+
if (H(n)) throw new $e(we.invalidOperation, `Unexpected asynchronous service when resolving service "${te(t)}"`);
|
|
12300
12300
|
return n;
|
|
12301
12301
|
}
|
|
12302
12302
|
getAll(t, r) {
|
|
12303
12303
|
const i = this.#l(!0, t, r), n = this.#g(i);
|
|
12304
|
-
if (
|
|
12304
|
+
if (H(n)) throw new $e(we.invalidOperation, `Unexpected asynchronous service when resolving service "${te(t)}"`);
|
|
12305
12305
|
return n;
|
|
12306
12306
|
}
|
|
12307
12307
|
async getAllAsync(t, r) {
|
|
@@ -12483,7 +12483,7 @@ let er = class {
|
|
|
12483
12483
|
this.runtimeConfig = mh.parse(e), this.appConfig = gh.parse({
|
|
12484
12484
|
VITE_INJECT_AGIFLOW_APP_ENDPOINT: "https://agiflow.io",
|
|
12485
12485
|
VITE_INJECT_AGIFLOW_APP_DOCKER_ENDPOINT: "https://agiflow.io",
|
|
12486
|
-
VITE_AGENT_CLI_DOCKER_IMAGE: "agiflowai/agent-cli:v0.1.
|
|
12486
|
+
VITE_AGENT_CLI_DOCKER_IMAGE: "agiflowai/agent-cli:v0.1.10",
|
|
12487
12487
|
VITE_AGENT_CLI_DOCKER_NETWORK: "",
|
|
12488
12488
|
VITE_SAVE_RAW: "",
|
|
12489
12489
|
VITE_MULTIPLEX_SOCKET_PATH: process.env.VITE_MULTIPLEX_SOCKET_PATH
|
|
@@ -12957,7 +12957,7 @@ class $h {
|
|
|
12957
12957
|
this.stream.write("");
|
|
12958
12958
|
}
|
|
12959
12959
|
}
|
|
12960
|
-
const
|
|
12960
|
+
const X = {
|
|
12961
12961
|
// ============================================================================
|
|
12962
12962
|
// Core Services
|
|
12963
12963
|
// ============================================================================
|
|
@@ -13068,8 +13068,8 @@ let wt = class {
|
|
|
13068
13068
|
};
|
|
13069
13069
|
wt = Ih([
|
|
13070
13070
|
je(),
|
|
13071
|
-
aa(0, ge(
|
|
13072
|
-
aa(1, ge(
|
|
13071
|
+
aa(0, ge(X.Logger)),
|
|
13072
|
+
aa(1, ge(X.MultiplexClientConfig))
|
|
13073
13073
|
], wt);
|
|
13074
13074
|
var kh = Object.getOwnPropertyDescriptor, Sh = (e, t, r, i) => {
|
|
13075
13075
|
for (var n = i > 1 ? void 0 : i ? kh(t, r) : t, o = e.length - 1, a; o >= 0; o--)
|
|
@@ -13181,8 +13181,8 @@ let ua = class extends wt {
|
|
|
13181
13181
|
};
|
|
13182
13182
|
ua = Sh([
|
|
13183
13183
|
je(),
|
|
13184
|
-
sa(0, ge(
|
|
13185
|
-
sa(1, ge(
|
|
13184
|
+
sa(0, ge(X.Logger)),
|
|
13185
|
+
sa(1, ge(X.MultiplexClientConfig))
|
|
13186
13186
|
], ua);
|
|
13187
13187
|
var zh = Object.getOwnPropertyDescriptor, Oh = (e, t, r, i) => {
|
|
13188
13188
|
for (var n = i > 1 ? void 0 : i ? zh(t, r) : t, o = e.length - 1, a; o >= 0; o--)
|
|
@@ -13214,6 +13214,9 @@ let la = class {
|
|
|
13214
13214
|
throw this.logger.error(`GlobalClient request failed for session ${e}:`, i), i;
|
|
13215
13215
|
}
|
|
13216
13216
|
}
|
|
13217
|
+
async publish(e, t) {
|
|
13218
|
+
this.validateSessionId(e), this.logger.debug(`GlobalClient publish (fire-and-forget) for session ${e}`), await this.broker.publish(e, t);
|
|
13219
|
+
}
|
|
13217
13220
|
registerService(e, t, r) {
|
|
13218
13221
|
this.validateSessionId(e), this.logger.debug(`GlobalClient registering service ${t} for session ${e}`), this.broker.registerService(e, t, r);
|
|
13219
13222
|
}
|
|
@@ -13232,8 +13235,8 @@ let la = class {
|
|
|
13232
13235
|
};
|
|
13233
13236
|
la = Oh([
|
|
13234
13237
|
je(),
|
|
13235
|
-
ca(0, ge(
|
|
13236
|
-
ca(1, ge(
|
|
13238
|
+
ca(0, ge(X.Logger)),
|
|
13239
|
+
ca(1, ge(X.MessageMultiplexBroker))
|
|
13237
13240
|
], la);
|
|
13238
13241
|
var jh = Object.getOwnPropertyDescriptor, xh = (e, t, r, i) => {
|
|
13239
13242
|
for (var n = i > 1 ? void 0 : i ? jh(t, r) : t, o = e.length - 1, a; o >= 0; o--)
|
|
@@ -13428,8 +13431,8 @@ let rr = class extends wt {
|
|
|
13428
13431
|
};
|
|
13429
13432
|
rr = xh([
|
|
13430
13433
|
je(),
|
|
13431
|
-
da(0, ge(
|
|
13432
|
-
da(1, ge(
|
|
13434
|
+
da(0, ge(X.Logger)),
|
|
13435
|
+
da(1, ge(X.MultiplexClientConfig))
|
|
13433
13436
|
], rr);
|
|
13434
13437
|
const fa = {
|
|
13435
13438
|
MESSAGE_STDIN: "agent-message-stdin"
|
|
@@ -13616,8 +13619,8 @@ let ga = class extends wt {
|
|
|
13616
13619
|
};
|
|
13617
13620
|
ga = Nh([
|
|
13618
13621
|
je(),
|
|
13619
|
-
ma(0, ge(
|
|
13620
|
-
ma(1, ge(
|
|
13622
|
+
ma(0, ge(X.Logger)),
|
|
13623
|
+
ma(1, ge(X.MultiplexClientConfig))
|
|
13621
13624
|
], ga);
|
|
13622
13625
|
var Uh = Object.getOwnPropertyDescriptor, Th = (e, t, r, i) => {
|
|
13623
13626
|
for (var n = i > 1 ? void 0 : i ? Uh(t, r) : t, o = e.length - 1, a; o >= 0; o--)
|
|
@@ -13633,12 +13636,15 @@ let pa = class {
|
|
|
13633
13636
|
this.brokerHttpUrl = r.replace(/^ws:\/\//, "http://").replace(/^wss:\/\//, "https://"), this.logger.info(`RemoteMultiplexGlobalClient initialized with broker: ${this.brokerHttpUrl}`);
|
|
13634
13637
|
}
|
|
13635
13638
|
brokerHttpUrl;
|
|
13639
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
13636
13640
|
subscribeEventType(e, t, r) {
|
|
13637
13641
|
this.logger.warn("RemoteMultiplexGlobalClient does not support subscribeEventType");
|
|
13638
13642
|
}
|
|
13643
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
13639
13644
|
unsubscribeEventType(e, t, r) {
|
|
13640
13645
|
this.logger.warn("RemoteMultiplexGlobalClient does not support unsubscribeEventType");
|
|
13641
13646
|
}
|
|
13647
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
13642
13648
|
async publishEventType(e, t, r) {
|
|
13643
13649
|
this.logger.warn("RemoteMultiplexGlobalClient does not support publishEventType");
|
|
13644
13650
|
}
|
|
@@ -13675,9 +13681,40 @@ let pa = class {
|
|
|
13675
13681
|
throw this.logger.error(`RemoteGlobalClient request failed for session ${e}:`, n), n;
|
|
13676
13682
|
}
|
|
13677
13683
|
}
|
|
13684
|
+
/**
|
|
13685
|
+
* Send RPC request to host broker via HTTP (fire-and-forget)
|
|
13686
|
+
* Used for AgentWsService methods that don't need a response
|
|
13687
|
+
*/
|
|
13688
|
+
async publish(e, t) {
|
|
13689
|
+
this.validateSessionId(e);
|
|
13690
|
+
const r = this.generateCorrelationId();
|
|
13691
|
+
try {
|
|
13692
|
+
this.logger.debug(`RemoteGlobalClient publish (fire-and-forget) for session ${e}`), fetch(this.brokerHttpUrl, {
|
|
13693
|
+
method: "POST",
|
|
13694
|
+
headers: {
|
|
13695
|
+
"Content-Type": "application/json",
|
|
13696
|
+
"X-Session-Id": e,
|
|
13697
|
+
"X-Correlation-Id": r
|
|
13698
|
+
},
|
|
13699
|
+
body: JSON.stringify({
|
|
13700
|
+
correlationId: r,
|
|
13701
|
+
event: t,
|
|
13702
|
+
timestamp: Date.now()
|
|
13703
|
+
}),
|
|
13704
|
+
signal: AbortSignal.timeout(5e3)
|
|
13705
|
+
// Shorter timeout for fire-and-forget
|
|
13706
|
+
}).catch((i) => {
|
|
13707
|
+
this.logger.debug(`RemoteGlobalClient publish failed for session ${e}:`, i);
|
|
13708
|
+
});
|
|
13709
|
+
} catch (i) {
|
|
13710
|
+
this.logger.debug(`RemoteGlobalClient publish error for session ${e}:`, i);
|
|
13711
|
+
}
|
|
13712
|
+
}
|
|
13713
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
13678
13714
|
registerService(e, t, r) {
|
|
13679
13715
|
this.logger.warn("RemoteMultiplexGlobalClient does not support registerService");
|
|
13680
13716
|
}
|
|
13717
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
13681
13718
|
unregisterService(e, t) {
|
|
13682
13719
|
this.logger.warn("RemoteMultiplexGlobalClient does not support unregisterService");
|
|
13683
13720
|
}
|
|
@@ -13697,16 +13734,16 @@ let pa = class {
|
|
|
13697
13734
|
};
|
|
13698
13735
|
pa = Th([
|
|
13699
13736
|
je(),
|
|
13700
|
-
va(0, ge(
|
|
13701
|
-
va(1, ge(
|
|
13737
|
+
va(0, ge(X.Logger)),
|
|
13738
|
+
va(1, ge(X.SubEnvManager))
|
|
13702
13739
|
], pa);
|
|
13703
13740
|
function Ph() {
|
|
13704
13741
|
const e = new ch({ defaultScope: "Singleton" });
|
|
13705
|
-
e.bind(
|
|
13742
|
+
e.bind(X.SubEnvManager).to(nr).inSingletonScope(), e.bind(X.Logger).toDynamicValue(() => {
|
|
13706
13743
|
const u = process.env.AGI_LOG_DIR || mo(Rd(), "agent-cli-hooks"), c = mo(u, "hooks.log");
|
|
13707
13744
|
return new $h({ logFilePath: c, useJsonFormat: !0 });
|
|
13708
13745
|
}).inTransientScope();
|
|
13709
|
-
const t = e.get(
|
|
13746
|
+
const t = e.get(X.SubEnvManager), r = t.sessionId || "", i = t.brokerWsUrl, n = t.remoteMultiplexSocketPath, o = n ? void 0 : i, a = o ? o.replace(/^ws/, "http").replace(/\/ws$/, "/request") : void 0;
|
|
13710
13747
|
if (!!(o || n)) {
|
|
13711
13748
|
const u = new tr();
|
|
13712
13749
|
u.configureRemote({
|
|
@@ -13716,11 +13753,11 @@ function Ph() {
|
|
|
13716
13753
|
sessionId: r,
|
|
13717
13754
|
reconnectDelayMs: 5e3,
|
|
13718
13755
|
maxBufferSize: 1e3
|
|
13719
|
-
}), e.bind(
|
|
13756
|
+
}), e.bind(X.MultiplexClientConfig).toConstantValue(u), e.bind(X.MessageMultiplexClient).to(rr);
|
|
13720
13757
|
}
|
|
13721
13758
|
return e;
|
|
13722
13759
|
}
|
|
13723
|
-
const qi = Ph(), qe = qi.get(
|
|
13760
|
+
const qi = Ph(), qe = qi.get(X.Logger), gd = qi.get(X.SubEnvManager), Dh = gd.multiplexBrokerWsUrl || "";
|
|
13724
13761
|
class Ah {
|
|
13725
13762
|
agentSessionId;
|
|
13726
13763
|
// Agiflow agent session ID
|
|
@@ -13735,7 +13772,7 @@ class Ah {
|
|
|
13735
13772
|
const t = gd.remoteMultiplexSocketPath;
|
|
13736
13773
|
if (this.enableRemote = !!(this.agentSessionId && (Dh || t)), this.enableRemote)
|
|
13737
13774
|
try {
|
|
13738
|
-
this.multiplexClient = qi.get(
|
|
13775
|
+
this.multiplexClient = qi.get(X.MessageMultiplexClient), await this.multiplexClient.connect();
|
|
13739
13776
|
} catch (r) {
|
|
13740
13777
|
this.enableRemote = !1;
|
|
13741
13778
|
const i = r instanceof Error ? r : new Error(String(r));
|