@agiflowai/agent-cli 0.1.10 → 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 +1 -1
- package/dist/index-BYi9XYLR.mjs +60 -0
- package/dist/index-BYi9XYLR.mjs.map +1 -0
- package/dist/{index-BXTun-Sm.mjs → index-CJx1mjmc.mjs} +2 -2
- package/dist/index-CJx1mjmc.mjs.map +1 -0
- package/dist/{index-B-6QlXul.mjs → index-DJ_5nSHk.mjs} +7148 -6680
- 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-B-6QlXul.mjs.map +0 -1
- package/dist/index-BXTun-Sm.mjs.map +0 -1
- package/dist/index-ovmNbtD-.mjs +0 -59
- package/dist/index-ovmNbtD-.mjs.map +0 -1
|
@@ -71,7 +71,7 @@ function Zd() {
|
|
|
71
71
|
} : function(d, v) {
|
|
72
72
|
return d[v];
|
|
73
73
|
}
|
|
74
|
-
}, y = Object.getPrototypeOf(Function), p = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : Ud(), g = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : Td(), _ = typeof WeakMap == "function" ? WeakMap : Pd(), I = o ? Symbol.for("@reflect-metadata:registry") : void 0, S =
|
|
74
|
+
}, y = Object.getPrototypeOf(Function), p = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : Ud(), g = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : Td(), _ = typeof WeakMap == "function" ? WeakMap : Pd(), I = o ? Symbol.for("@reflect-metadata:registry") : void 0, S = xd(), U = Ed(S);
|
|
75
75
|
function D(d, v, h, w) {
|
|
76
76
|
if (N(h)) {
|
|
77
77
|
if (!io(d))
|
|
@@ -91,12 +91,12 @@ function Zd() {
|
|
|
91
91
|
}
|
|
92
92
|
r("decorate", D);
|
|
93
93
|
function Z(d, v) {
|
|
94
|
-
function h(w,
|
|
94
|
+
function h(w, x) {
|
|
95
95
|
if (!Y(w))
|
|
96
96
|
throw new TypeError();
|
|
97
|
-
if (!N(
|
|
97
|
+
if (!N(x) && !Od(x))
|
|
98
98
|
throw new TypeError();
|
|
99
|
-
Qi(d, v, w,
|
|
99
|
+
Qi(d, v, w, x);
|
|
100
100
|
}
|
|
101
101
|
return h;
|
|
102
102
|
}
|
|
@@ -107,16 +107,16 @@ function Zd() {
|
|
|
107
107
|
return N(w) || (w = Ie(w)), Qi(d, v, h, w);
|
|
108
108
|
}
|
|
109
109
|
r("defineMetadata", re);
|
|
110
|
-
function
|
|
110
|
+
function jn(d, v, h) {
|
|
111
111
|
if (!Y(v))
|
|
112
112
|
throw new TypeError();
|
|
113
113
|
return N(h) || (h = Ie(h)), Hi(d, v, h);
|
|
114
114
|
}
|
|
115
|
-
r("hasMetadata",
|
|
115
|
+
r("hasMetadata", jn);
|
|
116
116
|
function vd(d, v, h) {
|
|
117
117
|
if (!Y(v))
|
|
118
118
|
throw new TypeError();
|
|
119
|
-
return N(h) || (h = Ie(h)),
|
|
119
|
+
return N(h) || (h = Ie(h)), xn(d, v, h);
|
|
120
120
|
}
|
|
121
121
|
r("hasOwnMetadata", vd);
|
|
122
122
|
function pd(d, v, h) {
|
|
@@ -160,18 +160,18 @@ function Zd() {
|
|
|
160
160
|
r("deleteMetadata", _d);
|
|
161
161
|
function $d(d, v) {
|
|
162
162
|
for (var h = d.length - 1; h >= 0; --h) {
|
|
163
|
-
var w = d[h],
|
|
164
|
-
if (!N(
|
|
165
|
-
if (!oo(
|
|
163
|
+
var w = d[h], x = w(v);
|
|
164
|
+
if (!N(x) && !Ke(x)) {
|
|
165
|
+
if (!oo(x))
|
|
166
166
|
throw new TypeError();
|
|
167
|
-
v =
|
|
167
|
+
v = x;
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
return v;
|
|
171
171
|
}
|
|
172
172
|
function wd(d, v, h, w) {
|
|
173
|
-
for (var
|
|
174
|
-
var q = d[
|
|
173
|
+
for (var x = d.length - 1; x >= 0; --x) {
|
|
174
|
+
var q = d[x], Q = q(v, h, w);
|
|
175
175
|
if (!N(Q) && !Ke(Q)) {
|
|
176
176
|
if (!Y(Q))
|
|
177
177
|
throw new TypeError();
|
|
@@ -181,13 +181,13 @@ function Zd() {
|
|
|
181
181
|
return w;
|
|
182
182
|
}
|
|
183
183
|
function Hi(d, v, h) {
|
|
184
|
-
var w =
|
|
184
|
+
var w = xn(d, v, h);
|
|
185
185
|
if (w)
|
|
186
186
|
return !0;
|
|
187
|
-
var
|
|
188
|
-
return Ke(
|
|
187
|
+
var x = Nn(v);
|
|
188
|
+
return Ke(x) ? !1 : Hi(d, x, h);
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function xn(d, v, h) {
|
|
191
191
|
var w = ot(
|
|
192
192
|
v,
|
|
193
193
|
h,
|
|
@@ -197,12 +197,12 @@ function Zd() {
|
|
|
197
197
|
return N(w) ? !1 : ro(w.OrdinaryHasOwnMetadata(d, v, h));
|
|
198
198
|
}
|
|
199
199
|
function Xi(d, v, h) {
|
|
200
|
-
var w =
|
|
200
|
+
var w = xn(d, v, h);
|
|
201
201
|
if (w)
|
|
202
202
|
return Yi(d, v, h);
|
|
203
|
-
var
|
|
204
|
-
if (!Ke(
|
|
205
|
-
return Xi(d,
|
|
203
|
+
var x = Nn(v);
|
|
204
|
+
if (!Ke(x))
|
|
205
|
+
return Xi(d, x, h);
|
|
206
206
|
}
|
|
207
207
|
function Yi(d, v, h) {
|
|
208
208
|
var w = ot(
|
|
@@ -215,29 +215,29 @@ function Zd() {
|
|
|
215
215
|
return w.OrdinaryGetOwnMetadata(d, v, h);
|
|
216
216
|
}
|
|
217
217
|
function Qi(d, v, h, w) {
|
|
218
|
-
var
|
|
218
|
+
var x = ot(
|
|
219
219
|
h,
|
|
220
220
|
w,
|
|
221
221
|
/*Create*/
|
|
222
222
|
!0
|
|
223
223
|
);
|
|
224
|
-
|
|
224
|
+
x.OrdinaryDefineOwnMetadata(d, v, h, w);
|
|
225
225
|
}
|
|
226
226
|
function eo(d, v) {
|
|
227
227
|
var h = to(d, v), w = Nn(d);
|
|
228
228
|
if (w === null)
|
|
229
229
|
return h;
|
|
230
|
-
var
|
|
231
|
-
if (
|
|
230
|
+
var x = eo(w, v);
|
|
231
|
+
if (x.length <= 0)
|
|
232
232
|
return h;
|
|
233
233
|
if (h.length <= 0)
|
|
234
|
-
return
|
|
234
|
+
return x;
|
|
235
235
|
for (var q = new g(), Q = [], A = 0, k = h; A < k.length; A++) {
|
|
236
236
|
var z = k[A], O = q.has(z);
|
|
237
237
|
O || (q.add(z), Q.push(z));
|
|
238
238
|
}
|
|
239
|
-
for (var
|
|
240
|
-
var z = R[
|
|
239
|
+
for (var j = 0, R = x; j < R.length; j++) {
|
|
240
|
+
var z = R[j], O = q.has(z);
|
|
241
241
|
O || (q.add(z), Q.push(z));
|
|
242
242
|
}
|
|
243
243
|
return Q;
|
|
@@ -300,15 +300,15 @@ function Zd() {
|
|
|
300
300
|
}
|
|
301
301
|
var h = "string", w = ao(d, a);
|
|
302
302
|
if (w !== void 0) {
|
|
303
|
-
var
|
|
304
|
-
if (Y(
|
|
303
|
+
var x = w.call(d, h);
|
|
304
|
+
if (Y(x))
|
|
305
305
|
throw new TypeError();
|
|
306
|
-
return
|
|
306
|
+
return x;
|
|
307
307
|
}
|
|
308
308
|
return Sd(d);
|
|
309
309
|
}
|
|
310
310
|
function Sd(d, v) {
|
|
311
|
-
var h, w,
|
|
311
|
+
var h, w, x;
|
|
312
312
|
{
|
|
313
313
|
var q = d.toString;
|
|
314
314
|
if (Ct(q)) {
|
|
@@ -392,45 +392,45 @@ function Zd() {
|
|
|
392
392
|
var h = d.prototype, w = h && Object.getPrototypeOf(h);
|
|
393
393
|
if (w == null || w === Object.prototype)
|
|
394
394
|
return v;
|
|
395
|
-
var
|
|
396
|
-
return typeof
|
|
395
|
+
var x = w.constructor;
|
|
396
|
+
return typeof x != "function" || x === d ? v : x;
|
|
397
397
|
}
|
|
398
|
-
function
|
|
398
|
+
function jd() {
|
|
399
399
|
var d;
|
|
400
400
|
!N(I) && typeof i.Reflect < "u" && !(I in i.Reflect) && typeof i.Reflect.defineMetadata == "function" && (d = Nd(i.Reflect));
|
|
401
|
-
var v, h, w,
|
|
401
|
+
var v, h, w, x = new _(), q = {
|
|
402
402
|
registerProvider: Q,
|
|
403
403
|
getProvider: k,
|
|
404
404
|
setProvider: O
|
|
405
405
|
};
|
|
406
406
|
return q;
|
|
407
|
-
function Q(
|
|
407
|
+
function Q(j) {
|
|
408
408
|
if (!Object.isExtensible(q))
|
|
409
409
|
throw new Error("Cannot add provider to a frozen registry.");
|
|
410
410
|
switch (!0) {
|
|
411
|
-
case d ===
|
|
411
|
+
case d === j:
|
|
412
412
|
break;
|
|
413
413
|
case N(v):
|
|
414
|
-
v =
|
|
414
|
+
v = j;
|
|
415
415
|
break;
|
|
416
|
-
case v ===
|
|
416
|
+
case v === j:
|
|
417
417
|
break;
|
|
418
418
|
case N(h):
|
|
419
|
-
h =
|
|
419
|
+
h = j;
|
|
420
420
|
break;
|
|
421
|
-
case h ===
|
|
421
|
+
case h === j:
|
|
422
422
|
break;
|
|
423
423
|
default:
|
|
424
|
-
w === void 0 && (w = new g()), w.add(
|
|
424
|
+
w === void 0 && (w = new g()), w.add(j);
|
|
425
425
|
break;
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
|
-
function A(
|
|
428
|
+
function A(j, R) {
|
|
429
429
|
if (!N(v)) {
|
|
430
|
-
if (v.isProviderFor(
|
|
430
|
+
if (v.isProviderFor(j, R))
|
|
431
431
|
return v;
|
|
432
432
|
if (!N(h)) {
|
|
433
|
-
if (h.isProviderFor(
|
|
433
|
+
if (h.isProviderFor(j, R))
|
|
434
434
|
return v;
|
|
435
435
|
if (!N(w))
|
|
436
436
|
for (var V = so(w); ; ) {
|
|
@@ -438,39 +438,39 @@ function Zd() {
|
|
|
438
438
|
if (!K)
|
|
439
439
|
return;
|
|
440
440
|
var pe = uo(K);
|
|
441
|
-
if (pe.isProviderFor(
|
|
441
|
+
if (pe.isProviderFor(j, R))
|
|
442
442
|
return lo(V), pe;
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
445
|
}
|
|
446
|
-
if (!N(d) && d.isProviderFor(
|
|
446
|
+
if (!N(d) && d.isProviderFor(j, R))
|
|
447
447
|
return d;
|
|
448
448
|
}
|
|
449
|
-
function k(
|
|
450
|
-
var V =
|
|
451
|
-
return N(V) || (K = V.get(R)), N(K) && (K = A(
|
|
449
|
+
function k(j, R) {
|
|
450
|
+
var V = x.get(j), K;
|
|
451
|
+
return N(V) || (K = V.get(R)), N(K) && (K = A(j, R), N(K) || (N(V) && (V = new p(), x.set(j, V)), V.set(R, K))), K;
|
|
452
452
|
}
|
|
453
|
-
function z(
|
|
454
|
-
if (N(
|
|
453
|
+
function z(j) {
|
|
454
|
+
if (N(j))
|
|
455
455
|
throw new TypeError();
|
|
456
|
-
return v ===
|
|
456
|
+
return v === j || h === j || !N(w) && w.has(j);
|
|
457
457
|
}
|
|
458
|
-
function O(
|
|
458
|
+
function O(j, R, V) {
|
|
459
459
|
if (!z(V))
|
|
460
460
|
throw new Error("Metadata provider not registered.");
|
|
461
|
-
var K = k(
|
|
461
|
+
var K = k(j, R);
|
|
462
462
|
if (K !== V) {
|
|
463
463
|
if (!N(K))
|
|
464
464
|
return !1;
|
|
465
|
-
var pe =
|
|
466
|
-
N(pe) && (pe = new p(),
|
|
465
|
+
var pe = x.get(j);
|
|
466
|
+
N(pe) && (pe = new p(), x.set(j, pe)), pe.set(R, V);
|
|
467
467
|
}
|
|
468
468
|
return !0;
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
|
-
function
|
|
471
|
+
function xd() {
|
|
472
472
|
var d;
|
|
473
|
-
return !N(I) && Y(i.Reflect) && Object.isExtensible(i.Reflect) && (d = i.Reflect[I]), N(d) && (d =
|
|
473
|
+
return !N(I) && Y(i.Reflect) && Object.isExtensible(i.Reflect) && (d = i.Reflect[I]), N(d) && (d = jd()), !N(I) && Y(i.Reflect) && Object.isExtensible(i.Reflect) && Object.defineProperty(i.Reflect, I, {
|
|
474
474
|
enumerable: !1,
|
|
475
475
|
configurable: !1,
|
|
476
476
|
writable: !1,
|
|
@@ -480,54 +480,54 @@ function Zd() {
|
|
|
480
480
|
function Ed(d) {
|
|
481
481
|
var v = new _(), h = {
|
|
482
482
|
isProviderFor: function(z, O) {
|
|
483
|
-
var
|
|
484
|
-
return N(
|
|
483
|
+
var j = v.get(z);
|
|
484
|
+
return N(j) ? !1 : j.has(O);
|
|
485
485
|
},
|
|
486
486
|
OrdinaryDefineOwnMetadata: Q,
|
|
487
|
-
OrdinaryHasOwnMetadata:
|
|
487
|
+
OrdinaryHasOwnMetadata: x,
|
|
488
488
|
OrdinaryGetOwnMetadata: q,
|
|
489
489
|
OrdinaryOwnMetadataKeys: A,
|
|
490
490
|
OrdinaryDeleteMetadata: k
|
|
491
491
|
};
|
|
492
492
|
return S.registerProvider(h), h;
|
|
493
|
-
function w(z, O,
|
|
493
|
+
function w(z, O, j) {
|
|
494
494
|
var R = v.get(z), V = !1;
|
|
495
495
|
if (N(R)) {
|
|
496
|
-
if (!
|
|
496
|
+
if (!j)
|
|
497
497
|
return;
|
|
498
498
|
R = new p(), v.set(z, R), V = !0;
|
|
499
499
|
}
|
|
500
500
|
var K = R.get(O);
|
|
501
501
|
if (N(K)) {
|
|
502
|
-
if (!
|
|
502
|
+
if (!j)
|
|
503
503
|
return;
|
|
504
504
|
if (K = new p(), R.set(O, K), !d.setProvider(z, O, h))
|
|
505
505
|
throw R.delete(O), V && v.delete(z), new Error("Wrong provider for target.");
|
|
506
506
|
}
|
|
507
507
|
return K;
|
|
508
508
|
}
|
|
509
|
-
function
|
|
509
|
+
function x(z, O, j) {
|
|
510
510
|
var R = w(
|
|
511
511
|
O,
|
|
512
|
-
|
|
512
|
+
j,
|
|
513
513
|
/*Create*/
|
|
514
514
|
!1
|
|
515
515
|
);
|
|
516
516
|
return N(R) ? !1 : ro(R.has(z));
|
|
517
517
|
}
|
|
518
|
-
function q(z, O,
|
|
518
|
+
function q(z, O, j) {
|
|
519
519
|
var R = w(
|
|
520
520
|
O,
|
|
521
|
-
|
|
521
|
+
j,
|
|
522
522
|
/*Create*/
|
|
523
523
|
!1
|
|
524
524
|
);
|
|
525
525
|
if (!N(R))
|
|
526
526
|
return R.get(z);
|
|
527
527
|
}
|
|
528
|
-
function Q(z, O,
|
|
528
|
+
function Q(z, O, j, R) {
|
|
529
529
|
var V = w(
|
|
530
|
-
|
|
530
|
+
j,
|
|
531
531
|
R,
|
|
532
532
|
/*Create*/
|
|
533
533
|
!0
|
|
@@ -535,21 +535,21 @@ function Zd() {
|
|
|
535
535
|
V.set(z, O);
|
|
536
536
|
}
|
|
537
537
|
function A(z, O) {
|
|
538
|
-
var
|
|
538
|
+
var j = [], R = w(
|
|
539
539
|
z,
|
|
540
540
|
O,
|
|
541
541
|
/*Create*/
|
|
542
542
|
!1
|
|
543
543
|
);
|
|
544
544
|
if (N(R))
|
|
545
|
-
return
|
|
545
|
+
return j;
|
|
546
546
|
for (var V = R.keys(), K = so(V), pe = 0; ; ) {
|
|
547
547
|
var fo = co(K);
|
|
548
548
|
if (!fo)
|
|
549
|
-
return
|
|
549
|
+
return j.length = pe, j;
|
|
550
550
|
var Dd = uo(fo);
|
|
551
551
|
try {
|
|
552
|
-
|
|
552
|
+
j[pe] = Dd;
|
|
553
553
|
} catch (Ad) {
|
|
554
554
|
try {
|
|
555
555
|
lo(K);
|
|
@@ -560,10 +560,10 @@ function Zd() {
|
|
|
560
560
|
pe++;
|
|
561
561
|
}
|
|
562
562
|
}
|
|
563
|
-
function k(z, O,
|
|
563
|
+
function k(z, O, j) {
|
|
564
564
|
var R = w(
|
|
565
565
|
O,
|
|
566
|
-
|
|
566
|
+
j,
|
|
567
567
|
/*Create*/
|
|
568
568
|
!1
|
|
569
569
|
);
|
|
@@ -571,21 +571,21 @@ function Zd() {
|
|
|
571
571
|
return !1;
|
|
572
572
|
if (R.size === 0) {
|
|
573
573
|
var V = v.get(O);
|
|
574
|
-
N(V) || (V.delete(
|
|
574
|
+
N(V) || (V.delete(j), V.size === 0 && v.delete(V));
|
|
575
575
|
}
|
|
576
576
|
return !0;
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
579
|
function Nd(d) {
|
|
580
|
-
var v = d.defineMetadata, h = d.hasOwnMetadata, w = d.getOwnMetadata,
|
|
580
|
+
var v = d.defineMetadata, h = d.hasOwnMetadata, w = d.getOwnMetadata, x = d.getOwnMetadataKeys, q = d.deleteMetadata, Q = new _(), A = {
|
|
581
581
|
isProviderFor: function(k, z) {
|
|
582
582
|
var O = Q.get(k);
|
|
583
|
-
return !N(O) && O.has(z) ? !0 :
|
|
583
|
+
return !N(O) && O.has(z) ? !0 : x(k, z).length ? (N(O) && (O = new g(), Q.set(k, O)), O.add(z), !0) : !1;
|
|
584
584
|
},
|
|
585
585
|
OrdinaryDefineOwnMetadata: v,
|
|
586
586
|
OrdinaryHasOwnMetadata: h,
|
|
587
587
|
OrdinaryGetOwnMetadata: w,
|
|
588
|
-
OrdinaryOwnMetadataKeys:
|
|
588
|
+
OrdinaryOwnMetadataKeys: x,
|
|
589
589
|
OrdinaryDeleteMetadata: q
|
|
590
590
|
};
|
|
591
591
|
return A;
|
|
@@ -663,15 +663,15 @@ function Zd() {
|
|
|
663
663
|
!1
|
|
664
664
|
);
|
|
665
665
|
if (z >= 0) {
|
|
666
|
-
for (var O = this._keys.length,
|
|
667
|
-
this._keys[
|
|
666
|
+
for (var O = this._keys.length, j = z + 1; j < O; j++)
|
|
667
|
+
this._keys[j - 1] = this._keys[j], this._values[j - 1] = this._values[j];
|
|
668
668
|
return this._keys.length--, this._values.length--, En(k, this._cacheKey) && (this._cacheKey = d, this._cacheIndex = -2), !0;
|
|
669
669
|
}
|
|
670
670
|
return !1;
|
|
671
671
|
}, A.prototype.clear = function() {
|
|
672
672
|
this._keys.length = 0, this._values.length = 0, this._cacheKey = d, this._cacheIndex = -2;
|
|
673
673
|
}, A.prototype.keys = function() {
|
|
674
|
-
return new h(this._keys, this._values,
|
|
674
|
+
return new h(this._keys, this._values, x);
|
|
675
675
|
}, A.prototype.values = function() {
|
|
676
676
|
return new h(this._keys, this._values, q);
|
|
677
677
|
}, A.prototype.entries = function() {
|
|
@@ -694,7 +694,7 @@ function Zd() {
|
|
|
694
694
|
}()
|
|
695
695
|
);
|
|
696
696
|
return w;
|
|
697
|
-
function
|
|
697
|
+
function x(A, k) {
|
|
698
698
|
return A;
|
|
699
699
|
}
|
|
700
700
|
function q(A, k) {
|
|
@@ -749,28 +749,28 @@ function Zd() {
|
|
|
749
749
|
this._key = w();
|
|
750
750
|
}
|
|
751
751
|
return k.prototype.has = function(z) {
|
|
752
|
-
var O =
|
|
752
|
+
var O = x(
|
|
753
753
|
z,
|
|
754
754
|
/*create*/
|
|
755
755
|
!1
|
|
756
756
|
);
|
|
757
757
|
return O !== void 0 ? m.has(O, this._key) : !1;
|
|
758
758
|
}, k.prototype.get = function(z) {
|
|
759
|
-
var O =
|
|
759
|
+
var O = x(
|
|
760
760
|
z,
|
|
761
761
|
/*create*/
|
|
762
762
|
!1
|
|
763
763
|
);
|
|
764
764
|
return O !== void 0 ? m.get(O, this._key) : void 0;
|
|
765
765
|
}, k.prototype.set = function(z, O) {
|
|
766
|
-
var
|
|
766
|
+
var j = x(
|
|
767
767
|
z,
|
|
768
768
|
/*create*/
|
|
769
769
|
!0
|
|
770
770
|
);
|
|
771
|
-
return
|
|
771
|
+
return j[this._key] = O, this;
|
|
772
772
|
}, k.prototype.delete = function(z) {
|
|
773
|
-
var O =
|
|
773
|
+
var O = x(
|
|
774
774
|
z,
|
|
775
775
|
/*create*/
|
|
776
776
|
!1
|
|
@@ -788,7 +788,7 @@ function Zd() {
|
|
|
788
788
|
while (m.has(v, k));
|
|
789
789
|
return v[k] = !0, k;
|
|
790
790
|
}
|
|
791
|
-
function
|
|
791
|
+
function x(k, z) {
|
|
792
792
|
if (!n.call(k, h)) {
|
|
793
793
|
if (!z)
|
|
794
794
|
return;
|
|
@@ -812,8 +812,8 @@ function Zd() {
|
|
|
812
812
|
var k = Q(d);
|
|
813
813
|
k[6] = k[6] & 79 | 64, k[8] = k[8] & 191 | 128;
|
|
814
814
|
for (var z = "", O = 0; O < d; ++O) {
|
|
815
|
-
var
|
|
816
|
-
(O === 4 || O === 6 || O === 8) && (z += "-"),
|
|
815
|
+
var j = k[O];
|
|
816
|
+
(O === 4 || O === 6 || O === 8) && (z += "-"), j < 16 && (z += "0"), z += j.toString(16).toLowerCase();
|
|
817
817
|
}
|
|
818
818
|
return z;
|
|
819
819
|
}
|
|
@@ -1144,7 +1144,7 @@ function Oa(e, t) {
|
|
|
1144
1144
|
});
|
|
1145
1145
|
return ve(e, n);
|
|
1146
1146
|
}
|
|
1147
|
-
function
|
|
1147
|
+
function ja(e, t) {
|
|
1148
1148
|
if (!Fe(t))
|
|
1149
1149
|
throw new Error("Invalid input to safeExtend: expected a plain object");
|
|
1150
1150
|
const r = {
|
|
@@ -1157,7 +1157,7 @@ function xa(e, t) {
|
|
|
1157
1157
|
};
|
|
1158
1158
|
return ve(e, r);
|
|
1159
1159
|
}
|
|
1160
|
-
function
|
|
1160
|
+
function xa(e, t) {
|
|
1161
1161
|
const r = Oe(e._zod.def, {
|
|
1162
1162
|
get shape() {
|
|
1163
1163
|
const i = { ...e._zod.def.shape, ...t._zod.def.shape };
|
|
@@ -1338,7 +1338,7 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1338
1338
|
issue: Ye,
|
|
1339
1339
|
joinValues: $,
|
|
1340
1340
|
jsonStringifyReplacer: Kt,
|
|
1341
|
-
merge:
|
|
1341
|
+
merge: xa,
|
|
1342
1342
|
mergeDefs: Oe,
|
|
1343
1343
|
normalizeParams: b,
|
|
1344
1344
|
nullish: We,
|
|
@@ -1354,7 +1354,7 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1354
1354
|
propertyKeyTypes: Ht,
|
|
1355
1355
|
randomString: Hd,
|
|
1356
1356
|
required: Na,
|
|
1357
|
-
safeExtend:
|
|
1357
|
+
safeExtend: ja,
|
|
1358
1358
|
shallowClone: cn,
|
|
1359
1359
|
stringifyPrimitive: E,
|
|
1360
1360
|
uint8ArrayToBase64: Ta,
|
|
@@ -1463,14 +1463,14 @@ const St = (e) => (t, r, i, n) => {
|
|
|
1463
1463
|
success: !1,
|
|
1464
1464
|
error: new (e ?? ar)(o.issues.map((a) => _e(a, n, ie())))
|
|
1465
1465
|
} : { success: !0, data: o.value };
|
|
1466
|
-
}, Ma = /* @__PURE__ */ Ot(de),
|
|
1466
|
+
}, Ma = /* @__PURE__ */ Ot(de), jt = (e) => async (t, r, i) => {
|
|
1467
1467
|
const n = i ? Object.assign(i, { async: !0 }) : { async: !0 };
|
|
1468
1468
|
let o = t._zod.run({ value: r, issues: [] }, n);
|
|
1469
1469
|
return o instanceof Promise && (o = await o), o.issues.length ? {
|
|
1470
1470
|
success: !1,
|
|
1471
1471
|
error: new e(o.issues.map((a) => _e(a, n, ie())))
|
|
1472
1472
|
} : { success: !0, data: o.value };
|
|
1473
|
-
}, Za = /* @__PURE__ */
|
|
1473
|
+
}, Za = /* @__PURE__ */ jt(de), cr = (e) => (t, r, i) => {
|
|
1474
1474
|
const n = i ? Object.assign(i, { direction: "backward" }) : { direction: "backward" };
|
|
1475
1475
|
return St(e)(t, r, n);
|
|
1476
1476
|
}, sf = /* @__PURE__ */ cr(de), lr = (e) => (t, r, i) => St(e)(t, r, i), uf = /* @__PURE__ */ lr(de), dr = (e) => async (t, r, i) => {
|
|
@@ -1481,8 +1481,8 @@ const St = (e) => (t, r, i, n) => {
|
|
|
1481
1481
|
return Ot(e)(t, r, n);
|
|
1482
1482
|
}, df = /* @__PURE__ */ mr(de), gr = (e) => (t, r, i) => Ot(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
|
-
return
|
|
1485
|
-
}, mf = /* @__PURE__ */ vr(de), pr = (e) => async (t, r, i) =>
|
|
1484
|
+
return jt(e)(t, r, n);
|
|
1485
|
+
}, mf = /* @__PURE__ */ vr(de), pr = (e) => async (t, r, i) => jt(e)(t, r, i), gf = /* @__PURE__ */ pr(de), La = /^[cC][^\s-]{8,}$/, Fa = /^[0-9a-z]+$/, Ba = /^[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)?)??$/, qa = /^([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), Ka = /^(?!\.)(?!.*\.\.)([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,}))$/, Ha = /^[^\s@"]{1,64}@[^\s@]{1,255}$/u, $f = Ha, 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
1486
|
function Xa() {
|
|
1487
1487
|
return new RegExp(If, "u");
|
|
1488
1488
|
}
|
|
@@ -1504,13 +1504,13 @@ const ls = (e) => {
|
|
|
1504
1504
|
const t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
|
|
1505
1505
|
return new RegExp(`^${t}$`);
|
|
1506
1506
|
}, ds = /^-?\d+n?$/, fs = /^-?\d+$/, ms = /^-?\d+(?:\.\d+)?/, gs = /^(?:true|false)$/i, vs = /^null$/i, ps = /^undefined$/i, hs = /^[^A-Z]*$/, bs = /^[^a-z]*$/, ys = /^[0-9a-fA-F]*$/;
|
|
1507
|
-
function
|
|
1507
|
+
function xt(e, t) {
|
|
1508
1508
|
return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`);
|
|
1509
1509
|
}
|
|
1510
1510
|
function Et(e) {
|
|
1511
1511
|
return new RegExp(`^[A-Za-z0-9_-]{${e}}$`);
|
|
1512
1512
|
}
|
|
1513
|
-
const kf = /^[0-9a-fA-F]{32}$/, Sf = /* @__PURE__ */
|
|
1513
|
+
const kf = /^[0-9a-fA-F]{32}$/, Sf = /* @__PURE__ */ xt(22, "=="), zf = /* @__PURE__ */ Et(22), Of = /^[0-9a-fA-F]{40}$/, jf = /* @__PURE__ */ xt(27, "="), xf = /* @__PURE__ */ Et(27), Ef = /^[0-9a-fA-F]{64}$/, Nf = /* @__PURE__ */ xt(43, "="), Uf = /* @__PURE__ */ Et(43), Tf = /^[0-9a-fA-F]{96}$/, Pf = /* @__PURE__ */ xt(64, ""), Df = /* @__PURE__ */ Et(64), Af = /^[0-9a-fA-F]{128}$/, Cf = /* @__PURE__ */ xt(86, "=="), Rf = /* @__PURE__ */ Et(86), yr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1514
1514
|
__proto__: null,
|
|
1515
1515
|
base64: ns,
|
|
1516
1516
|
base64url: hr,
|
|
@@ -1546,8 +1546,8 @@ const kf = /^[0-9a-fA-F]{32}$/, Sf = /* @__PURE__ */ jt(22, "=="), zf = /* @__PU
|
|
|
1546
1546
|
null: vs,
|
|
1547
1547
|
number: ms,
|
|
1548
1548
|
rfc5322Email: _f,
|
|
1549
|
-
sha1_base64:
|
|
1550
|
-
sha1_base64url:
|
|
1549
|
+
sha1_base64: jf,
|
|
1550
|
+
sha1_base64url: xf,
|
|
1551
1551
|
sha1_hex: Of,
|
|
1552
1552
|
sha256_base64: Nf,
|
|
1553
1553
|
sha256_base64url: Uf,
|
|
@@ -1793,7 +1793,7 @@ const kf = /^[0-9a-fA-F]{32}$/, Sf = /* @__PURE__ */ jt(22, "=="), zf = /* @__PU
|
|
|
1793
1793
|
continue: !t.abort
|
|
1794
1794
|
});
|
|
1795
1795
|
};
|
|
1796
|
-
}),
|
|
1796
|
+
}), js = /* @__PURE__ */ l("$ZodCheckMinLength", (e, t) => {
|
|
1797
1797
|
var r;
|
|
1798
1798
|
W.init(e, t), (r = e._zod.def).when ?? (r.when = (i) => {
|
|
1799
1799
|
const n = i.value;
|
|
@@ -1816,7 +1816,7 @@ const kf = /^[0-9a-fA-F]{32}$/, Sf = /* @__PURE__ */ jt(22, "=="), zf = /* @__PU
|
|
|
1816
1816
|
continue: !t.abort
|
|
1817
1817
|
});
|
|
1818
1818
|
};
|
|
1819
|
-
}),
|
|
1819
|
+
}), xs = /* @__PURE__ */ l("$ZodCheckLengthEquals", (e, t) => {
|
|
1820
1820
|
var r;
|
|
1821
1821
|
W.init(e, t), (r = e._zod.def).when ?? (r.when = (i) => {
|
|
1822
1822
|
const n = i.value;
|
|
@@ -2599,7 +2599,7 @@ const zr = /* @__PURE__ */ l("$ZodUnion", (e, t) => {
|
|
|
2599
2599
|
}
|
|
2600
2600
|
return a ? Promise.all(s).then((u) => wo(u, n, e, o)) : wo(s, n, e, o);
|
|
2601
2601
|
};
|
|
2602
|
-
}),
|
|
2602
|
+
}), ju = /* @__PURE__ */ l("$ZodDiscriminatedUnion", (e, t) => {
|
|
2603
2603
|
zr.init(e, t);
|
|
2604
2604
|
const r = e._zod.parse;
|
|
2605
2605
|
C(e._zod, "propValues", () => {
|
|
@@ -2650,7 +2650,7 @@ const zr = /* @__PURE__ */ l("$ZodUnion", (e, t) => {
|
|
|
2650
2650
|
inst: e
|
|
2651
2651
|
}), n);
|
|
2652
2652
|
};
|
|
2653
|
-
}),
|
|
2653
|
+
}), xu = /* @__PURE__ */ l("$ZodIntersection", (e, t) => {
|
|
2654
2654
|
T.init(e, t), e._zod.parse = (r, i) => {
|
|
2655
2655
|
const n = r.value, o = t.left._zod.run({ value: n, issues: [] }, i), a = t.right._zod.run({ value: n, issues: [] }, i);
|
|
2656
2656
|
return o instanceof Promise || a instanceof Promise ? Promise.all([o, a]).then(([u, c]) => Io(r, u, c)) : Io(r, o, a);
|
|
@@ -2952,10 +2952,10 @@ const Zu = /* @__PURE__ */ l("$ZodPrefault", (e, t) => {
|
|
|
2952
2952
|
return r ? new Set([...r].filter((i) => i !== void 0)) : void 0;
|
|
2953
2953
|
}), e._zod.parse = (r, i) => {
|
|
2954
2954
|
const n = t.innerType._zod.run(r, i);
|
|
2955
|
-
return n instanceof Promise ? n.then((o) =>
|
|
2955
|
+
return n instanceof Promise ? n.then((o) => jo(o, e)) : jo(n, e);
|
|
2956
2956
|
};
|
|
2957
2957
|
});
|
|
2958
|
-
function
|
|
2958
|
+
function jo(e, t) {
|
|
2959
2959
|
return !e.issues.length && e.value === void 0 && e.issues.push({
|
|
2960
2960
|
code: "invalid_type",
|
|
2961
2961
|
expected: "nonoptional",
|
|
@@ -3009,7 +3009,7 @@ const Fu = /* @__PURE__ */ l("$ZodSuccess", (e, t) => {
|
|
|
3009
3009
|
function Mt(e, t, r) {
|
|
3010
3010
|
return e.issues.length ? (e.aborted = !0, e) : t._zod.run({ value: e.value, issues: e.issues }, r);
|
|
3011
3011
|
}
|
|
3012
|
-
const
|
|
3012
|
+
const jr = /* @__PURE__ */ l("$ZodCodec", (e, t) => {
|
|
3013
3013
|
T.init(e, t), C(e._zod, "values", () => t.in._zod.values), C(e._zod, "optin", () => t.in._zod.optin), C(e._zod, "optout", () => t.out._zod.optout), C(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (r, i) => {
|
|
3014
3014
|
if ((i.direction || "forward") === "forward") {
|
|
3015
3015
|
const o = t.in._zod.run(r, i);
|
|
@@ -3039,10 +3039,10 @@ const Ju = /* @__PURE__ */ l("$ZodReadonly", (e, t) => {
|
|
|
3039
3039
|
if (i.direction === "backward")
|
|
3040
3040
|
return t.innerType._zod.run(r, i);
|
|
3041
3041
|
const n = t.innerType._zod.run(r, i);
|
|
3042
|
-
return n instanceof Promise ? n.then(
|
|
3042
|
+
return n instanceof Promise ? n.then(xo) : xo(n);
|
|
3043
3043
|
};
|
|
3044
3044
|
});
|
|
3045
|
-
function
|
|
3045
|
+
function xo(e) {
|
|
3046
3046
|
return e.value = Object.freeze(e.value), e;
|
|
3047
3047
|
}
|
|
3048
3048
|
const Wu = /* @__PURE__ */ l("$ZodTemplateLiteral", (e, t) => {
|
|
@@ -5099,7 +5099,7 @@ function Om() {
|
|
|
5099
5099
|
localeError: zm()
|
|
5100
5100
|
};
|
|
5101
5101
|
}
|
|
5102
|
-
const
|
|
5102
|
+
const jm = () => {
|
|
5103
5103
|
const e = {
|
|
5104
5104
|
string: { unit: "文字", verb: "である" },
|
|
5105
5105
|
file: { unit: "バイト", verb: "である" },
|
|
@@ -5187,9 +5187,9 @@ const xm = () => {
|
|
|
5187
5187
|
}
|
|
5188
5188
|
};
|
|
5189
5189
|
};
|
|
5190
|
-
function
|
|
5190
|
+
function xm() {
|
|
5191
5191
|
return {
|
|
5192
|
-
localeError:
|
|
5192
|
+
localeError: jm()
|
|
5193
5193
|
};
|
|
5194
5194
|
}
|
|
5195
5195
|
const Em = (e) => {
|
|
@@ -7592,7 +7592,7 @@ const tc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
7592
7592
|
id: wm,
|
|
7593
7593
|
is: Sm,
|
|
7594
7594
|
it: Om,
|
|
7595
|
-
ja:
|
|
7595
|
+
ja: xm,
|
|
7596
7596
|
ka: Um,
|
|
7597
7597
|
kh: Pm,
|
|
7598
7598
|
km: Qu,
|
|
@@ -7620,7 +7620,7 @@ const tc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
7620
7620
|
zhCN: wg,
|
|
7621
7621
|
zhTW: kg
|
|
7622
7622
|
}, Symbol.toStringTag, { value: "Module" })), nc = Symbol("ZodOutput"), rc = Symbol("ZodInput");
|
|
7623
|
-
class
|
|
7623
|
+
class xr {
|
|
7624
7624
|
constructor() {
|
|
7625
7625
|
this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
|
|
7626
7626
|
}
|
|
@@ -7655,7 +7655,7 @@ class jr {
|
|
|
7655
7655
|
}
|
|
7656
7656
|
}
|
|
7657
7657
|
function Er() {
|
|
7658
|
-
return new
|
|
7658
|
+
return new xr();
|
|
7659
7659
|
}
|
|
7660
7660
|
const Re = /* @__PURE__ */ Er();
|
|
7661
7661
|
function ic(e, t) {
|
|
@@ -8042,12 +8042,12 @@ function Oc(e) {
|
|
|
8042
8042
|
type: "any"
|
|
8043
8043
|
});
|
|
8044
8044
|
}
|
|
8045
|
-
function
|
|
8045
|
+
function jc(e) {
|
|
8046
8046
|
return new e({
|
|
8047
8047
|
type: "unknown"
|
|
8048
8048
|
});
|
|
8049
8049
|
}
|
|
8050
|
-
function
|
|
8050
|
+
function xc(e, t) {
|
|
8051
8051
|
return new e({
|
|
8052
8052
|
type: "never",
|
|
8053
8053
|
...b(t)
|
|
@@ -8158,14 +8158,14 @@ function gn(e, t) {
|
|
|
8158
8158
|
});
|
|
8159
8159
|
}
|
|
8160
8160
|
function et(e, t) {
|
|
8161
|
-
return new
|
|
8161
|
+
return new js({
|
|
8162
8162
|
check: "min_length",
|
|
8163
8163
|
...b(t),
|
|
8164
8164
|
minimum: e
|
|
8165
8165
|
});
|
|
8166
8166
|
}
|
|
8167
8167
|
function vn(e, t) {
|
|
8168
|
-
return new
|
|
8168
|
+
return new xs({
|
|
8169
8169
|
check: "length_equals",
|
|
8170
8170
|
...b(t),
|
|
8171
8171
|
length: e
|
|
@@ -8267,7 +8267,7 @@ function Og(e, t, r) {
|
|
|
8267
8267
|
...b(r)
|
|
8268
8268
|
});
|
|
8269
8269
|
}
|
|
8270
|
-
function
|
|
8270
|
+
function jg(e, t, r, i) {
|
|
8271
8271
|
return new e({
|
|
8272
8272
|
type: "union",
|
|
8273
8273
|
options: r,
|
|
@@ -8275,7 +8275,7 @@ function xg(e, t, r, i) {
|
|
|
8275
8275
|
...b(i)
|
|
8276
8276
|
});
|
|
8277
8277
|
}
|
|
8278
|
-
function
|
|
8278
|
+
function xg(e, t, r) {
|
|
8279
8279
|
return new e({
|
|
8280
8280
|
type: "intersection",
|
|
8281
8281
|
left: t,
|
|
@@ -8460,7 +8460,7 @@ function Vc(e, t) {
|
|
|
8460
8460
|
const r = b(t);
|
|
8461
8461
|
let i = r.truthy ?? ["true", "1", "yes", "on", "y", "enabled"], n = r.falsy ?? ["false", "0", "no", "off", "n", "disabled"];
|
|
8462
8462
|
r.case !== "sensitive" && (i = i.map((p) => typeof p == "string" ? p.toLowerCase() : p), n = n.map((p) => typeof p == "string" ? p.toLowerCase() : p));
|
|
8463
|
-
const o = new Set(i), a = new Set(n), s = e.Codec ??
|
|
8463
|
+
const o = new Set(i), a = new Set(n), s = e.Codec ?? jr, u = e.Boolean ?? kr, c = e.String ?? Ut, f = new c({ type: "string", error: r.error }), m = new u({ type: "boolean", error: r.error }), y = new s({
|
|
8464
8464
|
type: "pipe",
|
|
8465
8465
|
in: f,
|
|
8466
8466
|
out: m,
|
|
@@ -8635,9 +8635,9 @@ class Gn {
|
|
|
8635
8635
|
case "tuple": {
|
|
8636
8636
|
const g = p;
|
|
8637
8637
|
g.type = "array";
|
|
8638
|
-
const _ = this.target === "draft-2020-12" ? "prefixItems" : "items", I = this.target === "draft-2020-12" || this.target === "openapi-3.0" ? "items" : "additionalItems", S = n.items.map((re,
|
|
8638
|
+
const _ = this.target === "draft-2020-12" ? "prefixItems" : "items", I = this.target === "draft-2020-12" || this.target === "openapi-3.0" ? "items" : "additionalItems", S = n.items.map((re, jn) => this.process(re, {
|
|
8639
8639
|
...m,
|
|
8640
|
-
path: [...m.path, _,
|
|
8640
|
+
path: [...m.path, _, jn]
|
|
8641
8641
|
})), U = n.rest ? this.process(n.rest, {
|
|
8642
8642
|
...m,
|
|
8643
8643
|
path: [...m.path, I, ...this.target === "openapi-3.0" ? [n.items.length] : []]
|
|
@@ -8899,7 +8899,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
8899
8899
|
}
|
|
8900
8900
|
}
|
|
8901
8901
|
function Jc(e, t) {
|
|
8902
|
-
if (e instanceof
|
|
8902
|
+
if (e instanceof xr) {
|
|
8903
8903
|
const i = new Gn(t), n = {};
|
|
8904
8904
|
for (const s of e._idmap.entries()) {
|
|
8905
8905
|
const [u, c] = s;
|
|
@@ -9031,13 +9031,13 @@ const Kg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9031
9031
|
$ZodCheckEndsWith: Ds,
|
|
9032
9032
|
$ZodCheckGreaterThan: $r,
|
|
9033
9033
|
$ZodCheckIncludes: Ts,
|
|
9034
|
-
$ZodCheckLengthEquals:
|
|
9034
|
+
$ZodCheckLengthEquals: xs,
|
|
9035
9035
|
$ZodCheckLessThan: _r,
|
|
9036
9036
|
$ZodCheckLowerCase: Ns,
|
|
9037
9037
|
$ZodCheckMaxLength: Os,
|
|
9038
9038
|
$ZodCheckMaxSize: ks,
|
|
9039
9039
|
$ZodCheckMimeType: Cs,
|
|
9040
|
-
$ZodCheckMinLength:
|
|
9040
|
+
$ZodCheckMinLength: js,
|
|
9041
9041
|
$ZodCheckMinSize: Ss,
|
|
9042
9042
|
$ZodCheckMultipleOf: $s,
|
|
9043
9043
|
$ZodCheckNumberFormat: ws,
|
|
@@ -9048,12 +9048,12 @@ const Kg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9048
9048
|
$ZodCheckStartsWith: Ps,
|
|
9049
9049
|
$ZodCheckStringFormat: Nt,
|
|
9050
9050
|
$ZodCheckUpperCase: Us,
|
|
9051
|
-
$ZodCodec:
|
|
9051
|
+
$ZodCodec: jr,
|
|
9052
9052
|
$ZodCustom: Xu,
|
|
9053
9053
|
$ZodCustomStringFormat: fu,
|
|
9054
9054
|
$ZodDate: wu,
|
|
9055
9055
|
$ZodDefault: Mu,
|
|
9056
|
-
$ZodDiscriminatedUnion:
|
|
9056
|
+
$ZodDiscriminatedUnion: ju,
|
|
9057
9057
|
$ZodE164: cu,
|
|
9058
9058
|
$ZodEmail: Bs,
|
|
9059
9059
|
$ZodEmoji: Vs,
|
|
@@ -9069,7 +9069,7 @@ const Kg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9069
9069
|
$ZodISODateTime: Ys,
|
|
9070
9070
|
$ZodISODuration: tu,
|
|
9071
9071
|
$ZodISOTime: eu,
|
|
9072
|
-
$ZodIntersection:
|
|
9072
|
+
$ZodIntersection: xu,
|
|
9073
9073
|
$ZodJWT: du,
|
|
9074
9074
|
$ZodKSUID: Xs,
|
|
9075
9075
|
$ZodLazy: Hu,
|
|
@@ -9092,7 +9092,7 @@ const Kg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9092
9092
|
$ZodReadonly: Ju,
|
|
9093
9093
|
$ZodRealError: de,
|
|
9094
9094
|
$ZodRecord: Eu,
|
|
9095
|
-
$ZodRegistry:
|
|
9095
|
+
$ZodRegistry: xr,
|
|
9096
9096
|
$ZodSet: Uu,
|
|
9097
9097
|
$ZodString: Ut,
|
|
9098
9098
|
$ZodStringFormat: G,
|
|
@@ -9141,7 +9141,7 @@ const Kg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9141
9141
|
_decode: lr,
|
|
9142
9142
|
_decodeAsync: fr,
|
|
9143
9143
|
_default: Zg,
|
|
9144
|
-
_discriminatedUnion:
|
|
9144
|
+
_discriminatedUnion: jg,
|
|
9145
9145
|
_e164: Kr,
|
|
9146
9146
|
_email: Nr,
|
|
9147
9147
|
_emoji: Ar,
|
|
@@ -9159,7 +9159,7 @@ const Kg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9159
9159
|
_int: mc,
|
|
9160
9160
|
_int32: pc,
|
|
9161
9161
|
_int64: wc,
|
|
9162
|
-
_intersection:
|
|
9162
|
+
_intersection: xg,
|
|
9163
9163
|
_ipv4: Br,
|
|
9164
9164
|
_ipv6: Gr,
|
|
9165
9165
|
_isoDate: uc,
|
|
@@ -9187,7 +9187,7 @@ const Kg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9187
9187
|
_nanoid: Cr,
|
|
9188
9188
|
_nativeEnum: Dg,
|
|
9189
9189
|
_negative: Dc,
|
|
9190
|
-
_never:
|
|
9190
|
+
_never: xc,
|
|
9191
9191
|
_nonnegative: Cc,
|
|
9192
9192
|
_nonoptional: Lg,
|
|
9193
9193
|
_nonpositive: Ac,
|
|
@@ -9212,7 +9212,7 @@ const Kg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9212
9212
|
_safeEncode: mr,
|
|
9213
9213
|
_safeEncodeAsync: vr,
|
|
9214
9214
|
_safeParse: Ot,
|
|
9215
|
-
_safeParseAsync:
|
|
9215
|
+
_safeParseAsync: jt,
|
|
9216
9216
|
_set: Tg,
|
|
9217
9217
|
_size: Xr,
|
|
9218
9218
|
_startsWith: ni,
|
|
@@ -9233,7 +9233,7 @@ const Kg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9233
9233
|
_ulid: Zr,
|
|
9234
9234
|
_undefined: Sc,
|
|
9235
9235
|
_union: Og,
|
|
9236
|
-
_unknown:
|
|
9236
|
+
_unknown: jc,
|
|
9237
9237
|
_uppercase: ei,
|
|
9238
9238
|
_url: fn,
|
|
9239
9239
|
_uuid: Ur,
|
|
@@ -9337,7 +9337,7 @@ const Xg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9337
9337
|
});
|
|
9338
9338
|
}, Yg = l("ZodError", Xc), fe = l("ZodError", Xc, {
|
|
9339
9339
|
Parent: Error
|
|
9340
|
-
}), Yc = /* @__PURE__ */ St(fe), Qc = /* @__PURE__ */ zt(fe), el = /* @__PURE__ */ Ot(fe), tl = /* @__PURE__ */
|
|
9340
|
+
}), Yc = /* @__PURE__ */ St(fe), Qc = /* @__PURE__ */ zt(fe), el = /* @__PURE__ */ Ot(fe), tl = /* @__PURE__ */ jt(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: [
|
|
9342
9342
|
...t.checks ?? [],
|
|
9343
9343
|
...r.map((i) => typeof i == "function" ? { _zod: { check: i, def: { check: "custom" }, onattach: [] } } : i)
|
|
@@ -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(gn(...i)), e.length = (...i) => e.check(vn(...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
|
}), pn = /* @__PURE__ */ l("ZodString", (e, t) => {
|
|
9363
|
-
Ut.init(e, t), mi.init(e, t), e.email = (r) => e.check(Nr(gi, r)), e.url = (r) => e.check(fn(hn, r)), e.jwt = (r) => e.check(Hr(
|
|
9363
|
+
Ut.init(e, t), mi.init(e, t), e.email = (r) => e.check(Nr(gi, r)), e.url = (r) => e.check(fn(hn, r)), e.jwt = (r) => e.check(Hr(xi, r)), e.emoji = (r) => e.check(Ar(vi, r)), e.guid = (r) => e.check(Yt(Qt, 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(Yt(Qt, 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(qr(Oi, r)), e.xid = (r) => e.check(Lr(_i, r)), e.ksuid = (r) => e.check(Fr($i, r)), e.ipv4 = (r) => e.check(Br(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(Kr(ji, r)), e.datetime = (r) => e.check(Wc(r)), e.date = (r) => e.check(qc(r)), e.time = (r) => e.check(Kc(r)), e.duration = (r) => e.check(Hc(r));
|
|
9364
9364
|
});
|
|
9365
9365
|
function ne(e) {
|
|
9366
9366
|
return ic(pn, e);
|
|
@@ -9485,17 +9485,17 @@ const Oi = /* @__PURE__ */ l("ZodBase64URL", (e, t) => {
|
|
|
9485
9485
|
function yv(e) {
|
|
9486
9486
|
return qr(Oi, e);
|
|
9487
9487
|
}
|
|
9488
|
-
const
|
|
9488
|
+
const ji = /* @__PURE__ */ l("ZodE164", (e, t) => {
|
|
9489
9489
|
cu.init(e, t), J.init(e, t);
|
|
9490
9490
|
});
|
|
9491
9491
|
function _v(e) {
|
|
9492
|
-
return Kr(
|
|
9492
|
+
return Kr(ji, e);
|
|
9493
9493
|
}
|
|
9494
|
-
const
|
|
9494
|
+
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 Hr(
|
|
9498
|
+
return Hr(xi, e);
|
|
9499
9499
|
}
|
|
9500
9500
|
const Pt = /* @__PURE__ */ l("ZodCustomStringFormat", (e, t) => {
|
|
9501
9501
|
fu.init(e, t), J.init(e, t);
|
|
@@ -9535,10 +9535,10 @@ function zv(e) {
|
|
|
9535
9535
|
function Ov(e) {
|
|
9536
9536
|
return vc(it, e);
|
|
9537
9537
|
}
|
|
9538
|
-
function
|
|
9538
|
+
function jv(e) {
|
|
9539
9539
|
return pc(it, e);
|
|
9540
9540
|
}
|
|
9541
|
-
function
|
|
9541
|
+
function xv(e) {
|
|
9542
9542
|
return hc(it, e);
|
|
9543
9543
|
}
|
|
9544
9544
|
const yn = /* @__PURE__ */ l("ZodBoolean", (e, t) => {
|
|
@@ -9592,13 +9592,13 @@ const gl = /* @__PURE__ */ l("ZodUnknown", (e, t) => {
|
|
|
9592
9592
|
yu.init(e, t), P.init(e, t);
|
|
9593
9593
|
});
|
|
9594
9594
|
function Ve() {
|
|
9595
|
-
return
|
|
9595
|
+
return jc(gl);
|
|
9596
9596
|
}
|
|
9597
9597
|
const vl = /* @__PURE__ */ l("ZodNever", (e, t) => {
|
|
9598
9598
|
_u.init(e, t), P.init(e, t);
|
|
9599
9599
|
});
|
|
9600
9600
|
function Ni(e) {
|
|
9601
|
-
return
|
|
9601
|
+
return xc(vl, e);
|
|
9602
9602
|
}
|
|
9603
9603
|
const pl = /* @__PURE__ */ l("ZodVoid", (e, t) => {
|
|
9604
9604
|
$u.init(e, t), P.init(e, t);
|
|
@@ -9625,7 +9625,7 @@ function Cv(e) {
|
|
|
9625
9625
|
return Ai(Object.keys(t));
|
|
9626
9626
|
}
|
|
9627
9627
|
const wn = /* @__PURE__ */ l("ZodObject", (e, t) => {
|
|
9628
|
-
Ou.init(e, t), P.init(e, t), C(e, "shape", () => t.shape), e.keyof = () => Ai(Object.keys(e._zod.def.shape)), e.catchall = (r) => e.clone({ ...e._zod.def, catchall: r }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: Ve() }), e.loose = () => e.clone({ ...e._zod.def, catchall: Ve() }), e.strict = () => e.clone({ ...e._zod.def, catchall: Ni() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (r) => Oa(e, r), e.safeExtend = (r) =>
|
|
9628
|
+
Ou.init(e, t), P.init(e, t), C(e, "shape", () => t.shape), e.keyof = () => Ai(Object.keys(e._zod.def.shape)), e.catchall = (r) => e.clone({ ...e._zod.def, catchall: r }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: Ve() }), e.loose = () => e.clone({ ...e._zod.def, catchall: Ve() }), e.strict = () => e.clone({ ...e._zod.def, catchall: Ni() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (r) => Oa(e, r), e.safeExtend = (r) => ja(e, r), e.merge = (r) => xa(e, r), e.pick = (r) => Sa(e, r), e.omit = (r) => za(e, r), e.partial = (...r) => Ea(Ri, e, r[0]), e.required = (...r) => Na(Mi, e, r[0]);
|
|
9629
9629
|
});
|
|
9630
9630
|
function ue(e, t) {
|
|
9631
9631
|
const r = {
|
|
@@ -9662,7 +9662,7 @@ function tt(e, t) {
|
|
|
9662
9662
|
});
|
|
9663
9663
|
}
|
|
9664
9664
|
const bl = /* @__PURE__ */ l("ZodDiscriminatedUnion", (e, t) => {
|
|
9665
|
-
Ti.init(e, t),
|
|
9665
|
+
Ti.init(e, t), ju.init(e, t);
|
|
9666
9666
|
});
|
|
9667
9667
|
function Zv(e, t, r) {
|
|
9668
9668
|
return new bl({
|
|
@@ -9673,7 +9673,7 @@ function Zv(e, t, r) {
|
|
|
9673
9673
|
});
|
|
9674
9674
|
}
|
|
9675
9675
|
const yl = /* @__PURE__ */ l("ZodIntersection", (e, t) => {
|
|
9676
|
-
|
|
9676
|
+
xu.init(e, t), P.init(e, t);
|
|
9677
9677
|
});
|
|
9678
9678
|
function _l(e, t) {
|
|
9679
9679
|
return new yl({
|
|
@@ -9837,11 +9837,11 @@ function tn(e) {
|
|
|
9837
9837
|
innerType: e
|
|
9838
9838
|
});
|
|
9839
9839
|
}
|
|
9840
|
-
const
|
|
9840
|
+
const jl = /* @__PURE__ */ l("ZodNullable", (e, t) => {
|
|
9841
9841
|
Ru.init(e, t), P.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
9842
9842
|
});
|
|
9843
9843
|
function nn(e) {
|
|
9844
|
-
return new
|
|
9844
|
+
return new jl({
|
|
9845
9845
|
type: "nullable",
|
|
9846
9846
|
innerType: e
|
|
9847
9847
|
});
|
|
@@ -9849,11 +9849,11 @@ function nn(e) {
|
|
|
9849
9849
|
function Jv(e) {
|
|
9850
9850
|
return tn(nn(e));
|
|
9851
9851
|
}
|
|
9852
|
-
const
|
|
9852
|
+
const xl = /* @__PURE__ */ l("ZodDefault", (e, t) => {
|
|
9853
9853
|
Mu.init(e, t), P.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
|
|
9854
9854
|
});
|
|
9855
9855
|
function El(e, t) {
|
|
9856
|
-
return new
|
|
9856
|
+
return new xl({
|
|
9857
9857
|
type: "default",
|
|
9858
9858
|
innerType: e,
|
|
9859
9859
|
get defaultValue() {
|
|
@@ -9920,7 +9920,7 @@ function rn(e, t) {
|
|
|
9920
9920
|
});
|
|
9921
9921
|
}
|
|
9922
9922
|
const Li = /* @__PURE__ */ l("ZodCodec", (e, t) => {
|
|
9923
|
-
Zi.init(e, t),
|
|
9923
|
+
Zi.init(e, t), jr.init(e, t);
|
|
9924
9924
|
});
|
|
9925
9925
|
function Kv(e, t, r) {
|
|
9926
9926
|
return new Li({
|
|
@@ -10091,9 +10091,9 @@ const L = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10091
10091
|
ZodCustom: In,
|
|
10092
10092
|
ZodCustomStringFormat: Pt,
|
|
10093
10093
|
ZodDate: Ui,
|
|
10094
|
-
ZodDefault:
|
|
10094
|
+
ZodDefault: xl,
|
|
10095
10095
|
ZodDiscriminatedUnion: bl,
|
|
10096
|
-
ZodE164:
|
|
10096
|
+
ZodE164: ji,
|
|
10097
10097
|
ZodEmail: gi,
|
|
10098
10098
|
ZodEmoji: vi,
|
|
10099
10099
|
ZodEnum: $t,
|
|
@@ -10112,7 +10112,7 @@ const L = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10112
10112
|
ZodISOTime: di,
|
|
10113
10113
|
ZodIntersection: yl,
|
|
10114
10114
|
ZodIssueCode: ip,
|
|
10115
|
-
ZodJWT:
|
|
10115
|
+
ZodJWT: xi,
|
|
10116
10116
|
ZodKSUID: $i,
|
|
10117
10117
|
ZodLazy: Ll,
|
|
10118
10118
|
ZodLiteral: Sl,
|
|
@@ -10122,7 +10122,7 @@ const L = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10122
10122
|
ZodNever: vl,
|
|
10123
10123
|
ZodNonOptional: Mi,
|
|
10124
10124
|
ZodNull: fl,
|
|
10125
|
-
ZodNullable:
|
|
10125
|
+
ZodNullable: jl,
|
|
10126
10126
|
ZodNumber: bn,
|
|
10127
10127
|
ZodNumberFormat: it,
|
|
10128
10128
|
ZodObject: wn,
|
|
@@ -10200,7 +10200,7 @@ const L = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10200
10200
|
includes: ti,
|
|
10201
10201
|
instanceof: ep,
|
|
10202
10202
|
int: Vn,
|
|
10203
|
-
int32:
|
|
10203
|
+
int32: jv,
|
|
10204
10204
|
int64: Nv,
|
|
10205
10205
|
intersection: _l,
|
|
10206
10206
|
ipv4: gv,
|
|
@@ -10282,7 +10282,7 @@ const L = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10282
10282
|
treeifyError: Aa,
|
|
10283
10283
|
trim: ai,
|
|
10284
10284
|
tuple: wl,
|
|
10285
|
-
uint32:
|
|
10285
|
+
uint32: xv,
|
|
10286
10286
|
uint64: Uv,
|
|
10287
10287
|
ulid: dv,
|
|
10288
10288
|
undefined: Pv,
|
|
@@ -10879,7 +10879,7 @@ function zp(e) {
|
|
|
10879
10879
|
}), i);
|
|
10880
10880
|
}(t));
|
|
10881
10881
|
}
|
|
10882
|
-
function
|
|
10882
|
+
function je(e) {
|
|
10883
10883
|
return (t) => {
|
|
10884
10884
|
(function(r) {
|
|
10885
10885
|
if (nt(r, Ro) !== void 0) throw new F(B.injectionDecoratorConflict, `Cannot apply @injectable decorator multiple times at class "${r.name}"`);
|
|
@@ -11136,7 +11136,7 @@ function Zo(e, t, r, i) {
|
|
|
11136
11136
|
t.setPlan(e, n);
|
|
11137
11137
|
} else t.setNonCachedServiceNode(r, i);
|
|
11138
11138
|
}
|
|
11139
|
-
class
|
|
11139
|
+
class jp extends se {
|
|
11140
11140
|
#e;
|
|
11141
11141
|
#t;
|
|
11142
11142
|
#r;
|
|
@@ -11148,7 +11148,7 @@ class xp extends se {
|
|
|
11148
11148
|
return this.#t(this.#e, this.#r, this.#n);
|
|
11149
11149
|
}
|
|
11150
11150
|
}
|
|
11151
|
-
class
|
|
11151
|
+
class xp extends se {
|
|
11152
11152
|
#e;
|
|
11153
11153
|
#t;
|
|
11154
11154
|
#r;
|
|
@@ -11182,7 +11182,7 @@ function ad(e, t, r, i) {
|
|
|
11182
11182
|
const S = m.operations.getPlan(g);
|
|
11183
11183
|
if (S !== void 0 && S.tree.root.isContextFree) return S.tree.root;
|
|
11184
11184
|
}
|
|
11185
|
-
const _ = f(m, y, p), I = new
|
|
11185
|
+
const _ = f(m, y, p), I = new jp(m, c, y, p, _);
|
|
11186
11186
|
return Zo(g, m.operations, I, { bindingConstraintsList: y, chainedBindings: p.kind === le.multipleInjection && p.chained, optionalBindings: p.optional }), I;
|
|
11187
11187
|
};
|
|
11188
11188
|
}(a, s);
|
|
@@ -11215,7 +11215,7 @@ function ad(e, t, r, i) {
|
|
|
11215
11215
|
const S = m.operations.getPlan(g);
|
|
11216
11216
|
if (S !== void 0 && S.tree.root.isContextFree) return S.tree.root;
|
|
11217
11217
|
}
|
|
11218
|
-
const _ = f(m, y, p), I = new
|
|
11218
|
+
const _ = f(m, y, p), I = new xp(m, c, y, p, _);
|
|
11219
11219
|
return Zo(g, m.operations, I, { bindingConstraintsList: y, chainedBindings: p.kind === ze.multipleInjection && p.chained, optionalBindings: p.optional }), I;
|
|
11220
11220
|
};
|
|
11221
11221
|
}(a, s);
|
|
@@ -12482,7 +12482,7 @@ let er = class {
|
|
|
12482
12482
|
this.runtimeConfig = vh.parse(e), this.appConfig = ph.parse({
|
|
12483
12483
|
VITE_INJECT_AGIFLOW_APP_ENDPOINT: "https://agiflow.io",
|
|
12484
12484
|
VITE_INJECT_AGIFLOW_APP_DOCKER_ENDPOINT: "https://agiflow.io",
|
|
12485
|
-
VITE_AGENT_CLI_DOCKER_IMAGE: "agiflowai/agent-cli:v0.1.
|
|
12485
|
+
VITE_AGENT_CLI_DOCKER_IMAGE: "agiflowai/agent-cli:v0.1.10",
|
|
12486
12486
|
VITE_AGENT_CLI_DOCKER_NETWORK: "",
|
|
12487
12487
|
VITE_SAVE_RAW: "",
|
|
12488
12488
|
VITE_MULTIPLEX_SOCKET_PATH: process.env.VITE_MULTIPLEX_SOCKET_PATH
|
|
@@ -12550,7 +12550,7 @@ let er = class {
|
|
|
12550
12550
|
}
|
|
12551
12551
|
};
|
|
12552
12552
|
er = gh([
|
|
12553
|
-
|
|
12553
|
+
je()
|
|
12554
12554
|
], er);
|
|
12555
12555
|
var hh = Object.getOwnPropertyDescriptor, bh = (e, t, r, i) => {
|
|
12556
12556
|
for (var n = i > 1 ? void 0 : i ? hh(t, r) : t, o = e.length - 1, a; o >= 0; o--)
|
|
@@ -12638,14 +12638,14 @@ let tr = class {
|
|
|
12638
12638
|
}
|
|
12639
12639
|
};
|
|
12640
12640
|
tr = bh([
|
|
12641
|
-
|
|
12641
|
+
je()
|
|
12642
12642
|
], tr);
|
|
12643
12643
|
var yh = Object.getOwnPropertyDescriptor, _h = (e, t, r, i) => {
|
|
12644
12644
|
for (var n = i > 1 ? void 0 : i ? yh(t, r) : t, o = e.length - 1, a; o >= 0; o--)
|
|
12645
12645
|
(a = e[o]) && (n = a(n) || n);
|
|
12646
12646
|
return n;
|
|
12647
12647
|
};
|
|
12648
|
-
const
|
|
12648
|
+
const xe = () => L.preprocess((e) => {
|
|
12649
12649
|
if (typeof e == "boolean") return e;
|
|
12650
12650
|
if (typeof e == "number") return e === 1;
|
|
12651
12651
|
if (typeof e == "string") {
|
|
@@ -12663,9 +12663,9 @@ const je = () => L.preprocess((e) => {
|
|
|
12663
12663
|
// Node environment
|
|
12664
12664
|
NODE_ENV: L.enum(["development", "production", "test"]).default("production"),
|
|
12665
12665
|
// Docker configuration
|
|
12666
|
-
AGENT_CONTAINER_MODE:
|
|
12666
|
+
AGENT_CONTAINER_MODE: xe().default(!1),
|
|
12667
12667
|
// Autonomous mode - auto-approve all tool use
|
|
12668
|
-
AGENT_AUTONOMOUS_MODE:
|
|
12668
|
+
AGENT_AUTONOMOUS_MODE: xe().default(!1),
|
|
12669
12669
|
// Agent configuration
|
|
12670
12670
|
AGIFLOW_AGENT_API_KEY: L.string().optional(),
|
|
12671
12671
|
AGENT_ORGANIZATION_ID: L.string().optional(),
|
|
@@ -12681,19 +12681,19 @@ const je = () => L.preprocess((e) => {
|
|
|
12681
12681
|
HTTP_PROXY: L.string().optional(),
|
|
12682
12682
|
HTTPS_PROXY: L.string().optional(),
|
|
12683
12683
|
// Network logging
|
|
12684
|
-
AGI_NETLOG_ENABLE:
|
|
12685
|
-
AGI_NETLOG_DEBUG:
|
|
12684
|
+
AGI_NETLOG_ENABLE: xe().default(!0),
|
|
12685
|
+
AGI_NETLOG_DEBUG: xe().optional(),
|
|
12686
12686
|
AGI_NETLOG_FILE: L.string().optional(),
|
|
12687
12687
|
AGI_NETLOG_MAX_BODY: $h().optional(),
|
|
12688
|
-
AGI_NETLOG_REMOTE_ENABLE:
|
|
12688
|
+
AGI_NETLOG_REMOTE_ENABLE: xe().default(!0),
|
|
12689
12689
|
AGI_NETLOG_REMOTE_FILE: L.string().optional(),
|
|
12690
12690
|
// Debug flags
|
|
12691
|
-
DEBUG:
|
|
12692
|
-
VERBOSE:
|
|
12691
|
+
DEBUG: xe().default(!1),
|
|
12692
|
+
VERBOSE: xe().default(!1),
|
|
12693
12693
|
LOG_LEVEL: L.string().optional(),
|
|
12694
12694
|
HOSTNAME: L.string().optional(),
|
|
12695
12695
|
// Raw data saving
|
|
12696
|
-
VITE_SAVE_RAW:
|
|
12696
|
+
VITE_SAVE_RAW: xe().default(!1)
|
|
12697
12697
|
});
|
|
12698
12698
|
function Jt(e = !1) {
|
|
12699
12699
|
return e ? "https://agiflow.io" : "https://agiflow.io";
|
|
@@ -12823,7 +12823,7 @@ let nr = class {
|
|
|
12823
12823
|
}
|
|
12824
12824
|
};
|
|
12825
12825
|
nr = _h([
|
|
12826
|
-
|
|
12826
|
+
je()
|
|
12827
12827
|
], nr);
|
|
12828
12828
|
const wh = new er();
|
|
12829
12829
|
wh.getAppConfig();
|
|
@@ -13066,7 +13066,7 @@ let It = class {
|
|
|
13066
13066
|
}
|
|
13067
13067
|
};
|
|
13068
13068
|
It = Sh([
|
|
13069
|
-
|
|
13069
|
+
je(),
|
|
13070
13070
|
aa(0, ge(H.Logger)),
|
|
13071
13071
|
aa(1, ge(H.MultiplexClientConfig))
|
|
13072
13072
|
], It);
|
|
@@ -13179,12 +13179,12 @@ let ua = class extends It {
|
|
|
13179
13179
|
}
|
|
13180
13180
|
};
|
|
13181
13181
|
ua = Oh([
|
|
13182
|
-
|
|
13182
|
+
je(),
|
|
13183
13183
|
sa(0, ge(H.Logger)),
|
|
13184
13184
|
sa(1, ge(H.MultiplexClientConfig))
|
|
13185
13185
|
], ua);
|
|
13186
|
-
var
|
|
13187
|
-
for (var n = i > 1 ? void 0 : i ?
|
|
13186
|
+
var jh = Object.getOwnPropertyDescriptor, xh = (e, t, r, i) => {
|
|
13187
|
+
for (var n = i > 1 ? void 0 : i ? jh(t, r) : t, o = e.length - 1, a; o >= 0; o--)
|
|
13188
13188
|
(a = e[o]) && (n = a(n) || n);
|
|
13189
13189
|
return n;
|
|
13190
13190
|
}, ca = (e, t) => (r, i) => t(r, i, e);
|
|
@@ -13213,6 +13213,9 @@ let la = class {
|
|
|
13213
13213
|
throw this.logger.error(`GlobalClient request failed for session ${e}:`, i), i;
|
|
13214
13214
|
}
|
|
13215
13215
|
}
|
|
13216
|
+
async publish(e, t) {
|
|
13217
|
+
this.validateSessionId(e), this.logger.debug(`GlobalClient publish (fire-and-forget) for session ${e}`), await this.broker.publish(e, t);
|
|
13218
|
+
}
|
|
13216
13219
|
registerService(e, t, r) {
|
|
13217
13220
|
this.validateSessionId(e), this.logger.debug(`GlobalClient registering service ${t} for session ${e}`), this.broker.registerService(e, t, r);
|
|
13218
13221
|
}
|
|
@@ -13229,8 +13232,8 @@ let la = class {
|
|
|
13229
13232
|
throw new Error(`Invalid sessionId: "${e}"`);
|
|
13230
13233
|
}
|
|
13231
13234
|
};
|
|
13232
|
-
la =
|
|
13233
|
-
|
|
13235
|
+
la = xh([
|
|
13236
|
+
je(),
|
|
13234
13237
|
ca(0, ge(H.Logger)),
|
|
13235
13238
|
ca(1, ge(H.MessageMultiplexBroker))
|
|
13236
13239
|
], la);
|
|
@@ -13426,7 +13429,7 @@ let rr = class extends It {
|
|
|
13426
13429
|
}
|
|
13427
13430
|
};
|
|
13428
13431
|
rr = Nh([
|
|
13429
|
-
|
|
13432
|
+
je(),
|
|
13430
13433
|
da(0, ge(H.Logger)),
|
|
13431
13434
|
da(1, ge(H.MultiplexClientConfig))
|
|
13432
13435
|
], rr);
|
|
@@ -13614,7 +13617,7 @@ let ga = class extends It {
|
|
|
13614
13617
|
}
|
|
13615
13618
|
};
|
|
13616
13619
|
ga = Th([
|
|
13617
|
-
|
|
13620
|
+
je(),
|
|
13618
13621
|
ma(0, ge(H.Logger)),
|
|
13619
13622
|
ma(1, ge(H.MultiplexClientConfig))
|
|
13620
13623
|
], ga);
|
|
@@ -13632,12 +13635,15 @@ let pa = class {
|
|
|
13632
13635
|
this.brokerHttpUrl = r.replace(/^ws:\/\//, "http://").replace(/^wss:\/\//, "https://"), this.logger.info(`RemoteMultiplexGlobalClient initialized with broker: ${this.brokerHttpUrl}`);
|
|
13633
13636
|
}
|
|
13634
13637
|
brokerHttpUrl;
|
|
13638
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
13635
13639
|
subscribeEventType(e, t, r) {
|
|
13636
13640
|
this.logger.warn("RemoteMultiplexGlobalClient does not support subscribeEventType");
|
|
13637
13641
|
}
|
|
13642
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
13638
13643
|
unsubscribeEventType(e, t, r) {
|
|
13639
13644
|
this.logger.warn("RemoteMultiplexGlobalClient does not support unsubscribeEventType");
|
|
13640
13645
|
}
|
|
13646
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
13641
13647
|
async publishEventType(e, t, r) {
|
|
13642
13648
|
this.logger.warn("RemoteMultiplexGlobalClient does not support publishEventType");
|
|
13643
13649
|
}
|
|
@@ -13674,9 +13680,40 @@ let pa = class {
|
|
|
13674
13680
|
throw this.logger.error(`RemoteGlobalClient request failed for session ${e}:`, n), n;
|
|
13675
13681
|
}
|
|
13676
13682
|
}
|
|
13683
|
+
/**
|
|
13684
|
+
* Send RPC request to host broker via HTTP (fire-and-forget)
|
|
13685
|
+
* Used for AgentWsService methods that don't need a response
|
|
13686
|
+
*/
|
|
13687
|
+
async publish(e, t) {
|
|
13688
|
+
this.validateSessionId(e);
|
|
13689
|
+
const r = this.generateCorrelationId();
|
|
13690
|
+
try {
|
|
13691
|
+
this.logger.debug(`RemoteGlobalClient publish (fire-and-forget) for session ${e}`), fetch(this.brokerHttpUrl, {
|
|
13692
|
+
method: "POST",
|
|
13693
|
+
headers: {
|
|
13694
|
+
"Content-Type": "application/json",
|
|
13695
|
+
"X-Session-Id": e,
|
|
13696
|
+
"X-Correlation-Id": r
|
|
13697
|
+
},
|
|
13698
|
+
body: JSON.stringify({
|
|
13699
|
+
correlationId: r,
|
|
13700
|
+
event: t,
|
|
13701
|
+
timestamp: Date.now()
|
|
13702
|
+
}),
|
|
13703
|
+
signal: AbortSignal.timeout(5e3)
|
|
13704
|
+
// Shorter timeout for fire-and-forget
|
|
13705
|
+
}).catch((i) => {
|
|
13706
|
+
this.logger.debug(`RemoteGlobalClient publish failed for session ${e}:`, i);
|
|
13707
|
+
});
|
|
13708
|
+
} catch (i) {
|
|
13709
|
+
this.logger.debug(`RemoteGlobalClient publish error for session ${e}:`, i);
|
|
13710
|
+
}
|
|
13711
|
+
}
|
|
13712
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
13677
13713
|
registerService(e, t, r) {
|
|
13678
13714
|
this.logger.warn("RemoteMultiplexGlobalClient does not support registerService");
|
|
13679
13715
|
}
|
|
13716
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
13680
13717
|
unregisterService(e, t) {
|
|
13681
13718
|
this.logger.warn("RemoteMultiplexGlobalClient does not support unregisterService");
|
|
13682
13719
|
}
|
|
@@ -13695,7 +13732,7 @@ let pa = class {
|
|
|
13695
13732
|
}
|
|
13696
13733
|
};
|
|
13697
13734
|
pa = Dh([
|
|
13698
|
-
|
|
13735
|
+
je(),
|
|
13699
13736
|
va(0, ge(H.Logger)),
|
|
13700
13737
|
va(1, ge(H.SubEnvManager))
|
|
13701
13738
|
], pa);
|